Question

Connecting to Ubuntu Linux using VNC only gives 640x480 resolution

Asked by: gtomsho

I have installed Ubuntu Linux and when I run it connected to my monitor, I can choose several resolutions up to 1024x768.  However, if I disconnect the monitor and connect using VNC, the only resolution is 640x480.  I have even edited the xorg.conf file to eliminate all resolution choices except 1024x768 but no difference.  Any ideas?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-02-24 at 11:39:13ID21750722
Tags

ubuntu

,

vnc

Topic

X-Windows Window Manager

Participating Experts
3
Points
250
Comments
19

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. VNC
    Quick question about VNC Viewer. When I connect to a VNC server the background on both client and server goes blank. After I disconnect from the session- the client's(server) computer still remains with the blank background. The only way I can make it go away is to reboot the...
  2. Connecting with VNC to Ubuntu
    Hi, experts, usually (in Fedora), I tunnel to a Linux machine with ssh, start vncserver, and then connect to it with vncserver viewer. On my new Ubuntu, however, I get the output below, and when I connect I see clean blue screen but no items on it, and no right click helps ...
  3. How to access VNC Server In Ubuntu Hardy Heron through…
    How to access VNC Server In Ubuntu Hardy Heron through terminal I think i change some thing by mistake
  4. Ubuntu remote desktop sharing, tight VNC
    Hi, I have a small problem: I use tight VNC on a Windows box to access a Kubuntu box at work through a VPN. The Linux box is sharing remote desktop sharing so tight VNC connects to ip:0. If I do the following it works: 1. Connect VPN 2. Connect through tight VNC. 3. Disconne...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: GnsPosted on 2006-03-10 at 08:47:43ID: 16156203

xorg.conf has nothing to do with vnc! What has to do whict vnc is the Xvnc server (run on the Ubuntu side), which can (depending on parameters) limit the _virtual_display to a certain size, and the client (on some other host) which theoretically can manipulate what size viewport you have (few do though, most implementations aim at what UltraVNC does so nicely... scaling:-).

Unfortunately I've go limited experience with Ubuntu (I'm planning to start play with it the next few weeks... VMWare and PHB willing:-), but I imagine you need start looking at how Xvnc get spawned off (started)... Likely in /etc/init.d/vncserver or something similar... Usually the call is not directly to Xvnc, but rather to the vncserver conveniance script.

-- Glenn

 

by: hfernPosted on 2006-03-27 at 06:42:58ID: 16300521

Actually, Ubuntu makes use of vino. Vino is a vncserver like program, but integrated in the gnome environment. This is different then vncserver in other Unix/Linux environments where additional screens are defined by vncserver. With vino it works more like on a single user machine (eg windows), where a remote user takes over the console desktop. BTW, there is amazingly little information on vino available..

So here is my guess: vino may take the screen resolution from the X-server on the console. If you disconnect the monitor then the X-server will probably be unable to determine the screen resolution and fall back to a save default of 640x480. Have you tried connecting to the system with the monitor still in place? Do you then have a higher resolution?

 

by: GnsPosted on 2006-03-27 at 08:13:23ID: 16301447

... Perhaps:-)... My testing (on Breezy Badger, no less) isn't concluded yet, but you might start by editing /etc/vnc.conf and set "$geometry = 1024x768", then restart things and see what gives.
That file hold the defaults for the vnc server, so might be overruled by the users settings in $HOME/.vnc ... Or vinos settings (that probably reside in gconfd...).

But the thing is: vino only operates on a "per session" basis, wont start if not within a session AFAICS, so when you quit the session, the vino-server dies... And after a fresh boot, there simply is no vino server running before you've logged in... At which time it "defaults" to the resolution you happen to have on your screen (so that part is true;)... So for your theory to work hfern, gtomsho would need log in blind (without a screen attached)... Assuming the graphics adapter "wants to play" in such a setup).

So I'm wondering if gtomsho hasn't perhaps installed another vnc package, which perhaps honours the defaults in /etc/vnc.conf or $HOME/.vnc/*, and thus sort of "confusing the matter" just slightly:-). After all, it's very easy to add any of a whole slew of different servers (3.3.7,4.x,tight, krfb etc) via synaptic.

-- Glenn

 

by: hfernPosted on 2006-03-27 at 08:48:31ID: 16301863

> you might start by editing /etc/vnc.conf and set "$geometry = 1024x768", then restart things and see what gives.
I actually tried something like this, also on Breezy: i have my screen connected at 1024x768 and changed $geometry to "640x480 in vnc.conf... No change..

> So for your theory to work hfern, gtomsho would need log in blind (without a screen attached)...
I actually logged out and guess what: there is no way how you can log into the system over vnc using vino. You indeed need to log in first on thje console and only then will vino let yousetup a connection Again, this is different then vncserver which defines a virtual X-terminal for you to log into.
I tried the blind login with my screen disconnected: on my system it still provides a 1024x768 screen over vino. This could be hardware related though, like Gns mentioned: 'Assuming the graphics adapter "wants to play" in such a setup'.

I'd be interested to learn what gtomsho's testing with the monitor stilll in place will yield.
Also, if gtomso reallly wants to leave the system without screen than this vino desktop sharing may not be the best solution. I would recommend a vncserver setup. This will give you all the flexibility to access the system remotely. Alternatively, connecting with an X-Terminal software package may be on option.

 

by: GnsPosted on 2006-03-27 at 09:12:37ID: 16302117

>> you might start by editing /etc/vnc.conf and set "$geometry = 1024x768", then restart things and see what gives.
> I actually tried something like this, also on Breezy: i have my screen connected at 1024x768 and changed $geometry to "640x480 in vnc.conf... No change..
As expected, with vino;)

>> So for your theory to work hfern, gtomsho would need log in blind (without a screen attached)...
> I actually logged out and guess what: there is no way how you can log into the system over vnc using vino. You indeed need to log in first on thje console and only
> then will vino let yousetup a connection Again, this is different then vncserver which defines a virtual X-terminal for you to log into.
Yep, as stated:).

> I tried the blind login with my screen disconnected: on my system it still provides a 1024x768 screen over vino.
As expected... If the gfx adaper will work headless, it'll nog magically "downsize"... Unless it's a terminally stupid intel chipset gfx (I've not tested this, but those suckers poll the bios for available modes and might ... get confused...).

> This could be hardware related though, like Gns mentioned: 'Assuming the graphics adapter "wants to play" in such a setup'.
Perhaps, yes. But more likely SW, as a working hypothesis:-).

> I'd be interested to learn what gtomsho's testing with the monitor stilll in place will yield.
> Also, if gtomso reallly wants to leave the system without screen than this vino desktop sharing may not be the best solution. I would recommend a vncserver
> setup. This will give you all the flexibility to access the system remotely. Alternatively, connecting with an X-Terminal software package may be on option.

Yes, quite. Both on the recommendation to give us more info, and the recommendation to work with a real vnc (note: doesn't have to be RealVNC(tm):-) server setup... Which Ubuntu will gladly support.
You could even mix them, since the default setyup for any vncserver package is to provide a virtual screen at :1 (actually port 5901) while vino defaults to :0 (teh actual desktop.... on port 5900). "Best of both worlds":-).

As to determining what is up ... One has to check the .vnc directory (for any stray settings there) for the user Xvnc is running as, as well as the /etc/vnc.conf file...
Pretty much up to you now gtomsho, which way we go with this... Please work with us!

-- Glenn

 

by: gheistPosted on 2006-04-22 at 01:26:36ID: 16513994

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept hfern http:#16300521

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

gheist
EE Cleanup Volunteer

 

by: GnsPosted on 2006-04-23 at 16:20:38ID: 16521099

Beg to differ. Although I wasn't up to speed at the begining of the Q, I certainly contribute to the possible solutions. This should be a split, if anything.

-- Glenn

 

by: hfernPosted on 2006-04-23 at 18:37:06ID: 16521563

I think my initial comment gives the cause for the behavior seen by gtomsho. My second comment gives the solution to the problem, i.e. use vncserver for a setup like this or use an X-Terminal connection.

>I certainly contribute to the possible solutions.
What exactly was your contribution, Gns?
Your initial comment was not correct. You did not know that vino provides vnc type of services for Ubuntu.
You've given a few suggestions on which I followed up, but none of them yielded anything.

You have challlenged me on my solution, but you've not been able to proof that there is anything else going on then what is stated in the question and for which I provided the cause and the solution.

 

by: GnsPosted on 2006-04-24 at 02:01:26ID: 16523124

Read my second comment and note that it precedes your second comment. I'm not saying you shouldn't have any credit, nor that you shouldn't be credited with the "answer" as such, only that you are not the sole contributor to the probable solution.
You didn't exactly nail this one either, but we did perhaps do so together.

-- Glenn

 

by: gheistPosted on 2006-04-24 at 05:20:38ID: 16524319

I will verify both solutions. No need to fight yet.

 

by: hfernPosted on 2006-04-24 at 05:35:25ID: 16524406

> I will verify both solutions
Again, what solution of yours are you going to verify? You have not represented any solution.

In your second comment, you've brought up the idea that another package might have been installed. There is nothing to prove that idea. It does not explain the behavior and you did not present it as a solution for the problem. I did that in my second comment.

 

by: gheistPosted on 2006-04-24 at 05:49:14ID: 16524495

1) Yours - vino & desk resolutions
2) Gns's - maybe it runs just Xvnc from gdm as needed
3) Both can be applied,
...
99) Asker comes back and says which one worked.

 

by: GnsPosted on 2006-04-24 at 06:53:01ID: 16524996

Exactly my point Andrew... As I see it, there is no "true solution" as of yet, and there certainly cannot be one without point 99.
Hfern, your comments are valuable, knowledgeable and probably useful. But do they constitute a true answer? Using "definite" language doesn't mean much in this (I tend to be ... cautious(sp?)... in my formulations... Doesn't mean I don't think I'm right, just that I'm not adamant:-):-). Your second comment corroborates that this is probably not vino at all (which concurs with my testing), but rather Xvnc some way or other... And then we're probably not "detailed enough", any one of us (in which case it might be right to just delete the Q).
My tests on a machine with intel chipset gfx has not revealed the behaviour, but that just shows that that particular machine doesn't exhibit this (with vino).

The most relevant (common to us all) comment is the plea for interraction from gtomsho.
And I'm certainly not out to "fight", nor to "hog a Q"... I'm just announcing a difference of opinion as to the disposition of the Q.

-- Glenn

 

by: hfernPosted on 2006-04-24 at 07:21:51ID: 16525295

Let's just see what gheist or gstomsho will come up with.

 

by: GnsPosted on 2006-04-24 at 09:59:02ID: 16526830

Good suggestion. Who knows, it might still be HW.... Personally I hate these questions where one never reaches an "endpoint", regardless if I'm right or not.... (I've seen some things turn around on my reasoning, once the asker has taken the time to actually participate, more than once, to say the least:-).
We'll see, hopefully.

Cheers
-- Glenn

 

by: gheistPosted on 2006-04-24 at 11:51:56ID: 16527962

That is the problem. Based on long exposure to KDE hfern's hint of default resolution without monitor seemed to be the very case.
Thanks for clearing my sight.
I will come back tomorrow with disposal suggestion.

 

by: gheistPosted on 2006-04-25 at 05:23:52ID: 16533518

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Split between hfern #16300521 and Gns #16301447

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

gheist
EE Cleanup Volunteer

 

by: gheistPosted on 2006-04-25 at 05:33:29ID: 16533585

Either solution can apply in one or another situation.

I have installed 5.04 "Hoary Hedgehog"

Question is to blurry to strictly reject one or another solution.
Either "Xvnc" or "Remote Desktop aka vino" defaulted to 640x480 without monitor attached.
Provided solutions improved desktop resolution in respective cases.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...