[lfs-dev] resizecons : a proposal

Ken Moffat zarniwhoop at ntlworld.com
Fri May 18 09:47:37 PDT 2012


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.
> 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.
-- 
das eine Mal als Tragödie, das andere Mal als Farce



More information about the lfs-dev mailing list