In Ubuntu 18.04 server I want to be able to shut the lid of my laptop and have the following happen:
- The screen turns off.
- The laptop itself keeps running and does not go to sleep.
If I set this in /etc/systemd/logind.conf
HandleLidSwitch=ignore
It achieves the second goal, but not the first (the screen stays on). Setting “lock” instead of “ignore” didn’t help either.