PDA

View Full Version : [ubuntu] 11.10 VNC "Screen" Resolution (Headless)



bswylie
February 21st, 2012, 06:34 PM
Hi,

I'm struggling to get enough useful screen resolution when using VNC to connect to Ubuntu in a headless setup.

Description of my setup / steps to reproduce:

1) Ubuntu 11.10 desktop edition set up as a server (file, print, JIRA, etc)
2) I've got everything running well, and it starts up without a problem as a headless server. I specifically would like to get away without having a screen, mouse and keyboard.
3) When I VNC into the machine with a screen attached, I get a great resolution over the connection.
4) When I VNC in with the headless configuration, the screen resolution is horrible, and I can often not even resize application windows to be able to see tabs, etc. It's basically unusable.

I've tried to use the "System Settings"> "Displays" options to change the resolution, but can't access any parameters as it recognizes screens as "OFF".

Any suggestions? Very grateful if you can help.

Kind regards,
Brian

Cancelor
March 16th, 2012, 01:34 PM
Here is what has worked for me. Thanks to ... http://ubuntuforums.org/showpost.php?p=9542175&postcount=21

The answer is actually a combination of two separate solutions, each of which did not work separately.
I have 11.10 now working headless.


Step 1. Create a file called xorg.conf in /etc/X11 with the following text in it. (the X is case sensitive)



Section "Device"
Identifier "VNC Device"
Driver "vesa"
EndSection

Section "Screen"
Identifier "VNC Screen"
Device "VNC Device"
Monitor "VNC Monitor"
SubSection "Display"
Modes "1024x768"
EndSubSection
EndSection

Section "Monitor"
Identifier "VNC Monitor"
HorizSync 30-70
VertRefresh 50-75
EndSection

Step 2. Disable KMS for your video card.

I didn't know what make mine was so I created three files:-



/etc/modprobe.d/radeon-kms.conf containing the line:-
options radeon modeset=0


/etc/modprobe.d/i915-kms.conf containing the line:-

options i915 modeset=0


/etc/modprobe.d/nouveau-kms.conf containing the line:-

options nouveau modeset=0

Step 3. Reboot!


If that works you might want to try for a higher resolution by adding to the modes line in the xorg.conf file so that it looks like this:-



Section "Device"
Identifier "VNC Device"
Driver "vesa"
EndSection

Section "Screen"
Identifier "VNC Screen"
Device "VNC Device"
Monitor "VNC Monitor"
SubSection "Display"
Modes "1024x768" "1280x1024"
EndSubSection
EndSection

Section "Monitor"
Identifier "VNC Monitor"
HorizSync 30-70
VertRefresh 50-75
EndSection

If any of this fails you might have to access recovery mode by rebooting and pressing the shift key just after bios has finished or by following this https://wiki.ubuntu.com/RecoveryMode

bswylie
March 18th, 2012, 05:26 PM
Hi there,

Thank you so much for the reply - it worked! I'm really grateful.

Again - many thanks! :p

Yleeyas
October 1st, 2012, 08:44 PM
+1
Many thanx for this, to you Cancelor, and to the fellow in the link you provided (and all those who went before:)).

thanx :)