Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-12-20 10:19:09

Manthano
Member
Registered: 2024-12-20
Posts: 3
LinuxFirefox 128.0

Laptop power management and lid switch options

What are all the places where power management and lid switch options can be controlled? It seems almost every laptop behaves differently with same settings, so I'm asking this as a general "these are the places"-list, but in particular I have this ThinkPad X1 Carbon 3rd Gen, that I can't get to respect not logging out when closing lid on AC power. Everything else works as expected.

I know that settings can be changed from:

Xfce Settings GUI

xfconf (xfconf-query)

UPower.conf


After failing with these configs, I've tried also following directly with xfconf-query with no effect:

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

xfconf-query -c xfce4-power-manager -n -t 'bool' -p /xfce4-power-manager/logind-handle-lid-switch -s false

Some said compositor could cause lid switch problems, so:

xfconf-query -c xfwm4 -p /general/use_compositing -s false

But still Xfce logs me out if I close the lid while on AC power.

My Xfce version is 4.18.

Offline

#2 2024-12-20 11:24:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,652
LinuxFirefox 133.0

Re: Laptop power management and lid switch options

If you set:

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

...then the lid settings in /etc/systemd/logind.conf (on a systemd system) will also be processed.

But still Xfce logs me out if I close the lid while on AC power.

Can we see the output of the following?

xfce4-power-manager --dump
xfconf-query -c xfce4-power-manager -lv

In Settings > Power Manager > System tab, there are options on what to do when the laptop lid is closed and a toggle at the top of that dialog for "on battery" and "plugged in" - make sure you change the lid action for both scenarios.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-12-20 11:52:27

Manthano
Member
Registered: 2024-12-20
Posts: 3
LinuxFirefox 128.0

Re: Laptop power management and lid switch options

Amazing. This is one of these moments...I swear I selected "Switch off display" in laptop lid closed menu in "System"-tab, but it was "Lock screen". Thank you, if you had not pointed out that most obvious settings place, I wouldn't have checked it again, because this is the first "set and forget"- setting I set in fresh install. Mea culpa!

But, this was a bonus solution, thank you again, I would still like to know how many different modifiers there are for power management, and furthermore, why do we have so many different places to set these things? And is there some priority for example UPower settings and xfconf?

Offline

#4 2024-12-20 12:15:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,652
LinuxFirefox 133.0

Re: Laptop power management and lid switch options

The xfce4-power-manager settings are stored in xfconf - these are the main settings. By default, this should be the only ones you need to change.

However, there is an option to pass on control to systemd through the command I mentioned above. Upowerd configurations control upower which xfce4-power-manager uses so those could be relevant (Xfce can use or overwrite those settings). You can also manually script certain power management configurations (e.g. xset for display management, screensaver).


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2024-12-23 07:17:47

Isabellasofia
Member
Registered: 2024-12-19
Posts: 2
Windows 10Microsoft Edge 131.0

Re: Laptop power management and lid switch options

This helped me too!!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 541.68 KiB (Peak: 542.96 KiB) ]