Linux

Fedora won't suspend/hibernate when closing laptop

By Lucas
May 18, 2017
1 min min read
Fedora won't suspend/hibernate when closing laptop

There is a configuration file in Fedora that, by default, prevents the Notebook from going into sleep mode or hibernating when you close the Notebook.

To solve these problems:

  1. Edit the file “/etc/systemd/logind.conf
  2. Removes the comment from the line “#HandleLidSwitchDocked=suspend”
  3. Restart the service “systemctl restart systemd-logind

That’s it! Now when you close your notebook, it will go into sleep mode.

If you want to hibernate the notebook instead of suspending it, simply replace “suspend” with “hibernate”.

Related Articles