Page 1 of 1

Running Laptop while lid is closed

Posted: Fri Sep 04, 2015 10:40 am
by Chrisleen
I am using a Lenovo T60 Laptop as my HDA, and had envisioned running the system with the lid closed.

When the laptop was running Windows, I was able to set the unit up so the laptop lid could be close, but it was still running.

Now that I have Fedora 19, when I close the lid it goes into hibernation mode. I looked through all the settings on the Fedora GUI and I accessed the BIOS mode of the latptop, during POST, but don't see anything that changes this.

Any ideas on how I might achieve this goal, of closing the laptop but having the system still running?

I was able to set it up so the screen goes dark, but for cleaner install, I want the lid closed.

Thanks!

Chrisleen

Re: Running Laptop while lid is closed

Posted: Fri Sep 04, 2015 10:58 am
by bigfoot65
That is something normally configured by the OS. For example, Windows has settings for what happens when the lid is closed.

You will have to search the internet for guidance.

Re: Running Laptop while lid is closed

Posted: Sat Sep 05, 2015 4:18 am
by Chrisleen
Here is the Resolution:

For GNOME, this is now handled by systemd in Fedora 18+.

As root, edit /etc/systemd/logind.conf.

As root, from the terminal in Fedora 19, I used namo etc/systemd/logind.conf

You're looking for the definition for HandleLidSwitch, it may be commented out.

For newbies new to Linux, if the Line begins with # it is not read by the system. Its just a "comment". In my install of Fedora 19, this had a # in front of the line which has to be removed.

The default is: HandleLidSwitch=suspend

You can set it to ignore, poweroff, reboot, halt, suspend, hibernate, hybrid-sleep, lock or kexec. Since your laptop screen is broken, you just want to set it to ignore, so add this to /etc/systemd/logind.conf:

HandleLidSwitch=ignore

Remember: Linux is case sensitive, so "Ignore" won't work. It must be "ignore".

Then, run systemctl restart systemd-logind, or simply reboot for it to take effect.

Re: Running Laptop while lid is closed

Posted: Sat Sep 05, 2015 6:26 am
by bigfoot65
Good write up. Could you add this to the wiki? That is our primary source for documentation.