<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>I'm key mapping a custom keyboard in KED<br><br>on:<br><br> lsb_release -rd<br> Description: openSUSE 12.3 (x86_64)<br> Release: 12.3<br><br> kde4-config -version<br> Qt: 4.8.4<br> KDE Development Platform: 4.10.1 "release 545"<br> kde4-config: 1.0<br><br><br>I want to map a multi-key chord ("fn"+"F12") in KDE to "eject" my DVD drive.<br><br>The keys are active<br><br>@ xev<br><br> press "F12"<br> KeyRelease event, serial 40, synthetic NO, window 0x3a00001,<br>
root 0x264, subw 0x0, time 2099398, (426,527), root:(430,591),<br> state 0x10, keycode 96 (keysym 0xffc9, F12), same_screen YES,<br> XLookupString gives 0 bytes:<br> XFilterEvent returns: False<br><br><br> press "fn"<br> KeyPress event, serial 40, synthetic NO, window 0x3a00001,<br> root 0x264, subw 0x0, time 2103556, (426,527), root:(430,591),<br> state 0x10, keycode 135 (keysym 0xffe8, Meta_R), same_screen YES,<br> XLookupString gives 0 bytes:<br> XmbLookupString gives 0
bytes:<br> XFilterEvent returns: False<br><br>The keysym for eject is defined<br><br> grep -i eject /usr/include/X11/XF86keysym.h<br> #define XF86XK_Eject 0x1008FF2C /* Eject device (e.g. DVD) */<br><br>1st mod'ing a single-key solution,<br><br> edit ~/.Xmodmap<br> - keycode 96 = F12 F12 F12 F12 F12 F12 XF86Switch_VT_12<br> + keycode 96 = XF86XK_Eject F12 F12 F12 F12 F12 XF86Switch_VT_12<br><br>then<br><br> xmodmap ~/.Xmodmap<br><br>returns<br><br> xmodmap ~/.Xmodmap<br> xmodmap: /home/user/.Xmodmap:89: bad keysym name 'XF86XK_Eject' in keysym
list<br> xmodmap: 1 error encountered, aborting.<br><br>otoh, mod'ing again<br><br> edit ~/.Xmodmap<br> - keycode 96 = XF86XK_Eject F12 F12 F12 F12 F12 XF86Switch_VT_12<br> + keycode 96 = XF86Eject F12 F12 F12 F12 F12 XF86Switch_VT_12<br><br>now<br><br> xmodmap ~/.Xmodmap<br><br>succeeds<br><br>@ xev<br><br> KeyPress event, serial 40, synthetic NO, window 0x3600001,<br> root 0x264, subw 0x0, time 2922751, (596,464), root:(600,528),<br> state 0x10, keycode 96 (keysym 0x1008ff2c, XF86Eject), same_screen YES,<br> XLookupString gives 0 bytes:<br> XmbLookupString gives 0 bytes:<br> XFilterEvent
returns: False<br><br>(1) Should not .Xmodmap not use the "XF86XK_Eject" keysym defined in<br><br> /usr/include/X11/XF86keysym.h<br><br>instead of requiring<br><br> "XF86Eject"<br><br>or does the keycode definition NOT use the keysym ?<br><br>(2) In any case, what next steps do I need to take to 1st get a single-, then two-, key-press to actually eject the drive drawer? So far, I've not managed with any keystroke to actually get the drive to eject.<br><br></div></div></body></html>