Hi, I am trying to run a bluetooth application but I noticed that while the bluetooth interface does exist on boot it isn’t powered on when you boot up the board. I originally wrote a fairly simple oneshot service but I noticed that it would fail on boot so I modified it to keep on restarting the service until the bluetooth powered on successfully. I wanted to know if there was a better way of doing this since this seems like a hacky solution.
I am using a custom yocto image inheriting from the core-image and building for the verdin-imx8mp. I haven’t run into any issues with yocto so I don’t think it’s coming from that.
I am working with Verdin-imx8mp on a dahlia carrier board v1.1
Below is the service file I wrote which works but I don’t think this is the best solution
[Unit] Description=Powering on bluetooth [Service] Type=simple ExecStart=/usr/bin/bluetoothctl power on Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target