You are not logged in.
Pages: 1
Topic closed
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
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
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
Remove xfce4-power-manager from the equation. Are the lid events detected in your journal when xfce4-power-manager isn't running?
Offline
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
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
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
Pages: 1
Topic closed