Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

my laptop would automatically wake up when I'd close the lid after 1 second when it was connected to power. I fixed it with this script from this site

#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".
TMPLIST=/tmp/ehci-dev-list

case "${1}" in
        hibernate|suspend)

        ;;
        resume|thaw)

     chvt 1
     chvt 7
        ;;
esac

This script is stored in /etc/pm/sleep.d/20_custom-ehci_hcd

I read this as if it is commanded to resume or thaw it will run chvt 1 then chvt 7. Why do those stop the resume, and why is this script required? I'm wondering what is wrong to cause the need for this script. Thank you!

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.