LinuxQuestions.org
Help answer threads with 0 replies.
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 11-28-2002, 03:43 AM   #1
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Rep: Reputation: 30
Font size in console


I'm looking to change the resolution or font size in the console (init lvl 3). The text based cmd mode not x. My resolution is running fine in the xwindows at 1400x1050, but when I switch out, the resolution seems to be running at 1024x768. How can I get it to run at 1450x1050 so I can fit more type on the screen?

RH 7.3
Grub boot loader

Last edited by psyklops; 11-28-2002 at 03:45 AM.
 
Old 11-28-2002, 06:26 AM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
You will need to use framebuffer, just add an option vga=<resolution> in your boot line. The resolution is given in hex code from that table:

| 640x480 800x600 1024x768 1280x1024
-----+-------------------------------------
256 | 0x301 0x303 0x305 0x307
32k | 0x310 0x313 0x316 0x319
64k | 0x311 0x314 0x317 0x31A
16M | 0x312 0x315 0x318 0x31B

Hope that helps ....
 
Old 11-28-2002, 06:36 AM   #3
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Forgot to say about the font ...
To change your font style, edit /etc/sysconfig/i18n and change the var SYSFONT.
To see your options check at /usr/lib/kbd/consolefonts ...
 
Old 11-28-2002, 08:35 AM   #4
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Rep: Reputation: 15
Tried this in grub.conf

#boot=/dev/hda1
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
vga=0x31B

No diff in console.

I believe I have framebuffer support compiled into the kernel.
 
Old 11-28-2002, 10:12 AM   #5
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
You need to put in your boot line, like:

kernel = (hdX,X)/boot/vmlinuz-<version> root=/dev/hdX 3 vga=0x31B hda=autotune
 
Old 11-28-2002, 11:40 AM   #6
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Rep: Reputation: 15
My /etc/sysconfig/i18n is:

LANG="en_US"
SUPPORTED="en_US:en"
SYSFONT="lat0-sun16"
SYSFONTACM="iso01"

Only problem is I do not have

/usr/lib/kbd/consolefonts

/usr/lib/
kbackgammon.la
kbackgammon.so
kbuildsycoca.la
kbuildsycoca.so

Am I missing some packages?
 
Old 11-28-2002, 12:15 PM   #7
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Probably its in another place, what's your distro?
 
Old 11-28-2002, 01:25 PM   #8
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Rep: Reputation: 15
Should've given that info.

RH7.2
 
Old 11-28-2002, 01:59 PM   #9
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Try to look in /lib/kbd/consolefonts/
 
Old 11-28-2002, 02:44 PM   #10
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
Where can I find this "boot line" to append to?
 
Old 11-28-2002, 02:59 PM   #11
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Edit /boot/grub/menu.lst, and look for a title that you usually boot from, then the next line will be something like the one I posted here earlier ...

Last edited by vladkrack; 11-28-2002 at 03:01 PM.
 
Old 11-28-2002, 08:40 PM   #12
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
Unhappy

I checked out menu.lst and the table you listed above. Should I just add the line

vga=<resolution>

at the end of the red hat linux section? The only problem is I dont know what 1400x1050 is in hex using 24bit color.


edit: I found this through google

"So what is the video mode number for 1400x1050? Various values were found on the web. Trying some, and with a little experimentation of my own, I discovered that 1400x1050x16 is 0x142 (as the poster said) and 1400x1050x24 is 0x143. (That's vga=0x343; remember to add 0x200.)"

My question is what does it mean "to add 0x200"? Where should I add this...? Do I even need to?

Last edited by psyklops; 11-28-2002 at 08:51 PM.
 
Old 11-28-2002, 09:02 PM   #13
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
Well........ I added the

vga=0x343

to the bottom of red hat section in the menu.lst and rebooted but nothing happened. Any suggestions?

edit: I added

vga=0x200

at the bottom of vga=343 and rebooted but nothing happened...

Last edited by psyklops; 11-28-2002 at 09:12 PM.
 
Old 11-29-2002, 06:01 AM   #14
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
The meaning of add 0x200 to that numbar is because there are two tables alike, vgacon and vgafb. The video mode number of the Linux kernel is the VESA mode number plus 0x200. You should try a number from the above table, just to see how it works.

Linux_kernel_mode_number = VESA_mode_number + 0x200

Here are those VESA mode numbers:

| 640x480 800x600 1024x768 1280x1024
----+-------------------------------------
256 | 0x101 0x103 0x105 0x107
32k | 0x110 0x113 0x116 0x119
64k | 0x111 0x114 0x117 0x11A
16M | 0x112 0x115 0x118 0x11B

You can find more in /usr/src/linux-X.X.X/Documentation/fb/
 
Old 11-29-2002, 07:51 PM   #15
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
Well I've done everything possible. I get an error when I boot up and I can manually select the font...

"You passed an undifined mode number.
Press return to see video modes avilable."

How would I check to see if I have framebuffer support compiled in the kernel? Could this be my problem?

Here the line in menu.lst

kernel /vmlinuz-2.4.18.-17.7.x ro root=/dev/hda5 hdc=ide-scsi vga=0x343

Last edited by psyklops; 11-29-2002 at 07:58 PM.
 
  


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
console screen size only 1/2 of monitor size infamous41md Linux - Newbie 9 05-20-2006 12:08 PM
How to increase font size in 'rxvt' (i.e. in fluxbox console)? kornerr Linux - General 2 02-19-2005 10:07 AM
web page, font and font size linuxzouk Programming 4 06-19-2004 10:03 PM
change console font size? andrewlkho Debian 4 07-07-2003 12:48 PM
Changing console font size frankietomatoes Linux - General 5 06-11-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:55 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
Open Source Consulting | Domain Registration