Multimedia Hotkeys in Gnome... generally confusing [solved]

Heyho everyone,
I got some weird problems using the multimedia keys of my Chicony KBR0108 USB wireless Keyboard.
My system is up to date and I'm using Device Hotplugging in my Xserver, so I use the "evdev" Germany Layout in Gnome.
I think all these problems are caused by one misconfiguration, so even if you don't know a solution for one problem, go ahead and reply
The first strange thing is: When I map the multimedia keys to default actions like "Audio => Play" in the Gnome hotkey manager, they work and eg. the "play" command is issued to the player (via dbus imho).
However, this doesn't work with QuodLibet, for example, and I also want to do slightly other actions with the keys (for example, the default Gnome Action for lowering the music volume is lowering the alsa "Master" channel, which is quite annoying) and therefore I would like to use my own commands.
The problem is: If I map a multimedia key like XF86AudioPlay to an own action, the command isn't executed. But: If I map the command to a "normal" combination like [ctrl] + p, they work again.
The second strange thing is: When I'm using compiz and configure the hotkeys in Compiz-Config, all multimedia keys work. However, I don't really want to use compiz. Sure, it looks nice and the effects are cool, but Metacity is faster and I don't have problems with applications or games using OpenGL.
The third strange thing is: xev's behaviour is really strange. xev | grep keycode displays all keys I press, but not the multimedia keys.
Btw: I am doing this in a console-emulator in my Gnome session.
However, and this is even more strange, if I press multiple multimedia keys at once, it suddenly displays them. What the heck?
I hope somebody is able to tell me what's going on here
// Edit: Problem solved. Please look below.
Last edited by ADI64 (2009-07-25 15:59:57)

Thanks for your reply
Sadly, unbinding the keys via the Gnome Hotkey dialog doesn't work.
As described in my first post, mapping the multimedia keys to predefined actions like "Audio->Play" (which can't be edited or deleted) works, but mapping them to new actions doesn't work.
I also think that, like you said, Gnome seems to block these keys. My goal is to find out why it does that and how I can stop it

Similar Messages

  • Confused about polkit-gnome and lxpolkit [solved]

    I recently updated and new version of goffice and gnumeric came down with this warning:
    ==> The agent is no longer autostarted by default except in GNOME Flashback.
    For Xfce, LXDE etc., "lxpolkit" is the suggested lightweight alternative.
    See https://wiki.archlinux.org/index.php/Polkit#Authentication_agents for
    more details.
    I use xfce4 and do not know gnome-polkit installed at all. I removed it and pacman did not complain about dependencies. What exactly do I need lxpolkit for? I am able to use sudo without it.
    Last edited by maggie (2013-09-16 15:40:49)

    I'am confused too:
    Using lxde I was not even aware that there is an alternative to polkit-gnome, as it is always
    mentioned as quasi dependend on gvfs:
    The gvfs package needs to be installed, along with polkit-gnome for the polkit rules.
    This seems to be wrong as neither gvfs nor the polkit rules do depend on polkit-gnome authentication-agent in any way.
    Informations through the wiki(s) are very inconsistent!
    From LXDE-Page:
    polkit-gnome provides an authentication and will need to be started on login:
    $ mkdir -p ~/.config/autostart
    $ cp /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop ~/.config/autostart
    What is it good for? Is there any reason to start it twice? The file mentioned is installed at '/usr/share/applications/polkit-gnome-authentication-agent-1.desktop' by default.
    Polkit-Page:
    To autostart it everywhere except in GNOME and KDE, copy the file /usr/share/applications/polkit-gnome-authentication-agent-1.desktop to /etc/xdg/autostart/
    LXDE-Wiki:
    gvfs and its dependencies (optional, but highly recommended):
    policykit-gnome (required for authentication for volume management)
    And last but not least the awareness that the LX alternative exists since March 28th, 2010 where PCMan himself told us polkit-gnome is not needed anymore:
    LXPOLKIT – SIMPLE POLICYKIT AUTHENTICATION AGENT:
    Generally when one needs to use policykit, he or she needs to install policykit-gnome. Now we have our own.
    A new component LXPolkit was added. It’s minimal policykit  authentication agent.
    As far as I get it, polkit-gnome only provides the 'query of password window' and can be replaced by lxpolkit which is more lightweight.
    And as it was never 'auto'started (see above) except in GNOME, the pacman.log message is IMHO highly questionable and confusing.

  • How do I add an input source besides English in Gnome Shell? [SOLVED]

    Hello.
    I'm a bit confused as to how I should add additional languages/input sources in Gnome Shell. When I ran Gnome Shell in Ubuntu, I could add additional input sources via the Region & Language section of the Gnome control panel, but in Arch I've only got English (my locale is en_US.UTF-8). I'd like to be able to switch between English & Hebrew.
    Do I need to install an underlying gnome package for handling additional input sources? Or do I need to manually add a locale? The wiki seems unclear on this. Also, should I use localectl? I'm also a bit unsure there.
    Thanks!
    Last edited by yochaigal (2015-02-21 16:38:25)

    yochaigal wrote:Or do I need to manually add a locale?
    I think so.
    Edit the file at /etc/locale.gen and un-comment the desired locale then run:
    # locale-gen
    https://wiki.archlinux.org/index.php/Lo … ng_locales

  • Xfce4 and gnome-network-manager [solved]

    I just made a clean install of archlinux. installed xorg and Xfce4, xfce-goodies, gnome-panel, gnome-desktop and gnome-network-manager. also I enabled GNOME services in startup and sessions. how do I start that network manager now? is nowhere in the settings, nor there is icon to add to the taskbar (i got xfapplets installed too)
    Last edited by anarxi (2009-01-14 00:22:42)

    quoted from a previous thread
    I solved it by uncommenting my <locale><charset> in /etc/locale.gen.
    First you have to enable the locales you want being supported by your system. To enable or disable them, the file /etc/locale.gen is used. It contains every locale you can enable, and you have just to uncomment lines you want to do so.
    As we want to setup an english UTF-8 conform system, we want to enable en_US.UTF-8. But for compatibility to programs that don't support UTF-8 yet, it's recommended to support any other locale, prefixed with en_US as well. Having this in mind, we enable this set of locales:
    en_US.UTF8 UTF-8
    en_US ISO-8859-1
    After you've enabled the necessary locales, you have to run locale-gen as root to update them:
    # sudo locale-gen
    Generating locales...
    en_US.UTF-8... done
    en_US.ISO-8859-1... done
    Generation complete.

  • Gnome-settings completely vanished in gnome 3.2 [SOLVED]

    Hi everyone,
    I am currently experiencing the following problem:
    It seems that my gnome-settings icon has been lost and I can't play around with my settings anymore.
    I also tried launching the settings daemon from the console using the command below but I get errors:
    [konos@archBox ~]$ /usr/lib/gnome-settings-daemon/gnome-settings-daemon
    ** (gnome-settings-daemon:1935): WARNING **: You can only run one xsettings manager at a time; exiting
    ** (gnome-settings-daemon:1935): WARNING **: Unable to start xsettings manager: Could not initialize xsettings manager.
    ** (gnome-settings-daemon:1935): WARNING **: Name taken or bus went away - shutting down
    Any suggestions?
    Thank you in advance
    Last edited by konos5 (2012-02-28 21:17:01)

    I feel really embarrassed but this is how the problem was solved...
    [konos@archBox ~]$ sudo pacman -S gnome-control-center
    Password:
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): gnome-control-center-3.2.2-1
    Total Download Size: 2.60 MiB
    Total Installed Size: 13.71 MiB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    gnome-control-center-3.2.2-1-i686 2.6 MiB 49.5K/s 00:54 [################################################] 100%
    (1/1) checking package integrity [################################################] 100%
    (1/1) loading package files [################################################] 100%
    (1/1) checking for file conflicts [################################################] 100%
    (1/1) checking available disk space [################################################] 100%
    (1/1) installing gnome-control-center [################################################] 100%
    Optional dependencies for gnome-control-center
    mesa-demos: provides glxinfo for graphics information
    apg: adds password generation for user accounts
    gnome-color-manager: for color management tasks

  • Multimedia Keys in Awesome Window Manager [SOLVED]

    Hey,
    I've googled, searched, grepped and scanned about this for weeks, and I think I can't get it working on my own, although I'm sure the right answer is just out there waiting to be found, and one of you brighter minds might just know it already. Right, here's what happens.
    I was using openbox, and the keybindings were working just fine. This should probably discard missing symbols or scancodes for the keys, IMHO. Then I switch over to Awesome, and fall in love. The awesome (pun intended) config files by anrxc made it even better, and these days I can't live without my awesome. But I also wanted my volume keys to work. Not like I mind opening a terminal and popping alsamixer... I got 15 of them open all the time anyway. But I still wanted to use the fancy buttons.
    The strange thing is, the keys seem to "disappear" as soon as I map them somewhere. I've tried binding them in rc.lua:
    awful.key({}, "#121", function () exec("pvol.py -m", false) end),
    awful.key({}, "#122", function () exec("pvol.py -c -2", false) end),
    awful.key({}, "#123", function () exec("pvol.py -c 2", false) end),
    pvol.py is a script (made by anrxc too) that does stuff to the volume and displays a cute gtk progress bar to indicate current volume level. Invoking it from the terminal works fine.
    I also tried using xbindkeys:
    "pvol.py -m"
    XF86AudioMute
    "pvol.py -c -2"
    XF86AudioLowerVolume
    "pvol.py -c 2"
    XF86AudioRaiseVolume
    But the result was the same. Here's the output of xev with the keys unbound:
    KeyPress event, serial 25, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4706773, (74,267), root:(796,288),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyRelease event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4706853, (74,267), root:(796,288),
    state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyPress event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4712422, (74,267), root:(796,288),
    state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyRelease event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4712534, (74,267), root:(796,288),
    state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyPress event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4713862, (74,267), root:(796,288),
    state 0x10, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyRelease event, serial 28, synthetic NO, window 0x1600001,
    root 0x15a, subw 0x0, time 4713878, (74,267), root:(796,288),
    state 0x10, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    As you can see, they respond to the key codes 121. 122, and 123. Going to a console and running showkey, however, gives me the key codes 113, 114, and 115. I've tried mapping both, and the X11 symbols, with the same result. Below, a sample of xev's output when I bind the keys somewhere (out put for a single key, all result in the same output):
    FocusOut event, serial 29, synthetic NO, window 0x1600001,
    mode NotifyGrab, detail NotifyAncestor
    FocusIn event, serial 29, synthetic NO, window 0x1600001,
    mode NotifyUngrab, detail NotifyAncestor
    KeymapNotify event, serial 29, synthetic NO, window 0x0,
    keys: 2 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
    And of course, nothing happens. The same happens whether I bind the keys in awesome or through xbindkeys. I have to admit, I'm pretty much out of ideas. Anyone seen this before?
    Last edited by mkaito (2010-06-16 15:06:06)

    d2ogch3n wrote:
    Here's what I have
        -- Multimedia keys
        awful.key({ }, "XF86AudioRaiseVolume",    function () awful.util.spawn("amixer set Master 2+") end),
        awful.key({ }, "XF86AudioLowerVolume",    function () awful.util.spawn("amixer set Master 2-") end)
    Just to clarify for anyone who comes across this, "%" is needed after the number. It should be:
    awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 2%+") end),
    awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 2%-") end)
    You should also be able to add Mute functionality:
    awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle") end)
    Also, to get rid of the loading cursor, pass false as a second argument to all three of these:
    awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 2%+", false) end),
    awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 2%-", false) end)
    awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle", false) end)
    The AWM wiki is the source for this:
    http://awesome.naquadah.org/wiki/Volume … nd_display

  • Gnome places menu [SOLVED]

    Strange behaviour on my gnome desktop. Folders in the places menu are opened by audacious instead of nautilus.
    I tested deleting all gnome configuration folders and reinstalling nautilus without luck.
    Removing audacious does not default to nautilus either:
      Could not open location 'file:///home/******'
      There was an error launching the default action command associated with this location.
    This only happens in the places menu. Elsewhere nautilus opens folders.
    Last edited by grandmouse (2008-07-18 09:00:45)

    Thanks kensai. I did
    update-mime-database /usr/share/mime
    after commenting out
    <alias type="x-directory/normal"/>
    in /usr/share/mime/packages/freedesktop.org.xml
    Now gnome-open works again.
    gvfs-open did not need this change.

  • Mpd and gnome startup applications [SOLVED]

    i am using mpd as a regular user (i couldnt get the permissions right when trying to follow the wiki's instructions)
    so to start mpd i must execute:
    mpd ~/.mpd/config
    however, that doesnt work when pasted into gnome's startup applications, it also doesnt work when put under Exec= in a .desktop entry.
    how can i make this executable so i dont have to type it? i'd rather not put it in .xinitrc
    thanks.
    Last edited by originalsurfmex (2010-02-04 17:43:01)

    THANKS! the
    bash -c "mpd ~/.mpd/config"
    worked great.  i just put it in gnome startup applications.

  • Gnome-panel width[solved]

    Is 24 pixels limit of gnome-panel width,because if I go further to 23 or 22,nothing happens? It can be wider,but it can't be narrower to me.
    Last edited by na12 (2010-02-01 15:13:41)

    do you have on that panel a custom menu ( Applications Places System )? on some themes the gnome-panel wouldn't shrink if i had that applet

  • Gnome numlockx problem [SOLVED]

    After the installation of the latest release 2009.02 of Arch along with Gnome DE, the numlockx package seems not to work. More precisely, when I restart X and enter my credentials, the numlock's led remains off. Any suggestions?
    Last edited by gpan (2009-04-08 07:04:05)

    Ok ok... all along I thought it was working here.
    There is this GConf key
    /desktop/gnome/peripherals/keyboard/host-<hostname>/0/numlock_on
    that gnome-settings-daemon uses to set the numlock state between sessions if the "remember_numlock_state" key is checked.
    It is supposed to store the current state of the numlock key.  Setting this to true/false will toggle the numlock key state, and vice versa... meaning, pressing the actual numlock key will alter this GConf key as well.  Right now, the latter does not work, because of the current xkb not alerting gnome-settings-daemon when the numlock key is pressed.
    Upgrading to xorg-1.6.0-1 in testing fixed the problem here.
    Last edited by biloky (2009-03-11 14:40:21)

  • Setting gnome file associations [SOLVED]

    In a nutshell, I'd like to associate .mp3 files with audacious not with totem.  System>Preferences>Preferred Applications doesn't do it me.  How can one set up Gnome so that double-clicking an .mp3 file will load it up in audacious (or any other application for that matter)?
    Last edited by graysky (2009-10-17 21:47:18)

    From: http://wiki.archlinux.org/index.php/Gno … plications
    Install gnome-defaults-list (not needed but makes it easier to make /usr/share/applications/default.list to fit your needs)
    as root run
    cp -p /etc/gnome/defaults.list /usr/share/applications/defaults.list
    nano/vi/vim/whatever /usr/share/applications/defaults.list
    And adjust it to fit your needs

  • Change Gnome Menu Icon [SOLVED]

    Hello,
    I have been able to change the main menu icon in Gnome in several other distributions running gnome 2.22 (Fedora, Debian, etc) and had no issues. The method I have always used is copy the custom icon to /usr/share/icons/gnome/24x24/places/start-here.png. I have not been successful with this in Arch. I also tried copying to the 22x22 directory and also using the GConf method (apps > panels > objects > Use_Custom_Icon...). No luck so far. I'm totally up to date with all my stuff (gnome 2.22.2), so if anyone knows a good method, it would be greatly appreciated.
    Thanks!
    Swill
    Last edited by Mr. Swillis (2008-07-02 22:58:31)

    biloky wrote:
    Here's how I did it...
    Assuming you're using Gnome's default icon theme:
    1. Replace /usr/share/icons/gnome/24x24/places/start-here.png with your icon of choice.
    2. If the theme's icon cache was previously generated (/usr/share/icons/gnome/icon-theme.cache), you can either re-generate it using the following command
         # gtk-update-icon-cache /usr/share/icons/gnome
    or you can just delete it (the cache is supposed to speed up GTK apps' access to the icons).
    3. Restart X or # killall gnome-panel to see the change.
    That's what I had to do too, but it feels like the wrong way. It should be possible to change it through the configuration editor. A bug perhaps?
    Edit: Replacing the icon file was not possible with the default icon theme. However, it works on other themes.
    Last edited by twarkie (2008-06-28 17:58:44)

  • Gnome file associations[solved]

    How can I delete them?
    When I create an new user everything goes well, but not in my home profil
    thx Matthias
    Last edited by eg4matze (2007-04-16 15:16:31)

    that's an excellent question. I always wanted to know where those file associations are stored per user... system-wide, I guess nautilus takes a peek at /opt/gnome/share/mime* and takes the latest | lexicographically sorted registered handler by default.
    this is one thing gnome really lacks: a central place to modify this (like in kde).
    you should also make sure shared-mime-info package is installed.
    EDIT: found associations at last (not that I really searched before)
    look in ~/.local/share/applications/defaults.list
    I also found this interesting read: http://www.amitysolutions.com.au/docume … chnote.pdf
    it lists that per user mime types are stored in .local/share/mime* folders
    EDIT 2: I took some time to read the error message, and it says that the extension and the mime type detected from file contents do not match. out of the blue, try to rename file with .jpg extension with .jpeg extension.
    Last edited by lloeki (2007-04-16 14:12:42)

  • Problems with gnome after upgrade [solved]

    i updated my system and after a while i noticed when i try to open folders from the menu bar it doesnt open nautilus as usual, instead it open "find files"
    as you can see i had to look for an alternative way to take screenshots because  the "impr" key stopped working
    i tried reinstalling gnome
    also, my fstab was modificated =/
    sorry for the bad english ^^
    i recently tried lxde and that created the problem ^^
    Last edited by lauchazombie (2008-10-09 04:05:10)

    i installed lxde and when i try to open a folder from the shorcut in the left menu it says the folder doesnt exist
    just noticed that the trash bin dissapeared =/
    Last edited by lauchazombie (2008-10-08 06:25:11)

  • No gnome menu icons [solved]

    Hi fellas, I have a bit of a problem, it is not vital though, just that there are no icons next to any of the item in any drop-down menu (right mouse button menu, main gnome menu etc...)
    Thanks
    Last edited by sDoky (2009-05-20 14:38:59)

    Ashren wrote:Ok then, please check if gnome-icon-theme is installed - if not install it. It should be since it is a part of gnome.
    Didn't help. It was ok when I first installed the system, I just tried changing icons, it worked at first but after one boot it just didn't load, I tried changing everything back to previous state, it didn't come back up though. What should I do, I don't wanna reinstall the whole system, it took me days to modify it to the way I wanted it.
    Last edited by sDoky (2009-05-20 13:02:44)

Maybe you are looking for