Determining scancodes for obscure keyboard to modify keymap
Patrick Lamaizière
patfbsd at davenulle.org
Tue Feb 24 14:37:43 PST 2009
Le Tue, 24 Feb 2009 14:28:54 -0700,
carnage <carnagewashere at gmail.com>:
> 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.
I asked for this some times ago without any reply. Finally I added some
printf in the kbd driver. I don't remember exactly where, I think it was
in the function genkbd_keyaction() in kdb.c (something like printf("%i
- ", keycode)
That's ugly... Is there a better way to get the scancode?
More information about the freebsd-questions
mailing list