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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-23-2004, 03: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, 03: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, 03: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 03:51 PM.
|
|
|
01-23-2004, 03:56 PM
|
#4
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305
Rep:
|
you can startx -- -bpp 8
|
|
|
01-23-2004, 03: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, 04: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
|
|
|
All times are GMT -5. The time now is 02:54 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
|
|