to test if it works type 'xev' that will show received X events. Try the One-Touch and audio buttons. For each pressed key you should see a KeyPress and a KeyRelease event that should look something like this (example output for the "mail" button F13):
KeyPress event, serial 22, synthetic NO, window 0x2a00001,
root 0x48, subw 0x0, time 11773632, (68,145), root:(904,180),
state 0x0, keycode 236 (keysym 0xffca, F13), same_screen YES,
XLookupString gives 0 bytes: ""
KeyRelease event, serial 22, synthetic NO, window 0x2a00001,
root 0x48, subw 0x0, time 11773643, (68,145), root:(904,180),
state 0x0, keycode 236 (keysym 0xffca, F13), same_screen YES,
XLookupString gives 0 bytes: ""
to associate KeyPress events with actions I use xevact. After X login xevact should be started from a startscript or autostart folder depending on the desktop environment.
I've created binary & source RPMs:
xevact-1.0d-2.i386.rpm (11 KB)
xevact-1.0d-2.i686.rpm (11 KB)
xevact-1.0d-2.src.rpm (42 KB)
And here is a configuration example for xevact that associates
- the "mail" button (F13) with no action
- the "tv" button + Control (F14+Control) with Konsole
- the "tv" button + Shift (F14+Shift) with KWrite
- the "tv" button (F14) with Konqueror
- the "www" button (F15) with Mozilla
- the "lock" button (F16) with xscreensaver that blanks and locks the screen
- the "help" button (F17) with no action
- the "mute" button (F18) with aumix that sets audio volume to 0
- the "-" button (F19) with aumix that decreases audio volume by 5
- the "+" button (F20) with aumix that increases audio volume by 5
KeyPress - 0,0 1 Test_KeyCode "F13" NoAction
KeyPress S 0,0 2 Test_KeyCode "F14" Test_State Control System /usr/bin/konsole &
KeyPress S 0,0 2 Test_KeyCode "F14" Test_State Shift System /usr/bin/kwrite &
KeyPress - 0,0 1 Test_KeyCode "F14" System /usr/bin/konqueror &
KeyPress - 0,0 1 Test_KeyCode "F15" System /usr/bin/mozilla &
KeyPress - 0,0 1 Test_KeyCode "F16" System /usr/X11R6/bin/xscreensaver-command -lock &
KeyPress - 0,0 1 Test_KeyCode "F17" NoAction
KeyPress - 0,0 1 Test_KeyCode "F18" System /usr/bin/aumix -v 0 &
KeyPress - 0,0 1 Test_KeyCode "F19" System /usr/bin/aumix -v -5 &
KeyPress - 0,0 1 Test_KeyCode "F20" System /usr/bin/aumix -v +5 &