This commit is contained in:
2026-09-17 00:36:31 +02:00
parent 8efcc9eac6
commit 6e5b63a3ad
13 changed files with 320 additions and 0 deletions
@@ -0,0 +1,15 @@
[Unit]
Description=Disable ACPI wakeup devices on shutdown
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target poweroff.target
Conflicts=shutdown.target reboot.target halt.target poweroff.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true
ExecStop={{ acpi_wakeup_script_path }}
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,8 @@
#!/bin/bash
set -u
for device in $(awk '$3 == "enabled" {print $1}' /proc/acpi/wakeup); do
echo "$device"
echo "$device" > /proc/acpi/wakeup
done