8

I'm using the Sony WH-1000XM3 on Ubuntu 20.04. The headphones support media controls through touch gestures. Volume up/down works fine, but pause/play and next/previous track does nothing. Neither in Spotify nor on YouTube.

I tried to set Settings > Keyboard Shortcuts > Sound and Media > Play (play/pause) to "Audio play" etc but that made no difference.

I noticed that using they headphones media keys don't show anything when running xev in Terminal.

Any ideas how this can be resolved?

Rak
  • 81

1 Answers1

0

I am using the Sony WH1000XM5.

I use Arch-Linux on my Laptop and everything worked fine but on Debian i had the same Problem as you.

What fixed the Problem for me was installing the playerctl package.

I am using I3 as a Window-Manager so basically I just had to set some Keyboard Shortcuts to get this working. This is the corresponding I3 config:

# Media player controls
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous

So basically you have to look up a way to do this in your DE/WM. I don't exactly know if it will work completely the same on Ubuntu but maybe it will. Good Luck!

I hope this helped :)