Ask Your Question

how to suspend on lid close in Fedora 26

asked 2017-08-01 22:25:51 -0500

akollipa gravatar image

I freshly installed Fedora 26 and I'm trying to get things set up the way I want them. So, I go to close the lid and it keeps running as though I never closed it (screen goes black, though).

Then I changed /etc/systemd/login.confwith root privileges. Specifically, I decommented HandleLidSwitch=suspend , saved the change, and then restarted the service with systemctl restart systemd-logind.service. Still no suspend on closing the lid.

I restarted my computer to see if that would work (didn't work). Then I tried turning the "Don't suspend on lid close" setting to off in gnome-tweak-tool and restarted (also didn't work).

The question is, what's left to try? And how can I go about collecting helpful information?

edit retag flag offensive close merge delete


Do you, by any chance, have external screen plugged it?

What happens if you execute systemctl suspend in terminal?

ozeszty gravatar imageozeszty ( 2017-08-02 01:50:50 -0500 )edit

Is Gnome Tweak Tool made by the main Gnome 3 team? I've never really liked it, the extension manager has always been buggy.

rookieoz gravatar imagerookieoz ( 2017-08-02 03:48:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-02 12:19:28 -0500

Rabin gravatar image

updated 2017-08-03 01:38:10 -0500

while running journalctl -f and closing the lid can you see the lid close event ?

Aug 02 20:13:07 localhost systemd-logind[28981]: Lid closed.  
Aug 02 20:13:07 localhost systemd-logind[28981]: Suspending...

Also look in the Power Management tools to see that are the action to take on each event and while running on AC/Plugged or DC/Battery.

image description

edit flag offensive delete link more


Mmm, you can use comments, because it is not a answers ...

davidva gravatar imagedavidva ( 2017-08-02 20:19:34 -0500 )edit

I know, but I can't format inside the comment.

Rabin gravatar imageRabin ( 2017-08-03 01:34:45 -0500 )edit

Hi, im not OP, but I tried to run journalctl -f and I didnt have a lid close event. then, I edited login.conf and restart it with systemctl restart systemd-logind.service. After that, I had a closed lid event, but no suspend, until I restart my computer. After restarting, I had no closed lid event

guibaril gravatar imageguibaril ( 2017-08-04 12:38:14 -0500 )edit

Question Tools

1 follower


Asked: 2017-08-01 22:25:51 -0500

Seen: 1,740 times

Last updated: Aug 03 '17