Raspberry pi touch screen large screen mode

By | October 11, 2024

I have a kiosk product with a 800 x 400 touch screen that I want to use a 1080p headless display in VNC for code debugging.

The display on vnc will default to the touch screen resolution which is very low. During dev you will want to use these three commands to set it higher. Since xrandr needs a screen you will need to do this in the UI.

Note: These changes will reset when you reboot. Do not make these permanent. I tried doing that and the display went wonky and was impossible to change back. I had to start over with a new Raspbian image.

xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode HDMI-1 "1920x1080_60.00"
xrandr --output HDMI-1 --mode "1920x1080_60.00"