Steven,
You fixed it for me, thank you! For comments/feedback see below.
On Mon, Oct 13, 2008 at 11:48:38PM +0100, Steve Fosdick wrote:
On 13/10/2008 21:48:50, Chris G wrote:
Well I've found where/how it decides on 1152x864 but I don't know *why* and I don't really know how to fix it. In my Xorg.0.log file there is:-
...
(II) intel(0): Modeline "1152x864"x75.0 104.99 1152 1224 1352
1552 864 865 868 902 -hsync +vsync (67.7 kHz) (II) intel(0): EDID vendor "DEL", prod id 40967
...
Xorg has simply chosen the last value returned by ddcprobe as the default, which IMHO is wrong. What's the 'right' way to fix it? All I want to do is set the resolution to 1600x1200 by default for everything that doesn't have a resolution set.
Chris,
I replies to a previous question on this or something similar which I repeat below. Although my answer relates to Debian it should work for Ubuntu too as I believe Ubuntu is based on Debian.
I have Debian on my desktop and I recently had a similar problem. After an upgrade of X it chose a default resolution that was substaintially poorer than the monitor can cope with.
What I think happenned in my case is that X switched from using the values in the x.org config file by default to using the values obtained from the monitor and then applied an incorrect or too simplistic algorithm to chosing the best mode.
'New' xorg.conf files don't have *any* resolution settings for the monitor, you just get the resolution that Xorg thinks is right. This was my fundamental problem. The *whole* of my xorg.conf file as generated by Ubuntu (8.10) installation is:-
Section "Device" Identifier "Configured Video Device" EndSection
Section "Monitor" Identifier "Configured Monitor" EndSection
Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" EndSection
The solution in my case was to add an option to the x.org config file: "PreferredMode". This makes the whole of the monitor portion of my x.org config file as follows:
Section "Monitor" Identifier "CPD-G500" Option "DPMS" ModeLine "1600x1200" 229.50 1600 1668 1860 2152 1200 1201 1 204 1250 +hsync +vsync Option "PreferredMode" "1600x1200" EndSection
The ModeLine above is not wrapped in my config file. The timing in this line are those reported by the monitor as seen by examining the X :0.log file.
Excellent, that's done it, thank you very much! I had to 'tune' it a very little but what I have is:-
Section "Monitor" Identifier "Configured Monitor" Modeline "1600x1200" 160.96 1600 1704 1880 2160 1200 1201 1204 1242 -hsync +vsync Option "PreferredMode" "1600x1200" EndSection
The Modeline in my Xorg.0.log file was actually:-
Modeline "1600x1200"x60.0 160.96 1600 1704 1880 2160 1200 1201 1204 1242 -hsync +vsync (74.5 kHz)
I had to remove that x60.0 after the 1600x1200 and the frequency off the end, after that it all worked perfectly.