You are not logged in.

#1 2021-08-04 16:53:41

KianoJajino
Member
Registered: 2021-08-04
Posts: 6

Monitor won't turn off after time but blanking with chromium open

Hello,

I'm on gnome and I set screen turn off to 5 minutes. But sometimes screens are just black (not off). I figured out that this happen when a chromium web browser (I use Edge-dev) is open.

When I try xset dpms force off it shutdown then directly power on.

xset q output :

xset q
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000002
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    on     02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  500    repeat rate:  33
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  built-ins
DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Enabled
  Monitor is On

I already read the wiki about xset and some thread but didn't find an answer...

Offline

#2 2021-08-04 17:34:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: Monitor won't turn off after time but blanking with chromium open

Sanity check: is this an X11 session?

echo $XDG_SESSION_TYPE

Offline

#3 2021-08-04 17:36:19

KianoJajino
Member
Registered: 2021-08-04
Posts: 6

Re: Monitor won't turn off after time but blanking with chromium open

Yes it is

echo $XDG_SESSION_TYPE
x11

Offline

#4 2021-08-04 17:42:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: Monitor won't turn off after time but blanking with chromium open

It would seem that gnome controls the actual timeouts - if you pkill gnome-power-manager, can you then dpms force off?

Offline

#5 2021-08-04 17:57:30

KianoJajino
Member
Registered: 2021-08-04
Posts: 6

Re: Monitor won't turn off after time but blanking with chromium open

Then the command work but the monitor wont sleep after X minutes (5 in my setting)

Offline

#6 2021-08-04 18:20:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: Monitor won't turn off after time but blanking with chromium open

No, you would have to configure that

xset dpms 300 300 300

(You can also use an xorg.conf.d configlet for this but gnome will likely nuke the value when it starts and you probably want to figure why gnome-power-manager doesn't sleep the screen)

Offline

#7 2021-08-04 23:03:44

KianoJajino
Member
Registered: 2021-08-04
Posts: 6

Re: Monitor won't turn off after time but blanking with chromium open

So using the power settings from Gnome is cause this issues ? Why only with a Chromium browser ?
What could it be ? gnome-power-manager not updating xset ?

Last edited by KianoJajino (2021-08-05 04:46:20)

Offline

#8 2021-08-05 04:37:48

KianoJajino
Member
Registered: 2021-08-04
Posts: 6

Re: Monitor won't turn off after time but blanking with chromium open

seth wrote:

It would seem that gnome controls the actual timeouts - if you pkill gnome-power-manager, can you then dpms force off?

I just checked but gnome-power-manager isn't installed in my system

Also I've create a config file like the wiki said

ection "Monitor"
    Identifier "LVDS0"
    Option "DPMS" "true"
EndSection

Section "ServerFlags"
    Option "StandbyTime" "0"
    Option "SuspendTime" "0"
    Option "OffTime" "0"
    Option "BlankTime" "0"
EndSection

Section "ServerLayout"
    Identifier "ServerLayout0"
EndSection

Last edited by KianoJajino (2021-08-05 04:44:32)

Offline

#9 2021-08-05 08:03:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: Monitor won't turn off after time but blanking with chromium open

Then the command work

?
Though "pacman -F gnome-power-manager" is indeed void. I guess they moved the feature to mutter/systemd.

I hardly believe gnome uses xset and the config sets the DPMS timeouts to 0 (what means "never") - a state that existed before (likely because of gnome), which is why I assumed gnome would do its own little thing here.
If you explicitly configured this *before*, that assumption might have been wrong. In any event: remove that configlet.

So using the power settings from Gnome is cause this issues ? Why only with a Chromium browser ?

Chromium inhibiting the gnome power management w/ the wrong parameter or a bug on either side or …
The important part is that this is where you have to look for the bug, not the DPMS control in the X11 server.

Offline

#10 2021-08-06 17:05:35

KianoJajino
Member
Registered: 2021-08-04
Posts: 6

Re: Monitor won't turn off after time but blanking with chromium open

I don't know why, sometimes everything work fine (screen sleep ans power off) with chromium open and sometimes no. I didn't change anything tho

Offline

Board footer

Powered by FluxBB