Debian 8 (Jessie) – Laptop stops working after closing the laptop lid

debianlaptop

I have a HP15 r007TX laptop with Debian 8 (Jessie) installed.

Whenever I close the lid and then reopen, the laptop stops working. It get's stuck showing a blank screen. From there nothing happens and I have to hard reboot it.

I even changed the setting to do nothing when laptop lid is closed and still have the issue.

Best Answer

To disable the Lid Switch:

  1. Open the file /etc/systemd/logind.conf as root.

  2. Find this: HandleLidSwitch

  3. If it's commented, uncomment and change the value to ignore. The line after editing should be:

    HandleLidSwitch=ignore
    
  4. Restart computer and your problem should be gone. Or better restart logind service:

    sudo service systemd-logind restart
    

(Source)

Related Question