Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-09-03 18:50:13

whorled
Member
Registered: 2023-09-03
Posts: 2

[SOLVED] No "Laptop Lid" section under Power Manager | General...

...can't blank display when closing lid.

https://docs.xfce.org/xfce/xfce4-power- … references
shows it missing...
xfpm-general.png
...yet in the text below the image is:

Laptop Lid

You can choose separate options to favor power saving (suspend), security (lock screen) or quick recovery (blank screen), depending on whether you are running on battery or plugged in.


~# xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-ac
Property "/xfce4-power-manager/lid-action-on-ac" does not exist on channel "xfce4-power-manager".

~# xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 4.18.1
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: False

Why is Has LID: False??


Dell Inspiron 5559
Debian Bookworm, upgraded today

currently having to use:

bash -c 'sleep 0.1 && xset dpms force off'

Last edited by whorled (2023-09-08 03:28:40)

Offline

#2 2023-09-08 03:27:18

whorled
Member
Registered: 2023-09-03
Posts: 2

Re: [SOLVED] No "Laptop Lid" section under Power Manager | General...

OK, appreciate all the reads on this.  After four days of ongoing research, the solution has been uncovered.  Was fiddling with the kb backlights in /sys/class/leds/dell::kbd_backlight/start_triggers, and came upon a post that referred to /etc/UPower/UPower.conf, in which the following was found:

# Do we ignore the lid state
#
# Some laptops are broken. The lid state is either inverted, or stuck
# on or off. We can't do much to fix these problems, but this is a way
# for users to make the laptop panel vanish, a state that might be used
# by a couple of user-space daemons. On Linux systems, see also
# logind.conf(5).
#
# default=false
#IgnoreLid=false
IgnoreLid=true

Default Debian Bookworm sets IgnoreLid=true, and this "is a way for users to make the laptop panel vanish"!??

The user has no clue, Debian set the lid to vanish and said nothing.  After changing this to IgnoreLid=false, then

/# systemctl restart upower.service
/# systemctl status upower.service
● upower.service - Daemon for power management
     Loaded: loaded (/lib/systemd/system/upower.service; disabled; preset: enabled)
     Active: active (running) since Thu 2023-09-07 19:34:56 PDT; 36s ago
       Docs: man:upowerd(8)
   Main PID: 8865 (upowerd)
      Tasks: 3 (limit: 18964)
     Memory: 3.5M
        CPU: 210ms
     CGroup: /system.slice/upower.service
             └─8865 /usr/libexec/upowerd
systemd[1]: Starting upower.service - Daemon for power management...
upowerd[8865]: energy 37.296000 bigger than full 25.515200
systemd[1]: Started upower.service - Daemon for power management.

/# xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 4.18.1
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: True

It was not necessary to run

# systemctl enable upower.service

to get Has LID: True

Now the Power Manager finally has the Laptop Lid section, although it is under the System tab now instead of General where it was in earlier versions:

eVXhZHX.png

Was realizing that this was not an Xfce interface problem, but something in Debian, and was about to post in the deb forum after getting the kb backlights to behave, then came upon this.  Will edit the title here to add [SOLVED]

Thanks again to all who took the time to read

Offline

#3 2023-09-08 09:50:56

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,052

Re: [SOLVED] No "Laptop Lid" section under Power Manager | General...

What a strange setting to set for a laptop. Thanks for posting back the solution.


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

Board footer

Powered by FluxBB