This solution works on my laptop (ubuntu 16.04, but should work on previous OS):
open as root file
/etc/UPower/UPower.conf
and change IgnoreLid=false ==> IgnoreLid=true
save changes, restart system and now it works :-)
You can remove light-locker now.
You can use bash for these:
sudo sed -i -e 's/IgnoreLid=false/IgnoreLid=true/g' /etc/UPower/UPower.conf
sudo apt-get remove --purge -y light-locker light-locker-settings
and restart system now
This solution works on my laptop (ubuntu 16.04, but should work on previous OS): UPower. conf
open as root file
/etc/UPower/
and change IgnoreLid=false ==> IgnoreLid=true
save changes, restart system and now it works :-)
You can remove light-locker now.
You can use bash for these: false/IgnoreLid =true/g' /etc/UPower/ UPower. conf settings
sudo sed -i -e 's/IgnoreLid=
sudo apt-get remove --purge -y light-locker light-locker-
and restart system now