You are not logged in.

#1 2015-12-29 07:15:10

DoublePlusAwks
Member
Registered: 2015-12-29
Posts: 3

[SOLVED] XFCE 4.12 Not Suspending on Lid Close

I have just installed Arch and XFCE on a Thinkpad T430, but the laptop doesn't properly suspend when the lid is closed. In XFCE4 Power Manager "When laptop lid is closed" is set to Suspend for both On Battery and Plugged In. I have edited

/etc/systemd/logind.conf

to read as follows:

[Login]
HandleLidSwitch=ignore

and have also tried deleting

~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml

but suspend still doesn't work.
Additionally when I try to pkill xfce4-power-manager and run

xfce4-power-manager --no-daemon --debug

(as recommended here: https://bbs.archlinux.org/viewtopic.php?id=196036) I receive the response

Xfce Power Manager: Another power manager is already running

Any advice would be greatly appreciated.

Last edited by DoublePlusAwks (2016-01-03 05:22:54)

Offline

#2 2015-12-29 16:08:53

toz
Member
Registered: 2011-10-28
Posts: 497

Re: [SOLVED] XFCE 4.12 Not Suspending on Lid Close

DoublePlusAwks wrote:

Additionally when I try to pkill xfce4-power-manager and run

xfce4-power-manager --no-daemon --debug

(as recommended here: https://bbs.archlinux.org/viewtopic.php?id=196036) I receive the response

Xfce Power Manager: Another power manager is already running

Try this instead: Stop the xfce4-power-manager process first

xfce4-power-manager --quit

...then run it in debug mode:

xfce4-power-manager --no-daemon --debug

You can also try reverting the change you made to /etc/systemd/logind.conf, quitting xfce4-power-manager, and then closing the lid to see if its an issue with the xfce4-power-manager or a more systemic issue.

Also look in your journal for information about what might be going wrong.

Offline

#3 2015-12-29 20:55:05

DoublePlusAwks
Member
Registered: 2015-12-29
Posts: 3

Re: [SOLVED] XFCE 4.12 Not Suspending on Lid Close

I ran

xfce4-power-manager --no-daemon --debug

the debug log didn't seem to detect the lid closing at all. I also tried reverting my settings in logind.conf and rebooting, and xfce4-power-manager also didn't seem to detect the lid closing.

Offline

#4 2015-12-29 21:51:44

toz
Member
Registered: 2011-10-28
Posts: 497

Re: [SOLVED] XFCE 4.12 Not Suspending on Lid Close

Remove xfce4-power-manager from the equation. Are the lid events detected in your journal when xfce4-power-manager isn't running?

Offline

#5 2016-01-03 05:22:05

DoublePlusAwks
Member
Registered: 2015-12-29
Posts: 3

Re: [SOLVED] XFCE 4.12 Not Suspending on Lid Close

Sorry for the delay. After doing what you suggested I noticed that xfce4-power-manager didn't detect te lid closing at all, however I managed to get suspend on lid close to work by circumventing xfce4-power-manager all together, and just editing my logind.conf to have systemd handle everything. Not ideal, but functional.

Offline

#6 2017-02-10 00:43:51

Martinsos
Member
From: Croatia
Registered: 2015-08-27
Posts: 61

Re: [SOLVED] XFCE 4.12 Not Suspending on Lid Close

I believe I have found a better workaround (from discussion here, comment #70).
Problem is that xfce4-power-manager (xf4pm) is letting logind handle the lid close, and that happens because the logind-handle-lid-switch field in xf4pm settings is by default set to true (no idea why). To make xf4pm have control over lid close, we have to set that field to false: xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false. That fixed it for me!

Offline

#7 2017-02-10 12:01:45

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,429
Website

Re: [SOLVED] XFCE 4.12 Not Suspending on Lid Close

Thanks for sharing. It doesn't look like OP is still active on the forums, and this is a rather old thread, so I'm going to go ahead and lock it now.

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB