I set up a new Pi5 at a remote location and plugged it into an old DVI monitor + kbd + mouse in case anyone needs watch the boot process. Setup is default Wayland + WayVNC. Now that I'm away, RealVNC Viewer (on Windows 10) only allows me to connect to the console (1280x1024 attached monitor) rather than a virtual desktop of my choosing (e.g. 1920x1080 to match my local monitor). Is this possible without removing the monitor on the Pi (e.g. going headless)? If so, how?
I've tried:
- In
/boot/firmware/config.txt
, setdisplay_auto_detect=0
-> this just gives me a blank screen when connecting VNC - In
~/.config/wayfire.ini
, addedoutput:headless-1
section withheadless_width
|headless_height
values - In
~/.config/wayfire.ini
, addedoutput:headless-2
section with mode = 1920x1080 Tried restarting wayvnc specifying --output=headless-1|2 but first it complained thatWAYLAND_DISPLAY
was not set in the environment - So I tried setting the variable with
export WAYLAND_DISPLAY=headless-1
(and also headless=2) but then I get...
ERROR: ../src/main.c: 529: Failed to connect to WAYLAND_DISPLAY="headless-1"
ERROR: ../src/main.c: 530: Ensure wayland is running with that display name
ERROR: ../src/main.c: 1876: Failed to initialise wayland
- I noticed at some point (maybe after
display_auto_detect=0
was set)raspi-config
gave me the option to select VNC resolution, but once connected, I was still stuck at 1280x1024
I'm at a loss. What do I need to do to have BOTH a working display on the Pi-attached monitor AND a higher resolution display for VNC connections?
In case it matters, wlr-randr returns:
HDMI-A-2 "Dell Inc. DELL 1704FPT Y429954JBEU6 (HDMI-A-2)"
Physical size: 340x270 mm
Enabled: yes
Modes:
720x400 px, 70.082001 Hz
640x480 px, 59.939999 Hz
640x480 px, 75.000000 Hz
800x600 px, 60.317001 Hz
800x600 px, 75.000000 Hz
1024x768 px, 60.004002 Hz
1024x768 px, 75.028999 Hz
1152x864 px, 75.000000 Hz
1280x1024 px, 75.025002 Hz
1280x1024 px, 60.020000 Hz (preferred, current)
Position: 0,0
Transform: normal
Scale: 1.000000
I'm at the point where I'm ready to try a different VNC client or just switch back to X11, but I'd rather get familiar with Wayland.