I have an Ideapad Y400 running Ubuntu 13.10. I have been having a problem where, while I am carrying the laptop, the screen will push one of the keys and wake the laptop up. Is there any way to:

  • Disable the keyboard when the laptop goes to sleep,
  • Keep the keyboard from waking the laptop, or
  • Make the laptop go to back to sleep if it is woken while closed?

You can have a script (cron job that runs it every minute, or plain loop in the background) that checks the lid state (/proc/acpi/button/lid/LID/state on my Lenovo P50 with 16.04) and if it find it closed, issues a suspend command.

Another way is to disable resume. Normally there is only one key for resume (the Fn key), and there could be a way to disable it in the BIOS (you would still be able to resume with the touchpad).

The low tech way is some thin card put over the keys before closing the lid :)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.