Lightshow
Posts: 2
Joined: Wed Jan 16, 2013 1:07 am

How can I Change VNC resolution on boot up

Sat Jan 26, 2013 2:53 am

I have set vnc to run on boot up and I can access the computer just fine but on certain programs I run I get a $DISPLAY error. I can fix this by by opening a second port with smaller geometry….
Ex:
vncserver :2 -geometry 800×480

…..is there a way to go into my boot up code for port 1 and fix it on boot up?

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: How can I Change VNC resolution on boot up

Tue Feb 05, 2013 4:32 pm

If it's not too late... and I am not 100% sure, but could you not just stop the 1st instance and restart with the correct geometry?

Code: Select all

vncserver -kill :1
vncserver :1 -geometry 800×480
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

Return to “General programming discussion”