Skip to content

Instantly share code, notes, and snippets.

@default-writer
Last active October 17, 2025 23:39
Show Gist options
  • Save default-writer/6ca5f1f05e88c9c51e2e1b09147ad23e to your computer and use it in GitHub Desktop.
Save default-writer/6ca5f1f05e88c9c51e2e1b09147ad23e to your computer and use it in GitHub Desktop.
Orange Pi 5 Max Bluetooth solution

Orange Pi 5 Max solution:

I am using service to run this command to up and run Bluetooth on login screen:

I had run this command:

echo 'mmc2:0001:3' | sudo tee /sys/bus/sdio/drivers/btsdio/unbind

and to make this bt-startup.service:

sudo nano /etc/systemd/system/bt-startup.service

and put this:

[Unit]
Description=Bluetooth power keeper
After=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/dbus-send --system --type=method_call --dest=org.bluez /org/bluez/hci1 org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1 string:Powered variant:boolean:true
ExecStop=/usr/bin/dbus-send --system --type=method_call --dest=org.bluez /org/bluez/hci1 org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1 string:Powered variant:boolean:false

[Install]
WantedBy=multi-user.target

and run it:

sudo systemctl enable bt-startup.service
sudo systemctl start bt-startup.service

also I have this service enabled as well (/etc/systemd/system/bt.service):

[Unit]
Description=Unblock Bluetooth with rfkill
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/sbin/rfkill unblock bluetooth
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

and i removed --bd_addr_rand parameter as well:

sudo nano /usr/lib/systemd/system/ap6611s-bluetooth.service

links

https://bbs.archlinux.org/viewtopic.php?id=166362 https://patrakov.blogspot.com/2011/01/writing-systemd-service-files.html https://askubuntu.com/questions/1333957/bluetooth-service-unable-to-start-without-systemctl-restart-bluetooth https://superuser.com/questions/1768809/linux-how-to-reset-the-bluetooth-adapter-without-rebooting-the-operating-system https://stackoverflow.com/questions/62035834/how-to-restart-bluetooth-service-when-my-server-service-restarts-in-systemd https://forum.armbian.com/topic/28950-orange-pi-5-ap6275p-wireless-module-bluetooth-not-working/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment