```
This happens to me as well. It seems that closing the application that responds to the media keys causes this. This is probably related to this issue: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/45
I get these errors in my ~/.xsession-errors
when they stop working:
(csd-media-keys:2932): media-keys-plugin-WARNING **: 08:59:20.240: Error calling method GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.mpris.MediaPlayer2.xplayer was not provided by any .service files
Running killall csd-media-keys
fixes it for me.
Cinnamon 4.4.8 is also affected, and the suggested workaround works.
Could be related: the output of csd-media-keys --verbose
shows that is creating a proxy for opened apps. For example
I open chromium and start playing music on spotify.
I hate that song, so I press 'next' media key.
$ csd-media-keys --verbose
(csd-media-keys:16681): media-keys-plugin-DEBUG: 13:27:56.724: Calling method 'HandleKeybinding' for media-keys
(csd-media-keys:16681): media-keys-plugin-DEBUG: 13:27:56.724: Launching action for key type '15' (on device id 0)
(csd-media-keys:16681): media-keys-plugin-DEBUG: 13:27:56.724: Media key 'Next' pressed
(csd-media-keys:16681): media-keys-plugin-DEBUG: 13:27:28.882: calling Next over dbus to mpris client org.mpris.MediaPlayer2.chromium.instance2597
The media keys plugin creates a proxy for chromium first, so the keys don't work.
I close chromium, then this happens:
$ csd-media-keys --verbose
(csd-media-keys:16681): media-keys-plugin-DEBUG: 13:27:54.857: Creating proxy for for org.mpris.MediaPlayer2.spotify
(csd-media-keys:16681): media-keys-plugin-DEBUG: 13:27:56.724: Calling method 'HandleKeybinding' for media-keys
(csd-media-keys:16681): media-keys-plugin-DEBUG: 13:27:56.724: Launching action for key type '15' (on device id 0)
(csd-media-keys:16681): media-keys-plugin-DEBUG: 13:27:56.724: Media key 'Next' pressed
(csd-media-keys:16681): media-keys-plugin-DEBUG: 13:27:56.724: calling Next over dbus to mpris client org.mpris.MediaPlayer2.spotify
And now it works.
Most helpful comment
This happens to me as well. It seems that closing the application that responds to the media keys causes this. This is probably related to this issue: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/45
I get these errors in my
~/.xsession-errors
when they stop working:Running
killall csd-media-keys
fixes it for me.