How to stop laptop from going to sleep when lid closed (18.04 LTS Mate)
Colin Law
clanlaw at gmail.com
Sun Apr 19 10:49:38 UTC 2020
On Sun, 19 Apr 2020 at 07:33, Bo Berglund <bo.berglund at gmail.com> wrote:
> ...
> The Ubuntu install on the laptop seems not to be able to run in a
> headless mode 24/7 unless the lid is open. It simply won't stop going
> into suspend after some time (don't know how long before it suspends,
> but it is not doing it immediately).
I can't guarantee this will help but you could try editing
/etc/systemd/logind.conf and see what HandleLidSwitch is set to. It
will probably be commented out in which case uncomment it and make
sure it is set to ignore.
HandleLidSwitch=ignore
Then restart the daemon
sudo systemctl restart systemd-logind
which I think will log you off. It might be easier just to reboot.
Colin
More information about the ubuntu-users
mailing list