X1 Carbon Setup

I just got my Lenovo Thinkpad X1 Laptopt. There are some things, that bothered me during installation of my Arch Linux, that I want to keep here for archivation reasons. Might help somebody.

UEFI is not nice… At least I learnd a lot while setting everything up, and there was less manual work than expected. But there was some other manual work for my setup. This post is work in progress, as there might be some more stuff coming, that I encounter.

Neo Keyboard

I am still using the Neo keyboard layout. The caps lock key is used here, to go to layer 3 on the keyboard. Unfortunately the X1 does not have a caps lock key, but a Pos1 and End key at this position instead. The proposal I got in the #neo help channel was really worthy to think about (“am besten jemand verprügeln für dieses furchtbare tastaturlayout”), but I decided to solve the problem directly at my keyboard. I updated the neo.map and replace the entries of the keycodes 102 and 107 with AltGr to make those keys behave as they should for me. You can also download my edited one if you want.

Till now I weren’t able to set both keys in Gnome accordingly. To set Pos1 & End to act as caps lock create the file ~/.Xmodmap using the command:

xmodmap -pke > ~/.Xmodmap

Change the lines with the keycodes 110 and 115 and replace the Home/End with ISO_Level3_Shift. Also add the Shift for keycode 66, to make external (normal) keyboards work:

keycode  66 = ISO_Level3_Shift
keycode 110 = ISO_Level3_Shift NoSymbol Home NoSymbol Home
keycode 115 = ISO_Level3_Shift NoSymbol End NoSymbol End

Then run

xmodmap ~/.Xmodmap

to apply the new map file.


Touchpad is not yet propperly working. But this made it a bit better: http://major.io/2013/08/24/get-a-rock-solid-linux-touchpad-configuration-for-the-lenovo-x1-carbon/


Set nautilus to always show the address bar. Switch on org>gnome>nautilus>preferences>always-use-location-entry in dconf-editor


Some problems with gdm not showing the desktop after powersafe-mode could be solved by creating the file /etc/modprobe.d/i915.conf and putting there:

options i915 enable_rc6=0

Neo in Gnome 3.8

After a fresh Arch Linux install with Gnome 3.8, I was not able to chose Neo as keyboard layout in the gnome settings. To set it manually, use the dconf-editor. Set the entry org.gnome.desktop.input-sources.sources to [(‘xkb’, ‘de+neo’)].

Multiboot USB Drive

I just created a usb drive containing different linux distributions. I wanted the drive to have the original iso files on it with no need to unpack.

Here is what I did:

sudo mkfs.vfat -n MultibootUSB /dev/sdd1
sudo mount /dev/sdd /mnt/
sudo grub-install --no-floppy --root-directory=/mnt /dev/sdd

All iso files have to put to ‘/mnt/iso’.
My config file ‘/mnt/boot/grub.cfg’ can be downloaded here.

Especially the configuration for Arch Linux was a bit tricky to create.
‘archisolabel’ has to be the label of the image file used.
‘img_dev’ is set to the uuid of the usb device used.

Quite interesting is also the remastering of certain files. I put the neo keymap into /arch/any/usr-share.fs.sfs.

See here: https://wiki.archlinux.org/index.php/Remastering_the_Install_ISO. If anybody wants to have the iso file, just tell me.

For further information check:

Ubuntu 10.04 Installation

How do I install Ubuntu Lucid Lynx, create a Dual-Boot system and import my files from an existing windows installation? This tutorial tries to focus mainly on beginners who want to try Ubuntu or try to make their first own Ubuntu installation. If you want to know more about partitioning, better look for it somewhere else. Here is the tutorial:

Although it is really simple and should not encounter any problems, a backup before is reccomended.

I start with a 20 GB harddisc running Windows XP.

First we insert a Ubuntu 10.04 CD in our CD-drive and boot the computer from the CD. Depending on the boot-order you might need to press F12 directly after hitting the power button and chose the CD-drive. Ubuntu is then showing itself with the (new) purple splash screen. Do not press any key now, as you would get the mode for installing systems made for sale or to check the memory of your computer.

Now you need to set the language for your system. All applications will then (if the language is available for the program) appear in the language you chose. Here you can chose as well if you just want to try the system in Live Mode or to install it directly, as explained here.

Now we chose our timezone to get the correct timestamp in E-Mails or for Summer/Winter-time to change automatically. Ubuntu tries to guess the right timezone by looking at your language settings and your position if you are already connected to the internet.

The next step is to select the keyboard layout. As long as you are not using an alternative layout (as I use Neo) or have a keyboard from another country just check, that the suggested option is fitting the contry you are in (If there are no special layouts for your country, you might have a version from the USA).

Now we can chose if we want to install Ubuntu next to windows or erase the whole disk if we only want to use Ubuntu. With the bar at the bottom of the page you can chose how much space each operating system gets, if you are installing a dual boot sytem. Experienced users should use the advanced settings to create an own partition for their home folder (like My Documents on Windows), but for a first-time installation this will probably overcharge you. If you are asked to verify your settings, as it will be written to the disk immediately, please read the message (it is really helpful in most cases), check your settings and approve them (or not)

Then your user account needs to be created. Note, that the first account will be a member of the admin group and therefore has the right to install software (after identifying with his password). Other users can be created after the installation. Please chose a long password containing letters, numbers and signs, to make it ungessable. At the bottom you can chose either to get logged in automatically, insert your password to log in and even to encrypt your home folder with your password. For my Ubuntu laptop, this is my preffered option, as nobody, even if it gets lost or is stolen, can access my data. The password needs to be really strong to offer real security here. If you chose this option and forget your password, you will not be able to retrieve your data. So be careful.

Chose the data to be imported from Windows. This option is only available if you are installing Ubuntu next to an existing Windows version.

Check everything a last time.

And finally install Ubuntu.

Now restart the computer and remove the CD when you are asked to do so. Congratulations! You have successfully installed Ubuntu.