2012/5/19 Ken Moffat <zarniwh...@ntlworld.com>:
> On Fri, May 18, 2012 at 02:39:50PM +0800, xinglp wrote:
>> The setfont does change the font size,but it does not work as I change
>> vga=xxx in grub.
>>
>  Can you be more specific, please ?  I don't understand exactly what
> you mean.  Your kernel starts with a particular font size, whichyou
> have set from grub.  When setfont is run, what happens ?
>
>  I would expect that using a bigger font you would see fewer
> characters on the screen, or more characters if you use a smaller
> font.

Ennn, my poor English. I have not set any font from grub.
When I setfont lat1-08, font become smaller,and I can see more
characters on the screen.
But it looks like different from when I set the "just fit" video
parameter to grub.
Then grub parameter way looks more comfortable.

>> BTW: I have never successed set resolution other than use vga=xxx
>>
>> #########################################
>> # This is my grub.cfg, it works well for setting resolution
>> set timeout=0
>> set default=0
>> insmod vbe
>>
>> menuentry 3.3.6 {
>>         set root=(hd0,0)
>>         linux /boot/vmlinuz-3.3.6 root=/dev/sda1 vga=0x314
>> }
>> #########################################
>> # I have tried the below config file, but it does not set resolution
>> set timeout=0
>> set default=0
>> insmod video
>> insmod video_fb
>>
>> menuentry 3.3.6 {
>>         set root=(hd0,0)
>>         linux /boot/vmlinuz-3.3.6 root=/dev/sda1 video=800x600
>> }
>> #########################################
>> Any idea?
>>
>  As it happens, although I use a framebuffer on my server, and it
> has (I think) some form of radeon chip, I had a lot of fun and games
> getting it to work - on all my other boxes, the radeon framebuffer
> 'just worked', but this one was different.
>
>  In the end, I've got the following in grub.cfg, for 1024x768 with
> an 8x16 font:
>
> set timeout=10 # just a placemarker to show where this goes
> # attempt to set 1024x768 : this is suficient for vesafb
> # so forget about trying to use kms
> setgfxmode=1024x768
> setgfxpaylod=keep
> insmod gfxterm
> insmod vbe
>
>  on the kernels, I add vga=792 lke this -
>
>        linux   /vmlinuz-3.0.4-sda5 root=/dev/sda5 vga=792 ro
>
>  and in my kernel config I have the following for the console
>
> #
> # Console display driver support
> #
> CONFIG_VGA_CONSOLE=y
> # CONFIG_VGACON_SOFT_SCROLLBACK is not set
> CONFIG_DUMMY_CONSOLE=y
> CONFIG_FRAMEBUFFER_CONSOLE=y
> # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
> # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
> CONFIG_FONTS=y
> # CONFIG_FONT_8x8 is not set
> CONFIG_FONT_8x16=y
> [...]
> CONFIG_LOGO=y
> # CONFIG_LOGO_LINUX_MONO is not set
> CONFIG_LOGO_LINUX_VGA16=y
> CONFIG_LOGO_LINUX_CLUT224=y
>
>  I suggest you try adding the three 'gfx' lines to your grub.cfg and
> see if they help (800x600 ought to be a valid choice there).  BUT,
> make sure you have a rescue disk in case things go wrong - when
> changing the overall grub options, it's easy to get things wrong and
> prevent grub booting.
>
>  For the kernel options, I hope you don't need them - but they work
> for me.

I just not have the "CONFIG_LOGO_xxxx"and "CONFIG_DUMMY_CONSOLE",
but the "vga=xxx" works for my kernel.

I've tried your config file, still not work for me. :-(

Since I does not speed a lot time on a local console, I'll use  the
"vga=xxx" for now.
When I'm free I'll go on dig it.

Thanks.

> --
> das eine Mal als Tragödie, das andere Mal als Farce
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to