Bug 14150 - Xorg uses 1024x768 resolution insted of using the given 1280x1024
Summary: Xorg uses 1024x768 resolution insted of using the given 1280x1024
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.3 (2007.09)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-20 06:42 UTC by Krisztian VASAS
Modified: 2008-01-21 09:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
The "wrong" xorg log (36.73 KB, text/plain)
2008-01-20 06:42 UTC, Krisztian VASAS
no flags Details
The current log with driver 6.7.197 (36.65 KB, patch)
2008-01-21 07:41 UTC, Krisztian VASAS
no flags Details | Splinter Review
The current config (5.53 KB, patch)
2008-01-21 07:42 UTC, Krisztian VASAS
no flags Details | Splinter Review
The current log with driver 6.6.3 (47.51 KB, patch)
2008-01-21 07:44 UTC, Krisztian VASAS
no flags Details | Splinter Review

Description Krisztian VASAS 2008-01-20 06:42:22 UTC
Created attachment 13814 [details]
The "wrong" xorg log

If my monitor (Syncmaster 940N) is plugged to kvm switch, the ati driver (6.7.197) does not want to use the given 1280x1024 (i tried several things i found on the net), always falls back to 1024x768 resolution. If i connect my monitor directly to the machine, everything is ok. If i use ati driver version 6.6.3, everything is ok both plugged to kvm or directly.
Another small issue is that if i use kvm switch, the edid information is invalid and ati driver uses only 800x600 in configless mode. Directly plugged to the machine 6.7.197 can detect resolution perfectly without xorg.conf.
Comment 1 Alex Deucher 2008-01-20 12:48:59 UTC
the problem is your KVM blocks the edid from the monitor so the driver doesn't know what modes your monitor supports.  What you'll need to do is specify a monitor section in your config and associate it with the VGA port and set the sync ranges of your monitor and select a preferred mode.  See this page for more on xorg.conf changes for randr 1.2 drivers:
http://www.intellinuxgraphics.com/dualhead.html
Comment 2 Krisztian VASAS 2008-01-20 23:40:27 UTC
(In reply to comment #1)

I know that my kvm blocks the edid info, i used the read-edid to try to get the info. I could get it after plugging the monitor directly to the machine, i got the edid info. Now it's written into the xorg.conf (unfortunately i cannot show you now, the machine is at home and i cannot wake it on), but with driver version 6.7.197 does not work. With driver 6.6.3 the edid info is successfully got or the driver could use the given 1280x1024 resolution.
Comment 3 Krisztian VASAS 2008-01-20 23:41:48 UTC
(In reply to comment #2)

Sorry, i forgot to write that i tried the setting i've found on that page but had not worked.
Comment 4 Alex Deucher 2008-01-21 07:22:41 UTC
Can you post your xorg log and config so I can see what you tried?  Does the following configuration work?  You may need to adjust the sync ranges.

Section "Device"
        Identifier      "Card0"
        Driver         "radeon"
        Option          "Monitor-VGA-0" "VGA-0"
EndSection

Section "Monitor"
        Identifier      "VGA-0"
        Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
        Option "PreferredMode"  "1280x1024_60.00"
	HorizSync	30-92
	VertRefresh	50-160
EndSection
Comment 5 Krisztian VASAS 2008-01-21 07:41:37 UTC
Created attachment 13834 [details] [review]
The current log with driver 6.7.197
Comment 6 Krisztian VASAS 2008-01-21 07:42:12 UTC
Created attachment 13835 [details] [review]
The current config
Comment 7 Krisztian VASAS 2008-01-21 07:44:06 UTC
Created attachment 13836 [details] [review]
The current log with driver 6.6.3
Comment 8 Krisztian VASAS 2008-01-21 07:52:20 UTC
I tried your config, and realized that the missing "PreferredMode" option causes the problem. With that option the resolution was OK with driver 6.7.197, without it the problem exists.
Comment 9 Alex Deucher 2008-01-21 07:58:20 UTC
(In reply to comment #8)
> I tried your config, and realized that the missing "PreferredMode" option
> causes the problem. With that option the resolution was OK with driver 6.7.197,
> without it the problem exists.
> 

Can we close this bug?  The configuration has changed since radeon got randr 1.2 support.  Since you can now have multiple monitors per driver instance, you need to be able to specify which monitors are associated with which outputs.
Comment 10 Krisztian VASAS 2008-01-21 08:41:22 UTC
(In reply to comment #9)
> Can we close this bug?  The configuration has changed since radeon got randr
> 1.2 support.  Since you can now have multiple monitors per driver instance, you
> need to be able to specify which monitors are associated with which outputs.

Well, i played a bit with the config and realized that the Option "Monitor-VGA-0" "VGA-0" does not cause the problem, can be removed without danger. The only needed thing is the PreferredMethod option (the modeline was not needed). So you can close this bug, thanks.
Comment 11 Alex Deucher 2008-01-21 09:43:56 UTC
(In reply to comment #10)

> Well, i played a bit with the config and realized that the Option
> "Monitor-VGA-0" "VGA-0" does not cause the problem, can be removed without
> danger. The only needed thing is the PreferredMethod option (the modeline was
> not needed). So you can close this bug, thanks.
> 

whether or not you need Option "Monitor-VGA-0" "VGA-0" depends on your setup and the identifier you choose for your monitor.  If the monitor's identifier does not match the name of an output, the server will associate it with the first output which may or may not be what you want.  It is in your case.  If not, you need to the option to associate the monitor to the output.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.