Skip to content

Instantly share code, notes, and snippets.

@mkgin
Last active March 29, 2020 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkgin/77189c3722af9251775422e207beaf15 to your computer and use it in GitHub Desktop.
Save mkgin/77189c3722af9251775422e207beaf15 to your computer and use it in GitHub Desktop.
laptop resumes right after suspend
# Check USB... this worked well for my Lenovo Twist, I think...
#
https://askubuntu.com/questions/144932/why-does-my-laptop-resume-immediately-after-suspend
Basically.
# find USB PCI interfaces
lspci |grep -i usb
# check state with ACPI tool
acpitool -w
...
2. EHC1 S3 *enabled pci:0000:00:1d.0
3. EHC2 S3 *enabled pci:0000:00:1a.0
4. XHC S3 *enabled pci:0000:00:14.0
5. HDEF S3 *disabled pci:0000:00:1b.0
...
# as root disable the enabled USB ones
acpitool -W 2
acpitool -W 3
acpitool -W 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment