diff --git a/systemd/bluetooth-power-off.service b/systemd/bluetooth-power-off.service new file mode 100644 index 0000000..5830563 --- /dev/null +++ b/systemd/bluetooth-power-off.service @@ -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 diff --git a/systemd/bluetooth-power-on.service b/systemd/bluetooth-power-on.service new file mode 100644 index 0000000..f5c4b80 --- /dev/null +++ b/systemd/bluetooth-power-on.service @@ -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