How to get special keys to work

From ThinkWiki
Revision as of 18:29, 3 November 2004 by 212.144.121.148 (Talk) (some restructuring, lots of information added)
Jump to: navigation, search

Overview

key standard function tool configurability remarks
Fn - xmodmap/tpb full on release without completed key combination
Fn-F3 blank screen ibm-acpi full
Fn-F4 suspend to ram ibm-acpi full
Fn-F5 switch bluetooth ??? ??? in models starting from 2002
Fn-F7 switch display tpb additional actions
Fn-F8 toggle display expansion tpb additional actions
Fn-F12 hibernate ibm-acpi full
Fn-Pos1 brightness up tpb additional actions
Fn-End brightness down tpb additional actions
Fn-PageUp toggle thinklight ibm-acpi/tpb additional actions
Fn-Space toggle zoom tpb full
Access IBM help application tpb full
Home open web browser xmodmap/tpb full only iSeries and ext. keyboards
Search open search application xmodmap/tpb full only iSeries and ext. keyboards
Mail open mail application xmodmap/tpb full only iSeries and ext. keyboards
Favorites open favorites xmodmap/tpb full only iSeries and ext. keyboards
Reload reload web page xmodmap/tpb full only iSeries and ext. keyboards
Abort abort loading page xmodmap/tpb full only iSeries and ext. keyboards
Backward previous page xmodmap/tpb full iSeries, ext. keyboards, Thinkpads starting from 2002
Forward next page xmodmap/tpb full iSeries, ext. keyboards, Thinkpads starting from 2002
Volume up volume up tpb additional actions
Volume down volume down tpb additional actions
Volume mute mute volume tpb additional actions
Power shutdown ibm-acpi full triggered on pressing 3secs, but notebook goes off on 5sec press
Display lid blank screen ibm-acpi full
Ultrabay lid announce ultrabay change ibm-acpi full

ibm-acpi events

events triggered by ibm-acpi for /etc/acpi/events files
key event
Fn-F3 ibm/hotkey HKEY 00000080 00001003
Fn-F4 ibm/hotkey HKEY 00000080 00001004
Fn-F12 ibm/hotkey HKEY 00000080 0000100c
Power button/power PWRF 00000080 xxxxxxxx
Display lid button/lid LID 00000080 xxxxxxxx
Ultrabay eject ibm/bay MSTR 00000003 00000000
Ultrabay inserted ibm/bay MSTR 00000001 00000000

tpb configuration

configuration keywords for tpbrc
key config keyword
Access IBM THINKPAD
Home HOME
Search SEARCH
Mail MAIL
Favorites FAVORITES
Reload RELOAD
Abort ABORT
Backward BACKWARD
Forward FORWARD
Fn FN
Fn-Space CALLBACK (zoom on/off)
Fn-PageUp CALLBACK (thinklight on/off)
Fn-F7 CALLBACK (display lcd/crt/both)
Fn-F8 CALLBACK (expand on/off)
Fn-PageUp CALLBACK (brightness <percent>)
Fn-PageDown CALLBACK (brightness <percent>)
Volume up CALLBACK (volume <percent>)
Volume down CALLBACK (volume <percent>)
Vokume mute CALLBACK (mute on/off)

To all parameter keywords should be assigned the full path to the executables supposed to be started on key press. The exectable provided for the CALLBACK keyword should take the parameters given in parentheses and act according to them. If you want to use xmodmap for the HOME, SEARCH, MAIL, FAVORITES, RELOAD, ABORT, BACKWARD, FORWARD and FN keys you should provide a XEVENTS=off in your tpbrc.

configuring the browser keys

todo...