[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: X server on NetBSD/shark 4.0: protocol wskbd, legacy driver
-----BEGIN PGP SIGNED MESSAGE-----
On Jan 24, 2008, at 13:22, Patrick Welche wrote:
I think I know what's wrong - our PS/2 keyboard driver identifies
an XT keyboard but in event mode ( reading from /dev/wskbd* ) it
AT extended scancodes ( that's more or less every key that's
present on an
AT keyboard but not an XT one ) to not-really-standard single byte
which the kbd driver in X ignores because it expects XT codes and
multibyte codes. So what I need to do is to add another translation
said driver to deal with those codes. Hopefully that will make
work. Doing the same thing for Xorg will be trivial.
Talk about an ancient bug.
... and that's exactly what happened. Here
is a patch that should make the kbd driver work properly with PS/2
keyboards, you'll need an InputDevice section like this:
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc101"
Option "XkbLayout" "gb"
Option "Protocol" "wskbd"
Option "Device" "/dev/wskbd0"
XkbLayout and XkbModel may vary of course.
Without the patch the cursor keys and a few others won't send any
events, with the patch they should Just Work(tm).
Since this isn't really shark specific followups should go to tech-x11.
Yes Joerg, I'll adapt it to Xorg and request pullup to 4.0 as soon as
I get some feedback.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
-----END PGP SIGNATURE-----
Main Index |
Thread Index |