Announcements

Media Keys Don't Work

Reply
Highlighted

Re: Media Keys Don't Work

Casual Listener
Thanks. I'm just curious if it's actually the app timestamp that's governing the media key controls.
Highlighted

Re: Media Keys Don't Work

Regular
I think that maybe is desktop environment dependant. Kde or Gnome or xfce could handle it differently, but I'm not sure actually.
Highlighted

Re: Media Keys Don't Work

Visitor
Thank you very much BlackDex !!!
mpris-control made my Ubuntu better and my life happier 🙂
Thanks a lot friend!
Highlighted

Re: Media Keys Don't Work

Casual Listener
For me it helped to disable Media-Key-Control in Chrome browser, if he is running at the same time with Spotify.
https://www.addictivetips.com/web/disable-media-key-control-in-chrome/
Highlighted

Re: Media Keys Don't Work

Visitor

Thank you, bro! Media keys started to work after I had disabled "Hardware Media Key Handling" from Google Chrome.

Highlighted

Re: Media Keys Don't Work

Casual Listener

I finally found the way to have it working (if you are a Chrome browser user), whether with deb package or snap on Ubuntu 19.10.

 

First of all check in Settings > Devices > Keyboard Shortcuts that your Media Keys are present (release update from 19.04 to 19.10 set them all to Disabled in my case)

 

Then open Chrome browser :

  1. In the address bar go to chrome://flags/#hardware-media-key-handling
  2. Change the value to Disabled
  3. Restart Chrome

Deal.

 

 

Highlighted

Re: Media Keys Don't Work

Visitor

Yes, problem was Chrome's hardware media key handling for me, too.

Highlighted

Re: Media Keys Don't Work

Casual Listener

UPDATE: I'm on Plasma desktop, and removed a long-used widget "Compact Media Player" in favor of the bundled Media Player widget. And suddenly all media key interaction works. System audio mute, previous, play/pause, next, etc. Keep this in mind if you're here looking for answers.

Highlighted

Re: Media Keys Don't Work

Newbie

Worked perfectly. Problem wasn't spotify at all, but chrome messing using the keys! 

Highlighted

Re: Media Keys Don't Work

Regular

I'm using KDE (and Firefox, not Chrome if this matters) and found another problem why it was not working: the media player Clementine overwrote the global shortcuts to control the current media player.

 

Go to Settings > Global shortcuts > Media controls and reassign the keys. Works for me again.

SUGGESTED POSTS