Stap 3: De configuratie
Breng de volgende wijzigingen
Onze gebruiker pi aan de Pulse audio groep toevoegen
sudo usermod –a –G lp pi
Audio configuratie-instellingen
sudo nano /etc/bluetooth/audio.confAdd the following text under[General]: Enable=Source,Sink,Media,Socket
Hartslag instellingen
sudo nano /etc/pulse/daemon.confComment this line by adding a semicolon; speex-float-3Add these linesresample-method = trivialexit-idle-time = -1
Bluetooth-configuratie
sudo nano /etc/bluetooth/main.confModify these lines to customize your bluetooth device name and className = nameyourbluetoothdevicehereClass = 0x20041C
Bluetooth configuratie van uw apparaat
sudo nano /var/lib/bluetooth/<bluetooth mac address>/configModify these lines to customize your bluetooth device name and class(Note, the class may reset on reboot. Don't worry too much about it)name nameyourbluetoothdevicehereclass 0x20041C
Invoerregels
sudo nano /etc/udev/rules.d/99-input.rulesAdd this lineKERNEL=="input[0-9]*", RUN+="/usr/lib/udev/bluetooth"
Initialisatie van het apparaat (auto-login)
sudo nano /etc/inittabModify the following line to look like this(was something like this) 1:2345:respawn:/sbin/getty --noclear 38400 tty11:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
== FACULTATIEF ==
De geluidskwaliteit van de zender van de fm verhogen
sudo nano /home/pi/fm/pifm.cFind and modify the following linesQUALITY=15 SQUALITY=20Then recompilecd /home/pi/fm; mv pifm pifm_bak;g++ -O3 -o pifm pifm.c