2012/5/18 Ken Moffat <zarniwh...@ntlworld.com>:
> On Thu, May 17, 2012 at 01:17:46PM +0800, xinglp wrote:
>> Does the 'setfont' resize the console on the fly as change the
>> "vga=xxx" of grub do.
>> The behavior of changing console's resolution on the fly is usefull
>> when use a "live" lfs.
>> As I don't have X installed.
>
>  No idea - I don't use vga= with grub (although I do use
> video=1024x768 on a machine with a 1600x1200 LCD and an 8x16 font),
> so I don't really know how things appear with that grub option.
>
>  Since it concerns you, on *one* of your ttys pick a different-sized
> font, e.g. 'setfont LatGrkCyr-12x22' (I assume you are using
> kbd-1.15.3 : if not, sun12x22 has a similar cell size), look at it,
> then restore you original font with setfont.  Repeat for e.g.
> default8x9, default8x14, gr928-9x14.  That last one is for greek,
> suggested because the cell should be wider, most fonts < 22 pixels
> high are only 8 pixels wide, although there is prbably a narrower
> font somewhere.
>
>  On my machines (all use framebuffers), setfont gives a character
> size to suit the font.  So, if I allow it to use 1600x1200 it fills
> it all with character cells : 8x16 fonts give 200x75, 12x22 give
> 133x54 if my maths is right, and limiting it to 1024x768 with an 8x16
> font gives 128x48 (and the whole screen is still filled).
>
>  Does this work for you ?
The setfont does change the font size,but it does not work as I change
vga=xxx in grub.

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?

>
> ĸen
> --
> 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