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

General discussion • VNC to Headless Pi, Screen Showing, but keyboard and mouse is not working

$
0
0
I have been looking into solution to set-up VNC for my headless Pi, I found many users suggested to do `sudo raspi-config` to change the VNC resolution, as Pi rely on the HDMI resolution setting. however this solution is not working for me, until I found an old post to edit /etc/rc.local file by adding below

Code:

#Start RealVNC in virtual mode with resolution 1400x900 pxvncserver -randr=1400x900
Original post: https://forums.raspberrypi.com/viewtopic.php?t=245158

I could now login to Real VNC to the GUI on a headless Pi5, however all keyboard and mouse is not working. I had also do some research before where ‘Could not display properly’ was due to the desktop interface not compatible to VNC (I.e: Wayland). So I tried to choose login session to GNOME, GNOME CLASSIC, GNOME XORG, but all of them give me the UI, which solves the black screen issue, but it’s not functioning with the keyboard and mouse.

I tried to use keyboard and mouse my my VNC viewer end, and also the mouse and keyboard directly connecting to the Pi, both can move the cursor, but cannot click; keyboard wise cannot do any short cut that have been set-up.

Will there be any additional settings I need to do?

OS: Debian Bookworm 12
Desktop: GNOME Desktop with X11
VNC Client: RealVNC
SSH enabled
Firewall: disabled

Statistics: Posted by Mandymdc — Sun Jul 28, 2024 3:22 pm — Replies 0 — Views 12



Viewing all articles
Browse latest Browse all 4944

Trending Articles