Difference between revisions of "Installing Gentoo on a ThinkPad X60 Tablet"

From ThinkWiki
Jump to: navigation, search
(History)
(Keys On The Monitor)
Line 77: Line 77:
  
 
=== Keys On The Monitor ===
 
=== Keys On The Monitor ===
I have currently managed to map the following buttons: Esc, up, down, left, right, center (center).
+
I have currently managed to map the following buttons: Esc, up, down, left, right, center (enter).
They are mapped using setkeycodes. They commands can be inserted into {{path|/etc/conf.d/local.start}} like the following:
+
They are mapped using setkeycodes. The commands can be inserted into {{path|/etc/conf.d/local.start}} like the following:
 
  # Esc button
 
  # Esc button
 
  setkeycodes 6b 1
 
  setkeycodes 6b 1
  # Up
+
  # Up (used as Page Up)
 
  setkeycodes 71 104
 
  setkeycodes 71 104
  # Down
+
  # Down (used as Page Down)
 
  setkeycodes 6f 109
 
  setkeycodes 6f 109
  # Left
+
  # Left (used as Up)
 
  setkeycodes 6e 105
 
  setkeycodes 6e 105
  # Right
+
  # Right (used as Down)
 
  setkeycodes 6d 106
 
  setkeycodes 6d 106
  # Center
+
  # Center (used as Enter)
 
  setkeycodes 69 28
 
  setkeycodes 69 28
The keycodes can be found for other mappings at ref. B
+
 
 +
Alternative keycodes can be found for other mappings at ref. B
  
 
== Fingerpring Reader ==
 
== Fingerpring Reader ==

Revision as of 21:23, 24 July 2007

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 (enter). They are mapped using setkeycodes. The commands can be inserted into /etc/conf.d/local.start like the following:

# Esc button
setkeycodes 6b 1
# Up (used as Page Up)
setkeycodes 71 104
# Down (used as Page Down)
setkeycodes 6f 109
# Left (used as Up)
setkeycodes 6e 105
# Right (used as Down)
setkeycodes 6d 106
# Center (used as Enter)
setkeycodes 69 28

Alternative 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.

24. July - Added Gentoo General, Sound, Some kernel configuration for the 2.6.21 kernel and new keycodes.

External Sources

A) Linux on the X60 Tablet

B) [1] Keycode Table