| Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
01-23-2004, 02:30 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2004
Location: Ohio
Distribution: Gentoo
Posts: 26
Rep:
|
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
|
|
|
|
01-23-2004, 02:44 PM
|
#2
|
|
Member
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416
Rep:
|
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
|
|
|
|
01-23-2004, 02:49 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2004
Distribution: Mandrake 9.2,9.1,9.0,8.2,8.1
Posts: 9
Rep:
|
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 02:51 PM.
|
|
|
|
01-23-2004, 02:56 PM
|
#4
|
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,164
Rep:
|
you can startx -- -bpp 8
|
|
|
|
01-23-2004, 02:56 PM
|
#5
|
|
Member
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416
Rep:
|
Oh yeah.
BACK UP CONFIG FILES BEFORE CHANGING THEM!
You'd think I'd learn to remind people of that...
--Rounan
|
|
|
|
01-23-2004, 03:55 PM
|
#6
|
|
LQ Newbie
Registered: Jan 2004
Location: Ohio
Distribution: Gentoo
Posts: 26
Original Poster
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:58 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|