I recently upgraded to the latest version (13.10). I have it running on an old laptop. Since the upgrade, whenever I close the laptop lid, it goes to sleep mode.
Any idea on how to fix?
I've tried the solution here:
Keep Ubuntu Server running on a laptop with the lid closed?
After installing acpi-support I don't have the file: /etc/acpi/event/lidbtn to edit.
Your help is appreciated!
Best Answer
I've had the same problem and after a lot of reading, I realized that Ubuntu 13.10 uses
systemd-logind
and it handles the lid close event. To disable entering the sleep mode edit the/etc/systemd/logind.conf
file and uncomment/modify/add the line:Then execute
sudo restart systemd-logind
or simply reboot.This has solved the problem on my PC.
Update for 15.04
I'm not sure if Ubuntu 15.04 already switched to
systemd
completely. If so, the new command for restarting the service issudo systemctl restart systemd-logind.service
.