11 Mar 2009 @ 9:09 AM 
 

Linux: How to change the text size or character size in runlevel 3 text mode

 

 

If you have large size (21″) or small size (14″) monitor, it is better to use large/small character size. But how do you setup character size in runlevel 3 under Linux?

The answer is simple, use the kernel framebuffer. It allows you to set the Linux text screen (console) to higher or lower resolution. The Linux framebuffer (fbdev) is a graphic hardware-independent abstraction layer to show graphics on a console without relying on system-specific libraries such as SVGALib or the heavy overhead of the X Window System.

Open GRUB configuration file grub.conf

vi grub.conf

Append line vga=0×318 (a 24-bit color depth @ 1024×768 display) to kernel line. At the end your modification should look like as follows:

title Enterprise Linux-base (2.6.18-92.el5)       root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet vga=0×318
initrd /initrd-2.6.18-92.el5.img

Save and close the file. Reboot the system:

telinit 6

0×318 (hex) is a mode. Here are common modes:

Colors 640×480 800×600 1024×768
8 bits 0×301 0×303 0×305
16 bits 0×311 0×314 0×317
24 bits 0×312 0×315 0×318

See kernel docs - Documentation/i386/boot.txt and Documentation/svga.txt files for more information. You can also pass special parameter called ask i.e. vga=ask for menu.

Please note that not all video cards out there support kernel framebuffer mode. Also you may need to to use special driver.

References:

Tags Tags: , , , , ,
Categories: linux
Posted By: DteK
Last Edit: 11 Mar 2009 @ 09 16 AM

E-mailPermalink
 

Responses to this post » (One Total)

 
  1. KENNY said...
    2:17 pm - September 6th, 2010


    CheapTabletsOnline.Com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. High quality pills. Buy pills online

    Buy:Amoxicillin.Lipothin.Female Cialis.SleepWell.Seroquel.Prozac.Lipitor.Benicar.Cozaar.Advair.Aricept.Female Pink Viagra.Wellbutrin SR.Zocor.Acomplia.Buspar.Ventolin.Zetia.Lasix.Nymphomax….

 

Leave A Comment ...

 


You must be logged in to post a comment.


 XHTML:
You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
\/ More Options ...
Change Theme...
  • Role »
  • Posts »
  • Comments »
Change Theme...
  • VoidVoid (Default)
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LiteLightweight
  • No Child Pages...