Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2000 06:13:13 -0400
From:      Anatoly Vorobey <mellon@pobox.com>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        hackers@freebsd.org
Subject:   Re: PC Keyboard Scancodes
Message-ID:  <20000414061313.A89767@sasami.jurai.net>
In-Reply-To: <XFMail.000414175416.doconnor@gsoft.com.au>; from doconnor@gsoft.com.au on Fri, Apr 14, 2000 at 05:54:16PM %2B0930
References:  <XFMail.000414175416.doconnor@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
You, Daniel O'Connor, were spotted writing this on Fri, Apr 14, 2000 at 05:54:16PM +0930:
> Hi,
> I put together a new PC and noticed the keyboard I bought has 3 extra keys
> (Wakeup, Sleep, and Power). I wondered if they could be used by mapping
> scancodes to the corresponding meanings, but I can't find the scan codes.
> 
> I made a keymap file which mapped the scan codes from 109 to 255 to
> 'debug' but pressing the keys don't trigger it :(
> 
> Does anyone know if/how I can use them? Suggestions thus far have been to
> patch syscons to print all the scan codes it gets :)

No need to patch. Put syscons into the K_RAW mode (open the device, and
use the KDSKBMODE ioctl - search for it in syscons source for details),
and syscons'll give you back the scancodes when you read it. This is
what X does, by the way.

One reason why your approach might not have been working is that
keymaps really translate from keycodes to charcodes, not from scancodes
to charcodes, and the keyboard driver might've been unsuccessful
in matching nonstandard scancodes to keycodes.

-- 
Anatoly Vorobey,
mellon@pobox.com http://pobox.com/~mellon/
"Angels can fly because they take themselves lightly" - G.K.Chesterton






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000414061313.A89767>