Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

How to lock refresh rate?

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
molot
Apprentice
Apprentice
User avatar
Posts: 214
Joined: Sat Feb 26, 2005 6:29 pm
Location: Warsaw, Poland
Contact:
Contact molot
Website

How to lock refresh rate?

  • Quote

Post by molot » Wed Oct 24, 2007 5:42 am

As usual - I've tried to do forum & google search without result, so if you see something I haven't, plz post a link.

My monitor can do 85Hz in every resolution I've put in xorg.conf. However, some applications, especially fullscreen games, changes both resolution (to lower, and that's expected) and refresh rate... to 60Hz, what is an eye-killer on CRT.

So, is there any way to lock the refresh rate at 85Hz and simply "don't tell" the apps that not everything has changed as they wanted?

My xorg.conf in case it may help:

Code: Select all

Section "Module"

# This loads the DBE extension module.

#    Load        "dbe"          # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
    Load        "type1"
#    Load        "speedo"
    Load        "freetype"
#    Load        "xtt"

# This loads the GLX module
    Load       "glx"

Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "int10"
Load "vbe"
# This loads the DRI module
Load       "dri"

EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"
    FontPath    "/usr/share/fonts/misc"
    FontPath    "/usr/share/fonts/Type1"
    FontPath    "/usr/share/fonts/100dpi"
    FontPath    "/usr/share/fonts/75dpi"
    FontPath    "/usr/share/fonts/corefonts"
    FontPath    "/usr/lib/X11/fonts/misc"
    FontPath    "/usr/lib/X11/fonts/75dpi:unscaled"
    FontPath    "/usr/lib/X11/fonts/100dpi:unscaled"
    FontPath    "/usr/lib/X11/fonts/Type1"
    FontPath    "/usr/local/share/fonts"
EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option "NoTrapSignals"

# Uncomment this to disable the <Ctrl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Uncomment this to disable the <Ctrl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option "DontZap"

# Uncomment this to disable the <Ctrl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

    Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

    Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client.

#    Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.

#    Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option "AllowNonLocalModInDev"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"

    Option "AutoRepeat" "500 30"

    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc104"
    Option "XkbLayout"  "pl"
    Option "XkbVariant" ""

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "Auto" # Auto detect
    Option "Device"      "/dev/input/mice"


# Mouse wheel mapping.  Default is to map vertical wheel to buttons 4 & 5,
# horizontal wheel to buttons 6 & 7.   Change if your mouse has more than
# 3 buttons and you need to map the wheel to different button ids to avoid
# conflicts.

    Option "ZAxisMapping"   "4 5 6 7"


EndSection


# **********************************************************************
# Other input device sections
# this is optional and is required only if you
# are using extended input devices.  This is for example only.  Refer
# to the xorg.conf man page for a description of the options.
# **********************************************************************

# **********************************************************************
# Monitor section
# **********************************************************************
Section "Monitor"
    Identifier  "My Monitor"
    HorizSync 30-60
    VertRefresh 85
EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

Section "Device"
    Identifier  "NVIDIA"
    Driver      "nvidia"
    Option     "NoLogo" "true"
    VideoRam    262144
    # Insert Clocks lines here if appropriate
    Option      "AddARGBGLXVisuals" "true"
    # This option must be either undeclared or
    # false, in order to avoid periodic short-term
    # freezes on beryl and other OpenGL intensive
    # programs
    Option      "UseEvents"         "false"
    Option      "RenderAccel"       "false"
    Option      "AddARGBGLXVisuals" "true"
EndSection

Section "Extensions"
        Option      "Composite"   "enable"
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************

Section "Screen"
    Identifier  "Screen 1"
    Device      "NVIDIA"
    Monitor     "My Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

Section "ServerLayout"
    Identifier  "Simple Layout"

    Screen "Screen 1"

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

Section "DRI"
    Mode 0666
EndSection
"I just have to run faster than the slowest party member"
Top
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

  • Quote

Post by sotn3m » Wed Oct 24, 2007 7:03 am

My only guess is to try and add "modeline" entries to the monitor section. As far as I understood it (not really sure) they allow to specify the parameters of the monitor for each resolution. There should some scipts in the internet to generate them..
M3ntos
Top
molot
Apprentice
Apprentice
User avatar
Posts: 214
Joined: Sat Feb 26, 2005 6:29 pm
Location: Warsaw, Poland
Contact:
Contact molot
Website

  • Quote

Post by molot » Wed Oct 24, 2007 10:51 am

Each of used resolutions is already in my xorg.conf. Only refresh rate allowed is 85Hz. For those reasons, I doubt modeline would help. I'll try anyway, of course ;) but I'm still waiting for other suggestions.

Added:
Modelines shifted my "normal" refresh to 86Hz (although they were generated for 85). Small bonus for my eyes ;) but anyway, it still didn't locked the programs on this frequency... I still can play only at 60Hz. After study & work, both in front of monitor, it's not a good way to relax ;)

Added:
Refresh Lock, a little exe for Windows, did the job. However, I consider it a workaround, not a solution... It's kinda shame there are no native tools for that in Linux (or the fact that they are so hard to find).
"I just have to run faster than the slowest party member"
Top
Post Reply

3 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic