Re: 2.2.0-pre7 + vesafb + svgalib

Thomas Pornin (pornin@bolet.ens.fr)
Fri, 15 Jan 1999 10:37:23 +0100


According to Paul Damplon <oskernel@hotmail.com>:
> - using fbset to change screen resolution of my vesafb doesn't work
> (ioctl FBIOPUT_VSCREENINFO)

That is normal behaviour. The whole point of vesafb is switching to a
graphic mode while still in real mode (and having access to the card
bios) and then using this mode afterwards. The real-mode bios code
cannot be called (*) from protected-mode, so switching video mode would
require some knowledge of the video card hardware, and if the kernel had
this knowledge, there would be little point in calling bios in the first
place.

vesafb is a neat trick for using extended graphic modes on unsupported
graphic cards, but, due to the non-switching limitation and the non-use
of hardware acceleration, this is a last resort solution.

--Thomas Pornin

(*) FreeBSD can, though. It uses vm86 mode for that; similar things may
be done in Linux, either with some specialized piece of kernel code, or
completely in userland, with something like dosemu.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/