Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-04-14 22:09:14

Gotit
Member
Registered: 2019-01-08
Posts: 39

Power Manager not respecting laptop lid switch

Hi,
I'm having much the same issue on two identical laptops (Asus Q405UA) where the laptop lid switch setting is not being respected by XFCE Power-manger. If I set Laptop Lid for either On Battery or Plugged In to "Switch off display" or "Lock screen" my system still goes in suspend mode when the lid is closed.

I checked setting xfce4-power-manager in Setting Editor, and the respective setting change with a changes made in Xfce Power-manger.  However, the system still goes into suspend mode when the lid closes regardless of the Xfce Power-manager setting.

When I modify the setting in /etc/systemd/logind.conf
from

#HandleLidSwitchExternalPower=suspend

to

HandleLidSwitchExternalPower=ignore

the system does not go into suspend when the lid is closed.

All the other setting in power-manger seem to be working as expected.

Some system particulars are:
OS: Antergos
Power-Manager: 1.6.1-1
XFCE: 4.12

Any thoughts would be appreciated.
Thanks.

Last edited by Gotit (2019-04-14 22:25:41)

Offline

#2 2019-04-14 23:55:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Power Manager not respecting laptop lid switch

Try disabling logind usage from within xfce4-power-manager with this hidden setting:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false

See if that make a difference.


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

#3 2019-04-15 00:56:41

Gotit
Member
Registered: 2019-01-08
Posts: 39

Re: Power Manager not respecting laptop lid switch

I does make a difference. 
Setting close laptop lid action in power-manager to "Switch off display" and "Lock screen" I get the results expected.  However, setting to "Suspend" is the same result as "Switch off display".  i.e. suspend on close lid no longer works.

Update: after reboot, close laptop lid action is:
Switch off display = works as expected
Suspend = works as expected
Lock screen = suspend

All in all, better than before.

Last edited by Gotit (2019-04-15 01:07:52)

Offline

#4 2019-04-15 01:55:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Power Manager not respecting laptop lid switch

Gotit wrote:

Lock screen = suspend

Which screen locker are you using?

Try also setting:

HandleLidSwitch=ignore

...in logind.conf. It shouldn't make a difference but maybe there is a bug somewhere.


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

#5 2019-04-16 00:12:55

Gotit
Member
Registered: 2019-01-08
Posts: 39

Re: Power Manager not respecting laptop lid switch

OK, very confusing...

Today, regardless if I'm on ac or battery I get:
Switch off display = suspend
Suspend = works as expected (suspend)
Lock screen = suspend
i.e. all settings = suspend

When I did:

HandleLidSwitch=ignore

Switch off display = works as expected
Suspend = switch off display
Lock screen = switch off display
i.e. all settings = switch off display
I think that was expected.

ToZ wrote:

Which screen locker are you using?

light-locker

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false

Is this a transitory command or "fixed"? (once issued it stays until explicit change is made)

Offline

#6 2019-04-16 01:38:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Power Manager not respecting laptop lid switch

The command should be permanent unless otherwise changed. You can view it's value in xfce4-settings-editor or by running the command:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch

...check to see if it's changing.

This is interesting indeed. Since Antegeros is based on Arch, can you use the Arch AUR? If so, you can install the latest git version of the power manager using this AUR package. There have been many changes since the official repository version and it would be interesting to see if the issue persists with the newer version.


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

#7 2019-04-16 23:45:36

Gotit
Member
Registered: 2019-01-08
Posts: 39

Re: Power Manager not respecting laptop lid switch

Toz wrote:

If so, you can install the latest git version of the power manager using this AUR package.

I installed that version, 1.6.1+164 and got the same results.  All setting = suspend on lid close.

Odd thing is, this used to work about 2 months ago.  I checked my var/cache/pacman/pkg directory to downgrade, but there's no older version there.  So, it seems it's not xfce4-power-manager per se causing the issue.

Offline

#8 2019-04-17 00:28:00

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Power Manager not respecting laptop lid switch

Gotit wrote:

Odd thing is, this used to work about 2 months ago.  I checked my var/cache/pacman/pkg directory to downgrade, but there's no older version there.  So, it seems it's not xfce4-power-manager per se causing the issue.

Then something else changed that affected the power manager. I would suggest creating a bug report and seeing if a developer will have a deeper look.


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

#9 2019-04-17 00:50:29

Gotit
Member
Registered: 2019-01-08
Posts: 39

Re: Power Manager not respecting laptop lid switch

Be happy to log a bug. 
I'm assuming xfce4-power-manager is the package to log against as that's where the behavior is manifesting itself.

Offline

#10 2019-04-17 01:33:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Power Manager not respecting laptop lid switch

Yes, log it against xfce4-power-manager.
Thanks for helping.


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

#11 2019-04-18 00:57:02

Gotit
Member
Registered: 2019-01-08
Posts: 39

Re: Power Manager not respecting laptop lid switch

Bug logged 15300

Offline

#12 2019-05-27 19:56:49

Gotit
Member
Registered: 2019-01-08
Posts: 39

Re: Power Manager not respecting laptop lid switch

Update:
Power manager 1.6.2-1 has a minor improvement.  If both "On Battery" and "Plugged In" are set to:

Switch off display

then lid action is as expected on either battery or AC.

However, any other combination results in Suspend.  I can work with this.
Adding this note to the bug report.

Offline

Board footer

Powered by FluxBB