You are not logged in.

#1 2018-06-30 20:11:08

Miladdarren
Member
Registered: 2018-06-30
Posts: 2

Hibernate when closing laptop lid does not work

Hello
I'm pretty new in linux and I hope I can learn from you guys.
I'm running arch linux with gnome as DE and lightdm as display manger.
I want the system to go into hibernation mode when I close the lid and here is my /etc/systemd/logind.conf configuration:

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=hibernate
HandleLidSwitchExternalPower=hibernate
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

I have already fired

systemctl restart systemd-logind.service

and rebooted system but it is not working.

Last edited by Miladdarren (2018-06-30 20:28:11)

Offline

#2 2018-06-30 20:14:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Hibernate when closing laptop lid does not work

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Gnome doesn't use that file; it has it's own power management utility in the GUI somewhere. See https://wiki.archlinux.org/index.php/GN … itch_close


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB