Skip to content

Instantly share code, notes, and snippets.

@czekaj
Last active January 10, 2019 22:26
Show Gist options
  • Save czekaj/3b44845a6be8b36c160dd3411c7a7fde to your computer and use it in GitHub Desktop.
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
# 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