sudo apt update && sudo apt upgrade -y && sudo apt install git bluez bluetooth pulseaudio pulseaudio-utils pulseaudio-module-bluetooth blueman pavucontrol pi-bluetooth vlcsudo nano /boot/config.txtenable_uart=1 dtoverlay=disable-bt
sudo nano /etc/modules-load.d/modules.confbtusb einfügensudo systemctl enable hciuart.servicesudo systemctl enable bluetooth.servicesudo usermod -a -G bluetooth pisudo rebootbluetoothctlscan on[NEW] Device DC:0C:2D:5A:FC:EE Wireless Controllerpair 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 -yls /dev/input/js* bluetoothctlscan 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]#
exitspeaker-test -c2 -twav -l3cvlc 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-configcd chocolate-doom && ./autogen.shmake -j4sudo make installIhr 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.zipsudo systemctl stop KlipperScreen.serviceDISPLAY=:0 chocolate-doom -iwad DOOM1.WADsudo nano /etc/bluetooth/main.confFastConnectable = truesudo 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