ruebenramirez / blog

My blog
http://blog.ruebenramirez.com/
7 stars 0 forks source link

how to use bluetoothctl to scan, pair, trust, and connect to devices #425

Closed ruebenramirez closed 5 years ago

ruebenramirez commented 5 years ago

I was looking for how to set my default audio profile for my sony bluetooth headphones and stumbled across this series of bluetoothctl commands. I thought it was interesting, because I normally just use the blueman-applet GUI for this stuff.

bluetoothctl
power on
agent on
default-agent
scan on
pair XX:XX:XX:XX:XX:XX < your headphones "ID"
trust XX:XX:XX:XX:XX:XX
connect XX:XX:XX:XX:XX:XX
scan off
exit

source: https://antergos.com/wiki/hardware/bluetooth/get-bluetooth-headphone-auto-connected-with-a2dp/

ruebenramirez commented 5 years ago

I've had some problems pairing a bluetooth keyboard that this process has resolved. Blueman-applet might be read-only from here on out!