Last active
January 10, 2019 22:26
-
-
Save czekaj/3b44845a6be8b36c160dd3411c7a7fde to your computer and use it in GitHub Desktop.
Sleep fix to prevent USB devices from waking Lenovo X1 Carbon 3rd gen up on Ubuntu 18.10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put the below in /etc/systemd/system/wakeup-fix.service | |
# | |
# then do | |
# sudo systemctl daemon-reload | |
# sudo systemctl start wakeup-fix | |
# | |
# and check on it with | |
# systemctl status wakeup-fix | |
# | |
# then enable it so it starts after boot with | |
# sudo systemctl enable wakeup-fix | |
[Unit] | |
Description=wakeup-fix | |
[Service] | |
ExecStart=/bin/bash -c "echo XHCI >> /proc/acpi/wakeup; echo EHC1 >> /proc/acpi/wakeup" | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment