Hgeocities.com/aebcoat/xorgresproblems.htmlgeocities.com/aebcoat/xorgresproblems.htmldelayedxlJ"'OKtext/html +'b.HMon, 10 Jul 2006 03:15:18 GMTMozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)en, *lJ' Xorg Res Problems So you've got a fresh Ubuntu install and on your first boot are greeted with a very low screen resolution, when you know your hardware can do better. This is a common problem with Xorg on any version of Linux. Luckily its usually a easy fix. Here is my brief guide on how to resolve it.

This is by no means a exhaustive guide to all things Xorg, but is my advice which has helped many thus far on forums.

Your xorg.conf is what controls the available resolutions and color depths. It is located in /etc/X11/xorg.conf


Click the Links below to jump to a certain section

Fix low resolutions

When nvidia-glx-config enable fails


Fix low resolutions


To edit from within gnome run:

gksudo gedit /etc/X11/xorg.conf

To edit from a command line use:

sudo nano /etc/X11/xorg.conf

Here is mine. I have a nvidia video card which I will give some advice about a bit later. The text in red is what I would add to enable 1280 x 1024 resolution. The same principal work for all resolutions like 1600 x 1200
800 x 600 etc... Just add the new resolution in the correct order of the list under each depth and save the file. Then log off and back on and it should be available to select under System -> Preferences -> Screen Resolution in gnome, if it is not activated by default

Section "Device"
Identifier "NVIDIA Corporation NV18GL [Quadro4 NVS AGP 8x]"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "RenderAccel" "true"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-51
VertRefresh 43-60
EndSection

Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV18GL [Quadro4 NVS AGP 8x]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280 x 1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280 x 1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280 x 1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280 x 1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280 x 1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280 x 1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
 

If the desired resolution still does not work then your monitor refresh rate may be incorrectly set. Either set it manually like below (Those numbers work for my 17in monitor, may not work for all so be advised) Or re-run the xorg configuration program using this command sudo dpkg-reconfigure xserver-xorg You can usually safely accept the defaults until you come to the monitor configuration select "medium" not "simple" Doing this allows you to choose a monitor that supports your desired resolution, That should fix it all for you.

Here is the code to manually add the refresh rate

Section "Monitor"
        Identifier      "Generic Monitor"
        Option          "DPMS"
        HorizSync       28-51
        VertRefresh     43-60
EndSection



When nvidia-glx-config enable fails

Changing the driver to nvidia will cause xorg to fail to load if you do not have a nvidia card, or something is missing from your install. Therefore the command to enable it will fail if it detects anything out if the ordianry, For example the "nv" driver not being used. As long as you have a nvidia card and have the nvidia-glx and restricted modules installed enabling it should be safe. If enabling it causes xorg to not load then simply change it back to what it was before.

For those with nvidia cards installing the nvidia-glx package to get 3d acceleration who get this error message when running sudo nvidia-glx-config enable

Error: your X configuration has been altered.
This script cannot proceed automatically. If you believe that this
not correct, you can update the md5sum entry executing the following
command:
md5sum /etc/X11/xorg.conf | sudo tee /var/lib/x11/xorg.conf.md5sum
otherwise edit manually /etc/X11/xorg.conf to change the Driver section
from nv to nvidia.

Just edit your Xorg.conf file using like this.

To edit from within gnome run:

gksudo gedit /etc/X11/xorg.conf

To edit from a command line use:

sudo nano /etc/X11/xorg.conf

When you look at this section below change the driver to "nvidia" not "nv" or "vesa" Then save and logoff/on

Section "Device"
        Identifier      "NVIDIA Corporation NV18GL [Quadro4 NVS AGP 8x]"
        Driver          "nvidia"
        BusID           "PCI:1:0:0"
        Option          "RenderAccel"           "true"






1