Skip to content

Instantly share code, notes, and snippets.

View A1exan10er's full-sized avatar

Tianyu Yang A1exan10er

View GitHub Profile
@A1exan10er
A1exan10er / bluetooth-auto-enable.service
Created August 1, 2025 08:54
"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
[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