| disable-acpi-wakeup.service | ||
| disable-acpi-wakeup.sh | ||
| LICENSE | ||
| README.md | ||
disable-acpi-wakeup
Disables ALL acpi wakeup triggers on startup to prevent accidentally waking up your computer from sleep.
No SELinux
-
Clone the repository or download disable-acpi-wakeup.service and disable-acpi-wakeup.sh
-
Copy disable-acpi-wakeup.sh to a location of your choice, for example your home directory
-
Set permissions 700 (RWX for root only) to disable-acpi-wakeup.sh and set ownership to root:root
chmod 700 disable-acpi-wakeup.sh chown root:root disable-acpi-wakeup.sh -
Copy disable-acpi-wakeup.service to
/etc/systemd/system -
Set permissions 644 to disable-acpi-wakeup.service and set ownership to root:root
-
Edit the location of the script in the service file
... [Service] ExecStart=~/disable-acpi-wakeup.sh ...
-
Enable the service
sudo systemctl enable disable-acpi-wakeup.service -
Start the service
sudo systemctl start disable-acpi-wakeup.service
SELinux
On systems like Fedora where SELinux is enabled, you cannot place the script file wherever you want, especially not in a home directory. Instead, try /usr/local/bin.
You must also set the proper SELinux context on the service file and script with restorecon disable-acpi-wakeup.service and restorecon disable-acpi-wakeup.sh.