Difference between revisions of "Installing Ubuntu 8.10 (Intrepid Ibex) on a ThinkPad X61"

From ThinkWiki
Jump to: navigation, search
(ThinkVantage key not seen by X)
(Table of keycodes for special keys and keycombinations)
Line 28: Line 28:
 
! key          !! <tt>showkey</tt> !! <tt>input-events</tt> !! <tt>acpi_listen</tt> !! <tt>xev</tt> !! GNOME keyboard shortcuts
 
! key          !! <tt>showkey</tt> !! <tt>input-events</tt> !! <tt>acpi_listen</tt> !! <tt>xev</tt> !! GNOME keyboard shortcuts
 
|-
 
|-
| Mute         ||    113 || ^[[25~      || ^[[25~      || (none) || XF86AudioMute
+
| Mute         ||    113 || ^[[25~      || ^[[25~      || (none) || XF86AudioMute
 
|-
 
|-
| Vol. down   ||    114 || ^[[26~      || ^[[26~      || (none) || XF86AudioLowerVolume
+
| Vol. down     ||    114 || ^[[26~      || ^[[26~      || (none) || XF86AudioLowerVolume
 
|-
 
|-
| Vol. up     ||    115 ||              || (none)      || (none) || XF86AudioRaiseVolume
+
| Vol. up       ||    115 ||              || (none)      || (none) || XF86AudioRaiseVolume
 
|-
 
|-
| ThinkVantage ||    360 || <i>in progress...</i>
+
| ThinkVantage ||    360 || <i>in progress...</i>
 
|-
 
|-
| Fn           ||    143 ||
+
| Fn           ||    143 ||
 
|-
 
|-
| Bright. up   ||     225 ||
+
| Fn-Home (sun up|| 225 ||
 
|-
 
|-
| Bright. down ||     224 ||
+
| Fn-End (sun down) || 224 ||
 
|-
 
|-
| Fn-F1       ||    466 ||
+
| Fn-F1         ||    466 ||
 
|-
 
|-
| Fn-F2       ||    152 ||
+
| Fn-F2         ||    152 ||
 
|-
 
|-
| Fn-F3       ||    236 ||
+
| Fn-F3         ||    236 ||
 
|-
 
|-
| Fn-F4       ||    142 ||
+
| Fn-F4         ||    142 ||
 
|-
 
|-
| Fn-F5       ||    385 ||
+
| Fn-F5         ||    385 ||
 
|-
 
|-
| Fn-F6       ||    471 ||
+
| Fn-F6         ||    471 ||
 
|-
 
|-
| Fn-F7       ||    227 ||
+
| Fn-F7         ||    227 ||
 
|-
 
|-
| Fn-F8       ||    192 ||
+
| Fn-F8         ||    192 ||
 
|-
 
|-
| Fn-F9       ||    194 ||
+
| Fn-F9         ||    194 ||
 
|-
 
|-
| Fn-F10       ||    143 ||
+
| Fn-F10       ||    143 ||
 
|-
 
|-
| Fn-F11       ||    476 ||
+
| Fn-F11       ||    476 ||
 
|-
 
|-
| Fn-F12       ||    205 ||
+
| Fn-F12       ||    205 ||
 
|-
 
|-
| Fn-up-arrow ||    166 ||
+
| Fn-up-arrow   ||    166 ||
 
|-
 
|-
 
| Fn-down-arrow ||    164 ||
 
| Fn-down-arrow ||    164 ||
Line 74: Line 74:
 
| Fn-right-arrow ||  163 ||
 
| Fn-right-arrow ||  163 ||
 
|-
 
|-
| Fn-space-bar ||    372 ||
+
| Fn-space-bar ||    372 ||
 
|}
 
|}
  

Revision as of 00:35, 24 February 2009

I installed Ubuntu 8.10 on a ThinkPad X61 model 7673-CTO.

Here is preliminary information.

Problems and solutions

ThinkVantage key not seen by X

The ThinkVantage key is seen and reported by ACPI

$ acpi_listen
ibm/hotkey HKEY 00000080 00001018

It is seen and reported by input-events as KEY_VENDOR which according to /usr/include/linux/input.h has the value 0x168.

It is seen by showkey as having keycode 0x168 (360 in decimal).

But it isn't seen by xev.

This is reportedly fixed in Jaunty.

Refs:

Table of keycodes for special keys and keycombinations

key showkey input-events acpi_listen xev GNOME keyboard shortcuts
Mute 113 ^[[25~ ^[[25~ (none) XF86AudioMute
Vol. down 114 ^[[26~ ^[[26~ (none) XF86AudioLowerVolume
Vol. up 115 (none) (none) XF86AudioRaiseVolume
ThinkVantage 360 in progress...
Fn 143
Fn-Home (sun up) 225
Fn-End (sun down) 224
Fn-F1 466
Fn-F2 152
Fn-F3 236
Fn-F4 142
Fn-F5 385
Fn-F6 471
Fn-F7 227
Fn-F8 192
Fn-F9 194
Fn-F10 143
Fn-F11 476
Fn-F12 205
Fn-up-arrow 166
Fn-down-arrow 164
Fn-left-arrow 165
Fn-right-arrow 163
Fn-space-bar 372

Can't load the hdaps module

# modprobe hdaps
FATAL: Error inserting hdaps (/lib/modules/2.6.27-11-generic/kernel/drivers/hwmon/hdaps.ko): No such device or address
# rmmod thinkpad_ec
# modprobe hdaps
#

The hdaps and the thinkpad_ec module conflict. Either one can be loaded in the absence of the other.

Apparently an hdaps_ec module is needed but Ubuntu doesn't currently ship it.

The hdaps loaded:

Setting up hdapsd (1:0.0.20070803-2) ...
 * Not starting hdapsd: /sys/block/hda/queue/protect does not exist,
 please read /usr/share/doc/hdapsd/README.Debian

The latter file says:

hdapsd needs the hdaps kernel module and the hdaps_protect patch
in the kernel so it WON'T work out-of-the-box on a Debian machine yet.
Look at http://thinkwiki.org/wiki/HDAPS for additional information.

Atheros AR5212 801.11 abg Wi-Fi card doesn't resume

Solution: Add to /usr/lib/pm-utils/sleep.d/10NetworkManager:

 	thaw|resume)
+		ifconfig wifi0 up
 		resume_nm

Ref: https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/275692

Getting the Wi-Fi LED to flash

Add to /etc/sysctl.conf:

dev.wifi0.ledpin=1
dev.wifi0.softled=1

Do something on dock or undock

Add an /etc/udev/rules.d/55-thinkpad-local.rules file containing:

KERNEL=="dock.0", ATTR{docked}=="1", RUN+="/etc/thinkpad/dock.sh 1"
KERNEL=="dock.0", ATTR{docked}=="0", RUN+="/etc/thinkpad/dock.sh 0"

and add an /etc/thinkpad/dock.sh file containing something like this:

#!/bin/sh
# Wait for the dock state to change
sleep 1
DOCKED=$(cat /sys/devices/platform/dock.0/docked)
case "$DOCKED" in
        "0")
                xrandr -d :0.0 --output VGA --off
                ;;
        "1")
                xrandr -d :0.0 --output VGA --auto
                xrandr -d :0.0 --output LVDS --auto --right-of VGA
                ;;
esac
exit 0

Ref: http://marc.info/?l=linux-thinkpad&m=123416226107039&w=2

Other problems already fixed in Intrepid

Sound too quiet

Ref: http://www.thinkwiki.org/wiki/Installing_Ubuntu_8.10_(Intrepid_Ibex)_on_a_ThinkPad_T61#Sound_.28too_quiet.29

Not a problem.

Networking not working after resume

Ref: http://www.thinkwiki.org/wiki/Installing_Ubuntu_8.10_(Intrepid_Ibex)_on_a_ThinkPad_T61#Network_connection_after_suspend.2Fresume

Not a problem.

Links

Do something with ThinkVantage key

Ref: http://www.krizka.net/2008/06/14/the-thinkvantage-button-and-ubuntu-hardy-heron/