DirectFB:Configuration FAQ
From DirectFBWiki
| Table of contents |
When I start running an DFB application, I'm getting an error: Direct/Util: opening '/dev/fb0' failed
- Make sure that you have a working framebuffer implementation.
- See this HOWTO (http://www.tldp.org/HOWTO/Framebuffer-HOWTO.html) for more information
- Or run DFB using the SDL or X11 simulation environment.
If I start one of the example apps, I get the error message "No valid modes found in /etc/fb.modes"
Copy the file fb.modes distributed with DirectFB to /etc/fb.modes or edit your /etc/fb.modes file and make sure it lists at least one valid mode.
I recompiled my kernel with vesafb support, but I still have no frame buffer device.
You have to pass an initial video mode if you use vesafb. Add vga=788 to your /etc/lilo.conf (for 800x600 with 16bit). For other resolutions look in Documentation/fb/vesafb.txt in the linux kernel sources.
The vesafb driver supports only VESA compatible graphic adapters. Make sure your graphic adapter meets the VESA standards.
I can't get my serial mouse to work with DirectFB.
Make sure the link /dev/mouse exists and points to the serial device your mouse is attached to. Then configure your mouse protocol in /etc/directfbrc or ~/.directfbrc by adding the line
mouse-protocol=protocol
where protocol is one of the following supported protocols:
* ms - MS-compatible 2 button mouse * ms3 - MS-compatible 3 button mouse * mouseman - MouseMan protocol (3 buttons) * mousesystems - MouseSystems protocol (3 buttons)
Whenever I try to start a DirectFB application, I get the error message "Error opening /dev/tty0"
The first DirectFB application that is started (the DirectFB master) needs root priviledges. The main reason is that only root is allowed to change virtual terminals. DirectFB slaves (all other apps started) can run as a normal user.
What can I configure in directfbrc
There is a table of settings availabe on this wiki
Whenever a DirectFB console application exits, it doesn't return to the console
There seems to be a small conflict with the lirc daemon, disable the lirc module in /etc/directfbrc or ~/.directfbrc by adding the line
disable-module=lirc
How can I link DirectFB agains dietlibc while crosscompiling?
- export CC="diet -Os gcc -D_BSD_SOURCE"
- ./autogen.sh --host=<target>
