LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-21-2006, 07:36 AM   #1
narendra.pant
Member
 
Registered: Mar 2006
Posts: 86

Rep: Reputation: 15
changin refresh rate from command prompt


how can i change the desktop resolution and screen refresh rate from the command prompt
 
Old 03-21-2006, 08:38 AM   #2
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
I'm sure this has been covered many times before, but we can cover it again.

You need to modify your X11 configuration file. It is probably located at /etc/X11/xorg.conf or /etc/X11R6/xorg.conf. You will find a section called "Screen." There should be a line called "DefaultDepth" which tells which color depth to try first. Under the subsection with the same depth as your default depth (probably 24), you need to set the first resolution on the "Modes" line to the resolution you want.

To modify the horizontal sync rate and vertical refresh rate, see the section called "Monitor." There are two lines you will be interested in here, "HorizSync" and "VertRefresh." Be careful when changing these. X11 does not check to see if your monitor is actually capable of running what the config says, so you could seriously damage your monitor.

Here is a sample from my xorg.conf:
Code:
Section "Monitor"
  Identifier  "Monitor0"
  VendorName  "Monitor Vendor"
  ModelName   "LCD Panel 1024x768"
  HorizSync   31.5 - 48.5
  VertRefresh 40.0 - 70.0
  Option      "dpms"
EndSection

Section "Screen"
  Identifier  "Screen0"
  Device      "Videocard0"
  Monitor     "Monitor0"
  DefaultDepth 24
  SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1024x768" "800x600" "640x480"
  EndSubSection
EndSection
I hope this helps. Good luck, and be careful.
 
  


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
Vertical refresh rate, horizontal sync rate. NomDeGuerre Linux - Newbie 7 10-07-2005 02:36 AM
wrong refresh rate in command line mode? Meta42 Mandriva 2 03-19-2004 07:13 AM
Refresh Rate brian__johnson Linux - Newbie 24 02-01-2004 04:15 PM
refresh rate snocked Slackware 3 07-23-2003 11:27 AM
Refresh Rate command, what was it again? (not Xconfig.) Rampage2884 Linux - General 4 07-30-2002 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:15 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
Open Source Consulting | Domain Registration