commit 299f3248c4a2e28667c02a92caa1a1ec963a7021 Author: Joshua Seiger-Eatwell Date: Sat Apr 5 19:04:26 2025 +0200 add systemd service + script that disables acpi wakeup calls diff --git a/disable_acpi_wakeup b/disable_acpi_wakeup new file mode 100755 index 0000000..9d40c65 --- /dev/null +++ b/disable_acpi_wakeup @@ -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 diff --git a/disable_acpi_wakeup.service b/disable_acpi_wakeup.service new file mode 100644 index 0000000..a2f9e61 --- /dev/null +++ b/disable_acpi_wakeup.service @@ -0,0 +1,10 @@ +[Unit] +Description=Disable ACPI Wakeup + +[Service] +ExecStart=/usr/local/bin/disable_acpi_wakeup +Type=oneshot + +[Install] +WantedBy=multi-user.target +