11
09
2008
Utiliser un casque Bluetooth (Jabra BT3030) avec Ubuntu Hardy Heron
Posted by rangzen in tutoriel, tags: bluetooth, bt3030, gstreamer, jabra, linux, zenityComment écouter sa musique avec un casque Bluetooth, en l’occurrence un Jabre BT3030, sous Hardy Heron avec n’importe quelle application qui gère GStreamer. Pour les autres cf. le premier lien.
Référence
Identifier son casque
Lancer cette commande pour identifier votre l’adresse de votre casque, il doit être en mode pairing :
hcitool scan
.asoundrc
Créer le fichier ~/.asoundrc :
pcm.bluetooth {
type bluetooth
device 00:1D:82:04:28:78 #optionnel
profile "hifi" #optionnel
}
hcid.conf
Rajouter dans /etc/bluetooth/hcid.conf :
device 00:1D:82:04:28:78 {
name "BT3030";
auth enable;
lm master;
passkey "0000";
}
Gstreamer
Un petit script avec une GUI pour changer d’un profil Bluetooth à vos enceintes par exemple :
#!/bin/bash answer=$(zenity --text "Bluetooth status by default in GStreamer" --list --radiolist --column "Choice" --column "Status" TRUE enable FALSE disable) case $answer in enable) echo "Enabling Bluetooth" gconftool -t string -s /system/gstreamer/0.10/default/musicaudiosink "alsasink buffer-time=6000000 latency-time=1000000 device=bluetooth" ;; disable) echo "Disabling Bluetooth" gconftool -t string -s /system/gstreamer/0.10/default/musicaudiosink "autoaudiosink" ;; esac
Entries (RSS)