LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-26-2007, 12:27 AM   #1
mmcheese
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Rep: Reputation: 0
smaller console font


hi i am using debian and when i switch to a console with ctrl-alt-f1 the font is huge and i was wondering if there is a way to make it smaller. please help me if you can and if possible with step-by-step instructions thanks
 
Old 12-26-2007, 01:33 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Welcome to LQ!

In a terminal as root edit "/etc/lilo.conf" and change the console font. Here's mine:
Code:
mingdao@silas:~$ cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/sda
compact # faster, but won't work on all systems.
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x256
#vga = 773
vga = 795
# Linux bootable partition config begins
image = /boot/vmlinuz
initrd = /boot/initrd.gz
root = /dev/mapper/cryptslackroot
label = Slackware
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/mapper/cryptslamdroot
label = Slamd64
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda1
label = Windows
# map-drive = 0x80
# to = 0x81
# map-drive = 0x81
# to = 0x80
table = /dev/sda
# Windows bootable partition config ends
The "vga = 795" line makes console 1280x1024x24 -- you can Google "set console font" or similar for other sizes.
 
Old 12-26-2007, 01:49 AM   #3
mmcheese
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
thanks for the quick reply, however, i use grub as my bootloader. also, i've tried various vga values in the grub conf file but they just seem to make the font smaller for a few seconds during bootup then it reverts back.
any other suggestions?
 
Old 12-26-2007, 05:28 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Does it revert back before or after the kernel is done booting?
 
Old 12-26-2007, 02:00 PM   #5
mmcheese
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
to be honest, i'm not exactly sure.
early on in the dmesg there is a line with whatever res i choose at the beginning:
Code:
Console: colour VGA 132x60
console [tty0] enabled
then after a bunch more lines there is this:
Code:
Boot video device is 0000:00:01.0
vga16fb: initializing
vga16fb: mapped to 0xc00a0000
Console: switching to colour frame buffer device 80x30
fb0: VGA16 VGA frame buffer device
fb1: Virtual frame buffer device, using 1024K of video memory
i'm fairly sure this is where it switches to the smaller resolution with a penguin logo. after this there's a bunch more lines and it finishes and launches gdm. i'm not sure if that answers your question though
 
Old 12-26-2007, 10:43 PM   #6
kzutter
Member
 
Registered: Nov 2007
Location: Carson City, NV USA
Distribution: Various, but always Debian based
Posts: 70

Rep: Reputation: 15
Thumbs up

Well, it helps to know which font you want to switch to.
Look in /usr/share/consolefonts/ to see your default choices.

try this in a console window
Code:
consolechars -f cp857-8x8
You can learn more at:
http://dsl.org/cookbook/cookbook_20.html#SEC318

It was pretty easy to find on google.

To learn more about the consolechars command:

Code:
man consolechars
Have Fun!
 
Old 12-26-2007, 11:04 PM   #7
mmcheese
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
eh my bad, i should have titled my thread differently. i'm actually looking for a way to raise the resolution of the console. thanks for the suggestion though, i might stick with it if i can't get the console res up
 
Old 12-26-2007, 11:21 PM   #8
mmcheese
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
ok to restate my question (because i didnt do a good job the first time): i have this graphics card:
Code:
00:01.0 VGA compatible controller: Intel Corporation 82810 CGC [Chipset Graphics Controller] (rev 03)
can anyone please tell me what i need to do in order to get the console to 1024x768 resolution. ie what do i need to compile into the kernel, what i need to put in my grub conf file, etc. whatever is necessary. if you have that information i will be incredibly grateful to you
 
Old 10-14-2010, 01:32 PM   #9
rjcooks
Member
 
Registered: Jan 2008
Location: NE AR USA
Distribution: Fedora & openSUSE ...Mandriva-2010.1.
Posts: 81

Rep: Reputation: 20
Quote:
Originally Posted by mmcheese View Post
ok to restate my question (because i didnt do a good job the first time): i have this graphics card:
Code:
00:01.0 VGA compatible controller: Intel Corporation 82810 CGC [Chipset Graphics Controller] (rev 03)
can anyone please tell me what i need to do in order to get the console to 1024x768 resolution. ie what do i need to compile into the kernel, what i need to put in my grub conf file, etc. whatever is necessary. if you have that information i will be incredibly grateful to you
This should have been answered so despite the enormous time lost, here:
First you need to know what the chip & driver can do.
If not installed, install "hwinfo" program.
Then in a shell|terminal execute

hwinfo --framebuffer

The [mode] reported by hwinfo are in hexadecimal. Use them with the '0x' prefix or convert them to decimal and place
vga=[mode]
at the end of the kernel command line in grub(presumed) menu.lst.
E.g., output will look like
Mode 0x0317: 1024x768 (+2048), 16 bits
and
Mode 0x0341: 1024x768 (+4096), 24 bits
(for 1024x768)
vga=0x317 will yield 1024x768x16

Typically, '' vga=791 '' is used as a default for 1024x768x16.
(791 is decimal of 317 hex)

One can also use
vga=ask
in the grub menu.lst and it will display a list at beginning of the boot process. Then just type in the desired mode # at the "vga=ask" prompt and hit enter.
Once one knows the desired number, change the "ask" in menu.lst to that number.

Both vesafb and vgacon are, AFAIK, always compiled into the various distributions kernels and therefore available. If one is customizing a kernel then just make sure those are compiled into kenel(i.e., not as modules).
( vesafb is for VESA graphics mode; vgacon is for text mode. )

READ
.../kernel/Documentation/fb/vesafb.txt
for more info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smaller Font Size In HTML runnerpaul Programming 3 06-13-2007 07:20 AM
Smaller font during startup? Timmy66 Debian 6 12-13-2006 04:53 PM
smaller font with aterm lothario Linux - Software 2 11-06-2006 06:58 PM
how could i make my font size smaller in terminal Paxmaster Linux - Software 3 02-05-2005 09:43 PM
how to get smaller font on TTY browny_amiga Linux - General 2 06-10-2003 06:34 AM


All times are GMT -5. The time now is 11:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration