Skip to content

Instantly share code, notes, and snippets.

@eliroca
Forked from s-leon/bt-headset-hack.sh
Created April 23, 2021 19:17
Show Gist options
  • Save eliroca/02231d4555b8e9726fd138e3f8015e21 to your computer and use it in GitHub Desktop.
Save eliroca/02231d4555b8e9726fd138e3f8015e21 to your computer and use it in GitHub Desktop.
bt-headset-hack.sh
#!/bin/bash
# add pulseaudio-modules-bt from home:MasterPatricko for ldac codec
echo -e "pair 38:18:x:xx:xx:xx\nyes" | bluetoothctl
sleep 2
bluetoothctl -- trust 38:18:x:xx:xx:xx
bluetoothctl -- connect 38:18:x:xx:xx:xx
sleep 2
bluetoothctl -- disconnenct 38:18:x:xx:xx:xx
sleep 2
pulseaudio -k && pulseaudio --start
bluetoothctl -- connect 38:18:x:xx:xx:xx
sleep 3
pactl list | grep a2dp_codec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment