User Tools

Site Tools


Sidebar

jak-na-to:linux

This is an old revision of the document!


Linux OS

Permanent disable ACPI wakeup by USB

Source: Reddit

acpi-wakeup-disable.service
[Unit]
Description=something
 
[Service]
ExecStart=/bin/bash -c "echo EHC1 >> /proc/acpi/wakeup; echo XHC >> /proc/acpi/wakeup"
 
[Install]
WantedBy=multi-user.target

- Place this file in /etc/systemd/system/ - Then do sudo systemctl daemon-reload, - do sudo systemctl start acpi-wakeup-disable - and check on it with systemctl status something, - then enable it so it starts after boot with sudo systemctl enable acpi-wakeup-disable.

jak-na-to/linux.1547708507.txt.gz · Last modified: 2019/01/17 08:01 by hansek