Advertisement
Guest User

Automatically connect using bluetoothctl v1.1

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