You are not logged in.
I'm using my bluetooth headphones with pipewire and pipewire-pulse. After connecting, I can use pavucontrol to switch from the default AAC codec to the SBC-XQ codec. However, I have to manually switch this every time I connect. Is there a way to use this codec by default?
Last edited by Salkay (2022-05-19 03:25:36)
Offline
https://wiki.archlinux.org/title/PipeWi … _Bluetooth
should allow you to select the primary codec to use
Last edited by V1del (2022-05-03 08:04:11)
Offline
Thanks V1del. I'm using pipewire-media-session, so I created ~/.config/pipewire/media-session.d/bluez-monitor.conf using the template at /usr/share/pipewire/media-session.d/bluez-monitor.conf, and added
properties = {
...
bluez5.codecs = [ sbc_xq ]
This now works by removing the other codecs. I guess that's fine, although I can't access the other codecs any more now.
From your comment
should allow you to select the primary codec to use
I'm not sure if you were suggesting there was a way to leave all codecs enabled, and just default to one?
Offline
Not using bluetooth so not sure whether you can just list them and it will default to the first or whether you can set an additional flag for explicitly selecting the default profile/codec
Offline
It looks like pipewire-media-session has been removed from the repos, and I was automatically migrated to wireplumber.
I created a new config as per the link above at ~/.config/wireplumber/bluetooth.lua.d/51-bluez-config.lua. Again, I disabled all the other codecs and left sbc_xq. I restarted pipewire and this had the same effect as before with pipewire-media-session. Similarly with wireplumber, I can't see a way to leave all enabled and just specify a default. I checked the docs and there was nothing obvious there either.
Offline
For the record, after the issues reported with wireplumber, I reverted to pipewire-media-session. I tested putting multiple codecs into ~/.config/pipewire/media-session.d/bluez-monitor.conf, as per above, but the order of these was not used to determine the default. I'm just specifying the one sbc_xq codec for now. Not entirely ideal, but this works well enough. Thank you for your help!
Offline