Advertisement
Guest User

Automatically connect using bluetoothctl

a guest
Sep 7th, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. if [ ! "$(pgrep -f bluetooth)" ] ; then
  2. sudo systemctl start bluetooth
  3. fi
  4.  
  5. echo 'power on' | bluetoothctl
  6. pulseaudio -k
  7. sleep 1
  8. pulseaudio --start
  9. sleep 1
  10. echo 'connect ${DEV}' | bluetoothctl
  11. sleep 5
  12. echo 'info ${DEV}' | bluetoothctl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement