Heya heya. I'm running xubuntu (hardy heron) with xfce 4.4.2. I'm using an Apple wired Aluminum keyboard, and so far things have been good (I've got the number pad working fine, I have the volume keys mapped), but I don't know how to map the eject key to the eject command.
With the volume keys, I mapped the keycodes from them to the XF86Audio* mappings which made things work fine in the keyboard shortcuts, but I don't know (and I can't find anywhere) the keycode for the eject key. I've tried using "No keyboard was specified, please select your keyboard", and the Apple keyboards aren't showing up in the list. I've tried using loadkeys and showkeys but I get the errors:
"Couldnt get a file descriptor referring to the console
KDGKBMODE: Bad file descriptor
loadkeys: error reading keyboard mode"
No files are present in /usr/share/keymaps.
Any tips or advice I can get to get a complete keycode mapping for my keyboard? Thanks!
try running "xev" in a terminal. This should give you the key code if it's recognized. If so you could map the key to the eject command with xmodmap.
It worked. Thanks!