No description
Find a file
2025-12-18 16:55:20 +01:00
disable-acpi-wakeup.service Add service and script files 2025-06-07 13:53:37 +02:00
disable-acpi-wakeup.sh Add service and script files 2025-06-07 13:53:37 +02:00
LICENSE Initial commit 2025-06-07 13:08:55 +02:00
README.md Update README.md 2025-12-18 16:55:20 +01:00

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.