GNOME keybindings register as <Mod4><Hyper>L (and do not work)

Bug #55729 reported by Tobias Wolf
2
Affects Status Importance Assigned to Milestone
control-center (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-control-center

I don’t know which part of Gnome is responsible for this so I went ahead and filed this for the settings daemon.

In Dapper I set up a whole range of Bindings with the two Win-flag keys set to Mod4 = Super_L and Mod3 = Super_R. I mapped this via an .xmodmap script that was somehow sucked up by g-s-d (I also mapped the media buttons through this files).

Now in Edgy the shortcuts don’t work anymore. When I go into the gnome-keybinding-properties and hit the Super_L + S combination what gets registered for the command is <Mod4><Hyper>s. Upon hitting this combination nothing happens (or, to be exact the quick-find popup shows with the s character in it).

What’s interesting is that my Mod{3,4} bindings for Tomboy and the Deskbar still work. Only, when I enter a new combination in Deskbar it shows up as <Mod4><Super>a (not ...<Hyper>...). And this again subsequently doesn’t work.

I don’t know what happened in the meantime; I cleared all xmodmap files from the system and played with the keyboard properties to no avail. Please advise which info is needed here. Provisionally I provide this:

*** "Alt/Win-key behaviour" is set to "Super is mapped to the Win-keys"
*** $ xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x73), Super_R (0x74), Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
*** $ xprop -root | grep XKB
_XKB_RULES_NAMES(STRING) = "base", "pc105", "us,de,ru", ",nodeadkeys,phonetic", "compose:caps,grp_led:caps,grp:shifts_toggle,altwin:super_win"
_XKB_RULES_NAMES_BACKUP(STRING) = "base", "pc101", "us", "", ""
***$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = [us,de nodeadkeys,ru phonetic]
 model = pc105
 options = [Compose key compose:caps,grp_led grp_led:caps,grp grp:shifts_toggle,altwin altwin:super_win]
 overrideSettings = true

Alternative findings:
If I set the Alt/Win key behaviour to nothing ("Default") and map the modifiers with xmodmap like this

xmodmap -e 'clear Mod3'
xmodmap -e 'clear Mod4'
xmodmap -e 'add Mod3 = Super_R'
xmodmap -e 'add Mod4 = Super_L'

it looks like this

$ xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3 Super_R (0x74)
mod4 Super_L (0x73), Super_L (0x7f)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)

Now the keybinding applet still registers <Mod?><Hyper>? even though xmodmap doesn’t talk about Hyper anymore.

Tags: keyboard
Revision history for this message
Rauli Ruohonen (rruohone) wrote :

I'm don't know about the relationship with xmodmap -- I thought that was superseded by XKB, but I may be wrong. In any case, mod4 not working properly in Gnome is a well-known bug, or has been so for at least a year; perhaps what you're seeing is an instance of it. See the following:

https://launchpad.net/distros/ubuntu/+source/control-center/+bug/16815
http://bugzilla.gnome.org/show_bug.cgi?id=165343

Metacity bindings work properly, but g-s-d ones don't. Which bindings are handled by which depends. You can use gconf-editor to bind keys to commands through metacity, as described e.g. at

http://linuxformat.co.uk/wiki/index.php/Setting_Key_Bindings_in_GNOME

I got bindings to work (in Edgy) by setting win-key to be Hyper and binding keys such as "<Hyper>s" using gconf-editor as described above.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Do you still have that problem? What value do you have for the /desktop/gnome/peripherals/keyboard/general/known_file_list gconf key?

Changed in control-center:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Tobias Wolf (towolf) wrote : Re: [Bug 55729] Re: GNOME keybindings register as <Mod4><Hyper>L (and do not work)

> Thank you for your bug. Do you still have that problem?

Hmm, yes. Even on Feisty it there.

> What value do you have for the
> /desktop/gnome/peripherals/keyboard/general/known_file_list gconf key?

[.Xmodmap]
which is the following

clear mod4
clear mod3
add mod4 = Super_L
add mod3 = Super_R

I’m no more affected really because I use Compiz and all those modifiers
work with it.

Thanks for asking.

Changed in control-center:
importance: Undecided → Low
status: Needs Info → Unconfirmed
Revision history for this message
Tobias Wolf (towolf) wrote :

I tried this again after I received mail about you changing status, Sebastien.
It works! The bug is gone.
I have no idea whether this was fixedsomplace or whether it is due to the fact that I switched my keyboard to evdev. Next time I edit my xorg.conf I’ll switch back and see (and report back).

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for the update. Marking fixed then. Feel free to reopen if you get the problem again

Changed in control-center:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.