Daniel Bush ([EMAIL PROTECTED]):

> I am using:
> XFree86 Version 4.3.0 (Red Hat Linux release: 4.3.0-2)
> 
> 1) How do I know exactly what refresh rate X is running @?

  It's a pretty easy.  The bottom of this email contains a shell script.
The formula is pixel clock in hz divided by the number of pixels, so
htotal * vtotal.  Since pixel clock is in MHz in a modeline, multiply by
100000.

> 2) How do I specifically set the refresh rate I want?

  In X 4.3 the 'randr' program can help you easily switch between
defined modelines at various refresh rates, or you can create your own
modelines that have the refresh rate you want.

> I have examined my /var/log/XFree86.0.log and came across the following 
> at the very end:
> GetModeLine - scrn: 0 clock: 65000
> GetModeLine - hdsp: 1024 hbeg: 1040 hend: 1176 httl: 1344
>               vdsp: 768 vbeg: 770 vend: 776 vttl: 806 flags: -21474836
> I assume X is using 65Hz

  Wrong.  The dot clock is 65MHz.  Your refresh rate is
(65000*1000)/(1344*806) or 60Hz.

> I have also tried to configure the following Modeline under the Monitor 
> section but, it seams to have no effect:
> Modeline "1024x768" 97.40  1024 1072 1192 1416   768  768  771  809

  This would be the same modeline with a high pixel clock and running at
89Hz.  You could likely come up with an 89Hz refresh rate modeline that
was better aligned for your hardware, but you're going about it the
wrong way.  X will choose the highest refresh rate mode available to it,
and it has alot of modes built in.  You should likely make sure the
VertRefresh option (or your HorizSync option) in your Monitor section is
set to not be too restrictive, it will likely fix your problem.

  -Billy

#!/bin/sh
#
# Print the refresh rate, assuming that the bottom of the
# output of xdpyinfo -ext XFree86-VidModeExtension is the
# current modeline, and that it's in the format I expect,
# which may not be true.

MODELINE=`xdpyinfo -ext XFree86-VidModeExtension | tail -1`
DOTCLOCK=`echo $MODELINE | awk '{ print $1 }'`
HTOTAL=`echo $MODELINE | awk '{ print $5 }'`
VTOTAL=`echo $MODELINE | awk '{ print $9 }'`
REFRESH=`echo "scale=2;($DOTCLOCK * 1000000) / ($HTOTAL * $VTOTAL)" | bc`

echo "Current refresh rate is $REFRESH hz"

_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to