6

So I have decided to make the leap from Windows to Linux, but I have been having one issue. Whenever I close the lid of my laptop, it goes into sleep mode, and when I open the lid, it comes back awake. My issue is, that 30 seconds or a minute into use, it auto goes into sleep for NO reason, I don't know why it does this. I then have to press the power button to get it to wake, but then it just repeats, I have to completely power off to fix it. Any solutions? I can provide info as needed, provided you tell me how to get that info.

  • 1
    I'm having the same issues on Ubuntu 16.10. I haven't tried this yet but apparently the solution to this is adding '“button.lid_init_state=open” to the grub boot parameters and update grub.' see here blogs.aerys.in/jeanmarc-leroux/2017/02/07/… – supersambo Mar 21 '17 at 14:34
  • Please accept the answer below which solves your question by clicking the green check mark beside it. – WinEunuuchs2Unix Mar 26 '18 at 15:02
5

Editing the grub boot parameters as suggested here did the job for me (on 16.10)

  1. Open a terminal and run

    gksudo gedit /etc/default/grub
    

    which will open a texteditor

  2. Search for GRUB_CMDLINE_LINUX_DEFAULT = "" (which was empty in my case) and change it to

    GRUB_CMDLINE_LINUX_DEFAULT="button.lid_init_state=open"
    
  3. Save and close gedit

  4. update grub with the following command in the terminal

    sudo update-grub
    
  5. Restart

  • Thank you so much! Only thing I would say, is that it was not GRUB_CMDLINE_LINUX_DEFAULT, I had to put it under GRUB_CMDLINE_LINUX. Thank you, I can finally close my laptop lid! – ZVNexus Mar 22 '17 at 22:06
  • @ZVNexus You may want edit both of these as the ~DEFAULT line is used to add kernel init arguments for newly installed kernel versions. Otherwise these arguments may get dropped whenever a system update installs a new kernel. BTW. I've got Razer Blade Stealth running Ubuntu 16.04 too and I'm facing the same issue. I wonder did it happen to you that laptop was going into sleep like mode (green led flashing with screen off) instead (re)booting? No way to wake it up, only cold off by holding the power button for 5 sec to get it out of such state. – topr Feb 23 '18 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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