Recently my laptop is all explode on closing the lid.
It turns out this is fixable, and the answers were on various stack exchange sites.
First fix the actual problem:
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:
And then get the bloody thing to notice without having to reboot:
sudo systemctl stop systemd-logind && sudo systemctl start systemd-logind