Ubuntu Tutorials Copy/Paste tutorials for Ubuntu

31Oct/091

Increasing screen resolution in VNC on X

When connecting to a server without a monitor by VNC, X won't allow you to select screen resolution higher than 640x480 on next restart. This can be easily fixed:

Open /etx/X11/xorg.conf using a text editor (pico /etx/X11/xorg.conf) and add these two lines in the Monitor section of the config file:

HorizSync 31-95
VertRefresh 50-60

Now reboot X or your server and next time you connect using VNC you'll be able to select up to 1024x768.

The Monitor Section will look something like this when you have added the two lines:

Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31-95
VertRefresh 50-60
EndSection

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • email
  • LinkedIn
  • Live
  • Netvibes
  • Netvouz
  • PDF
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Bookmarks
Tagged as: , Leave a comment
Comments (1) Trackbacks (0)
  1. G’day, I’m a veteran Mythbuntu user of five or six months. So my approach has been cautious when it comes to editing files manually. I use GUI where ever I can. Try doing what I did below and confirm that it works. Your tutorial could be extended to cover VNC display resolution repair aspect as well.

    Start point – Mythbuntu 9.10 fresh install on Intel P4 single core. All works fine except when I removed the monitor and tried to use VNC to remotely manage the box from a windows box. Tried nVidia driver and but the best I could do was set a pan resolution by typing the 1024×768_60 value into the pan mode line. The nVidia screen graphic showed the setting I wanted and VNC re-sized to the same 1024×768 size. I thought I had a fix but it was unstable and gone on reboot.

    After a bit more delving I created a blank xorg.conf hoping that it would repopulate during resetting of values in the monitor resolution settings. No go.

    These two conditions existed – my xorg.conf was still empty and I couldn’t get higher than 640×480 using VNC. I eventually found the osguide guide at http://www.osguides.net/operation-systems/217-how-to-create-xorgconf-in-ubuntu-910.html

    At least it would fix some of my problem. I reconfigured the Xorg with my monitpr attached. It populated an xorg.conf.new file that I put into /etc/X11/ and restarted the gdm. Now the headless Mythbuntu box is happy to support VNC with resolutions set out in the conf file.

    It would be good to spread the word that you don’t have to manually edit configuration files or guess any refresh rates or sync rates etc. I reckon the risk of breaking stuff is reduced a bit. Anyway hope this message is some use and maybe this will be my first payback to the open source world.


Leave a comment


Spam Protection by WP-SpamFree Plugin

No trackbacks yet.