Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-10-13 12:33:49

SlickStretch
Member
Registered: 2014-09-25
Posts: 18

[Solved] Can't get laptop to stop suspending when I close the lid.

Computer: Lenovo G570 Laptop
Distro: Xubuntu 14.04 LTS

I'm having problems with closing the lid on my laptop.

I don't want anything to happen when I close the lid. (Other than shutting off the screen obviously.)

So the first thing I did was open Power Manager and set the "When laptop lid is closed:" option to "Nothing" for both "On AC" and "On Battery."

I close the lid and it suspends. When I open the lid, it asks for my username and password. After I enter them, the system resumes, but the screen goes black.

So I opened Light Locker Settings and set "Lock on suspend" to OFF.

It still suspends when closing the lid. Upon resuming, it asks for my login info, and after I enter them, black screen. No change.

So the next thing I did was:

$ sudo aptitude purge light-locker light-locker-settings

Now it doesn't ask me to log in again after closing the lid, so I don't get a black screen after opening the lid back up. However it's still suspending when I close the lid.

The next thing I tried was editing /etc/systemd/logind.conf and changing

#HandleLidSwitch=suspend

to

HandleLidSwitch=ignore

No change. It still suspends when I close the lid.  I'm all out of ideas, and searching hasn't turned up anything I haven't already tried. How can I stop it from suspending when I close the lid?

Offline

#2 2014-10-13 13:42:08

SlickStretch
Member
Registered: 2014-09-25
Posts: 18

Re: [Solved] Can't get laptop to stop suspending when I close the lid.

It's working now. Apparently I just needed to reboot... duh.
duhaward

Offline

#3 2019-05-06 06:40:01

JRD
Member
Registered: 2016-07-05
Posts: 3

Re: [Solved] Can't get laptop to stop suspending when I close the lid.

Thanks SlickStretch for pointing me to systemd (the giant octopus)

I changed the following values in /etc/systemd/logind.conf

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore

Then for the following to be taken into account without reboot:

systemctl daemon-reload

Then all my settings in xfce power manager are taken into account.

Does xfce power manager should deal with systemd when running on a systemd-os ? Or at least read/display systemd settings to help understand the behavior ?

Offline

#4 2019-05-08 04:24:33

SlickStretch
Member
Registered: 2014-09-25
Posts: 18

Re: [Solved] Can't get laptop to stop suspending when I close the lid.

JRD wrote:

Thanks SlickStretch for pointing me to systemd

You're welcome.

JRD wrote:

Does xfce power manager should deal with systemd when running on a systemd-os ? Or at least read/display systemd settings to help understand the behavior ?

Sorry man, I haven't used this OS in years. You should prolly ask in a new thread.

Offline

#5 2019-05-08 10:42:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,013

Re: [Solved] Can't get laptop to stop suspending when I close the lid.

@JRD, see: https://bugzilla.xfce.org/show_bug.cgi?id=15300.

Closing this old thread. If you wish to discuss further, please create a new thread.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB