Howto Enable and Use A2DP Sink on Ubuntu Linux with Bluez


收藏人:joy_chen
2013-07-28 | 阅:  转:  
 |    来源
  |  分享 
  
 
  1. Add Enable=Source to /etc/bluetooth/audio.conf right after [General].

  2. Find address in form XX:XX:XX:XX:XX:XX of phone with hcitool scan.

  3. Pair and trust smartphone with sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX andsudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes.

  4. Create loopback in pulseaudio connection bluetooth a2dp source with alsa sink:

    pactl load-module module-loopback source=bluez_source.XX_XX_XX_XX_XX_XX sink=alsa_output.pci-0000_00_1b.0.analog-stereo
    

You can find your own values for source and sink with pacmd list-sources and pacmd list-sinks.

你可能感兴趣的:(Howto Enable and Use A2DP Sink on Ubuntu Linux with Bluez)