2008-05-21

Setting up Thinkpad X41 Tablet in Ubuntu

Fingerprint reader

  1. install thinkfinger (sudo apt-get install thinkfinger-tools libpam-thinkfinger)
  2. acquire fingerprint (sudo tf-tool --acquire)
  3. verify fingerprint (sudo tf-tool --verify)
  4. update pam config (sudo gedit /etc/pam.d/common-auth so it contains only these 2 lines: auth sufficient pam_thinkfinger.so auth required pam_unix.so try_first_pass nullok_secure
    update for ubuntu 8.10: change the according lines in this file so it looks like this: ... # here are the per-package modules (the "Primary" block) auth sufficient pam_thinkfinger.so auth [success=1 default=ignore] pam_unix.so try_first_pass nullok_secure # here's the fallback if no module succeeds ... here is fix for situation when auth won't proceed until you press enter
(thanks to wiki.ubuntu.com/ThinkFinger and thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger)

Back/Forward keys

update for ubuntu 8.10: you can skip this step as the keys work out of the box

run sudo gedit /etc/X11/Xmodmap,

add: keycode 234 = XF86Back keycode 233 = XF86Forward
for immediate effect run xmodmap /etc/X11/Xmodmap (Note: this works in hardy, you may need to use Xmodmap instead in older versions of Ubuntu)

Trackpoint scrolling

sudo gedit /etc/X11/xorg.conf, locate section InputDevice with identifier Configured Mouse, add Option "EmulateWheel" "true" Option "EmulateWheelButton" "2"

update for ubuntu 8.10: how to enable trackpoint in ubuntu 8.10

Stylus

  1. install wacom driver (sudo apt-get install xserver-xorg-input-wacom wacom-tools)
  2. sudo gedit /etc/X11/xorg.conf, add Section "InputDevice" Identifier "stylus" Driver "wacom" Option "Device" "/dev/input/wacom" Option "Type" "stylus" Option "ForceDevice" "ISDV4" EndSection Section "InputDevice" Identifier "eraser" Driver "wacom" Option "Device" "/dev/input/wacom" Option "Type" "eraser" Option "ForceDevice" "ISDV4" EndSection Section "InputDevice" Identifier "cursor" Driver "wacom" Option "Device" "/dev/input/wacom" Option "Type" "cursor" Option "ForceDevice" "ISDV4" EndSection, locate section ServerLayout, append InputDevice "stylus" "SendCoreEvents" InputDevice "cursor" "SendCoreEvents" InputDevice "eraser" "SendCoreEvents"

    update for ubuntu 8.10: Section "InputDevice" Driver "wacom" Identifier "stylus" Option "Device" "/dev/ttyS0" # Change to /dev/input/event for USB Option "Type" "stylus" Option "ForceDevice" "ISDV4" # Tablet PC ONLY # Option "KeepShape" "on" # Option "TPCButton" "off" EndSection Section "InputDevice" Driver "wacom" Identifier "eraser" Option "Device" "/dev/ttyS0" # Change to /dev/input/eventfor USB Option "Type" "eraser" Option "ForceDevice" "ISDV4" # Tablet PC ONLY # Option "KeepShape" "on" EndSection Section "InputDevice" Driver "wacom" Identifier "cursor" Option "Device" "/dev/ttyS0" # Change to /dev/input/event for USB Option "Type" "cursor" Option "ForceDevice" "ISDV4" # Tablet PC ONLY # Option "KeepShape" "on" EndSection Section "ServerLayout" Identifier "Default Layout" Screen "Default Screen" InputDevice "stylus" "SendCoreEvents" InputDevice "cursor" "SendCoreEvents" InputDevice "eraser" "SendCoreEvents" EndSection

  3. sudo gedit /etc/acpi/resume.d/20-setserial.sh, append #!/bin/bash /bin/setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig and sudo chmod +x /etc/acpi/resume.d/20-setserial.sh

Display rotation

Ubuntu Thinkpad X41 tablet screen rotation

1 comment:

Zhang said...

Great Ideas!!
Thx Very Much!!