NetBSD-Bugs archive

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

Re: kern/37683 (ukbd: new useful mappings from usb to at keycodes)

The following reply was made to PR kern/37683; it has been noted by GNATS.

From: Anthony Mallet <>
Subject: Re: kern/37683 (ukbd: new useful mappings from usb to at keycodes)
Date: Mon, 4 Feb 2008 09:34:15 +0100 writes:
 | Synopsis: ukbd: new useful mappings from usb to at keycodes
 | State-Changed-From-To: open->feedback
 | State-Changed-By:
 | State-Changed-When: Sat, 02 Feb 2008 15:10:09 +0000
 | State-Changed-Why:
 | The extra keys are neither mentioned in the USB-HID spec nor in Microsoft's
 | specification. Do you know of any technical document which lists the codes?
 Yes, that's a kind of hack from Xorg (and XFree). Those "extended keys"
 are defined in atKeynames.h (e.g. /usr/pkg/include/xorg/atKeynames.h)
 because PS/2 keyboards cannot generate such events.
 Xorg says:
  * Fake 'scancodes' in the following ranges are generated for 2-byte
  * codes not handled elsewhere.  These correspond to most extended keys
  * on so-called "Internet" keyboards:
  *      0x79-0x93
 This file is not used when using the 'standard' xorg keyboard protocol
 and the translation is done by ukbd (hence this PR). OpenBSD has a
 similar patch for their driver (their cvsweb seem to be down right now, I
 cannot find the rev number but it's in ukbd.c too, from
 M. Herrb). FreeBSD did also something similar in rev. 1.46 of ukbd.c,
 although I don't know where their mappings come from.
 Note that the atKeyname file is used inside the bsd kbd driver module
 (see PR/37674).

Home | Main Index | Thread Index | Old Index