wayvnc icon indicating copy to clipboard operation
wayvnc copied to clipboard

can't connect to wayvnc when dpms off

Open langyxxl opened this issue 3 years ago • 1 comments

My laptop sway's idle configuration: exec swayidle -w
timeout 300 'swaylock -f -c 000000'
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
before-sleep 'swaylock -f -c 000000'

  1. wait 600s or run swaymsg "output * dpms off"' from ssh
  2. start wayvnc
  3. use another pc vnc-client to connect to laptop's wayvnc

vnc-client can't connect to wayvnc.

langyxxl avatar Oct 27 '21 03:10 langyxxl

This has not been implemented yet. Perhaps there ought to be a placeholder image or black screen when dpms is off.

any1 avatar Oct 27 '21 17:10 any1

In my experience as long as I have swayidle set up to set "DPMS on" on resume, when I connect to an idle system my vnc client connects successfully and shows a weird-looking grey screen, but it soon wakes up and shows my swaylock screen.

I agree that manually setting "DPMS off" with a client connected to wayvnc acts in an unexpected way: the client display freezes (not even the wayvnc-rendered mouse cursor updates) even though inputs are still sent through to sway.

I'd actually vote that wayvnc should continue to send window updates to the client even if DPMS has blanked the screen... But if that's not possible a black screen might be better than a frozen one.

lack avatar Sep 28 '22 10:09 lack