I have a dell laptop that i just installed Ubuntu server 18.04 LTS on, and that i'm using as a Plex / TVHeadend server. I'd like to stop the laptop from going to sleep when the lid/laptop screen is closed, but still allow the screen to shut off.
Currently I modified /etc/systemd/login.conf and set
The only problem is that now the screen never shuts off when the lid is closed. Since this will be left running 24/7, i'd like the screen to shut off so as not to generate extra heat and save on power