LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-23-2004, 03:30 PM   #1
Teoryn
LQ Newbie
 
Registered: Jan 2004
Location: Ohio
Distribution: Gentoo
Posts: 26

Rep: Reputation: 15
Setting Resolution from command line


I just installed Mandrake 9.2, and this is my first experience with Linux. I got the OS installed, but I selected the wrong screen resolution during setup. I can't run X because the selected resolution is to large for the video memory. Is there a way I can change the resolution I want X to run in from the command line?

Thanks
teoryn
 
Old 01-23-2004, 03:44 PM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
You need to edit (as root)
/etc/X11/XFree86-4.config

At least, that's where it is in Debian. Do a:

find / -name XFree86-4.config

if it's not there.

About the middle of the file, there should be a "screens" section with a bunch of display modes. Take out the one that's borked.

see man XF86-4.config for exact details.

Cheers,
--Rounan
 
Old 01-23-2004, 03:49 PM   #3
NLG
LQ Newbie
 
Registered: Jan 2004
Distribution: Mandrake 9.2,9.1,9.0,8.2,8.1
Posts: 9

Rep: Reputation: 0
edit /etc/X11/XF86Config-4

Check your monitor's manual or docs for the res and horiz and vert refresh rates it supports.
You will have to be root to edit the file, but you can view it as a regular user in your terminal using, oh, let's say, the 'cat' command. yeah.
cat /etc/X11/XF86Config-4
use this command to look at your file first to see what you might need to change.
Once you are ready, change to the root user

su - root
password

then move to the dir

cd /etc/X11

then save the current file in case you @#$% up bad.

cp XF86Config-4 XF86Config-4.old

use an editor to make and save the changes. then try to start X

startx
*********************************************************
Here is mine, note I am using the nvidia driver I downloaded and installed and i have a flat panel monitor that supports 1280x1024 res., and I have chopped out most of the sections you don't need to do something with to change the res. Don't delete any sections, just look for what to change. Where you see a line that starts with a # , that line is not in use as it is 'commented out' by the "#" symbol.

Section "Monitor"
Identifier "monitor1"
VendorName "Generic"
ModelName "Flat Panel 1280x1024"
HorizSync 31.5-67
VertRefresh 50-75

# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
Identifier "device1"
VendorName "NVidia"
BoardName "NVIDIA GeForce4 (generic)"
Driver "nvidia"
Option "DPMS"
EndSection

Last edited by NLG; 01-23-2004 at 03:51 PM.
 
Old 01-23-2004, 03:56 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305

Rep: Reputation: 66
you can startx -- -bpp 8
 
Old 01-23-2004, 03:56 PM   #5
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Oh yeah.

BACK UP CONFIG FILES BEFORE CHANGING THEM!

You'd think I'd learn to remind people of that...

--Rounan
 
Old 01-23-2004, 04:55 PM   #6
Teoryn
LQ Newbie
 
Registered: Jan 2004
Location: Ohio
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
Thank you!

It turned out the part i needed to change was the subsections near the end of XF86Config-4

Well, Im addicted to Linux now. Time to spend many hours reading when I should be doing homework.

Thanks,
Teoryn
 
  


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
Setting screen resolution from command line interface. thaloas Linux - Software 4 06-09-2005 03:50 PM
change monitor resolution from command line gschrade Linux - Newbie 2 04-23-2004 04:57 PM
Setting resolution from command line Teoryn Linux - General 1 01-23-2004 03:56 PM
How do i set my command line resolution greendusk Linux - General 1 09-26-2003 06:14 PM
Changing Resolution of Linux command line mindfrost82 Linux - Newbie 6 07-09-2003 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:54 PM.

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