Solved

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

Posted on 2008-10-03
12
12,563 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
ID: 22638452
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
ID: 22638463
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
ID: 22638514
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 6

Expert Comment

by:dathho
ID: 22638640
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
ID: 22638882
use command
system-config-display.
0
 

Author Comment

by:akohan
ID: 22638889


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
 

Author Comment

by:akohan
ID: 22638902

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
ID: 22638949
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
ID: 22638951
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
ID: 22642629
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
ID: 22642731
Try using the resizecons command:

       resizecons COLSxROWS
       resizecons -lines ROWS

Or man resizecons
0
 
LVL 3

Expert Comment

by:Ricardo Elena
ID: 22739010
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

713 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