Re: VESA VGA Frame Buffer

Anders Melchiorsen (
27 Jul 1998 19:55:03 +0200

Paul <> writes:

> console at 256 colors, "303" for 800x600 and "305" for
> 1024x768. Forget the one part in the vesafb.txt file where it tells
> you to convert the hex number into decimal, that doesn't work. As
> long as none of the video mode numbers contain letters in them it
> will work (and none of the graphics modes do, afaik).

How about the following patch which adds an example to the vesafb
notes? I found them rather confusing, too - but I believe that I have
understood that part correctly now.

--- linux/Documentation/fb/vesafb.txt~ Sat Jul 11 00:18:29 1998
+++ linux/Documentation/fb/vesafb.txt Mon Jul 27 19:47:12 1998
@@ -44,10 +44,15 @@
64k | 0x111 0x114 0x117
16M | 0x112 0x115 0x118

-Note 1: this are the VESA mode numbers. The video mode select code
- expects 0x200 + VESA mode number.
-Note 2: lilo can't handle hex, for booting with "vga=??" you have to
- transform the numbers to decimal.
+Note that these are the VESA mode numbers. The video mode select code
+expects 0x200 + VESA mode number. If you use LILO to enter the mode
+you will have to convert the number to decimal as LILO does not
+understand hex.
+So, to boot in 800x600/256 (mode 0x0103+0x0200 = 0x0303 = 771) you
+can either enter vga=771 to LILO (on the prompt or in lilo.conf) or
+you can enter vga=ask and enter 0303 on the video selection prompt
+that turns up as the very first part of booting.

Speed it up!

Regards, Anders
(address is valid)

Boren's Laws: (1) When in charge, ponder. (2) When in trouble, delegate. (3) When in doubt, mumble.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at