Advertisement
metalx1000

Bluetooth Audio on CHIP $9 Computer

Jun 29th, 2016
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. #get Bluetooth audio Speakers working on CHIP $9 Computer
  2. sudo apt install pulseaudio-module-bluetooth
  3.  
  4. #add the following 2 lines to /etc/bluetooth/audio.conf
  5. [General]
  6. Enable=Source,Sink,Socket
  7.  
  8. bluetoothctl
  9. power on
  10. scan on
  11. pair <MAC Address> #to do the pairing (tab completion works).
  12. #If using a device without a PIN, one may need to manually trust the device before it can reconnect successfully
  13. trust <MAC Address>
  14. connect <MAC_address>
  15.  
  16. #List all pulseaudio sinks (outputs)
  17. pactl list|grep -e "^Sink" -e "Name" -e "application"|grep "^Sink" -A1
  18.  
  19. #change to sink 1 (or what ever sink is your bluetooth output)
  20. pactl set-default-sink 1
  21.  
  22. #test
  23. mplayer my.mp3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement