Created
August 1, 2025 08:54
-
-
Save A1exan10er/ede31ae5d3f18492a729decef0bf5393 to your computer and use it in GitHub Desktop.
"bluetooth-auto-enable.service" - Powers on Bluetooth after the bluetooth service starts; "bluetooth-rfkill-unblock.service" - Unblocks Bluetooth via rfkill before the bluetooth service starts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Auto-enable Bluetooth | |
After=bluetooth.service | |
Requires=bluetooth.service | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c 'sleep 5; /usr/bin/bluetoothctl power on' | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Unblock Bluetooth via rfkill | |
Before=bluetooth.service | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/sbin/rfkill unblock bluetooth | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo systemctl enable bluetooth-auto-enable.service
sudo systemctl enable bluetooth-rfkill-unblock.service