Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-10-03
12
Medium Priority
?
12,699 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
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.

 
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 500 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 35

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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 17 hours left to enroll

886 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