From 89dd7d2b6fe18f32c2f9336c3d8cd9f35490e5ae Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 22 May 2010 10:33:04 -0700 Subject: Remove ancient documentation of IBM RapidAccess keyboard hack Keyboard setup belongs in drivers, not in a document no one sees because we don't even install it. Signed-off-by: Alan Coopersmith Reviewed-by: Julien Cristau Reviewed-by: Alex Deucher --- hw/xfree86/doc/Makefile.am | 3 +-- hw/xfree86/doc/README.rapidaccess | 48 --------------------------------------- 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 hw/xfree86/doc/README.rapidaccess (limited to 'hw/xfree86') diff --git a/hw/xfree86/doc/Makefile.am b/hw/xfree86/doc/Makefile.am index bfdf86dfd..33ff18ab7 100644 --- a/hw/xfree86/doc/Makefile.am +++ b/hw/xfree86/doc/Makefile.am @@ -5,5 +5,4 @@ SUBDIRS = man endif EXTRA_DIST = \ - README.modes \ - README.rapidaccess + README.modes diff --git a/hw/xfree86/doc/README.rapidaccess b/hw/xfree86/doc/README.rapidaccess deleted file mode 100644 index 39f515ee2..000000000 --- a/hw/xfree86/doc/README.rapidaccess +++ /dev/null @@ -1,48 +0,0 @@ -The IBM Rapid Access keyboard have some extra buttons -on it to launch programs, control a cd-player and so on. - -These buttons is not functional when the computer is turned -on but have to be activated by sending the codes 0xea 0x71 -to it. - -I've written the following hack to send codes to the keyboard: - --------------------------------------------------------------- -/* gcc -O2 -s -Wall -osend_to_keyboard send_to_keyboard.c */ -#include -#include -#include - -int main( int argc, char *argv[] ) -{ - int i; - - ioperm( 0x60, 3, 1 ); - - for( i = 1; i < argc; i++ ) { - int x = strtol( argv[i], 0, 16 ); - - usleep( 300 ); - outb( x, 0x60 ); - } - - return 0; -} --------------------------------------------------------------- - -As root you can then call this program (in your boot scripts) -as "send_to_keyboard ea 71" to turn on the extra buttons. - -It's not a good idea to run several instances of this program -at the same time. It is a hack but it works. If you try to -send other codes to the keyboard it probably will lock up. -For other codes see: - -http://www.win.tue.nl/~aeb/linux/kbd/scancodes-2.html#ss2.22 - --- -Dennis Björklund - - - -$XFree86$ -- cgit v1.2.3