Determining scancodes for obscure keyboard to modify keymap

carnage carnagewashere at gmail.com
Tue Feb 24 14:00:15 PST 2009


I'm wondering how to go about determining the scancodes for keys on
keypress.

I am looking to remap an apple usb keyboard (a1048).  It has F13-16, 3
volume control keys and an eject key but no scroll lock, num lock,
pause/break, etc.  I'm wondering how I would go about changing some of these
not so useful keys into useful keys.

The keymap files in /usr/share/syscons/keymaps seem easy enough to modify
but I am unsure of how to determine what the scancodes associated with the
actual keys on keypress are.

As an interesting aside: in x, control + option (alt) + backspace works to
terminate x yet control + option (alt) + Fn (F1, F2, etc.) does not work to
switch back to the virtual terminals.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmesg.out
Type: application/octet-stream
Size: 9785 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090224/812d3aa9/dmesg.obj


More information about the freebsd-questions mailing list