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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
11-28-2002, 03:43 AM
|
#1
|
Member
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216
Rep:
|
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.
|
|
|
11-28-2002, 06:26 AM
|
#2
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
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 ....
|
|
|
11-28-2002, 06:36 AM
|
#3
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
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 ...
|
|
|
11-28-2002, 08:35 AM
|
#4
|
Member
Registered: Oct 2002
Posts: 44
Rep:
|
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.
|
|
|
11-28-2002, 10:12 AM
|
#5
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
You need to put in your boot line, like:
kernel = (hdX,X)/boot/vmlinuz-<version> root=/dev/hdX 3 vga=0x31B hda=autotune
|
|
|
11-28-2002, 11:40 AM
|
#6
|
Member
Registered: Oct 2002
Posts: 44
Rep:
|
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?
|
|
|
11-28-2002, 12:15 PM
|
#7
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
Probably its in another place, what's your distro?
|
|
|
11-28-2002, 01:25 PM
|
#8
|
Member
Registered: Oct 2002
Posts: 44
Rep:
|
Should've given that info.
RH7.2
|
|
|
11-28-2002, 01:59 PM
|
#9
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
Try to look in /lib/kbd/consolefonts/
|
|
|
11-28-2002, 02:44 PM
|
#10
|
Member
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216
Original Poster
Rep:
|
Where can I find this "boot line" to append to?
|
|
|
11-28-2002, 02:59 PM
|
#11
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
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.
|
|
|
11-28-2002, 08:40 PM
|
#12
|
Member
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216
Original Poster
Rep:
|
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.
|
|
|
11-28-2002, 09:02 PM
|
#13
|
Member
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216
Original Poster
Rep:
|
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.
|
|
|
11-29-2002, 06:01 AM
|
#14
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
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/
|
|
|
11-29-2002, 07:51 PM
|
#15
|
Member
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|