Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4975

Troubleshooting • VNC won't connect unless lightdm has been stopped

$
0
0
I'm using a Raspberry Pi 5 with the small (640x480) LCD display. Starting with a fresh install of Raspbian-64, I can easily connect to the desktop using RealVNC. The screen resolution is too small to do anything useful so I tried the following to increase the virtual display:

Code:

sudo systemctl stop lightdmvncserver-virtual :1 -geometry 1920x1080
Now if I connect with RealVNC, I see the full 1920x128 desktop. The physical screen is blank (actually grey) but that's ok because I only need it as a backup.

The problem is, I can't find a way to go back to what I had originally. I've tried just about everything but either the VNC client window closes immediately after trying to connect, or it says it can't connect to the desktop. The only thing I can do is stop lightdm and connect using port 1. I can't connect using port 5900.

The log file shows some errors e.g.:

Code:

Jan 10 23:42:30 RaspberryPi-7 systemd[1]: Started wayvnc.service - VNC Server.Jan 10 23:42:45 RaspberryPi-7 sh[7494]: Segmentation faultJan 10 23:42:45 RaspberryPi-7 systemd[1]: wayvnc.service: Main process exited, code=exited, status=139/n/aJan 10 23:42:45 RaspberryPi-7 systemd[1]: wayvnc.service: Failed with result 'exit-code'.
Last time this happened, I ended up reinstalling Raspbian which immediately fixed the problem. Is there an easier way?

Statistics: Posted by Rob190 — Sat Jan 11, 2025 12:07 am



Viewing all articles
Browse latest Browse all 4975

Trending Articles