Page 1 of 1
[SOLVED] LXDE - How to change suspend/hibernate on lid close

Posted:
May 30th, '13, 06:42
by paultgg
Hi. I just installed Mageia 3 (didn't upgrade), and notice that my laptop suspends when I close the laptop lid. I use LXDE as my desktop manager, and don't mind changing config files, but is there a way to change the suspend/hibernate behaviour? Thanks.
Re: How to change suspend/hibernate on lid close

Posted:
May 30th, '13, 08:14
by isadora
In KDE this is handled through "System Settings->Energy Saving", but don' t know about LXDE, sorry.
Re: How to change suspend/hibernate on lid close

Posted:
May 31st, '13, 00:30
by paultgg
Any idea of where it is in Gnome? Maybe it could be controlled via gnome-control-center?
Re: How to change suspend/hibernate on lid close

Posted:
Jun 5th, '13, 20:32
by Mijzelf
I had the same problem, and found that it's handled by systemd. Edit /etc/systemd/logind.conf to change the behaviour
Re: How to change suspend/hibernate on lid close

Posted:
Jun 6th, '13, 16:29
by paultgg
Perfect, thanks, Mijzelf! I'll play around with that. In the meantime, a gui workaround is xfce4-power-manager.
Re: [SOLVED] LXDE - How to change suspend/hibernate on lid c

Posted:
Jun 21st, '13, 12:39
by aselluza
I have the same problem, in KDE I changes energy saving settings but when I shut down and close the laptop lid it suspends, which is so stupid thing, because then I leave and instead of shutting down it keeps suspended until I come back or realize, so unconfortable behavior. I don't understand why this is it selected by defect and there's no easy way to change it. I hate that suspend-hibernate stuff. Tonight it was a bigger problem, because I leaved my laptop on copying a lot of stuff, something like 300Gb from one hard drive to another and close the lid -as I said, in KDE I configured it not to suspend ever and it used to work fine- and this morning nothing was copied because it suspended after I went to sleep. I went to energy manager and it tells me it's not active -even it really is- and doesn't let me make any change there, so it's working as if energy saving configuration was off in KDE and then using that standard stupid configuration from login.comf. How should i rewrite that login.conf file? what should I write instead of suspend? I guess I must change this one, but how?
#HandleLidSwitch=suspend
And should I change #LidSwitchIgnoreInhibited=yes to #LidSwitchIgnoreInhibited=no?
thanx
Re: [SOLVED] LXDE - How to change suspend/hibernate on lid c

Posted:
Jun 21st, '13, 21:03
by doktor5000
Re: [SOLVED] LXDE - How to change suspend/hibernate on lid c

Posted:
Jun 22nd, '13, 02:09
by aselluza
yes, thankx, I changed #HandleLidSwitch=suspend to #HandleLidSwitch=ignore and #LidSwitchIgnoreInhibited=yes to #LidSwitchIgnoreInhibited=no and it seems to be working fine now.
thanx again!

Re: [SOLVED] LXDE - How to change suspend/hibernate on lid c

Posted:
Jun 22nd, '13, 12:18
by doktor5000
Well, if the lines with these starts with # then they are still commented out and not effective ...
Re: [SOLVED] LXDE - How to change suspend/hibernate on lid c

Posted:
Jun 22nd, '13, 14:19
by aselluza
It's strange, because I tried shuting down and closing the lid and this time it didn't suspend, but I'll do as you say.
Thanx!