You are not logged in.

#1 2021-08-31 00:05:35

xcritman
Member
Registered: 2021-08-30
Posts: 1

Keyboard volume keys not working with bluetooth headphones

Hi y'all, I'm using xmonad, ALSA and PulseAudio and I've been trying to get the volume/mute keys on my keyboard to work for a while.

I finally got them working today, but realized that they don't work when I plug in my bluetooth headphones. I have no issues apart from this on the headphones, audio works great.
Running alsamixer, I can see that the XF86Audio--- commands do work, but only on the Master and Speaker items of my HDA Intel PHC soundcard, not on the (default) one.

Here some info:

$ cat ~/.Xmodmap
keycode 113 = XF86AudioMute
keycode 114 = XF86AudioLowerVolume
keycode 115 = XF86AudioRaiseVolume
$ cat ~/.xbindkeysrc
# Increase volume
"amixer set Master 5%+"
  XF86AudioRaiseVolume	

# Decrease volume
"amixer set Master 5%-"
  XF86AudioLowerVolume

# Mute volume
"amixer set Master toggle"
  XF86AudioMute
$ cat ~/.xinitrc
exec xmonad
xmodmap ~/.Xmodmap

I don't know if this is also necessary, but here's info about the bluetooth adapter and headphones using bluetoothctl

$ show 10:5B:AD:8F:E5:64
Controller 10:5B:AD:8F:E5:64 (public)
	Name: DELLINSPIRON
	Alias: DELLINSPIRON
	Class: 0x006c010c
	Powered: yes
	Discoverable: no
	DiscoverableTimeout: 0x000000b4
	Pairable: yes
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v1D6Bp0246d053D
	Discovering: no
	Roles: central
	Roles: peripheral
Advertising Features:
	ActiveInstances: 0x00 (0)
	SupportedInstances: 0x05 (5)
	SupportedIncludes: tx-power
	SupportedIncludes: appearance
	SupportedIncludes: local-name

$ info 98:52:3D:06:0A:F9
Device 98:52:3D:06:0A:F9 (public)
	Name: JBL Duet BT
	Alias: JBL Duet BT
	Class: 0x00240404
	Icon: audio-card
	Paired: yes
	Trusted: yes
	Blocked: no
	Connected: yes
	LegacyPairing: no
	UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)

I got the XF86Audio keycodes from the

showkey -k

command. Like I said, all of this works great with the speakers, but it doesn't do anything when the headphones are connected.
Thank you in advance big_smile

Offline

Board footer

Powered by FluxBB