You are not logged in.

#1 2018-05-22 04:29:14

Kewl
Wiki Maintainer
From: UK
Registered: 2018-03-09
Posts: 24

VNC wakes monitor on connect without `xset q` seeing it

I have DPMS enabled and monitor set to turn off after 2".
When I connect to my desktop with VNC (RealVnc server and viewer from the AUR), the monitor wakes up and never turns off again.
`xset q` returns 'Monitor off' even if it is on.
To fix this I am running `while true; do [[ $(xset q) =~ "Monitor is Off" ]] && xset dpms force off; sleep 60; done` but I would prefer to understand what is going on and how to properly prevent the monitor turning on, at least not without X server knowing it.

Thanks

Offline

#2 2018-05-22 06:29:44

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

Re: VNC wakes monitor on connect without `xset q` seeing it

Wild guess: "sudo fgconsole" w/ and w/o the VNC connection. I could imagine Xorg isn't the active TTY during a VNC connection.

Online

#3 2018-05-22 06:36:10

Kewl
Wiki Maintainer
From: UK
Registered: 2018-03-09
Posts: 24

Re: VNC wakes monitor on connect without `xset q` seeing it

It returns 7 in both cases, it seems to be the active TTY with or w/o the VNC connection

Offline

#4 2018-05-22 06:42:48

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

Re: VNC wakes monitor on connect without `xset q` seeing it

Then realvnc probably just breaks DPMS (either explicitly or implicitly through input events)
Do you get similar effects w/ tigervnc and does the input driver (try installing xf86-input-evdev) have any impact?

Online

#5 2018-05-22 07:23:02

Kewl
Wiki Maintainer
From: UK
Registered: 2018-03-09
Posts: 24

Re: VNC wakes monitor on connect without `xset q` seeing it

I haven’t tried with other VNC servers or drivers I wanted to avoid this step but i will try thanks

Offline

Board footer

Powered by FluxBB