guldo76
18-02-2004, 14:38
Ciao.
Mi piacerebbe che mi spiegaste una cosetta...
Vorrei cercare di far funzionare i tasti "multimediali" della mia tastiera,
e ho trovato questo (http://rick.vanrein.org/linux/funkey/); peccato che non ci capisca proprio una mazza qui:
The kernel patch is made for Linux 2.2.14, and it installs on top of the BadRAM patch; otherwise there will probably be a single harmless rejection on the CREDITS file. When configuring the kernel, open the character devices dialog, and mark Support for console on virtual terminal for inclusion.
Make sure that when booting your system, some scripts calls setkeycodes and loadkeys as suggested under Implementation.
After booting the newly built kernel, use setkeycodes to assign keycodes to incoming scancodes. Available scancodes can be found with
dumpkeys | grep ^keycode | grep =$
For the generated keycodes, you may now enter a FunKey code to submit to the FunKey character device, and add 0xfe00 to it to incur sending through /dev/funkey.
On my RedHat system, I added a few lines
setkeycodes e020 89 e02e 90 e030 91 e022 92 \
e024 93 e010 94 e019 95 e05f 120 \
e06c 121 e065 122 e066 123 e032 124
to /etc/rc.d/init.d/keytable.
Now use the standard utilities loadkeys and dumpkeys can be used to install any translation to FunKey codes in the kernel key maps. For my Logitech Internet Keyboard, I used the following to instruct the kernel to pass a set of keys to /dev/funkey (I simply selected the keycodes as FunKey codes, for no reason at all):
keycode 89 = U+fe59
keycode 90 = U+fe5a
keycode 91 = U+fe5b
keycode 92 = U+fe5c
keycode 93 = U+fe5d
keycode 94 = U+fe5e
keycode 95 = U+fe5f
shift keycode 120 = U+fe78
keycode 121 = U+fe79
keycode 122 = U+fe7a
keycode 123 = U+fe7b
keycode 124 = U+fe7c
where the U+ signifies a Unicode keycode.
Per la precisione non capisco da dove arrivino tutti 'sti numeri, quelli di setkeycodes e quelli unicode...
Ne sapete mica qualcosa?
Guldo
p.s.: a proposito... come si mette una patch al kernel?
So che e` una domanda che non dovrei fare, ma sono giorni e giorni che il
kernel howto e` in "manutenzione"... :muro:
Mi piacerebbe che mi spiegaste una cosetta...
Vorrei cercare di far funzionare i tasti "multimediali" della mia tastiera,
e ho trovato questo (http://rick.vanrein.org/linux/funkey/); peccato che non ci capisca proprio una mazza qui:
The kernel patch is made for Linux 2.2.14, and it installs on top of the BadRAM patch; otherwise there will probably be a single harmless rejection on the CREDITS file. When configuring the kernel, open the character devices dialog, and mark Support for console on virtual terminal for inclusion.
Make sure that when booting your system, some scripts calls setkeycodes and loadkeys as suggested under Implementation.
After booting the newly built kernel, use setkeycodes to assign keycodes to incoming scancodes. Available scancodes can be found with
dumpkeys | grep ^keycode | grep =$
For the generated keycodes, you may now enter a FunKey code to submit to the FunKey character device, and add 0xfe00 to it to incur sending through /dev/funkey.
On my RedHat system, I added a few lines
setkeycodes e020 89 e02e 90 e030 91 e022 92 \
e024 93 e010 94 e019 95 e05f 120 \
e06c 121 e065 122 e066 123 e032 124
to /etc/rc.d/init.d/keytable.
Now use the standard utilities loadkeys and dumpkeys can be used to install any translation to FunKey codes in the kernel key maps. For my Logitech Internet Keyboard, I used the following to instruct the kernel to pass a set of keys to /dev/funkey (I simply selected the keycodes as FunKey codes, for no reason at all):
keycode 89 = U+fe59
keycode 90 = U+fe5a
keycode 91 = U+fe5b
keycode 92 = U+fe5c
keycode 93 = U+fe5d
keycode 94 = U+fe5e
keycode 95 = U+fe5f
shift keycode 120 = U+fe78
keycode 121 = U+fe79
keycode 122 = U+fe7a
keycode 123 = U+fe7b
keycode 124 = U+fe7c
where the U+ signifies a Unicode keycode.
Per la precisione non capisco da dove arrivino tutti 'sti numeri, quelli di setkeycodes e quelli unicode...
Ne sapete mica qualcosa?
Guldo
p.s.: a proposito... come si mette una patch al kernel?
So che e` una domanda che non dovrei fare, ma sono giorni e giorni che il
kernel howto e` in "manutenzione"... :muro: