LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-26-2003, 11:05 PM   #1
justin9
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Fedora Core 2
Posts: 36

Rep: Reputation: 15
Unhappy how do i change the graphical res. from command line?


I am having a problem with RedHat 9 and my monitor. I was running redhat and I decided to lower my resolution because it was just a little hard to see, so I lowered it from 1280 x 1024 to 1027 x 768 i believe, and then i logged out to try the new resolution. then I got the crazy garbled screen that you get when you set your resolution too high.
So now im really stuck, and I dont know how i can change the res without being in graphical mode. thanks for your time!
 
Old 12-26-2003, 11:37 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
The resolutions used by X are defined in /etc/X11/XF86Config-4. As root, open that file in a text editor (like vi, nano, jed). Towards the bottom is a section showing lists of different resolutions; remove the ones that are causing problems.
 
Old 12-27-2003, 03:26 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you should be able to get out to a text screen by hitting
control-alt-f2
 
Old 12-27-2003, 08:10 AM   #4
nexx_au
Member
 
Registered: Dec 2003
Distribution: Fedora Core 1
Posts: 69

Rep: Reputation: 15
Here's a tip:

When in graphical mode, you can change your resolution 'on the fly' by pressing Ctrl & Alt & Numpad + / -

Otherwise you can edit your XF86Config file as mentioned in the first reply.
 
Old 12-27-2003, 11:46 AM   #5
justin9
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Fedora Core 2
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks for your help everyone. I got it to work by changing the XF86Config file, but ill keep in mind the on the fly resolution changing.
 
Old 03-27-2004, 02:59 AM   #6
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
What should I edit to have Enlightenment start up in my preferred resolution? (eg. 1024x768) ?

Thanks !

XF86Config(Screen section) as follows :


Section "Screen"

# Don't specify DefaultColorDepth unless you know what you're
# doing. It will override the driver's preferences which can
# cause the X server not to run if the host doesn't support the
# depth.
Identifier "Screen 1"
Device "VMware SVGA"
Monitor "vmware"
DefaultDepth 24
SubSection "Display"

# VGA mode: better left untouched
Depth 4
Modes "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
 
Old 03-27-2004, 04:16 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"

to

Modes "1024x768" "1280x1024" "1280x960" "1152x864" "800x600" "640x480"

i think.

you may have to do

Modes "1024x768" "800x600" "640x480"

but i doubt it.
 
  


Reply



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
ImageMagick -- Command line Graphical Suite LinuxLala Linux - News 1 07-20-2005 08:40 AM
How do you change INIT startup to level 3 (graphical) from command line? Fear58 Linux - Newbie 2 06-25-2004 08:15 PM
FREAKISHLY URGENT: How can I change the screen res. through command lines? nealkochhar Linux - Newbie 16 06-09-2004 03:49 PM
starting graphical login from command line funkymunky Red Hat 1 02-21-2004 12:28 AM
Command line screen res changing in X from Xterm? Frustin Linux - Hardware 9 12-16-2003 07:29 AM

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

All times are GMT -5. The time now is 06:28 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