LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-25-2008, 01:48 AM   #1
Novatian
Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 17 MATE 64bit and 32bit, TAILS, Fedora 20, Android, Manjaro.
Posts: 613

Rep: Reputation: 33
Using A Terminal To Change Resolution?


Could I have some word on how to change the resolution using a terminal input? After I tried KDE, GDE did not have the best resolution, it is a large CRT monitor that I have. I tried getting my computer to start Compiz, but the process did not go, the part about Nvidia and Xconfig... in the terminal, I may have messed things up.
 
Old 09-25-2008, 07:44 AM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 44
xrandr is what you're looking for, provided that it obeys the xorg xonfiguration files.
"xrandr -s ..." lets you change the resolution
 
Old 09-25-2008, 08:03 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
or you can manually edit the /etc/X11/xorg.conf file
 
Old 09-25-2008, 08:30 AM   #4
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Quote:
Originally Posted by sycamorex View Post
or you can manually edit the /etc/X11/xorg.conf file
Please post a copy of the section of your xorg.conf showing what can be edited to accheive a change in the resolution.

In one section of my xorg.conf I see four screen resolutions that are available and in another Section I see Screen = Default

What can be edited to change the default screen resolution?
-----------------------------------------------------------
Section "Screen"
Identifier "Default Screen"
Device "VIA Technologies, Inc. UniChrome Pro IGP"
Monitor "DELL 1901FP"
DefaultDepth 24
SubSection "Display"
Modes "1280x1024" "1152x864" "1024x768" "800x600" "720x400" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse

----------------------------------------------------------
Thanks for your help
 
Old 09-25-2008, 09:18 AM   #5
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
There are two places you will edit,


Edit the monitor section and put in the right H and V settings for your monitor.




Code:
Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Q71-9"
	DisplaySize  320	240
	HorizSync    30.0 - 70.0
	VertRefresh  50.0 - 160.0
	Option	    "dpms"
EndSection

Then edit the Display section.





Code:
Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor    "Monitor0"
	DefaultDepth     24 <--- if set to 24
	SubSection "Display"
		Viewport   0 0
		Depth     16
		Modes    "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1280x1024" "1152x864" "1152x768" "1024x768" "800x600" "640x480" <---- set the resolution you want as default to the left of list
	EndSubSection
EndSection
 
Old 09-25-2008, 10:03 AM   #6
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Thanks for the response hope it helps the OP. My xorg.conf is simplistic. Guess I need to upgrade to Ubuntu 8.04
 
Old 09-25-2008, 11:53 AM   #7
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
If your monitor can handle higher resolutions and your driver is configured properly,
you can just add it to xorg.conf

at the moment the line in question from your xorg.conf looks as follows:
Quote:
Modes "1280x1024" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
just add another resolution at the front:
eg.
Quote:
Modes "1400x1050" "1280x1024" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
But you need to know the specifications of your monitor: max resolution and correct horizontal
and vertical refresh rates.
Anyway, backup your current xorg.conf and then you could try to add some resolutions:
If after your changes it doesn't open the graphical environment, just press ctrl+alt+f1 and your
log in using command line to restore your original xorg.conf
 
Old 09-25-2008, 03:23 PM   #8
Novatian
Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 17 MATE 64bit and 32bit, TAILS, Fedora 20, Android, Manjaro.
Posts: 613

Original Poster
Rep: Reputation: 33
brendan@brendan-desktop:~$ lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev c4)
00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1a)
00:07.4 SMBus: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 50)
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0b.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
00:0b.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
00:0b.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
00:0d.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 24)
01:00.0 VGA compatible controller: NVidia / SGS Thomson (Joint Venture) Riva128 (rev 22)
brendan@brendan-desktop:~$

I tried previously in KDE, to get compiz going and partly altered the xconfig.

But what is above is useful? Tired, must check later.
 
Old 09-25-2008, 03:42 PM   #9
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
This is the proprietary driver for Nvidia Riva 128 (and instructions how to install it)
http://www.nvidia.com/object/linux_d..._71.86.06.html (assuming that you use a 32-bit linux version.)
 
  


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
how to change screen resolution in terminal (ubuntu) sunnior Linux - Newbie 1 09-25-2008 09:32 AM
How to change resolution in terminal mode aznluvsmc Fedora 5 12-19-2005 09:42 AM
Change non-X (terminal) resolution? Bohiti Linux - Newbie 3 07-28-2005 03:22 PM
how to change virtual terminal resolution? lothario Linux - Software 5 05-20-2004 08:25 AM
RedHat 7.3 / How to change resolution & how to logout and into a terminal fleshwound Linux - Software 1 07-09-2003 08:22 AM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration