tech-x11 archive

[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-----
Hash: SHA1

Hello,

On Apr 22, 2008, at 15:44, Sergey Svishchev wrote:
On Mon, Apr 21, 2008 at 06:06:44PM -0400, Michael Lorenz wrote:

ftp://ftp.netbsd.org/pub/NetBSD/misc/macallan/shark/bsd_KeyMap.diff
is a patch that should make the kbd driver work properly with PS/ 2 keyboards

The code path you're patching is never taken -- KbdOn() always sets
isConsole to FALSE in WSCONS mode; thus, raw mode will never be set and
thus ATScancode() will be called anyway.

See my comments to https://bugs.freedesktop.org/show_bug.cgi?id=1824

The whole point is /not/ to use the legacy driver.

That's exactly what I'm talking about.  Did you read the bugzilla?

Did you notice that the patch above is for NetBSD's own XFree86 and not Xorg? It doesn't use raw mode at all, instead we read (struct wsevent)s from /dev/wskbd which sends one event per key event even for keys which would send multi-byte scancodes.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBSA5EQ8pnzkX8Yg2nAQJQfggAuhibk+jnmF9OZuM/RxRJiNe/O2Ci07LE
d1gaIa18VqkFtTD/0SlaCIZXYvgsBmoAqwtvITF5LCKzY9kzL2NxzqabhwOO19Z4
b/POqVc+LTgT0F9nQdgK3ArchxJlp0gvcaxgPG3C+US5j6+bkirqe+AKHla4JPGC
0SzKwZUhAnclXw0mFdlGy/wBeNIEBavVABWQugKClg1Wk6WG8Ld7oGEgMFN/3m4s
X/Cnojxq8uNAZhfRXoXwXvi9A/p3s5x8yrH+F74hi7uoVqhCLYKZxp2Soi2iBRhA
o2rDopGa9lc8bblNuF6CMMmBcniMhg90VHTZ8rBZ4+Va6JM82kCYgA==
=lKDB
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index