Add systemd bluetooth scripts
This commit is contained in:
parent
900b5a3219
commit
7cc3092896
10
systemd/bluetooth-power-off.service
Normal file
10
systemd/bluetooth-power-off.service
Normal 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
|
11
systemd/bluetooth-power-on.service
Normal file
11
systemd/bluetooth-power-on.service
Normal 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
|
Loading…
x
Reference in New Issue
Block a user