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:
Open the file
/etc/systemd/logind.conf
as root.Find this:
HandleLidSwitch
If it's commented, uncomment and change the value to ignore. The line after editing should be:
Restart computer and your problem should be gone. Or better restart logind service:
(Source)