Difference between revisions of "How to get special keys to work"

From ThinkWiki
Jump to: navigation, search
(page created)
 
(some restructuring, lots of information added)
Line 1: Line 1:
 
===Overview===
 
===Overview===
 
{| border="1" cellspacing="0" cellpadding="2"
 
{| border="1" cellspacing="0" cellpadding="2"
! Models !! key !! standard function !! tool !! configurability
+
! key !! standard function !! tool !! configurability !! remarks
 
|-
 
|-
| 2002-2004 models || Fn-F3 || blank screen || ibm-acpi || full
+
| Fn || - || xmodmap/tpb || full || on release without completed key combination
 
|-
 
|-
| 2002-2004 models || Fn-F4 || suspend to ram || ibm-acpi || full
+
| Fn-F3 || blank screen || ibm-acpi || full ||
 
|-
 
|-
| 2002-2004 models || Fn-F5 || switch wireless || ibm-acpi || full
+
| Fn-F4 || suspend to ram || ibm-acpi || full ||
 
|-
 
|-
| 2002-2004 models || Fn-F7 || switch display || ibm-acpi || ???
+
| Fn-F5 || switch bluetooth || ??? || ??? || in models starting from 2002
 
|-
 
|-
| 2002-2004 models || Fn-F8 || toggle display zoom || ??? || ???
+
| Fn-F7 || switch display || tpb || additional actions ||  
 
|-
 
|-
| 2002-2004 models || Fn-F12 || hibernate || ibm-acpi || full
+
| Fn-F8 || toggle display expansion || tpb || additional actions ||
 
|-
 
|-
| 2002-2004 models || Fn-Pos1 || brightness up || tpb || status feedback
+
| Fn-F12 || hibernate || ibm-acpi || full ||
 
|-
 
|-
| 2002-2004 models || Fn-End || brightness down || tpb || status feedback
+
| Fn-Pos1 || brightness up || tpb || additional actions ||
 
|-
 
|-
| 2002-2004 models || Fn-PageUp || toggle thinklight || ibm-acpi/tpb || status feedback
+
| Fn-End || brightness down || tpb || additional actions ||
 
|-
 
|-
| 2002-2004 models || Fn-Space || toggle zoom || tpb || full
+
| Fn-PageUp || toggle thinklight || ibm-acpi/tpb || additional actions ||
 
|-
 
|-
| 2002-2004 models || Access IBM || help application || tpb || full
+
| Fn-Space || toggle zoom || tpb || full ||
 
|-
 
|-
| 2002-2004 models || Volume up || volume up || tpb || status feedback
+
| Access IBM || help application || tpb || full ||
 
|-
 
|-
| 2002-2004 models || Volume down || volume down || tpb || status feedback
+
| Home || open web browser || xmodmap/tpb || full || only iSeries and ext. keyboards
 
|-
 
|-
| 2002-2004 models || Volume mute || mute volume || tpb || status feedback
+
| Search || open search application || xmodmap/tpb || full || only iSeries and ext. keyboards
 
|-
 
|-
| 2002-2004 models || Power || shutdown || ibm-acpi || full
+
| Mail || open mail application || xmodmap/tpb || full || only iSeries and ext. keyboards
 
|-
 
|-
| 2002-2004 models || Display lid || blank screen || ibm-acpi || full
+
| Favorites || open favorites || xmodmap/tpb || full || only iSeries and ext. keyboards
 
|-
 
|-
| 2002-2004 models || browse left || previous page || xmodmap || full
+
| Reload || reload web page || xmodmap/tpb || full || only iSeries and ext. keyboards
 
|-
 
|-
| 2002-2004 models || browse right || next page || xmodmap || full
+
| 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===
 
===ibm-acpi events===
 
{| border="1" cellspacing="0" cellpadding="2"
 
{| border="1" cellspacing="0" cellpadding="2"
 +
|+ events triggered by ibm-acpi for /etc/acpi/events files
 
! key !! event
 
! key !! event
 
|-
 
|-
| Fn-F3 || ...
+
| 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
 
|-
 
|-
| Fn-F4 || ...
+
| Ultrabay eject || ibm/bay MSTR 00000003 00000000
 
|-
 
|-
| Fn-F5 || ...
+
| Ultrabay inserted || ibm/bay MSTR 00000001 00000000
 +
|}
 +
 
 +
===tpb configuration===
 +
{| border="1" cellspacing="0" cellpadding="2"
 +
|+ configuration keywords for tpbrc
 +
! key !! config keyword
 
|-
 
|-
| Fn-F7 || ...
+
| Access IBM || THINKPAD
 
|-
 
|-
| Fn-F8 || ...
+
| Home || HOME
 
|-
 
|-
| Fn-F12 || ...
+
| Search || SEARCH
 
|-
 
|-
| Power || ...
+
| Mail || MAIL
 
|-
 
|-
| Display lid || ...
+
| 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)
 
|}
 
|}
  
===tpb configuration===
+
To all parameter keywords should be assigned the full path to the executables supposed to be started on key press.
todo...
+
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===
 
===configuring the browser keys===
 
todo...
 
todo...

Revision as of 18:29, 3 November 2004

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