Solved

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

Posted on 2008-10-03
12
12,531 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu not booting - How get past GRUB? 3 43
nagios remote hosts 9 56
how to rebuild XFS volume from LV 19 65
Coding C# in Linux 8 69
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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.
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.

809 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