add systemd service + script that disables acpi wakeup calls
This commit is contained in:
commit
299f3248c4
6
disable_acpi_wakeup
Executable file
6
disable_acpi_wakeup
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
devices=$(cat /proc/acpi/wakeup | grep enabled | awk '{print $1}')
|
||||
|
||||
for device in $devices; do
|
||||
echo $device > /proc/acpi/wakeup;
|
||||
done
|
10
disable_acpi_wakeup.service
Normal file
10
disable_acpi_wakeup.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Disable ACPI Wakeup
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/disable_acpi_wakeup
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user