Initial commit
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / doc / README.rapidaccess
blob39f515ee24e715821934bfd75dad91ba5c600043
1 The IBM Rapid Access keyboard have some extra buttons
2 on it to launch programs, control a cd-player and so on.
4 These buttons is not functional when the computer is turned
5 on but have to be activated by sending the codes 0xea 0x71
6 to it.
8 I've written the following hack to send codes to the keyboard:
10 --------------------------------------------------------------
11 /* gcc -O2 -s -Wall -osend_to_keyboard send_to_keyboard.c */
12 #include <stdlib.h>
13 #include <unistd.h>
14 #include <sys/io.h>
16 int main( int argc, char *argv[] )
18   int i;
20   ioperm( 0x60, 3, 1 );
22   for( i = 1; i < argc; i++ ) {
23     int x = strtol( argv[i], 0, 16 );
25     usleep( 300 );
26     outb( x, 0x60 );
27   }
29   return 0;
31 --------------------------------------------------------------
33 As root you can then call this program (in your boot scripts)
34 as "send_to_keyboard ea 71" to turn on the extra buttons.
36 It's not a good idea to run several instances of this program
37 at the same time. It is a hack but it works. If you try to
38 send other codes to the keyboard it probably will lock up.
39 For other codes see:
41 http://www.win.tue.nl/~aeb/linux/kbd/scancodes-2.html#ss2.22
44 Dennis Björklund <db@zigo.dhs.org>
48 $XFree86$