You have been subscribed to a public bug:
Before Ubuntu Jaunty, due to strange keyboard design, I used custom
keycode bindings for Power, Sleep and Wake buttons to control my media
player. But after upgrade I cannot apply custom ~/.Xmodmap anymore.
I have made some investigation, and I have found, that if I run X server
without Gnome, xev gives correct results. But if GNOME is running, only
bindings for non-special keys are working.
Here is an example:
$ cat ~/.Xmodmap
keycode 124 = XF86AudioPrev
keycode 150 = XF86AudioPlay
keycode 151 = XF86AudioNext
keycode 49 = XF86AudioPrev
The last keycode is added for testing purposes, and, if I press tilde
key, I get the following output from xev:
KeyPress event, serial 35, synthetic NO, window 0x4200001,
root 0x13c, subw 0x0, time 217000099, (463,-217), root:(470,598),
state 0x0, keycode 49 (keysym 0x1008ff16, XF86AudioPrev), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 35, synthetic NO, window 0x4200001,
root 0x13c, subw 0x0, time 217000156, (463,-217), root:(470,598),
state 0x0, keycode 49 (keysym 0x1008ff16, XF86AudioPrev), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
But if I press 'Power' button (keycode 124) I get
FocusOut event, serial 35, synthetic NO, window 0x4200001,
mode NotifyGrab, detail NotifyAncestor
FocusOut event, serial 35, synthetic NO, window 0x4200001,
mode NotifyWhileGrabbed, detail NotifyNonlinear
PropertyNotify event, serial 35, synthetic NO, window 0x4200001,
atom 0x16e (_NET_WM_ICON_GEOMETRY), time 217086342, state PropertyNewValue
and gnome power manager window pops up. That means, that the first line
of ~/.Xmodmap was ignored.
If I run xev in the separate X server without GNOME, I have expected
behavior: XF86AudioPrev keysym is generated.
** Affects: gnome-power-manager (Ubuntu)
Importance: Undecided
Status: New
--
~/.Xmodmap special key bindings aren't working in GNOME
https://bugs.launchpad.net/bugs/378553
You received this bug notification because you are a member of Ubuntu Desktop
Bugs, which is subscribed to gnome-power-manager in ubuntu.
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs