tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Xorg keymap and wskbd keymap



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jun 19, 2010, at 10:41 AM, Izumi Tsutsui wrote:

I'm looking at several sources around Xorg server keyboard driver
to switch several orphaned wsfb based ports from xfree86 to xorg.

In xsrc/external/mit/xf86-input-keyboard/dist/src/bsd_KbdMap.c
There are several wskbd keymaps (translating it to atKeymap?),
like wsUsbMap (ukbd), wsXtMap (pckbd), wsAdbMap (akbd) etc.

If we are going to add more other ports (like dreamcast, newsmips etc),
do we have to add all machine dependent wskbd keymaps in this file
as old xfree86 servers have independent keymap sources?

Yes and no. We need to get rid of those MD wsevent codes anyway if we ever want keyboard muxes to work properly ( as in - with devices using different scancodes on the same mux, like an ADB keyboard and a USB keypad. Right now there is no way to tell them apart. ) They should all emit USB scancodes since that seems to cover pretty much everything.

Is there any reason why we don't use wskbd(4)'s WSKBDIO_GETMAP ioctl
to get keymaps (with modifier) used in kernel?

The Xserver as it works right now would still need to know how to interpret them. Or rather, the kbd driver would. The keyboard code inherited from xf86 translates everything into something AT-like before doing any further processing, that's what these tables are for.

Or simply we should handle it in xkbcomp symbol files as hpcarm W- ZERO3?
(I don't know how files in external/mit/xkeyboard-config/dist/symbols
should be declared though)

Didn't the xorg people declare xkb deprecated a while ago?

have fun
Michael

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

iQEVAwUBTB1FhMpnzkX8Yg2nAQJFaggAl5DmL2yi9WMx+csD2rE5RPb//Ou+PNkc
cLNJoomdMp9pCF9plkLcdkxZfDWbj1r9AXxSOdy6Dc00Ehh9+qkGLQdhqtum0eyq
drhVImvv9lPoPPlS0rCQ+bZ5yKw1um5l3pKIJebn9aHVQHR6W9YZDbFV031XCJ4O
yBuzawJtve9ZeRfuKhoENzUEEDygaNEjGNRmunUQdrWyjNn0tY9F9ScW4W4WVQo9
Wk5zrRhy0h+VvbipNKtLWtNgq/QAJKtnNhOGfcGirRb/kMvJItk+rbQALdU3B+gT
9MEENwB6FrJR3vasymsSGNUtNxZ/mONvEfwl5F09SSZP6VJr9vk0Eg==
=upY/
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index