Posts Tagged ‘ pulseaudio

Bluetooth Audio

จดสักที..

Bluetooth Motorola S605

LinuxMint, Ubuntu 8.10

sudo gedit /etc/bluetooth/hcid.conf
# HCId options
options {
# Automatically initialize new devices
autoinit yes;

# Security Manager mode
# none – Security manager disabled
# auto – Use local PIN for incoming connections
# user – Always ask user for a PIN
#
security auto;
# Default PIN code for incoming connections
passkey “0000″; #
save file

$ hcitool scan
Scanning …
00:11:22:AA:BB:CC Motorola S605

จด ไว้เอามาใส่ใน
sudo gedit ~/.asoundrc

pcm.bluetooth {
type bluetooth
device 00:11:22:AA:BB:CC
profile “auto”
}
save
$ sudo hciconfig hci0 voice 0×0060
$ sudo modprobe snd_bt_sco
$ sudo modprobe sco

$ pactl load-module module-alsa-sink device=bluetooth
$ pactl load-module module-alsa-source device=bluetooth

$ sudo apt-get install paprefs paman padevchooser

Applications->Sound & Video->PulseAudio Device

Add sink
ใส่ alsa_output.bluetooth
ถ้าใช้ๆไปแล้ว sound เกิดติดขัดขึ้นมา pulse audio connect ไม่ได้
สั่ง
/usr/bin/pulse-session (ubuntu,linuxMint)
Debian สั่ง /usr/session/pulseaudio -D

แหล่งข้อมูลลอก1แหล่งข้อมูลลอก2

รวบรวมลอกไว้จะได้ไม่ต้องค้นหลายรอบ ลอกล้วนๆ ทำทีลอกที