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

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

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

Postby paultgg » May 30th, '13, 06:42

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.
Last edited by paultgg on Jun 6th, '13, 16:30, edited 2 times in total.
paultgg
 
Posts: 45
Joined: Sep 1st, '11, 19:30

Re: How to change suspend/hibernate on lid close

Postby isadora » May 30th, '13, 08:14

In KDE this is handled through "System Settings->Energy Saving", but don' t know about LXDE, sorry.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2767
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: How to change suspend/hibernate on lid close

Postby paultgg » May 31st, '13, 00:30

Any idea of where it is in Gnome? Maybe it could be controlled via gnome-control-center?
paultgg
 
Posts: 45
Joined: Sep 1st, '11, 19:30

Re: How to change suspend/hibernate on lid close

Postby Mijzelf » Jun 5th, '13, 20:32

I had the same problem, and found that it's handled by systemd. Edit /etc/systemd/logind.conf to change the behaviour
Mijzelf
 
Posts: 19
Joined: Jun 5th, '13, 20:31

Re: How to change suspend/hibernate on lid close

Postby paultgg » Jun 6th, '13, 16:29

Perfect, thanks, Mijzelf! I'll play around with that. In the meantime, a gui workaround is xfce4-power-manager.
paultgg
 
Posts: 45
Joined: Sep 1st, '11, 19:30

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

Postby aselluza » Jun 21st, '13, 12:39

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
aselluza
 
Posts: 124
Joined: Jun 20th, '11, 19:44

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

Postby doktor5000 » Jun 21st, '13, 21:03

Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18071
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby aselluza » Jun 22nd, '13, 02:09

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! :-)
aselluza
 
Posts: 124
Joined: Jun 20th, '11, 19:44

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

Postby doktor5000 » Jun 22nd, '13, 12:18

Well, if the lines with these starts with # then they are still commented out and not effective ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18071
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby aselluza » Jun 22nd, '13, 14:19

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!
aselluza
 
Posts: 124
Joined: Jun 20th, '11, 19:44


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest