Hi, is there a way to have bluetooth start automatically on boot without having to manually type it in the command line? Or perhaps a kind of ‘autoexec’ that could be set up to do so?
You can use systemctl enable bluetooth, there are detailed explanations about it in the docs.
I have been following the information in the Lakka documentation, but starting bluetooth requires booting into the command line and then manually starting it and then RetroArch. I’m just wondering if there is any setting that will automatically start bluetooth on each boot, avoiding the command line altogether.
EDIT: Nevermind, I found a way to start the bluetooth automatically by using ‘autostart.sh’ with the necessary commands in it. Here’s the wiki page for anyone with similar issues: http://wiki.openelec.tv/index.php?title=Autostart.sh
If you use systemctl enable bluetooth, it should autostart automatically. Without the need of touching autostart.
Hi,
I have read everywhere about the use of systemctl enable bluetooth command to allow bluetooth autostart after booting.
However I keep using this command many times and bluetooth still does not autostart.
Every time I boot my Cubietruck I have to type systemctl start bluetooth and then to press the connect button in my control to link it.
Does somebody have an idea about what am I doing wrong?
I used lsmod command just after booting, then systemctl start bluetooth , and then lsmod again to show changes in my active modules if it can be helpful to detect de cause of my problem.
Lakka:~ # lsmod Module Size Used by btusb 14480 0 bluetooth 263731 2 btusb mali 114027 2 ump 56632 3 mali
Lakka:~ # systemctl start bluetooth
Lakka:~ # lsmod Module Size Used by bnep 14430 2 btusb 14480 0 bluetooth 263731 21 bnep,btusb mali 114027 2 ump 56632 3 mali
You can check that the service is started correctly with systemctl status bluetooth
What would you put in the autostart.sh to enable bluetooth?
I would put
touch /storage/.cache/services/bluez.conf
systemctl enable bluetooth
systemctl start bluetooth