Billy Biggs wrote:

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


Excellent... As I suspected, my refresh rate is 60.00 hz. The script worked great.

my XF86Config is attached.

Any suggestions as to how I can get a Modeline to work. I have atempted to insert on in the Monitor section however it looks like X is igroring it.

Thanks for your help,
Dan

No
# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "DevInputMice" "AlwaysCore"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the 
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#       Option  "Xleds"         "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#       Option  "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#       Option  "XkbModel"      "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#       Option  "XkbModel"      "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#       Option  "XkbLayout"     "de"
# or:
#       Option  "XkbLayout"     "de"
#       Option  "XkbVariant"    "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#       Option  "XkbOptions"    "ctrl:swapcaps"
# Or if you just want both to be control, use:
#       Option  "XkbOptions"    "ctrl:nocaps"
#
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbRules" "xfree86"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/psaux"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "no"
EndSection

Section "InputDevice"

# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
        Identifier  "DevInputMice"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "IBM 6651 P97"
        HorizSync    30.0 - 107.0
        VertRefresh  48.0 - 170.0
        Option      "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "radeon"
        VendorName  "Videocard vendor"
        BoardName   "ATI Radeon Mobility 7500"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     16
        SubSection "Display"
                Depth     16
                Modes    "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection

Reply via email to