Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Media keys stopped working after latest update(1.1.56.595.g2d2da0de)

Solved!

Media keys stopped working after latest update(1.1.56.595.g2d2da0de)

I am running the Spotify Snap with a premium account directly from the Snap store on Ubuntu 20.10. Media keys from my keyboard(Das Keyboard 4 Pro) have always worked perfectly with the Spotify Snap. With the most recent update, 1.1.56.595.g2d2da0de, media keys have stopped working. They work fine in other applications.

 

In the attached dump I tried using the play, previous, and next button on my keyboard. When those didn't work I click the play button then tried pause, previous, and next on my keyboard. In either case the media keys did not work.

Reply

Accepted Solutions
Marked as solution

I experienced this issue and managed to trace it down to Firefox.  I unchecked "Control media via keyboard, headset, or virtual interface" in Firefox preferences and after restarting my machine, media keys worked again.  I presume I started Firefox before Spotify and Firefox took control of the media keys.  It's worth noting that Chrome also has media keys functionality, and so you might want to check that too (https://community.spotify.com/t5/Desktop-Windows/Media-keys-being-taken-over-by-chrome-tabs/td-p/473...)

Hope this helps!

View solution in original post

5 Replies

Hey @ltrager 

 

That's odd!
I am not quite sure what could be the cause of this specifically, but you could create global keyboard shortcuts for Spotify using dbus-driven commands.

They work when Spotify is running and when it's not, other programs get the attention.

 

The commands are:

Play/Pause
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause

Next
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next

Previous
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous

 

I got the new update yesterday and confirmed they still work as expected.

 

Hope this is of any help; have a lovely day 🙂

Marked as solution

I experienced this issue and managed to trace it down to Firefox.  I unchecked "Control media via keyboard, headset, or virtual interface" in Firefox preferences and after restarting my machine, media keys worked again.  I presume I started Firefox before Spotify and Firefox took control of the media keys.  It's worth noting that Chrome also has media keys functionality, and so you might want to check that too (https://community.spotify.com/t5/Desktop-Windows/Media-keys-being-taken-over-by-chrome-tabs/td-p/473...)

Hope this helps!

Starting Spotify before Firefox fixed it.

 

Thanks for the tip!

For anyone getting here with a Linux snap install. It won't work with snap, install directly:


https://www.spotify.com/pl/download/linux/

That worked man thanks!

Suggested posts