preload preload preload preload preload preload
archive of dennis g. / XORN.ORG an unclear view on me

Running Debian GNU/Linux on an IBM/Lenovo Thinkpad X61s

This is for Debian Lenny (Stable) only! You don't need much for Squeeze (testing in Jan. 2010), try this for squeeze

My kernel setup (32bit; PAE for my 4gb RAM) for kernel from - get my kernel .config - You can also use it for newer versions, just run make oldconfig

Here I just explain what I needed to add to Debian Lenny, to have everything working to get a comfortable setup to my likings.

Solving the only problem: Special Keys

Multimedia Keys

Install the package "xbindkeys", and then first insert the following in the shown files:

!!! File: ~/.xmodmaprc or ~/.Xmodmap
! use "xev" to find out the keycodes, run it in a shell to
! view the output.
! to make X know about these keys, map keycodes to keys
! you can later use these for example for global kde shortcuts
! or you can also use it in the next file, .xbindkeys
keycode 233 = XF86Forward
keycode 234 = XF86Back

keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 153 = XF86AudioNext
keycode 144 = XF86AudioPrev

! this adds the Fn-Key as an additional function key
! without making it loose all it's normal functions
keycode 227 = F35

keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
### File: ~/.xbindkeys
# You can define any stepsize you want, 1dB, 2dB or whatever.
# You could also just use the numbers like "alsamixer" shows
# by doing "amixer -c 0 set Master 5+" or similiar
# you could also not use xbindkeys, but use kmix global shortcuts in kde
"amixer -c 0 set Master 2dB+"
"amixer -c 0 set Master 2dB-"
"amixer -c 0 set Master toggle"

The xmodmap file should be loaded automatically when you start your session, if for some reason it doesn't, just append the line "xmodmap ~/.xmodmaprc" to your ~/.xsession file. For xbindkeys to work, append "xbindkeys" to your ~/.xsession file after the xmodmap command. Here you can read some more about xmodmap

Brightness Keys

Just make these two files look like shown, it might be possible that these changes aren't needed anymore, so just do so, if it doesn't work already.

### File: /etc/acpi/
echo down > /proc/acpi/ibm/brightness
### File: /etc/acpi/
echo up > /proc/acpi/ibm/brightness

The default setup creates some acpi fakekeys (but just if the dmi system-manufacturer string does not match Lenovo) which could be handled by gnome or kde power daemons (which I don't use)

Custom ACPI keys

Be aware that newer versions are supposed to use hal and hal policies in /usr/share/hal/fdi/information and /etc/hal/fdi/information (to override the settings from /usr)

For customizing the different ACPI keys (Fn+F* keys) look at my Z61e "guide":

Keywords for crawlers: Firefox GNU Linux Photography Software Hardware Thinkpad Z61e X61s Dennis Debian Camera Gear Microcontroller Buttons
(c) Dennis G. 2004-2011 created with the gimp and text editor last change of this file: January 05, 2010 - 11:59