PDA

View Full Version : [ubuntu] gmpc: Could not grab multimedia key



Tookelso
December 9th, 2009, 09:52 PM
Hello,

I'm using GMPC as a front-end for mpd.

I'm running Ubuntu 9.10, and when I start gmpc,
I get the error:

Could not grab multimedia key:
PlayPause: XF86AudioPlay
Ensure that your window manager (or other applications)
have not already bound this key for some other function, then
restart gmpc.

I'm using the Microsoft Natural Ergonomic keyboard 4000,
and it has a "Play/Pause" button at the top. I looked
under the "System -> Preferences -> Keyboard/Mouse" settings,
and the Keyboard model says "Microsoft Natural".

It appears that some other application has grabbed the XF86AudioPlay, and the gmpc is complaining about it.

Has anyone had this problem? I can re-map the gmpc settings, but I'd like to know if there's a better fix for this problem --
maybe I could find the program that is stealing the XF86Play buttons?

Thanks,
--Nate

sirdiego
December 26th, 2009, 11:49 AM
Hi, I have the same problem. Dont know what to do. With Sonata (other mpd client) the keys work.

qball
December 27th, 2009, 03:37 PM
add the gmpc-mmkeys plugin and disable gmpc's bindings..

This will make gmpc use gnome's keybinding thingy.

sirdiego
January 12th, 2010, 05:47 PM
add the gmpc-mmkeys plugin and disable gmpc's bindings..

This will make gmpc use gnome's keybinding thingy.

thank you, that worked for me! =)

David Valentine
March 11th, 2010, 06:36 AM
add the gmpc-mmkeys plugin and disable gmpc's bindings..

How do I do these?

UPDATE: OK, to disable gmpc's bindings, edit ~/.gmpc/gmpc.cfg, navigate to the KEYBINDINGS section and change all keybindings to "0" (zero). I still can't find the gmpc-mmkeys plugin, but perhaps it's somehow hidden in the raft of plugins I installed when I installed gmpc. At any rate, I no longer get the startup error.

Elcid247
March 18th, 2010, 06:38 PM
How do I do these?

UPDATE: OK, to disable gmpc's bindings, edit ~/.gmpc/gmpc.cfg, navigate to the KEYBINDINGS section and change all keybindings to "0" (zero). I still can't find the gmpc-mmkeys plugin, but perhaps it's somehow hidden in the raft of plugins I installed when I installed gmpc. At any rate, I no longer get the startup error.


i already had it at 0s and i can't find the gmpc-mmkeys plugin, any help?

UPDATE: i found the package in this repo https://launchpad.net/~gmpc-trunk/+archive/ppa

Vlado P.
May 23rd, 2011, 08:29 PM
No need to use an external PPA for this: gmpc-mmkeys is already in gmpc-plugins - at least in Ubuntu 11.04. I still get the error message on gmpc startup, but the XF86AudioPlay key now works!
(make sure the "Gnome multimedia keys plugin" is enabled by clicking "plugins:" in the gmpc preferences).