LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2006, 04:33 PM   #1
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Rep: Reputation: 15
screen refresh rate


hi I am using ARCH linux, I used to have a 100hz, but now I get only 85 in KDE, after upgrade and install some things.
and what more strength that no matter how I mess up with Xorg.conf it still stay like this, and in KDE config I can get only 85 at all resolutions, How can I fix it?
 
Old 04-11-2006, 09:25 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,476

Rep: Reputation: 190Reputation: 190
If you have a utility called gtf installed you can generate a modeline and use that to edit your xorg.conf file. The syntax is:

$ gtf <horizontal size> <vertical size> <refresh rate>

For example, if you wante a 1280x1024 resolution at 100Hz you would run:

$ gtf 1280 1024 100

That's the easiest way I can think of. Here's what I get when I run that:

$ gtf 1280 1024 100

# 1280x1024 @ 100.00 Hz (GTF) hsync: 108.50 kHz; pclk: 190.96 MHz
Modeline "1280x1024_100.00" 190.96 1280 1376 1520 1760 1024 1025 1028 1085 -HSync +Vsync

Your output may be different depending on your hardware. Then you stick this:

Modeline "1280x1024_100.00" 190.96 1280 1376 1520 1760 1024 1025 1028 1085 -HSync +Vsync

in your xorg.conf in the Monitor section towards the end and it should overide anything else at that resolution. Reboot to have the new setting take effect.
 
Old 04-11-2006, 09:55 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
The only thing I'll dispute is the reboot.. Save all that rebooting for your windows machine.

CTRL+ALT+Backspace to shutdown X then restart it with startx


What can I say I hate rebooting if I really don't have to.
 
Old 04-11-2006, 11:05 AM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,476

Rep: Reputation: 190Reputation: 190
I hear ya but I tried that on one box where I did my trick and I didn't get the modeline activated until I rebooted. YMMV.
 
Old 04-11-2006, 11:14 AM   #5
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,835

Rep: Reputation: 260Reputation: 260Reputation: 260
Whenever you change resolutions you have to hit CTRL+ALT+BACKSPACE to restart the xserver for it to take effect. Sax2 is a configuration utility for video. Try installing that.
 
Old 04-11-2006, 12:14 PM   #6
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Original Poster
Rep: Reputation: 15
The strength thing is that I have the line that should give me 100 hz in 1024x768 buy still I get only 85. What can I do?
 
Old 04-11-2006, 12:48 PM   #7
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,476

Rep: Reputation: 190Reputation: 190
Post your xorg.conf.
 
Old 04-11-2006, 01:03 PM   #8
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Original Poster
Rep: Reputation: 15
Here is my file
Code:
Section "Monitor"
 # Warning: This may fry old Monitors
 # Very conservative. May flicker.
#	VertRefresh  50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
	#  Default modes distilled from
	#      "VESA and Industry Standards and Guide for Computer Display Monitor
	#       Timing", version 1.0, revision 0.8, adopted September 17, 1998.
	#  $XFree86: xc/programs/Xserver/hw/xfree86/etc/vesamodes,v 1.4 1999/11/18 16:52:17 tsi Exp $
	# 640x350 @ 85Hz (VESA) hsync: 37.9kHz
    Identifier     "Monitor0"
    HorizSync       28.0 - 96.0
    VertRefresh     50.0 - 75.0
    ModeLine       "640x350" 31.5 640 672 736 832 350 382 385 445 +hsync -vsync
    ModeLine       "640x400" 31.5 640 672 736 832 400 401 404 445 -hsync +vsync
    ModeLine       "720x400" 35.5 720 756 828 936 400 401 404 446 -hsync +vsync
    ModeLine       "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
    ModeLine       "640x480" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync
    ModeLine       "640x480" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync
    ModeLine       "640x480" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync
    ModeLine       "800x600" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
    ModeLine       "800x600" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
    ModeLine       "800x600" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
    ModeLine       "800x600" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
    ModeLine       "800x600" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
    ModeLine       "1024x768" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync +vsync interlace
    ModeLine       "1024x768" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
    ModeLine       "1024x768" 75.0 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
    ModeLine       "1024x768" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
    ModeLine       "1024x768" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
    ModeLine       "1152x864" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
    ModeLine       "1280x960" 108.0 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync
    ModeLine       "1280x960" 148.5 1280 1344 1504 1728 960 961 964 1011 +hsync +vsync
    ModeLine       "1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine       "1280x1024" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine       "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
    ModeLine       "1600x1200" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1600x1200" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1600x1200" 189.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1600x1200" 202.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1600x1200" 229.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine       "1792x1344" 204.8 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
    ModeLine       "1792x1344" 261.0 1792 1888 2104 2456 1344 1345 1348 1417 -hsync +vsync
    ModeLine       "1856x1392" 218.3 1856 1952 2176 2528 1392 1393 1396 1439 -hsync +vsync
    ModeLine       "1856x1392" 288.0 1856 1984 2208 2560 1392 1393 1396 1500 -hsync +vsync
    ModeLine       "1920x1440" 234.0 1920 2048 2256 2600 1440 1441 1444 1500 -hsync +vsync
    ModeLine       "1920x1440" 297.0 1920 2064 2288 2640 1440 1441 1444 1500 -hsync +vsync
    ModeLine       "1800x1440" 230.0 1800 1896 2088 2392 1440 1441 1444 1490 +hsync +vsync
    ModeLine       "1800x1440" 250.0 1800 1896 2088 2392 1440 1441 1444 1490 +hsync +vsync
    ModeLine       "640x480" 43.2 640 680 744 848 480 481 484 509 -hsync +vsync
    ModeLine       "768x576" 35.0 768 792 872 976 576 577 580 597 -hsync +vsync
    ModeLine       "768x576" 42.9 768 800 880 992 576 577 580 601 -hsync +vsync
    ModeLine       "768x576" 45.5 768 808 888 1008 576 577 580 602 -hsync +vsync
    ModeLine       "768x576" 51.8 768 808 888 1008 576 577 580 605 -hsync +vsync
    ModeLine       "768x576" 62.6 768 816 896 1024 576 577 580 611 -hsync +vsync
    ModeLine       "800x600" 68.2 800 848 936 1072 600 601 604 636 -hsync +vsync
    ModeLine       "1024x768" 113.3 1024 1096 1208 1392 768 769 772 814 -hsync +vsync
    ModeLine       "1152x864" 81.6 1152 1216 1336 1520 864 865 868 895 -hsync +vsync
    ModeLine       "1152x864" 119.7 1152 1224 1352 1552 864 865 868 907 -hsync +vsync
    ModeLine       "1152x864" 143.5 1152 1232 1360 1568 864 865 868 915 -hsync +vsync
    ModeLine       "1280x960" 124.5 1280 1368 1504 1728 960 961 964 1001 -hsync +vsync
    ModeLine       "1280x960" 129.9 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
    ModeLine       "1280x960" 179.0 1280 1376 1520 1760 960 961 964 1017 -hsync +vsync
    ModeLine       "1280x1024" 191.0 1280 1376 1520 1760 1024 1025 1028 1085 -hsync +vsync
    ModeLine       "1400x1050" 122.6 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
    ModeLine       "1400x1050" 149.3 1400 1496 1648 1896 1050 1051 1054 1094 -hsync +vsync
    ModeLine       "1400x1050" 155.8 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
    ModeLine       "1400x1050" 179.3 1400 1504 1656 1912 1050 1051 1054 1103 -hsync +vsync
    ModeLine       "1400x1050" 214.4 1400 1512 1664 1928 1050 1051 1054 1112 -hsync +vsync
    ModeLine       "1600x1200" 280.6 1600 1728 1904 2208 1200 1201 1204 1271 -hsync +vsync
    Option         "DPMS" "true"
#	HorizSync    28.0 - 78.0 # Warning: This may fry very old Monitors
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "All"
    BoardName      "All"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       1
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       32
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
EndSection
 
Old 04-11-2006, 01:14 PM   #9
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
This probably won't solve your problem, but why do you have modelines for resolutions your monitor can't run? None of your Modes in the "Screen Sectoin" go above 1024x768 yet you have modelines past 1600x1200?

As far as your problem goes, have you installed the proper drivers for your video card?

Last edited by Penguin of Wonder; 04-11-2006 at 01:15 PM.
 
Old 04-11-2006, 04:19 PM   #10
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,476

Rep: Reputation: 190Reputation: 190
Also, if you recently updated xorg, try reinstalling your nvidia drivers.
 
Old 04-11-2006, 05:05 PM   #11
EAD
Member
 
Registered: Mar 2006
Distribution: ARCH linux
Posts: 137

Original Poster
Rep: Reputation: 15
I have nvidia install, and even upgrade it to the newest one.
What else can it be?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help changing screen refresh rate Xolo Linux - Software 4 01-13-2006 12:02 PM
How to change screen refresh rate? Melon Mandriva 13 12-29-2004 09:21 AM
SuSE and screen refresh rate mISOk Linux - Newbie 2 02-10-2004 09:50 AM
Screen Refresh Rate deadream Slackware 2 06-03-2003 07:37 AM
Screen refresh rate... txag Linux - Newbie 5 11-09-2002 01:44 PM


All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration