I have some issues with using Bluetooth headset buttons to control media player (like Play/Pause, go to the next/prev track, etc.) after switching from the nix 24.05 to 25.11. I suspect that it’s somehow related to the options sound.enable and sound.mediaKeys.enable as they were removed during the switch.
I tried to debug something and got the following results on the working configuration:
First, I tried to monitor X events with xev:
Case 1: No apps are active. When I press the Start/Stop buttons on my headphones, I observe events like XF86AudioPlay and XF86AudioPause in the console.
Case 2: I play youtube in my browser. When I press the same buttons, I don’t observe the mentioned events in the console, but the broadcast actually starts/stops. So, most likely something grabs those events, and xev doesn’t see them, but I don’t know how to check it.
Then, I tried to check what’s going on the dbus with dbus-monitor, and every time I pressed the Start/Stop buttons I got something like:
Later, I checked what’s going on the not working configuration and I got the following results:
The above “Case 2” works differently – the events are showed, meaning nothing grabs them anymore. Also, dbus-monitor shows nothing, meaning mpris doesn’t work anymore.