Difference between revisions of "Installing Ubuntu 8.10 (Intrepid Ibex) on a ThinkPad X61"
(→Table of keycodes for special keys and keycombinations) |
(→Table of keycodes for special keys and keycombinations) |
||
Line 34: | Line 34: | ||
| Volume up || loudspeaker, up arrow || 115 || (none) || (none) || (none) || XF86AudioRaiseVolume | | Volume up || loudspeaker, up arrow || 115 || (none) || (none) || (none) || XF86AudioRaiseVolume | ||
|- | |- | ||
− | | {{key|ThinkVantage}} || "ThinkVantage" || 360 || KEY_VENDOR || | + | | {{key|ThinkVantage}} || "ThinkVantage" || 360 || KEY_VENDOR || ibm/hotkey HKEY 00000080 00001018 || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}} || (none) || 143 || (none) || | + | | {{key|Fn}} || (none) || 143 || (none) || ^@ || 151 || XF86WakeUp |
|- | |- | ||
− | | {{key|Fn}}-{{key|Home}} || sun, up arrow || 225 || KEY_BRIGHTNESSUP | + | | {{key|Fn}}-{{key|Home}} || sun, up arrow || 225 || KEY_BRIGHTNESSUP || ibm/hotkey HKEY 00000080 00001010, video LCD0 00000086 00000000 || (none) || XF86MonBrightnessUp |
|- | |- | ||
− | | {{key|Fn}}-{{key|End}} || sun, down arrow || 224 || KEY_BRIGHTNESSDOWN || | + | | {{key|Fn}}-{{key|End}} || sun, down arrow || 224 || KEY_BRIGHTNESSDOWN || ibm/hotkey HKEY 00000080 00001011, video LCD0 00000087 00000000 || (none) || XF86MonBrightnessDown |
|- | |- | ||
− | | {{key|Fn}}-{{key|F1}} || || 466 || KEY_FN_F1 || | + | | {{key|Fn}}-{{key|F1}} || || 466 || KEY_FN_F1 || ibm/hotkey HKEY 00000080 00001001 || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-{{key|F2}} || padlock || 152 || KEY_SCREENLOCK || | + | | {{key|Fn}}-{{key|F2}} || padlock || 152 || KEY_SCREENLOCK || ibm/hotkey HKEY 00000080 00001002 || (none) || XF86ScreenSaver |
|- | |- | ||
− | | {{key|Fn}}-{{key|F3}} || battery || 236 || KEY_BATTERY || | + | | {{key|Fn}}-{{key|F3}} || battery || 236 || KEY_BATTERY || ibm/hotkey HKEY 00000080 00001003 || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-{{key|F4}} || crescent moon || 142 || KEY_SLEEP || | + | | {{key|Fn}}-{{key|F4}} || crescent moon || 142 || KEY_SLEEP || ibm/hotkey HKEY 00000080 00001004 || (none) || XF86Sleep |
|- | |- | ||
− | | {{key|Fn}}-{{key|F5}} || radiating computer || 385 || KEY_RADIO || | + | | {{key|Fn}}-{{key|F5}} || radiating computer || 385 || KEY_RADIO || ibm/hotkey HKEY 00000080 00001005 || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-{{key|F6}} || || 471 || KEY_FN_F6 || | + | | {{key|Fn}}-{{key|F6}} || || 471 || KEY_FN_F6 || ibm/hotkey HKEY 00000080 00001006 || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-{{key|F7}} || screen, line, computer || 227 || KEY_SWITCHVIDEOMODE || | + | | {{key|Fn}}-{{key|F7}} || screen, line, computer || 227 || KEY_SWITCHVIDEOMODE || ibm/hotkey HKEY 00000080 00001007 || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-{{key|F8}} || trackpoint, line, trackpad || 192 || KEY_F22 || | + | | {{key|Fn}}-{{key|F8}} || trackpoint, line, trackpad || 192 || KEY_F22 || ibm/hotkey HKEY 00000080 00001008 || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-{{key|F9}} || computer, eject symbol || 194 || KEY_F24 || | + | | {{key|Fn}}-{{key|F9}} || computer, eject symbol || 194 || KEY_F24 || ibm/hotkey HKEY 00000080 00001009 || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-{{key|F10}} || || 143 || (none) || | + | | {{key|Fn}}-{{key|F10}} || || 143 || (none) || (none) || (none) || XF86WakeUp |
|- | |- | ||
− | | {{key|Fn}}-{{key|F11}} || || 476 || KEY_FN_F11 || | + | | {{key|Fn}}-{{key|F11}} || || 476 || KEY_FN_F11 || ibm/hotkey HKEY 00000080 0000100b || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-{{key|F12}} || screen, arrow, diskpack || 205 || KEY_SUSPEND || | + | | {{key|Fn}}-{{key|F12}} || screen, arrow, diskpack || 205 || KEY_SUSPEND || ibm/hotkey HKEY 00000080 0000100c || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-up-arrow || square ("stop play" symbol) || 166 || (none) || | + | | {{key|Fn}}-up-arrow || square ("stop play" symbol) || 166 || (none) || (none) || (none) || XF86AudioStop |
|- | |- | ||
− | | {{key|Fn}}-down-arrow || right arrow ("play" symbol) || 164 || (none) || | + | | {{key|Fn}}-down-arrow || right arrow ("play" symbol) || 164 || (none) || (none) || (none) || XF86AudioPlay |
|- | |- | ||
− | | {{key|Fn}}-left-arrow || left arrow ("prev" symbol) || 165 || (none) || | + | | {{key|Fn}}-left-arrow || left arrow ("prev" symbol) || 165 || (none) || (none) || (none) || XF86AudioPrev |
|- | |- | ||
− | | {{key|Fn}}-right-arrow || right arrow ("next" symbol) || 163 || (none) || | + | | {{key|Fn}}-right-arrow || right arrow ("next" symbol) || 163 || (none) || (none) || (none) || XF86AudioNext |
|- | |- | ||
− | | {{key|Fn}}-{{key|Space}} || screen with hourglass ("zoom" symbol) || 372 || KEY_ZOOM || | + | | {{key|Fn}}-{{key|Space}} || screen with hourglass ("zoom" symbol) || 372 || KEY_ZOOM || ibm/hotkey HKEY 00000080 00001014 || (none) || (none) |
|- | |- | ||
− | | {{key|Fn}}-{{key|PgUp}} || illuminated lamp || ? || ? || ? || ? || | + | | {{key|Fn}}-{{key|PgUp}} || illuminated lamp || ? || ? || ? || ? || ? |
|} | |} | ||
Revision as of 05:19, 25 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:
- https://bugs.launchpad.net/ubuntu/hardy/+source/linux/+bug/217504/
- https://wiki.ubuntu.com/Hotkeys/Troubleshooting
Table of keycodes for special keys and keycombinations
key combination | extra symbol | showkey | input-events | acpi_listen | xev | GNOME keyboard shortcuts |
---|---|---|---|---|---|---|
Mute | loudspeaker with stroke | 113 | ^[[25~ | ^[[25~ | (none) | XF86AudioMute |
Volume down | loudspeaker, down arrow | 114 | ^[[26~ | ^[[26~ | (none) | XF86AudioLowerVolume |
Volume up | loudspeaker, up arrow | 115 | (none) | (none) | (none) | XF86AudioRaiseVolume |
ThinkVantage | "ThinkVantage" | 360 | KEY_VENDOR | ibm/hotkey HKEY 00000080 00001018 | (none) | (none) |
Fn | (none) | 143 | (none) | ^@ | 151 | XF86WakeUp |
Fn-Home | sun, up arrow | 225 | KEY_BRIGHTNESSUP | ibm/hotkey HKEY 00000080 00001010, video LCD0 00000086 00000000 | (none) | XF86MonBrightnessUp |
Fn-End | sun, down arrow | 224 | KEY_BRIGHTNESSDOWN | ibm/hotkey HKEY 00000080 00001011, video LCD0 00000087 00000000 | (none) | XF86MonBrightnessDown |
Fn-F1 | 466 | KEY_FN_F1 | ibm/hotkey HKEY 00000080 00001001 | (none) | (none) | |
Fn-F2 | padlock | 152 | KEY_SCREENLOCK | ibm/hotkey HKEY 00000080 00001002 | (none) | XF86ScreenSaver |
Fn-F3 | battery | 236 | KEY_BATTERY | ibm/hotkey HKEY 00000080 00001003 | (none) | (none) |
Fn-F4 | crescent moon | 142 | KEY_SLEEP | ibm/hotkey HKEY 00000080 00001004 | (none) | XF86Sleep |
Fn-F5 | radiating computer | 385 | KEY_RADIO | ibm/hotkey HKEY 00000080 00001005 | (none) | (none) |
Fn-F6 | 471 | KEY_FN_F6 | ibm/hotkey HKEY 00000080 00001006 | (none) | (none) | |
Fn-F7 | screen, line, computer | 227 | KEY_SWITCHVIDEOMODE | ibm/hotkey HKEY 00000080 00001007 | (none) | (none) |
Fn-F8 | trackpoint, line, trackpad | 192 | KEY_F22 | ibm/hotkey HKEY 00000080 00001008 | (none) | (none) |
Fn-F9 | computer, eject symbol | 194 | KEY_F24 | ibm/hotkey HKEY 00000080 00001009 | (none) | (none) |
Fn-F10 | 143 | (none) | (none) | (none) | XF86WakeUp | |
Fn-F11 | 476 | KEY_FN_F11 | ibm/hotkey HKEY 00000080 0000100b | (none) | (none) | |
Fn-F12 | screen, arrow, diskpack | 205 | KEY_SUSPEND | ibm/hotkey HKEY 00000080 0000100c | (none) | (none) |
Fn-up-arrow | square ("stop play" symbol) | 166 | (none) | (none) | (none) | XF86AudioStop |
Fn-down-arrow | right arrow ("play" symbol) | 164 | (none) | (none) | (none) | XF86AudioPlay |
Fn-left-arrow | left arrow ("prev" symbol) | 165 | (none) | (none) | (none) | XF86AudioPrev |
Fn-right-arrow | right arrow ("next" symbol) | 163 | (none) | (none) | (none) | XF86AudioNext |
Fn-Space | screen with hourglass ("zoom" symbol) | 372 | KEY_ZOOM | ibm/hotkey HKEY 00000080 00001014 | (none) | (none) |
Fn-PgUp | illuminated lamp | ? | ? | ? | ? | ? |
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
Not a problem.
Networking not working after resume
Not a problem.
Links
Do something with ThinkVantage key
Ref: http://www.krizka.net/2008/06/14/the-thinkvantage-button-and-ubuntu-hardy-heron/