On 6/4/2011 9:02 AM, Travis Lawrie wrote:
> I want to add at least two more resolutions, "2560x1600" for my main pc
> monitor, and "1024x600" for my netbook.
> 
> I am able to add one resolution in addition to the ones shown above by
> starting vncserver like "vncserver -geometry 1024x600" but then I dont get
> the other resolution of "2560x1600" as an option.
> 
> Is there a way I can add multiple available resolutions?

Not without compiling TigerVNC from source (after patching it).  In
unix/xserver/hw/vnc/xvnc.cc you'll find the vncRandRGetInfo function.
It has two arrays giving the available resolutions:

  const int widths[] =  { 1920, 1920, 1600, 1680, 1400, 1360, 1280,
1280, 1280, 1280, 1024, 800, 640 };
  const int heights[] = { 1200, 1080, 1200, 1050, 1050,  768, 1024,
960,  800,  720,  768, 600, 480 };

Just add your resolutions to the list:

  const int widths[] =  { 2560, 1920, 1920, 1600, 1680, 1400, 1360,
1280, 1280, 1280, 1280, 1024, 1024, 800, 640 };
  const int heights[] = { 1600, 1200, 1080, 1200, 1050, 1050,  768,
1024,  960,  800,  720,  768,  600, 600, 480 };

And then compile & install TigerVNC.

-- 
Chris Madsen                                           [email protected]
  --------------------  http://www.cjmweb.net  --------------------


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Tigervnc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-users

Reply via email to