Checked against Kali Linux 2.0.
In /etc/systemd/logind.conf edit HandleLidSwitch=ignore
And then restart the daemon with: # systemctl restart systemd_logind
Checked against Kali Linux 2.0.
In /etc/systemd/logind.conf edit HandleLidSwitch=ignore
And then restart the daemon with: # systemctl restart systemd_logind