Don’t suspend when the lid is closed in Ubuntu

In ubuntu with graphic interface this is too easy, just go to settings -> energy and change the behaviour when plugged or with battery. But in my case I have installed in one old laptop that I use as home server Ubuntu Server so no graphical interface.

So in order to change this behaviour just open the /etc/systemd/logind.conf file in a text editor as root
Edit HandleLidSwitch to ignore, make sure it’s not commented
HandleLidSwitch=ignore

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s