3

I'm running Fedora 15 Gnome on a laptop. I can't seem to find an option to toggle if the laptop goes to sleep when the lid closes. There are certain times where I want to put the laptop away or close it but still have it do some crunching on some long running task

Is there a place to toggle this option?

1

2 Answers 2

1

Gnome Tweak Tool allows you to change that.

2
  • Found the option under the Shell menu. Thanks!
    – TheLQ
    Aug 18, 2011 at 21:57
  • In 2023 this link redirects to the "Tweaks" app which does not feature this setting Dec 22, 2023 at 13:10
1

This worked for me, just run the command as superuser. For GNOME, this is now handled by systemd in Fedora 18+.

As root, edit /etc/systemd/logind.conf. You're looking for the definition for HandleLidSwitch, it may be commented out.

Modified Command : sudo gedit /etc/systemd/logind.conf You could also change dir to the folder be for running the code.

$ cd /etc/systemd
$ sudo gedit logind.conf 

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

Then, run systemctl restart systemd-logind, or simply reboot for it to take effect.
From : Preventing lid close suspension

Uncomment by deleting the # by the command. Then change suspend to ignore.

You must log in to answer this question.

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