Bluetooth

Bluetooth-Installation

# aptitude install bluez bluez-utils bluez-hcidump
# /etc/init.d/bluetooth restart
# hcitool dev
# hciconfig --all
# hcitool scan

/etc/bluetooth/hcid.conf bzw. /etc/bluetooth/main.conf (bluez-utils)

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;

bei jedem Start deaktivieren

/etc/rc.local

rfkill block bluetooth

Bluetooth per ALSA

nach Bluetooth-Gerät suchen, und MAC-Adresse notieren:

# hcitool scan
Scanning ...
        00:10:60:00:62:72       JA2

.asoundrc

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"
}

Probe

Tonausgabe mit einer WAVE-Datei testen:

# aplay -D btbox /usr/share/sounds/purple/login.wav

Audio-Ausgabe umschalten

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.

 
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki