Debian Lenny on a Thinkpad T400s

(This page is kind of updated to cover Debian Squeeze)

Emacs keys in applications

E.g. google-chrome:

Edit/create .gtkrc-2.0, so it contains:

gtk-key-theme-name = "Emacs"

Source: http://kb.mozillazine.org/Emacs_Keybindings_(Firefox)

Kernel

You need a kernel with bigmem support to see more than 3GB ram.

Use backports and install something like 2.6.32-bpo.3-686-bigmem

Touchpad

To see status:

xinput list-props "SynPS/2 Synaptics TouchPad"

http://www.thinkwiki.org/wiki/Synaptics_TouchPad_driver_for_X

Wireless

apt-get install rmware-iwlwifi wireless-tools

Also see: http://wiki.debian.org/iwlagn

If you have weird problems like:

# ifconfig wlan0 up                                                                                                                                 
SIOCSIFFLAGS: Unknown error 132

Check the little button on the right side of the laptop -- it should show some green and be in the rightmost position.

Suspend

apt-get install uswsusp

The following script works:

test -f /usr/share/acpi-support/power-funcs || exit 0
test -f /usr/sbin/s2ram || exit 0
rmmod usb_storage
rmmod uhci_hcd
rmmod ehci_hcd
/usr/sbin/s2ram -f -a 1 -m
modprobe uhci_hcd
modprobe ehci_hcd
modprobe usb_storage

But how do i call it on closed lid? The acpi-stuff does not seem to catch it.

Ok, in a way it does, the state is found in =/proc/acpi/button/lid/LID/state= and that works:

state:      open
state:      closed

We can use that for a quick hack:

Append the following line to the script:

grep close /proc/acpi/button/lid/LID/state || exit 0

And put the script in roots crontab:

* * * * *       /root/shell/sleep-on-lid-closed.sh >> /tmp/sleep-on-lid-closed.out 2>&1

If the lid is closed, the machine will suspend within the next minute. That is good enough for now.

Links:

Touchpad

To disable tap, edit xorg.conf to add a section for the synaptics driver:

# load driver
Section "Module"
        Load    "synaptics"
EndSection

# configure
Section "InputDevice"
# using the X module
  Identifier    "touchpad"
  Driver        "synaptics"
  Option        "Device"        "/dev/psaux"
  Option        "Protocol"      "auto-dev"
# absolute area: 0-6143 in both directions
  Option        "LeftEdge"      "1700"
  Option        "RightEdge"     "5300"
  Option        "TopEdge"       "1700"
  Option        "BottomEdge"    "4200"
  Option        "FingerLow"     "25"
  Option        "FingerHigh"    "30"
# try to set max to 0 to stop tapping
  Option        "MaxTapTime"    "0"
  Option        "MaxTapMove"    "0"
  Option        "VertScrollDelta" "100"
  Option        "MinSpeed"      "0.06"
  Option        "MaxSpeed"      "0.12"
  Option        "AccelFactor" "0.0010"
  Option        "SHMConfig"     "on"
  Option        "TapButton1"    "0"
  Option        "TapButton2"    "0"
  Option        "TapButton3"    "0"
#  Option       "Repeater"      "/dev/ps2mouse"
EndSection

# you probably also need to add a ServerLayout
Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "touchpad" "CorePointer"
        InputDevice     "Configured Mouse" "AlwaysCore"
EndSection