Add systemd bluetooth scripts

This commit is contained in:
Rob Watson 2020-07-01 11:51:22 +02:00
parent 900b5a3219
commit 7cc3092896
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Turn bluetooth power off
Before=hibernate.target
[Service]
Type=oneshot
ExecStart=/usr/bin/bluetoothctl power off
[Install]
WantedBy=hibernate.target

View File

@ -0,0 +1,11 @@
[Unit]
Description=Turn bluetooth power on
After=hibernate.target
[Service]
Type=oneshot
ExecStartPre=/bin/sleep 5s
ExecStart=/usr/bin/bluetoothctl power on
[Install]
WantedBy=hibernate.target