You are not logged in.

#1 2015-02-22 20:28:20

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Pulseaudio: set-card-profile on connect?

I finally got my Bluetooth headset working on linux. The only thing that I'm missing is making it switch to the headphone profile on connect - it usually connects in headset (mono+mic) profile.

I can manually switch it to headset

pacmd set-card-profile 1 a2dp_sink

but ideally, I'd want it to do it on connect.

I have successfully set my headset to be the default sound device - if it isn't connected the sound is played through my internal sound card - just as I wanted. For that I edited ~/.config/pulse/default.pa and have put the card's name as default sink.
I tried doing the same for the profile:

### Make some devices default
set-default-sink bluez_sink.00_12_D0_11_61_B6
set-card-profile 1 a2dp_sink

The second line is making pulseaudio fail to start if the headset is not connected. Any idea how to set the card profile automatically?


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

Board footer

Powered by FluxBB