mkramer
April 7th, 2009, 01:28 AM
I hope everyone is doing well this fine spring evening. I just plugged in an Apple USB keyboard to my Ubuntu box, and lo and behold, Ubuntu captured the special keys for Vol+, Vol-, and mute, that come with Apple keyboard firmware, and displayed the appropriate Volume bezel HUD as it changed the volume.
While it is exceedingly cool that Ubuntu supports this extra functionality out of the box, I was actually hoping to use Ubuntu to find out what those keycodes are, using xev, so that I could fix a Windows keyboard to work on one of my Mac boxen. Unfortunately, as in Mac OS X, xev does not show the keycodes for these keys: it looks like the system is eating them and not passing them on. Since someone had to have known the keycodes in order to write a driver that responds to them, I figure this knowledge is out there somewhere in Ubuntu land. I wonder if someone can point me in the right place to find this out: either the straight answer, a way to find the answer, would be appreciated.
TLDR: WHat are the special keycodes that Apple keyboard send when you press Vol+/Vol-/Mute/Eject?
Extra credit: what is a KeymapNotify event? This is what happens when I press vol+ with a xev window open:
KeymapNotify event, serial 36, synthetic NO, window 0x0,
keys: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Thanks in advance my homies.
While it is exceedingly cool that Ubuntu supports this extra functionality out of the box, I was actually hoping to use Ubuntu to find out what those keycodes are, using xev, so that I could fix a Windows keyboard to work on one of my Mac boxen. Unfortunately, as in Mac OS X, xev does not show the keycodes for these keys: it looks like the system is eating them and not passing them on. Since someone had to have known the keycodes in order to write a driver that responds to them, I figure this knowledge is out there somewhere in Ubuntu land. I wonder if someone can point me in the right place to find this out: either the straight answer, a way to find the answer, would be appreciated.
TLDR: WHat are the special keycodes that Apple keyboard send when you press Vol+/Vol-/Mute/Eject?
Extra credit: what is a KeymapNotify event? This is what happens when I press vol+ with a xev window open:
KeymapNotify event, serial 36, synthetic NO, window 0x0,
keys: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Thanks in advance my homies.