From: James S. <jsi...@su...> - 2000-10-13 20:45:04
|
> I know the documentation dezcribes keybdev as a hack, but I didnt realise > justt how bad it was: I just got a USB keyboard (designed for Mac) and > plugged it in and it works fine, but when I modprobe keybdev it remaps > the keycodes on my other keyboard, making it unuable. Removing the module > doesnt revert the keymaps either. Surely this is so broken that it can > be fixed even in a feauture freeze... Are you using a ruby kernel? For the standard 2.4.0-testX kernels you have: AT keyboards: pc_keyb.c -(raw)-> keyboard.c -(raw)-> pc_keyb.c --> >--(cooked)-> keyboard.c -(chars)-> tty USB using keybdev: usb.c -(usb)-> hid.c -(events)-> input.c -(events)-> keybdev.c --> >--(raw)-> keyboard.c -(raw)-> pc_keyb.c -(cooked)-> keyboard.c --> >--(chars)-> tty -------------------------------------------------------------------- For Ruby we do: AT keybaords: i8042.c -(raw)-> atkbd.c -(events)-> input.c --> >--(events)-> keyboard.c -(chars)-> tty USB keyboards: usb.c -(usb)-> hid.c -(events)-> input.c --> >--(events)-> keyboard.c -(chars)-> tty ----------------------------------------------------------------------- For ruby you don't need keybdev.c. Also USB works great under ruby. Note for ruby a vidoe terminal is defined as a video output and a keyboard. If you have 2 keyboards and one monitor it sees it as a single VT. In the future we will have a userland daemon that will allow wierd combos that people want. > Anyone know why the power buttons on Mac keyboards arent mapped at all > (using evtest under 2.2.18pre15, its a ALCOR QTRONIX KBD HUB). Hum? Have you tried showkey as well? |