[lfs-dev] resizecons : a proposal

Ken Moffat zarniwhoop at ntlworld.com
Thu May 17 12:31:49 PDT 2012


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 ?

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce



More information about the lfs-dev mailing list