On Tue, Feb 13, 2007 at 11:05:26PM +0100, supernova wrote:
> Hi,
>     I'm new to directFB and I would like to use it in place of xorg.
> where should i start?
> My pc is a hp pavillion dv6000 (dv6132 eu) with Ubuntu edgy (32 bit).

I don't know if Ubuntu provides up-to-date DirectFB packages. If not 
you should compile yourself.

1) If your kernel doesn't have framebuffer support you need to recompile 
your kernel. If you want hw acceleration you need to use the specific fb 
driver for your gfx hardware. In your case that might be nvidiafb. If 
you enable nvidiafb it's best to disable vesafb and vga16fb. 
Alternatively you can use vesafb. See DirectFB's README for some tips 
about vesafb configuration. Reboot and make sure you still see the 
console :)

2) Compile and install linux-fusion. See the README file for 
instructions.

3) Compile and install DirectFB. Pass at least --enable-multi to 
configure. Run 'configure --help' to see other options. Personally I 
use this:

 configure --enable-maintainer-mode 
 --enable-multi --disable-sdl --enable-zlib --enable-video4linux2 
 --with-gfxdrivers=matrox --with-inputdrivers=linuxinput

You'll at least want to change the gfxdrivers option to match your 
hardware.

4) Run dfbinfo and check the output for serious errors.

5) At this point you may want to try other DirectFB apps (like df_dok 
from DirectFB-examples).

6) Get XDirectFB from CVS. Follow the instructions in the README. The 
configure example in the README might be missing some useful options. 
Here's what I use personally for xorg-server-1.1.1:

 configure --enable-maintainer-mode --disable-xorg 
 --disable-dmx --disable-xvfb --disable-xnest --disable-xwin 
 --disable-xprint --disable-xephyr --disable-xsdl --disable-dri 
 --prefix=/usr --sysconfdir=/etc/X11 --localstatedir=/var 
 --mandir=/usr/share/man --with-xkb-path=/usr/share/X11/xkb 
 --with-default-font-path=unix/:-1'

I configure it like this because I want it to match my distro's Xorg 
installation. After compiling I just copy the hw/directfb/XDirectFB 
binary to /usr/bin.

7) Run it 'startx -- /usr/bin/XDirectFB'.

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to