Custom CSS

Wednesday, July 7, 2010

Setting up my X100e with Debian Sid

I had some fun adventures putting Debian sid on my X100e! I'm eagerly awaiting the release of the 2.6.35 kernel (which has acpi support for the X100e amongst other yummy goodies), so I decided to dist-upgrade to sid (and use the 2.6.32 kernel in sid while waiting). Oh! But what wonderful adventures there were to be had!

First of all, wmii was totally busted as it wouldn't respond to any commands involving my mod key (which is alt). I noticed (using xev) that shift+alt did not register properly, so of course wmii wouldn't respond. Here's the fix (don't ask me what it means):

setxkbmap -symbols 'pc+us+inet(evdev)+level3(ralt_switch)+ctrl(swapcaps)+compose(lwin)'

Then I discovered that I couldn't use the middle mouse button to scroll with the trackpoint. Since the xorg.conf file has mostly gone the way of the dodo, here are the magic xinput commands to get that working:

xinput set-int-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation' 8 1
xinput set-int-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Button' 8 2
xinput set-int-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Timeout' 8 200
xinput set-int-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Axes' 8 6 7 4 5

Now, I just take all that stuff and jam it into my xinitrc, then I never think about what any of it means and use wmii happily.

Of course, I still had to build the fglrx kernel modules and modify the xorg.conf to make the video card sing:

Section "Device"
 Identifier "Radeon 3200 HD"
 Driver "fglrx"
 BusID "PCI:1:5:0"
 Option "VideoOverlay" "on"
 Option "OpenGLOverlay" "off"

Section "Screen"
 Identifier "Thinkpad Screen"
 Monitor "Thinkpad LCD"
 DefaultDepth 24

Section "Monitor"
 Identifier "Thinkpad LCD"
 Option "DPMS"

Section "ServerLayout"
 Identifier "Thinkpad Layout"
 Screen "Thinkpad Screen"
 Option "AIGLX" "true"

Section "DRI"
 Mode 0666

Section "Extensions"
 Option "Composite" "enable"

Critical result: HAPPY!
Post a Comment