Bug 23508 - CRT Refresh rate wrong
Summary: CRT Refresh rate wrong
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.3 (2007.09)
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 08:15 UTC by Mark Cooke
Modified: 2018-06-12 19:09 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Config File (11.90 KB, text/plain)
2009-08-25 08:15 UTC, Mark Cooke
no flags Details
Xorg log file (39.61 KB, text/plain)
2009-08-25 08:16 UTC, Mark Cooke
no flags Details
XRandR output (1.76 KB, text/plain)
2009-09-02 08:08 UTC, Mark Cooke
no flags Details
Verbose XRandR output (16.48 KB, text/plain)
2009-09-02 08:08 UTC, Mark Cooke
no flags Details
Optical proof of Monitors OSD not matching server/xrandr/driver (875.81 KB, image/jpeg)
2009-09-02 08:09 UTC, Mark Cooke
no flags Details

Description Mark Cooke 2009-08-25 08:15:39 UTC
Created attachment 28897 [details]
Config File

I have a Radeon 8500LE connected to a Mitsubishi Diamond Pro 900U CRT monitor through the VGA/D-SUB port.  For a refresh rate setting of 1400x1050@85Hz, I'm actually seeing 82 or 83Hz (as reported by my monitor's OSD) - which is low enough to give me headaches.

My OS is Mandriva 2009.1 with all the latest updates (version 6.12.2 of the radeon driver).
Windows XP and Mandriva 2007 on other partitions are fine, this must have been introduced fairly recently.

Contact me if any more info is required.

Thanks,
Mark.
Also, My apologies if I've chosen the wrong project to report this to...
Comment 1 Mark Cooke 2009-08-25 08:16:54 UTC
Created attachment 28898 [details]
Xorg log file
Comment 2 Alex Deucher 2009-09-01 09:43:33 UTC
You monitor does not provide an edid, so the xserver selects an mode based on the sync ranges and modelines you provided.  If it does not select a mode you like, you can change it at run time using xrandr:
xrandr --output VGA-0 --mode <mode name>
Run xrandr by itself to see what modes are available.
Alternatively, you can force the preferred mode by adding a PreferredMode option to the monitor section of your config:
Option "PreferredMode" "1400x1050_85"
See this page for more info:
http://wiki.debian.org/XStrikeForce/HowToRandR12
Comment 3 Mark Cooke 2009-09-02 08:07:26 UTC
Hi,
I've done as you suggested and put the Preferred Mode option into my config file - hasn't made any difference - The server/driver/xrandr *thinks* the screen is being driven at 85Hz - but it's still 82Hz.

There *has* to be something broken somewhere - I've been using this PC with Linux for about nine months and have only been getting headaches in the last two.  And I haven't been changing the config file at all until I got the headaches.

The Modeline is exactly the same as on a Mandriva 2007 partition which drives exactly the same monitor at 85Hz.

xrandr output (plain and verbose) to follow.
Also screen photographic proof to follow.

Regards,
Mark.

Comment 4 Mark Cooke 2009-09-02 08:08:09 UTC
Created attachment 29106 [details]
XRandR output
Comment 5 Mark Cooke 2009-09-02 08:08:37 UTC
Created attachment 29107 [details]
Verbose XRandR output
Comment 6 Mark Cooke 2009-09-02 08:09:44 UTC
Created attachment 29108 [details]
Optical proof of Monitors OSD not matching server/xrandr/driver
Comment 7 Mark Cooke 2009-09-02 08:15:34 UTC
Comment on attachment 29108 [details]
Optical proof of Monitors OSD not matching server/xrandr/driver

Sorry for the bad quality, but you should be able to see xrandr in the background being run in a terminal showing 1400x1050_85 as the current and preferred mode.
Comment 8 Alex Deucher 2009-09-02 08:16:27 UTC
(In reply to comment #3)
> Hi,
> I've done as you suggested and put the Preferred Mode option into my config
> file - hasn't made any difference - The server/driver/xrandr *thinks* the
> screen is being driven at 85Hz - but it's still 82Hz.
> 
> There *has* to be something broken somewhere - I've been using this PC with
> Linux for about nine months and have only been getting headaches in the last
> two.  And I haven't been changing the config file at all until I got the
> headaches.
> 
> The Modeline is exactly the same as on a Mandriva 2007 partition which drives
> exactly the same monitor at 85Hz.

Are you sure the Mandriva partition is using the exact same modeline?  Slight differences in timings may affect perceived clock.  You might try adjusting the modeline.  here are some example using cvt:
# 1400x1050 84.96 Hz (CVT 1.47M3) hsync: 93.88 kHz; pclk: 179.50 MHz
Modeline "1400x1050_85.00"  179.50  1400 1512 1656 1912  1050 1053 1057 1105 -hsync +vsync
# 1400x1050 85.08 Hz (CVT) hsync: 94.01 kHz; pclk: 179.75 MHz
Modeline "1400x1050_85.20"  179.75  1400 1512 1656 1912  1050 1053 1057 1105 -hsync +vsync
Comment 9 Mark Cooke 2009-09-02 10:21:27 UTC
Hi,
Quick response!...and thanks for the help.
Both distro's Modelines are exactly the same.

Please excuse me for being dense, but what do you mean by perceived clock?

I've tried the modeline that cvt (and your comment) suggests for 1400x1050 @85 and that doesn't appear to have made any difference either.

Shouldn't the timings from gtf be used anyway though?  CVT didn't exist until 2003 (or so googling tells me) and my monitor was made in 1999 so wouldn't the two be incompatible?

I'll try upping the timings (maybe using gtf in the first instance?) gradually to see if I can get 85Hz out - but how far can I safely go before I'm at risk of frying my monitor's circuitry? ;-)

Regards,
Mark.
Comment 10 Alex Deucher 2009-09-02 10:55:10 UTC
(In reply to comment #9)
> Hi,
> Quick response!...and thanks for the help.
> Both distro's Modelines are exactly the same.
> 
> Please excuse me for being dense, but what do you mean by perceived clock?

my monitors often report a slightly different refresh than the mode would indicate.  So for example the modeline would indicate a 75 Hz mode, but my monitor would claim it's actually 74 Hz or 76 Hz, etc.

> 
> I've tried the modeline that cvt (and your comment) suggests for 1400x1050 @85
> and that doesn't appear to have made any difference either.
> 
> Shouldn't the timings from gtf be used anyway though?  CVT didn't exist until
> 2003 (or so googling tells me) and my monitor was made in 1999 so wouldn't the
> two be incompatible?

Either should work.  The only thing that may be a problem is reduced blanking modes.

> 
> I'll try upping the timings (maybe using gtf in the first instance?) gradually
> to see if I can get 85Hz out - but how far can I safely go before I'm at risk
> of frying my monitor's circuitry? ;-)

You can use gtf and adjust the timings as well.

It could likely be the pixel clock.  Some monitors are very picky about the set of dividers used, even though the end result is the same exact clock.  Using the pll dividers you can come up with multiple combinations that all get you the exact same clock, but some monitors prefer some divider combinations to others.
Comment 11 Mark Cooke 2009-09-02 11:19:16 UTC
(In reply to comment #10)
> my monitors often report a slightly different refresh than the mode would
> indicate.  So for example the modeline would indicate a 75 Hz mode, but my
> monitor would claim it's actually 74 Hz or 76 Hz, etc.

Because of rounding in the OSD?...but a difference of 3 can't be due to rounding alone.

> Either should work.  The only thing that may be a problem is reduced blanking
> modes.
> You can use gtf and adjust the timings as well.

OK, I'll try with gtf tomorrow.

> 
> It could likely be the pixel clock.  Some monitors are very picky about the set
...

How does any of that (some of which I'll have to google to understand fully) account for different behaviour with exactly the same modeline with exactly the same hardware?  Surely the same line should produce the same timing?
Comment 12 Alex Deucher 2009-09-02 11:56:20 UTC
(In reply to comment #11)
> 
> How does any of that (some of which I'll have to google to understand fully)
> account for different behaviour with exactly the same modeline with exactly the
> same hardware?  Surely the same line should produce the same timing?
> 

Changes to the pll divider selection algorithm could account for the change.  Basically you have a reference clock on the board (say 27 Mhz) and the driver uses a set of dividers to derive the requested pixel clock.  Sometimes there are multiple sets of dividers that match the requested frequency.  Other times there is not an exact match and the driver has to get as close as possible.  These variances can affect the timing sent to your monitor.  For example, in the case of your modeline, the driver isn't able to find an exact match:

ref_freq: 2700
freq: 179260000
best_freq: 175000000
best_feedback_div: 350
best_ref_div: 27
best_post_div: 2

dot clock = (ref_freq * (feedback_div / ref_div)) / post_div;

Comment 13 Raynor 2010-01-11 12:42:18 UTC
(In reply to comment #0)
> Created an attachment (id=28897) [details]
> Config File
> 
> I have a Radeon 8500LE connected to a Mitsubishi Diamond Pro 900U CRT monitor
> through the VGA/D-SUB port.  For a refresh rate setting of 1400x1050@85Hz, I'm
> actually seeing 82 or 83Hz (as reported by my monitor's OSD) - which is low
> enough to give me headaches.
> 
> My OS is Mandriva 2009.1 with all the latest updates (version 6.12.2 of the
> radeon driver).
> Windows XP and Mandriva 2007 on other partitions are fine, this must have been
> introduced fairly recently.
> 
> Contact me if any more info is required.
> 
> Thanks,
> Mark.
> Also, My apologies if I've chosen the wrong project to report this to...
> 

I have the same problem with a Radeon X800GTO on a Mitsubishi Diamond Plus 230SB. xrandr says 1600*1200@85Hz but the OSD says 78.4Hz and the image is shaking.
There is no problem in 75Hz.

I think i know why it worked for you with Mandriva 2007: It's kernel mode setting. New versions of the distributions activate it by default. I have this problem only when kernel mode setting is activated.
Comment 14 Adam Jackson 2018-06-12 19:09:31 UTC
Mass closure: This bug has been untouched for more than six years, and is not
obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.


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.