Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-29-2004, 03:01 AM   #1
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Rep: Reputation: 36
command line help

i'd like to know whether I can change the resolution and refresh rate of my monitor from the command line.i'm running fedora core 2 with fluxbox.Please advise.
Old 09-29-2004, 03:21 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
Changing the resolution at start-up time:

There are two sides to this; the framebuffer (for text consoles) and the X server.

To change the framebuffer's resolution, you need to enter the command-line parameter
you will then be prompted to enter a scan-code when you boot up, with a list of resolutions (in characters) that they correspond to.

To change the start-up value of X, edit the file /etc/X11/XF86Config, and change the “Modes” setting to the resolution you want in pixels.

There are also utilities to change the resolution of the terminal within a program, e.g. svgalib has routines to do this, so there's probably commands that will work on-the-fly as well.
Old 09-29-2004, 03:24 AM   #3
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
you can edit XF86Config...
locate XF86Config
on my system its in /etc/X11

then open it with an editor and look for
Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes     "640x480"
        SubSection "Display"
                Depth     24
                Modes    "800x600" "640x480"
change to your liking.

Old 09-29-2004, 03:31 AM   #4
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Original Poster
Rep: Reputation: 36
I'm running Fedora core 2 and don't have xf86 but the xorg implementation of the x windows system.
Old 09-29-2004, 07:26 AM   #5
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
use xrandr to change X resolutions without restarting X. permanently preferred resolutions are still going to defined within xf86config


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 01:28 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:31 AM.

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