# aptitude install bluez bluez-utils bluez-hcidump
# /etc/init.d/bluetooth restart # hcitool dev # hciconfig --all # hcitool scan
Für die Installation einer Bluetooth-Lautsprecher-Box habe ich diese Datei vollkommen unberührt gelassen.
options {
autoinit yes;
security auto;
pairing multi;
passkey "1234";
}
device {
name "%h-%d";
class 0x00100;
iscan enable; pscan enable;
discovto 0;
lm accept;
lp rswitch,hold,sniff,park;
}
Das Passwort bzw. der PIN wird hier eingegeben: passkey „1234“;
bei einem Mobiltelefon: class 0x100100;
rfkill block bluetooth
nach Bluetooth-Gerät suchen, und MAC-Adresse notieren:
# hcitool scan
Scanning ...
00:10:60:00:62:72 JA2
Konfigurationsdatei (mit der gescannten Bluetooth-MAC-Adresse) erstellen:
pcm.btbox {
type bluetooth
device 00:10:60:00:62:72
profile "auto"
}
pcm.!default {
type plug
slave.pcm "btbox"
}
Tonausgabe mit einer WAVE-Datei testen:
# aplay -D btbox /usr/share/sounds/purple/login.wav
Wenn man seine Musik über das Bluetooth-Gerät hören will,
dann stellt man die Ausgabe seines Musikplayers aus “ALSA“
und sonst stellt man die Ausgabe auf “PulseAudio“ ein.