pi@raspberrypi:~$ bluetoothctl
	[bluetooth]# agent on
	[bluetooth]# pairable on
	[bluetooth]# scan on
	[bluetooth]# scan off
	[bluetooth]# devices
	[bluetooth]# pair XX:XX:XX:XX:XX:XX
	[bluetooth]# trust XX:XX:XX:XX:XX:XX
	[bluetooth]# connect XX:XX:XX:XX:XX:XX
	[bluetooth]# info XX:XX:XX:XX:XX:XX
	[bluetooth]# exit
Bei Probleme das Gerät mal mit "remove XX:XX:XX:XX:XX:XX" entfernen und neu einbinden
pi@raspberrypi:~$ sudo apt install pulseaudio-module-bluetooth
pi@raspberrypi:~$ pactl list sinks short
	0    alsa_output.platform-soc_audio.analog-mono    module-alsa-card.c    s16le 1ch 44100Hz    SUSPENDED
	1    bluez_sink.XX:XX:XX:XX:XX:XX.headset_head_unit    module-bluez5-device.c    s16le 1ch 8000Hz    IDLE
	pi@raspberrypi:~$ pactl set-default-sink 1
	pi@raspberrypi:~$ pactl set-sink-volume 1 60%
pi@raspberrypi:~$ aplay /usr/lib/libreoffice/share/gallery/sounds/space2.wav
Automatik
Das Bluetooth Gerät muss an sein, vor dem starten des Computers. Die zwei Befehle können auch in das rc.local Script gepackt werden.
echo -e "connect XX:XX:XX:XX:XX:XX\nquit" | bluetoothctl
	pactl set-sink-volume bluez_sink.XX:XX:XX:XX:XX:XX 50%
Stephan Günther, 1997-2025, letzte Änderung 09.04.2020, Datenschutzerklärung, Disclaimer, Powered by GetSimple