You are not logged in.

#1 2019-03-05 18:27:10

AhmedKhaled
Member
Registered: 2019-03-03
Posts: 8

[SOLVED]Laptop sleeps when lid closed, regardless of powermanager

good evening everyone ,
My laptop always goes to sleep when i close the lid when i chose switch off display or lock screen in power manager settings.
Any suggestions ?
Thanks a lot in advance

Offline

#2 2019-03-05 21:26:01

hathor
Member
From: Barcelona
Registered: 2017-09-30
Posts: 59
Website

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

Change by mate-power-manager


lenovo thinkpad t420s

Offline

#3 2019-03-05 21:44:10

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

Some laptops have the controlling settings for that in BIOS, in such cases the BIOS settings sometimes take precedence over what's set in the operating system.

Worth checking.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#4 2019-03-06 18:55:07

ohnonot
...again
Registered: 2015-09-29
Posts: 4,016
Website

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

hathor wrote:

Change by mate-power-manager

has bunsenlabs switched to mate-power-manager?
i always thought it was xfce4-power-manager.

Offline

#5 2019-03-06 19:44:01

damo
....moderator....
Registered: 2015-08-20
Posts: 5,104

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

ohnonot wrote:
hathor wrote:

Change by mate-power-manager

has bunsenlabs switched to mate-power-manager?
i always thought it was xfce4-power-manager.

It still is xfce4-power-manager


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#6 2019-03-06 21:23:22

hathor
Member
From: Barcelona
Registered: 2017-09-30
Posts: 59
Website

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

xfce4-power-manager failed me and I changed it, now it works fine, xubuntu also changed it to mate-power-manager.


lenovo thinkpad t420s

Offline

#7 2019-03-07 06:18:20

ohnonot
...again
Registered: 2015-09-29
Posts: 4,016
Website

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

AhmedKhaled wrote:

good evening everyone ,
My laptop always goes to sleep when i close the lid when i chose switch off display or lock screen in power manager settings.
Any suggestions ?
Thanks a lot in advance

you should definitely look at power-manager settings, and what you can change there.

_________________________________________

hathor wrote:

xfce4-power-manager failed me and I changed it, now it works fine

sounds like voodoo to me. i think it would be better to actually solve the problem, instead of throwing chicken bones at it.

xubuntu also changed it to mate-power-manager.

certainly not on my Xubuntu 18.04.
can you show me where and when that happened?

Offline

#8 2019-03-07 09:53:44

hathor
Member
From: Barcelona
Registered: 2017-09-30
Posts: 59
Website

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

I did not have xubuntu installed and I checked it in a virtual machine. I was wrong. In any case, it did not work well for me and the mate-power-manager did.


lenovo thinkpad t420s

Offline

#9 2019-03-08 10:00:10

AhmedKhaled
Member
Registered: 2019-03-03
Posts: 8

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

in Xfce power manager the laptop always sleeps regardless of settings set in it . i tried turn off screen and switch off display but still the laptop  sleeps

Offline

#10 2019-03-08 10:02:59

AhmedKhaled
Member
Registered: 2019-03-03
Posts: 8

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

i installed mate-power-manager but i can't open it as i tried running from terminal but nothing happened

Offline

#11 2019-03-08 10:04:04

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

Have you checked if BIOS/UEFI is handling lid switch events? If so it may take precedence over power manager software.
sorry to repeat myself.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#12 2019-03-08 10:32:27

damo
....moderator....
Registered: 2015-08-20
Posts: 5,104

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

AhmedKhaled wrote:

i installed mate-power-manager but i can't open it as i tried running from terminal but nothing happened

That is the power manager daemon. You need to run mate-power-preferences for the graphical settings panel.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#13 2019-03-08 15:28:14

AhmedKhaled
Member
Registered: 2019-03-03
Posts: 8

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

Bearded_Blunder wrote:

Have you checked if BIOS/UEFI is handling lid switch events? If so it may take precedence over power manager software.
sorry to repeat myself.


i checked it but unfortunately i couldn't find a related setting in bios .
never mind my friend you're trying to help . Thanks a lot

Offline

#14 2019-03-08 15:33:46

AhmedKhaled
Member
Registered: 2019-03-03
Posts: 8

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

damo wrote:
AhmedKhaled wrote:

i installed mate-power-manager but i can't open it as i tried running from terminal but nothing happened

That is the power manager daemon. You need to run mate-power-preferences for the graphical settings panel.

i opened graphical setting panel and chose blank screen and do nothing but still the same behavior .

should i remove xfce4-power-manager ?! may be it causes conflict .

Offline

#15 2019-03-08 17:13:42

damo
....moderator....
Registered: 2015-08-20
Posts: 5,104

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

You should only be running one of them. Uninstall or disable as you want. (Don't forget to disable if it is autostarted)

/usr/lib/x86_64-linux-gnu/openbox-xdg-autostart --list

You haven't answered this:

Have you checked if BIOS/UEFI is handling lid switch events? If so it may take precedence over power manager software.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#16 2019-03-08 17:39:03

damo
....moderator....
Registered: 2015-08-20
Posts: 5,104

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

Try this fix (from here)

sudo nano  /etc/systemd/logind.conf

Change the line

#HandleLidSwitch=suspend

to

HandleLidSwitch=ignore

Then do

sudo systemctl restart systemd-logind

-EDIT- and ignore any comments from @B_B about systemd! tongue

Last edited by damo (2019-03-08 17:40:10)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#17 2019-03-08 18:36:03

AhmedKhaled
Member
Registered: 2019-03-03
Posts: 8

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

damo wrote:

Try this fix (from here)

sudo nano  /etc/systemd/logind.conf

Change the line

#HandleLidSwitch=suspend

to

HandleLidSwitch=ignore

Then do

sudo systemctl restart systemd-logind

-EDIT- and ignore any comments from @B_B about systemd! tongue

Thanks a lot my friend .. working like a charm .
also a big thank you to everyone here .. this community is just awesome big_smile Now i can leave my old laptop to do all night torrenting without freakin' out in midnight . Thanks again everyone <3

Offline

#18 2019-03-08 19:17:27

damo
....moderator....
Registered: 2015-08-20
Posts: 5,104

Re: [SOLVED]Laptop sleeps when lid closed, regardless of powermanager

Good news. I'll mark the thread as "solved", but you can do it yourself if there is a next time, by editing the title of your first post wink It can help others looking for a solution...


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

Board footer

Powered by FluxBB