Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-05-29 01:37:43

tcr
Member
Registered: 2022-05-01
Posts: 11

Display Auto Switch-off Stops Working

Hi,
When I first boot up, the display switches off after x minutes as designated, but after a bit of time, less than an hour, it stops automatically turning off. When I close out of all windows, the display starts turning off again. When I reopen the windows, it at first still turns off, then after a bit stops working again. All options including "Black after", "Put to sleep after", and "Switch off after" stop working. It is always able to reduce brightness after x seconds of inactivity.  This started only recently, like a week ago. Is there a solution to this issue?
Thanks.

Offline

#2 2022-05-29 01:56:35

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

Re: Display Auto Switch-off Stops Working

Which distro, version of Xfce and xfce4-power-manager are you running?

Is anything inhibiting power manager when you run into the issue? The following command will show you if something is:

dbus-send --print-reply --dest=org.freedesktop.PowerManagement /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.GetInhibitors

Otherwise, post back the results of:

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

...and your ~/.xsession-errors file (if you have one) around the time of the problem.

You can also try running xfce4-power-manager in debug mode:

xfce4-power-manager -q && xfce4-power-manager --no-daemon --debug

...and post back the output after you notice the issue.


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 2022-05-29 13:13:27

tcr
Member
Registered: 2022-05-01
Posts: 11

Re: Display Auto Switch-off Stops Working

Arcolinux, Xfce 4.16, xfce4-power-manager 4.16.0-3, upower 0.99.18-1

$ dbus-send --print-reply --dest=org.freedesktop.PowerManagement /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.GetInhibitors
method return time=1653829428.098948 sender=:1.357 -> destination=:1.374 serial=58 reply_serial=2
   array [
   ]
$ xfconf-query -c xfce4-power-manager -lv
/xfce4-power-manager/battery-button-action              0
/xfce4-power-manager/blank-on-ac                        0
/xfce4-power-manager/blank-on-battery                   0
/xfce4-power-manager/brightness-level-on-ac             50
/xfce4-power-manager/brightness-level-on-battery        50
/xfce4-power-manager/brightness-on-ac                   55
/xfce4-power-manager/brightness-on-battery              30
/xfce4-power-manager/brightness-switch                  1
/xfce4-power-manager/brightness-switch-restore-on-exit  1
/xfce4-power-manager/critical-power-action              3
/xfce4-power-manager/dpms-enabled                       true
/xfce4-power-manager/dpms-on-ac-off                     1
/xfce4-power-manager/dpms-on-ac-sleep                   0
/xfce4-power-manager/dpms-on-battery-off                5
/xfce4-power-manager/dpms-on-battery-sleep              0
/xfce4-power-manager/general-notification               true
/xfce4-power-manager/handle-brightness-keys             false
/xfce4-power-manager/hibernate-button-action            2
/xfce4-power-manager/inactivity-on-ac                   14
/xfce4-power-manager/inactivity-on-battery              15
/xfce4-power-manager/inactivity-sleep-mode-on-ac        1
/xfce4-power-manager/inactivity-sleep-mode-on-battery   1
/xfce4-power-manager/lid-action-on-ac                   1
/xfce4-power-manager/lid-action-on-battery              1
/xfce4-power-manager/lock-screen-suspend-hibernate      true
/xfce4-power-manager/logind-handle-lid-switch           true
/xfce4-power-manager/power-button-action                1
/xfce4-power-manager/presentation-mode                  false
/xfce4-power-manager/show-panel-label                   0
/xfce4-power-manager/show-presentation-indicator        false
/xfce4-power-manager/show-tray-icon                     true
/xfce4-power-manager/sleep-button-action                1

Nothing seems to be inhibiting the power manager. I set the display to switch off after 1 minute and dim after 55 secs to test it. I don't get anything at the time switch-off should be triggered.

TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-manager.c:492] xfpm_manager_alarm_timeout_cb(): Alarm inactivity timeout id 2
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:469] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-manager.c:492] xfpm_manager_alarm_timeout_cb(): Alarm inactivity timeout id 1
TRACE[xfpm-backlight.c:133] xfpm_backlight_dim_brightness(): Current brightness level before dimming : 751, new 468
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:469] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-backlight.c:210] xfpm_backlight_reset_cb(): Alarm reset, setting level to 751
TRACE[../panel-plugins/power-manager-plugin/power-manager-button.c:469] power_manager_button_update_device_icon_and_details(): entering for /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic
TRACE[xfpm-power-common.c:226] get_device_icon_name(): icon_suffix -symbolic, icon_base_length 20, upower_icon battery-full-charged-symbolic

I don't see any xsession errors at the time of the problem.

Offline

#4 2022-05-29 13:41:39

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

Re: Display Auto Switch-off Stops Working

When I close out of all windows, the display starts turning off again.

Seems to indicate that something is inhibiting it, but when you ran the command to check inhibitors, none were listed. Is it one specific window/application that triggers this? Maybe try shutting down the windows one at a time and testing, start with the browser.

TRACE[xfpm-backlight.c:133] xfpm_backlight_dim_brightness(): Current brightness level before dimming : 751, new 468
.....
TRACE[xfpm-backlight.c:210] xfpm_backlight_reset_cb(): Alarm reset, setting level to 751

Unfortunately, these aren't time stamped so its hard to tell how far apart these were issued, but it does imply that an attempt to dim the screen happened. What kind of video card and driver are you using?

Is this a laptop? Desktop? Are you using multiple monitors?


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 2022-05-29 19:17:58

tcr
Member
Registered: 2022-05-01
Posts: 11

Re: Display Auto Switch-off Stops Working

It does seem like the browser is inhibiting the power manager, more specifically only Chromium and other Chromium-based browsers like Brave and Vivaldi, but not Firefox.

This is a laptop, single display, Mesa Intel(R) HD Graphics 5500 (BDW GT2), Intel iHD driver for Intel(R) Gen Graphics - 22.4.2

Offline

#6 2022-05-29 23:07:15

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

Re: Display Auto Switch-off Stops Working

tcr wrote:

It does seem like the browser is inhibiting the power manager, more specifically only Chromium and other Chromium-based browsers like Brave and Vivaldi, but not Firefox.

Maybe this?

Interesting that the power manager dbus channel doesn't show an inhibitor, though. I wonder if chrome is doing something outside of the power manager.


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 2022-05-30 04:07:44

tcr
Member
Registered: 2022-05-01
Posts: 11

Re: Display Auto Switch-off Stops Working

I figured out the problem only occurs after a video is played in the browser. I tested this after you asked what video card I was using. It does seem the problem only starts after I play a video and persists until I exit out of the browser entirely, just closing the tab with the video doesn't work. I turned off hardware acceleration to see if that would make any difference, but no success. I downgraded my chromium package, currently version 102, to version 101, and found the problem doesn't occur. The time when 101 was upgraded to 102 matches when I recall the issue starting.

Offline

#8 2022-05-30 09:59:31

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

Re: Display Auto Switch-off Stops Working

I would create a bug report against chromium - if one doesn't already exist.


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 2022-05-30 16:57:12

tcr
Member
Registered: 2022-05-01
Posts: 11

Re: Display Auto Switch-off Stops Working

I also tested it on GNOME and KDE and neither are affected by this bug.

Offline

#10 2022-05-30 23:42:02

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

Re: Display Auto Switch-off Stops Working


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 2022-06-01 13:12:07

tcr
Member
Registered: 2022-05-01
Posts: 11

Re: Display Auto Switch-off Stops Working

The issue seems to only occur when the video is allowed to play audio. If a video is started in a muted state, the screen is still able to auto blank. But also, if it is just audio that is played, the screen also retains it's ability to auto blank.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 594.62 KiB (Peak: 611.46 KiB) ]