Solved

How to change screen resolution in Linux (Command line)?

Posted on 2008-10-03
12
12,500 Views
Last Modified: 2013-12-16
Hello group,

I'm using command line only on my linux box and also using a wide screen (DELL) the problem is that fonts are big and I want to have bigger resolution.

How can I change it?

Thanks,
ak
0
Comment
Question by:akohan
12 Comments
 
LVL 9

Expert Comment

by:chingmd
Comment Utility
You need to install and configure the framebuffer.  But the CentOS5 doens't have it turned on by default.  You will need to do some custome kernel complilation to make it available.  

0
 
LVL 20

Expert Comment

by:nedvis
Comment Utility
What you actually need to do is to reconfigure your current XTERM ( terminal emunlator for X ) in Linux.
More precisely you have to tell X server how to utilize your video card and monitor to their fiull potincial and
not to use only safe setting.
This article may help you understanding X server basics and how to configure Xterm.
http://linuxhelp.blogspot.com/2005/10/configuring-xterm-in-linux.html

goog luck
0
 
LVL 9

Expert Comment

by:chingmd
Comment Utility
nedvis, we interpreted the question different.   His statement of command line only, I took as no X.  Your interpretation was inside X on a command line.

akohan, please clarify.

Are you on the console?  (not remote)
Using X at all, or not?


0
 
LVL 6

Expert Comment

by:dathho
Comment Utility
Sorry, only 640x480 unless you run X.
To do that edit your /etc/inittab file

if you have
id:3:initdefault:

change it to
id:5:initdefault:

If this is already set to X11 (read the file) then there is something wrong with your xconf...

After that it depends on which display manager you are using.  If Gnome then
System -> Preferences -> Hardware -> Display Resolution
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
Comment Utility
use command
system-config-display.
0
 

Author Comment

by:akohan
Comment Utility


Thanks to all for your the response. Chingmd, regarding your question I'm using my server directly there is no any remote thing or ... terminal such putty or ....
I hope this clarifies it.

Regards.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:akohan
Comment Utility

Dathho,

I guess what you came up with is for X but I'm not using X. It is only command line. I rather use command line to learn it deeper. Of course, the file /etc/inittab is here and I can modify it but will that create a proper resolution after rebooing the system?

Thanks!
0
 
LVL 9

Accepted Solution

by:
chingmd earned 125 total points
Comment Utility
If you not using X, then you will need to utilize framebuffer to get resolutions higher than 640x480.    

Check out the use of framebuffer:

Check for kernel support.  

zcat /proc/config.gz | grep -i frame

If you have frambufffer support in the kernel, then take a look at the following URLs for getting it started.


http://www.faqs.org/docs/Linux-HOWTO/Framebuffer-HOWTO.html

If you are using grub for the bootloader, you can apply the framebuffer information fromthis gentoo configuration cage.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10

Here's another good resource.
http://www.linux.org/docs/ldp/howto/Framebuffer-HOWTO-5.html



0
 
LVL 9

Expert Comment

by:chingmd
Comment Utility
If you don't have it in the kernel, you'll need to recompile the kernel to enable it.  I think that is a wholly different question from the how to get a  higher resolution console on your linux box.
0
 
LVL 34

Expert Comment

by:Duncan Roe
Comment Utility
You can get some improvement over the default 640x480 layout even without framebuffer.
Using the LILO boot loader, you specify "vga=?" for a list of supported modes (resolutions). Once you know what you want, you change to having  e.g. vga=0x330 in your lilo.config.
I suspect the boot loader has to support this and I don't know if GRUB does, although "info grub" has a few references to adding "vga=ext" to the boot command line.
The extra resolutions you get are nothing special, just a bit better than 640x480. Or maybe the resolution is the same but it squeezes in more  and longer lines of small characters - it's a while since I used it.
Once you have kernel framebuffer support (say using the last HOWTO above), you can set the console resolution using the fbset command, e.g.:

/usr/sbin/fbset -fb /dev/fb0 -a 1600x1200-76
0
 
LVL 23

Expert Comment

by:Mysidia
Comment Utility
Try using the resizecons command:

       resizecons COLSxROWS
       resizecons -lines ROWS

Or man resizecons
0
 
LVL 3

Expert Comment

by:ricardoelena
Comment Utility
you can check your file /etc/X11/xorg.conf
look for Section "Screen"

de "DefaultDepth     24"

and arrenge the order of the under the defualt depth  Modes    "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
 
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now