great, so how to persist these changes?
If you use the above methods, you might see autostart.sh
possibly encountering errors. To check, look at the status of the autostart.sh
:
systemctl status retroarch-autostart
Lakka sh[356]: /storage/.config/autostart.sh: line 2: can’t crea
te /sys/module/bluetooth/parameters/disable_ertm: nonexistent directory
and check the status of ertm (“N” means not disabled):
cat /sys/module/bluetooth/parameters/disable_ertm
If you get an error like above, then similar to @Arek75 I created the following service, to be placed in: /storage/.config/systemd/bluetooth.target.wants/bluetooth-disable-ertm.service
:
[Unit]
Wants=bluetooth.service
After=bluetooth.service
[Service]
ExecStart=/bin/sh -c 'Y > /sys/module/bluetooth/parameters/disable_ertm 2>&1'
[Install]
WantedBy=bluetooth.target
just to be safe: chmod 775 /storage/.config/system.d/bluetooth.target.wants/bluetooth-disable-ertm.service
You should test running it and verify it toggles the setting from “N” to “Y”:
systemctl start bluetooth-disable-ertm
systemctl status bluetooth-disable-ertm
You should see:
Process: 754 ExecStart=/bin/sh -c Y > /sys/module/bluetooth/parameters/disable
_ertm 2>&1 (code=exited, status=127)
Main PID: 754 (code=exited, status=127)
So as long as ertm gets disabled on bluetooth becoming active, you should be able to connect wirelessly after rebooting again and again!