Re: SVGAlib vs Framebuffer

Search this archive.

From: Chris Purnell (cjp@oit.net)
Date: Mon 11 Dec 2000 - 13:45:28 IST


On Sat, Dec 09, 2000 at 09:48:51AM -0600, Bart Oldeman wrote:

> This of course is still only in the pre-1.4.3 series. I had to apply the
> following patch to get it to work - that means: no segmentation fault - on
> my silly vesafb (I use the native sis driver otherwise).
> 
> --- src/vga.c.orig      Sat Dec  9 15:28:30 2000
> +++ src/vga.c   Sat Dec  9 15:29:50 2000
> @@ -988,10 +988,10 @@
>      __svgalib_open_devconsole();
> 
>      /* color or monochrome text emulation? */
> -    if (CHIPSET != EGA && !__svgalib_novga)
> +    if (CHIPSET != EGA && CHIPSET != FBDEV && !__svgalib_novga)
>         color_text = port_in(MIS_R) & 0x01;
>      else
> -       color_text = 1;         /* EGA is assumed color */
> +       color_text = 1;         /* EGA and FBDEV are assumed color */
> 
>      /* chose registers for color/monochrome emulation */
>      if (color_text) {
> 
> And I could play DOOM on the framebuffer, though slowly because of the
> fixed 1024x768 resolution and sometimes it is shifted to above: maybe a
> problem with the back-scroll buffer.

I'm the one who wrote the fbdev driver for svgalib.  The one in the
1.4.3 prerelease has a nasty hack to allow it to work without root
privileges.  In retrospect I think this was a mistake.  It probably
would be best to scrap it, remove those patches to vga.c and use a
back port of the driver from 1.9.6.

-- 
Christopher John Purnell  | A friend in need's a friend in deed
http://www.lost.org.uk/   | A friend with weed is better
--------------------------| A friend with breasts and all the rest
What gods do you pray to? | A friend who's dressed in leather

------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST