sudo apt update && sudo apt upgrade -y && sudo apt install git bluez bluetooth pulseaudio pulseaudio-utils pulseaudio-module-bluetooth blueman pavucontrol pi-bluetooth vlc
sudo nano /boot/config.txt
enable_uart=1 dtoverlay=disable-bt
sudo nano /etc/modules-load.d/modules.conf
btusb
einfügensudo systemctl enable hciuart.service
sudo systemctl enable bluetooth.service
sudo usermod -a -G bluetooth pi
sudo reboot
bluetoothctl
scan on
[NEW] Device DC:0C:2D:5A:FC:EE Wireless Controller
pair DC:0C:2D:5A:FC:EE
[bluetooth]# pair DC:0C:2D:5A:FC:EE Attempting to pair with DC:0C:2D:5A:FC:EE [CHG] Device DC:0C:2D:5A:FC:EE Connected: yes [CHG] Device DC:0C:2D:5A:FC:EE UUIDs: 00001124-0000-1000-8000-00805f9b34fb [CHG] Device DC:0C:2D:5A:FC:EE UUIDs: 00001200-0000-1000-8000-00805f9b34fb [CHG] Device DC:0C:2D:5A:FC:EE ServicesResolved: yes [CHG] Device DC:0C:2D:5A:FC:EE Paired: yes Pairing successful Authorize service [agent] Authorize service 00001124-0000-1000-8000-00805f9b34fb (yes/no): yes
trust DC:0C:2D:5A:FC:EE
[Wireless Controller]# trust DC:0C:2D:5A:FC:EE [CHG] Device DC:0C:2D:5A:FC:EE Trusted: yes Changing DC:0C:2D:5A:FC:EE trust succeeded
connect DC:0C:2D:5A:FC:EE
[Wireless Controller]# connect DC:0C:2D:5A:FC:EE Attempting to connect to DC:0C:2D:5A:FC:EE Connection successful
sudo apt install evtest joystick jstest-gtk -y
ls /dev/input/js*
bluetoothctl
scan on
[NEW] Device B8:D5:0B:C7:F1:0A JBL Charge 3
pair B8:D5:0B:C7:F1:0A
[bluetooth]# pair B8:D5:0B:C7:F1:0A Attempting to pair with B8:D5:0B:C7:F1:0A [CHG] Device B8:D5:0B:C7:F1:0A Connected: yes [CHG] Device B8:D5:0B:C7:F1:0A UUIDs: 00001101-0000-1000-8000-00805f9b34fb [CHG] Device B8:D5:0B:C7:F1:0A UUIDs: 00001108-0000-1000-8000-00805f9b34fb [CHG] Device B8:D5:0B:C7:F1:0A UUIDs: 0000110b-0000-1000-8000-00805f9b34fb [CHG] Device B8:D5:0B:C7:F1:0A UUIDs: 0000110c-0000-1000-8000-00805f9b34fb [CHG] Device B8:D5:0B:C7:F1:0A UUIDs: 0000110e-0000-1000-8000-00805f9b34fb [CHG] Device B8:D5:0B:C7:F1:0A UUIDs: 0000111e-0000-1000-8000-00805f9b34fb [CHG] Device B8:D5:0B:C7:F1:0A UUIDs: 00001200-0000-1000-8000-00805f9b34fb [CHG] Device B8:D5:0B:C7:F1:0A UUIDs: 00001801-0000-1000-8000-00805f9b34fb [CHG] Device B8:D5:0B:C7:F1:0A ServicesResolved: yes [CHG] Device B8:D5:0B:C7:F1:0A Paired: yes Pairing successful
trust B8:D5:0B:C7:F1:0A
[JBL Charge 3]# trust B8:D5:0B:C7:F1:0A [CHG] Device B8:D5:0B:C7:F1:0A Trusted: yes Changing B8:D5:0B:C7:F1:0A trust succeeded
connect B8:D5:0B:C7:F1:0A
[bluetooth]# connect B8:D5:0B:C7:F1:0A Attempting to connect to B8:D5:0B:C7:F1:0A [CHG] Device B8:D5:0B:C7:F1:0A Connected: yes Connection successful [CHG] Device B8:D5:0B:C7:F1:0A ServicesResolved: yes [JBL Charge 3]#
exit
speaker-test -c2 -twav -l3
cvlc sample-15s.mp3
Wenn alles erfolgreich gekoppelt ist, dann solltet ihr jetzt folgende Ausgabe bekommen bei bluetoothctl devices
:
pi@Pi4Test:~ $ bluetoothctl devices Device DC:0C:2D:5A:FC:EE Wireless Controller Device B8:D5:0B:C7:F1:0A JBL Charge 3
sudo apt install -y gcc make libsdl2-dev libsdl2-net-dev libsdl2-mixer-dev automake autoconf libtool git pkg-config
cd chocolate-doom && ./autogen.sh
make -j4
sudo make install
Ihr brauch für Doom eine WAD Datei. Darin enthalten sind letztlich die Maps die ihr spielen könnt. Da diese Dateien immer noch unter Copyright stehen habt ihr folgende Möglichkeiten:
unzip shareware_doom_iwad.zip
sudo systemctl stop KlipperScreen.service
DISPLAY=:0 chocolate-doom -iwad DOOM1.WAD
sudo nano /etc/bluetooth/main.conf
FastConnectable = true
sudo nano /etc/pulse/default.pa
# automatically switch to newly-connected devices load-module module-switch-on-connect
sudo nano /etc/dbus-1/system.d/bluetooth.conf
<!-- allow users of bluetooth group to communicate with hcid --> <policy group="bluetooth"> <allow send_destination="org.bluez"/> </policy>
[bluetooth]# scan on Failed to start discovery: org.bluez.Error.InProgress
https://github.com/Hexxeh/rpi-update
kann auch org.bluez.Error.NotReady sein