Created
July 19, 2018 23:26
-
-
Save seungjin/91dfd6fddd0031eafc7d787a2e63abd8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
https://help.ubuntu.com/community/MacBookPro11-1/Saucy#Won.27t_stay_suspended | |
Won't stay suspended | |
If your laptop wakes up on its own a minute or two after suspending (just long enough for you to put it in your bag where it can wake up and start overheating!) then disable "wake from USB" -- presumably the keyboard, trackpad, or some other internal component is waking up. | |
To disable "wake from USB": | |
echo XHC1 | sudo tee /proc/acpi/wakeup | |
You need to do this after every boot, so add it to an init script or similar. | |
To confirm that it is disabled: | |
cat /proc/acpi/wakeup | |
(You can tell that XHC1 is the USB controller by comparing the PCI slot IDs from cat /proc/acpi/wakeup with the output of lspci). | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment