porting XDirectFB to Xorg 7.1

ye janboe janboe.ye at gmail.com
Thu Oct 5 02:30:00 PDT 2006


thanks a lot.
It seems that XDirectfb work nice.

But I can feel not Xdirectfb can boost my system.

have a nice day.

Janboe

2006/9/24, Ville Syrjälä <syrjala at sci.fi>:
> On Tue, Sep 19, 2006 at 09:12:36AM +0800, ye janboe wrote:
> > xdirectfb seems that it can not work well. I can just start xterm on it.
> > gnome-terminal will crash the xdirectfb, and xdirectfb print some invalid
> > address is accessed.
> > Is there any one that had met this problem?
>
> I got XDirectFB working with xorg-server-1.0.2 quite nicely.
>
> I replaced the fbcmap #ifndef test with #if 0. It would be nice to fix
> this without having to patch fbcmap.c but I have to figure out if
> defining XFree86Server in xdirectfb-config.h would have unwanted side
> effects...
>
> I also disabled most extension via xdirectfb-config.h. This fixed the
> apps geting a BadRequest errors. I don't know exactly which extension is
> the culprit. I had to re-enable LBX because some generic code would
> segfault with it disabled (that might be a bug in the generic code).
> I've attached the xdirectfb-config.h I used.
>
> > 2006/9/13, Ville Syrjälä <syrjala at sci.fi>:
> > >
> > >On Tue, Sep 12, 2006 at 09:54:48PM +0200, Denis Oliver Kropp wrote:
> > >> Ville Syrjälä schrieb:
> > >> >>>I started (with Xorg 7.0) by getting XDirectFB to build against
> > >> >>>xorg-server 1.0.2. Unfrtunately getting it to build wasn't enough
> > >> >>>to make it work. Things go bad somewhere in the fb code when starting
> > >> >>>gnome, twm+xterm almost worked but the colors were all wrong.
> > >>
> > >> Maybe you didn't bring over this one?
> > >>
> > >>
> > >> diff -ur programs/Xserver/fb/fbcmap.c programs/Xserver/fb/fbcmap.c
> > >> --- programs/Xserver/fb/fbcmap.c        2005-03-01
> > >21:14:18.000000000+0200
> > >> +++ programs/Xserver/fb/fbcmap.c        2005-03-01
> > >21:29:33.000000000+0200
> > >> @@ -37,7 +37,7 @@
> > >>  #include "resource.h"
> > >>  #include "fb.h"
> > >>
> > >> -#ifndef XFree86Server
> > >> +#if !defined(XFree86Server) && !defined(DIRECTFBSERVER)
> > >>  ColormapPtr FbInstalledMaps[MAXSCREENS];
> > >>
> > >>  int
> > >
> > >Yes, I missed that one. Actually I just assumed the ifdef was removed
> > >because the file is not included in libfb.a. That fixed the colors and
> > >gnome now starts. Thanks!
> > >
> > >It's still not perfect though. Some programs don't want to start and
> > >others exit at various stages. gnome-terminal, for example, gets a
> > >BadRequest on startup.
> > >
> > >--
> > >Ville Syrjälä
> > >syrjala at sci.fi
> > >http://www.sci.fi/~syrjala/
> > >
>
> --
> Ville Syrjälä
> syrjala at sci.fi
> http://www.sci.fi/~syrjala/
>
>
>



More information about the xorg mailing list