add systemd service + script that disables acpi wakeup calls

This commit is contained in:
Joshua Seiger-Eatwell 2025-04-05 19:04:26 +02:00
commit 299f3248c4
2 changed files with 16 additions and 0 deletions

6
disable_acpi_wakeup Executable file
View 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

View 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