LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Vertical Refresh Rate (http://www.linuxquestions.org/questions/linux-general-1/vertical-refresh-rate-574302/)

shawniecas 08-02-2007 02:57 PM

Vertical Refresh Rate
 
This may be an easy question, but how do I change my Vertical Refresh Rate? If I go to System -> Preferences -> Screen Resolution it says my Resolution is 1280 x 1024 and my Refresh Rate is 50 Hz, but it won't let me change the Refresh Rate. Do I have to do something in xorg.conf?

HappyTux 08-02-2007 03:50 PM

Quote:

Originally Posted by shawniecas
This may be an easy question, but how do I change my Vertical Refresh Rate? If I go to System -> Preferences -> Screen Resolution it says my Resolution is 1280 x 1024 and my Refresh Rate is 50 Hz, but it won't let me change the Refresh Rate. Do I have to do something in xorg.conf?

Don't know if I would actually believe that when I look in KDE it tells me my LCD is running at 50 but if I use the on-screen display it says 60 for my CRT it tells me again 50 but its on-screen display tells me it is running at 85. I get the same higher values using the nvidia-settings app as well so check your settings using the monitor display or if using nvidia driver use nvidia-settings to check.

Wim Sturkenboom 08-03-2007 01:05 AM

If above does not get you what you want:

The two lines below come from the monitor section in xorg.conf. Adjust both of them to the specs of your monitor (the given values are for my monitor).
Code:

HorizSync    31.0 - 92.0
VertRefresh  50.0 - 150.0

I've found that you're sometimes still limited to 75Hz (depending on videocard and/or driver); if your monitor can do better and if you want better, add the following line to the device section in your xorg.conf
Code:

Option "UseEdidFreqs" "FALSE"

m4mach 08-03-2007 05:36 AM

You can also force refresh rate instead of giving the rage:
Code:

VertRefresh        85
But you should use this carefully. Knowing monitor bandwidth (assuming you have CRT) you can calculate from this formula:
Bandwidth [MHz] = 1.35*width*height*VertRefresh

shawniecas 08-03-2007 12:22 PM

Ok, I used this code: Option "UseEdidFreqs" "FALSE" in my xorg.conf and it works, but now I have a screen resolution of 640x480 and it won't let me change it. I mean, this is the modeline I have:

Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1024x768" "800x600" "640x480"

But again, it will only use the 640x480. I dunno if I should just take it out of the modeline or not

m4mach 08-03-2007 02:26 PM

Write your HorizSync and VertRefresh values. Do you have CRT or LCD monitor?

saikee 08-03-2007 05:44 PM

The advice Wim Sturkenboom gave is the one that always works for me. Just have the two frequency ranges matching the manufacturer data and you can't go wrong, unless you video driver is way out of line.

The xorg.conf is always stored in /etc/X11 subdirectory. Some distros allow you to run it manually at terminal by command "xongconfig".

jay73 08-03-2007 07:49 PM

Are you using the Nvidia drivers? Having only 50Hz is a common issue that can easily be solved by editing xorg.conf.

woodpecka_04 08-11-2007 02:52 PM

A very similar problem
 
Hi,

I'm having a very similar problem to the one described above. I am using the Nvidia drivers and the refresh rate seems stuck on 50Hz, despite my nvidia-settings claiming its 60Hz.

I have altered my xorg.conf as above...

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Option "NoLogo" "True"
Option "UseEdidFreqs" "FALSE"
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
EndSection

Section "Monitor"

### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
ModelName "Monitor 1280x1024"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 79.0
VertRefresh 60.0 - 60.0
Option "dpms"
EndSection


Those comments are automatically generated, and it seems to happen every time I'm on Linux -- I have had to delete hundreds of lines of them before.

I've not had this refreshing problem with previous releases. I find my laptop screen is making a buzzing sound -- which does not occur when im on Windows. When I'm using the internet I can see the screen refresh, lines of text start to overlap and become distorted and sometimes it will freeze completely and I need to hard boot.

Can someone help me with this PLEASE!?

jay73 08-11-2007 05:50 PM

Quote:

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation G70 [GeForce 7600 GS]"
Monitor "Acer AL1951"
Option "DynamicTwinView" "False"
Option "DisableGLXRootClipping" "true" #required by Compiz
DefaultDepth 24
SubSection "Display"
Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
You need the DynamicTwinView line.

woodpecka_04 08-12-2007 05:08 AM

Thanks, that appears to be slightly better, the lines of text still get distorted but now fix themselves much faster...

Just to check though, my xorg.conf now looks like this...

Section "Monitor"
Identifier "Monitor0"
ModelName "Monitor 1280x1024"
HorizSync 31.5 - 79.0
VertRefresh 60.0 - 60.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Option "NoLogo" "True"
Option "UseEdidFreqs" "False"
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "DynamicTwinView" "False"
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

I presume the DynamicTwinView option goes in the Screen section, rather than the Device section?

Although the comments are not shown above:
### Comment all HorizSync and VertSync values to use DDC:
They are still being generated every time X starts, is there any way to stop this?

Thanks for your quick response btw!

jay73 08-12-2007 07:03 AM

Here is the full thing:

Code:

Section "Files"
EndSection

Section "Module"
    Load        "i2c"
    Load          "bitmap"
    Load      "dbe"
    Load          "ddc"
    Load          "extmod"
    Load      "evdev"
    Load          "freetype"
    Load          "glx"
    Load          "int10"
    Load      "record"
    Load      "type1"
    Load          "vbe"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "be"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ImPS/2"
    Option        "Emulate3Buttons"    "true"
EndSection

Section "Device"
    Identifier    "nVidia Corporation G70 [GeForce 7600 GS]"
    Driver        "nvidia"
    BusID        "PCI:1:0:0"
    Option        "AddARGBVisuals"    "True"
    Option        "AddARGBGLXVisuals"    "True"
    Option          "RenderAccel" "true" #Compiz
    Option          "AllowGLXWithComposite" "true"    #Compiz
    Option        "UseFBDev"        "true"
EndSection

Section "Monitor"
    Identifier    "Acer AL1951"
    Option        "DPMS"
    HorizSync    30-83
    VertRefresh    55-75
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "nVidia Corporation G70 [GeForce 7600 GS]"
    Monitor        "Acer AL1951"
    Option        "DynamicTwinView" "False"
    Option          "DisableGLXRootClipping" "true" #required by Compiz
    DefaultDepth    24
    SubSection "Display"
        Modes        "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "DRI"
    Mode    0666
EndSection

Section "Extensions"
    Option "Composite" "Enable"
EndSection

Is the modules section missing? As you see, ddc is one of them.

woodpecka_04 08-12-2007 11:35 AM

Errr yeah youre quite right there...I don't have a Modules section as such although there is mention of a ModulePath...

This is my entire thing:

# Xorg configuration created by livna-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics" "CorePointer"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib/xorg/modules"
EndSection

Section "ServerFlags"
Option "AIGLX" "on"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
EndSection

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
Identifier "Monitor0"
ModelName "Monitor 1280x1024"
HorizSync 31.5 - 79.0
VertRefresh 60.0 - 60.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Option "NoLogo" "True"
Option "UseEdidFreqs" "False"
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "DynamicTwinView" "False"
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection


Why do I get the horrible feeling that it's all completely wrong lol?

jay73 08-12-2007 11:59 AM

ModelePath is something completely different (it sets fonts paths).

You can simply include the modules Section in your xorg.conf. Best to make a backup first though, and make sure that you know how to replace it (from the command line) just in case X starts acting weird.

By the way, which distro are you using? Suse?

Oh, and why have you got such rigid VertRefresh rates. Only 60? Are you sure this is the only one that is supported by your monitor?

woodpecka_04 08-13-2007 01:14 PM

I'm using FC6.

I decided to set the vertical refresh to 60Hz as it seemed to be the only way to force the monitor to use it. If I tried using a range it seemed to keep going to 50Hz and there wouldnt be any other options in the drop down list to select from. I am only using 60Hz as that is what it appears to be on my Windows OS and I know that works fine (no overlapping of text, no buzzing sound). Although perhaps different OS's have different requirements.

I can only assume that the buzzing sound is the screen, before you ask I am almost certain its not a fan or the HD or something like that. It seems to go away for a few seconds if I'm doing something intense, but then if I just use Emacs or whatever it comes back. I'm not THAT bothered about the noise, more about the freezing and the overlapping text -- that's so frustrating.

The Modules section you mentioned...should I just copy yours or specific lines from it?


All times are GMT -5. The time now is 03:40 PM.