1

I have a notebook on remote location, the notebook has closed lid and from time to time I would like to restart it, but when I do the network doesn't come up, only after the lid is opened.

Second problem and maybe connected is that when the is closed and no one is logged in into desktop (ssh is not enough) the notebook suspends.

So is there a way how to prevent the notebook from suspending even when no one is logged in and also somehow ensure that the network will reconnect after reboot.

1 Answer 1

0

Go to Settings -> Power and set this screen as follows:

Power lid closed

Change When the lid is closed from Suspend to Do nothing.


When not logged in

Run this command:

$ cat /etc/systemd/logind.conf | grep LidSwitch

#HandleLidSwitch=ignore
#HandleLidSwitchDocked=ignore
#LidSwitchIgnoreInhibited=yes

Systemd could be suspending the laptop when not signed into Ubuntu.

2
  • Yes, thats already set, when the user is logged in the notebook won't suspend, but this I guess apply only after you log into the ubuntu session.
    – liborw
    Apr 3, 2018 at 10:57
  • @liborw I've added systemd option for when not logged in. Apr 3, 2018 at 10:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .