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

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/

Nautilus

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

GDM

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’)].

VirtualBox and Neo

Ich hatte einige Probleme ein Windowssystem in der VirtualBox zum laufen zu bekommen, da ich Neo als Tastaturlayout nutze, und es mir nicht möglich war, den Lizenzschlüssel einzugeben. Die Nummerntasten (und einige andere) funktionieren nicht.

Nun bin ich endlich auf eine Lösung gestoßen. Es ist eigentlich ganz einfach. Vor dem Starten des Systems muss einfach folgender Befehl im Terminal eingegeben werden:

$ VBoxManage setextradata global GUI/RemapScancodes49=41,
10=2,11=3,12=4,13=5,14=6,15=7,16=8,17=9,18=10,19=11,20=12,
21=13,22=14,23=15,24=16,25=17,26=18,27=19,28=20,29=21,30=22,
31=23,32=24,33=25,34=26,35=27,36=28,66=58,38=30,39=31,40=32,
41=33,42=34,43=35,44=36,45=37,46=38,47=39,48=40,51=43,50=42,
94=86,52=44,53=45,54=46,55=47,56=48,57=49,58=50,59=51,60=52,
61=53,62=54,37=29,133=91,64=56,65=57,108=56,134=92,135=93,
105=29,77=69,106=53,63=55,82=74,79=71,80=72,81=73,86=78,
83=75,84=76,85=77,87=79,88=80,89=81,104=28,90=82,91=83,9=1

Damit werden die Scancodes, die von Virtualbox gesendet werden anders interpretiert. Schon gehen meine Zahlen wieder.

Neo Episode 2

Right now I can do 100 strokes per minute. And it is even more fun. The only problem I have are the typos I make – They are many. If there is a good method to learn how to avoid them I would be really grateful.

Installing on Ubuntu 9.10
Set the active keyboard layout in “System → Settings → Keyboard” to “German → Neo”. Neo is now active but only a beta version in which (compared to the current version) for example “ü” and “ö” are changed.
Download the recent xkb.tgz

$ wget http://neo-layout.org/xkb.tgz

and replace the old files (do not forget to make a backup).

$ sudo tar -C /usr/share/X11/ -xzf xkb.tgz

More tutorials for installing Neo on Linux, Windows and other operating systems can be found on the manufacturer’s homepage. (All linked homepages are in German)

Neo and vi(m)
In vim the keys “hjkl” are  used to navigate. Now these keys are spaced somewhere on the keyboard, so we better use “snrt” to have navigation on the same place as if we were using QWERTY. We exchange the particular letters.
Edit or create the file ~/.vimrc and add the following:

no s h
no h s
no n j
no j n
no r k
no k r
no t l
no l t

Neo and Virtualisation
I need to use windows at work, so I used to use VirtualBox. Try to install Windows. Everything worked fine until I should insert the license code. It was not possible to insert digits (even after changing the layout on the host back to QWERTY).
Since then I use QEMU and Neo is even running with the Windows drivers in my guest system.

Neo 2.0

A (first) report

The most people I know are seeing the keyboard (as hardware in general) as something irrevocable. Many do not know that it is easy to change its layout. And why should somebody do so? The keyboard is good, as it is, isn‘t it?

But the keyboard layout that is still in use these days has been developed when it was still important that the typewriters do not get spoiled if you type too fast.

Four days ago, I changed my keyboard layout to Neo. Right now, I make 50 strokes per minute. One week ago (using QERTZ, the German modification of QERTY), it have been nearly 200. But it just feels great. I have now recognized, how rarely I use the „F“. And this really has a VIP position. Many words can be typed without leaving the base line. It is fun typing like this, although I am still really slow.

I will write more when I become faster.