Installing Gentoo on a ThinkPad X60 Tablet

From ThinkWiki
Revision as of 19:48, 24 July 2007 by Raller (Talk | contribs) (Wireless)
Jump to: navigation, search

This is WIP! The guide will be somewhat complete in the late summer.


Gentoo general

In /etc/make.conf:

VIDEO_CARDS="i810 vesa"
INPUT_DEVICES="keyboard mouse wacom"

Sound

In the kernel configuration:

Device Drivers  --->
 Sound  --->
  Advanced Linux Sound Architecture  --->
   PCI devices  --->
    <*> Intel HD Audio

Now emerge alsasound and add it to the default runlevel

emerge -av alsasound
rc-update add alsasound default
/etc/init.d/alsasound start

Display

Input

Pen

In the kernel configuration:

Device Drivers  --->
 Input device support  --->
  <*> Event interface
  [*] Miscellaneous devices  --->
   <*> User level driver support
 USB support  --->
  <*> Wacom Intuos/Graphire tablet support

Add the following (magic) line to /etc/conf.d/local.start:

setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig

Now add the following lines to your xorgcfg generated xorg.conf:

Section "InputDevice"
   Identifier  "Cursor"
   Driver      "wacom"
   Option      "Device" "/dev/ttyS0"
   Option      "Type" "cursor"
   Option      "ForceDevice" "ISDV4"
   Option      "Mode" "Absolute"
EndSection
Section "InputDevice"
   Identifier  "Stylus"
   Driver      "wacom"
   Option      "Device" "/dev/ttyS0"
   Option      "Type" "stylus"
   Option      "ForceDevice" "ISDV4"
EndSection
Section "InputDevice"
   Identifier  "Eraser"
   Driver      "wacom"
   Option      "Device" "/dev/ttyS0"
   Option      "Type" "eraser"
   Option      "ForceDevice" "ISDV4"
EndSection

And the following three lines in the end of the ServerLayout section:

InputDevice    "Cursor" "SendCoreEvents"
InputDevice    "Stylus" "SendCoreEvents"
InputDevice    "Eraser" "SendCoreEvents"

Touch Screen

According to ref. A, this doesn't work.

Trackpoint

Works.

Special keys

Keys On The Monitor

I have currently managed to map the following buttons: Esc, up, down, left, right, center (center). They are mapped using setkeycodes. They commands can be inserted into /etc/conf.d/local.start like the following:

# Esc button
setkeycodes 6b 1
# Up
setkeycodes 71 104
# Down
setkeycodes 6f 109
# Left
setkeycodes 6e 105
# Right
setkeycodes 6d 106
# Center
setkeycodes 69 28

The keycodes can be found for other mappings at ref. B

Fingerpring Reader

This actually is surprisingly easy to make work:) Just emerge thinkfinger >= 0.3 and add the following line in /etc/pam.d/system-auth:

auth       sufficient   pam_thinkfinger.so

The first section in the file should now look like the following:

auth       required     pam_env.so
auth       sufficient   pam_thinkfinger.so
auth       sufficient   pam_unix.so likeauth nullok

All left is to read your fingerprint for your user. Run tf-tool --add-user <login>, then reboot and see if it works.

Network

Ethernet

In the kernel configuration:

Device Drivers  --->
 Network device support  --->
  Ethernet (1000 Mbit)  --->
   <*> Intel(R) PRO/1000 Gigabit Ethernet support

Wireless

Note: Make sure that the hardware disable-switch isn't disabled - it is placed at the front/bottom of the laptop (don't make the same mistake as i did!)

In the kernel configuration:

Device Drivers  --->
 Network device support  --->
  Wireless LAN (non-hamradio)  --->
   [*] Wireless LAN drivers (non-hamradio) & Wireless Extensions
Networking  --->
 <*> Generic IEEE 802.11 Networking Stack
  <*> IEEE 802.11i CCMP support
  <*> IEEE 802.11i TKIP encryption

Now, emerge ipw3945 >= 1.2.0, and add ipw3945d to the default runlevel by issuing:

emerge -av ipw3945
rc-update add ipw3945d default.
/etc/init.d/ipw3945d start

If someone know how to add the ipw3945 module to a blacklist so it isn't probed when booting, please note it here:)

Bluetooth

Don't know yet...

External Connections

ACPI

Extra Features

History

5. July - Initial release.

External Sources

A) Linux on the X60 Tablet

B) [1] Keycode Table