[Libdlo] DLFB 0.1 (udlfb)
Roberto De Ioris
roberto at unbit.it
Fri May 22 12:42:36 PDT 2009
Hi all, this is the first (prototype) release of a linux
framebuffer module for the displaylink devices.
The module implements a semi-accelerated fbcon and an ioctl that send
update commands to the device.
*** FBCON MODE (1400x1050x16bpp)***
put the Makefile and udlfb.c in a directory (you need to have the kernel
headers installed)
launch make
then (as root)
insmod udlfb.ko
you will see some debug stuff in your dmesg
now map a console to your new framebuffer device (in the fbset package):
con2fbmap 3 1
...will map the third console to /dev/fb1
switch to the third console (ctrl-alt-f3) and you will
see the fbcon.
The only accelerated part is the vertical scolling, more optimizations
will follow in the next days (this is a stripped down version of a
bigger work)
*** MMAP/RW MODE ***
compile the testctl.c code:
gcc -o testctl testctl.c
launch an application that use framebuffer as its output (via mmap or
simple read/write)
Example (as root):
mplayer -vo fbdev:/dev/fb1 <filename>
now update the framebuffer:
./testctl
if you want to redraw bigger (or smaller) area modify the testctl.c code
*** TEST ON MIMO DEVICE ***
The module code is forced on 1400x1050 at 16bit.
MIMO devices supports 800x480
You need to modify the first (configuration) line of the code in this
way:
// CONFIGURE YOUR DISPLAY HERE
#define FB_W 800
#define FB_H 480
#define DLO_MODE_DATA DLO_MODE_DATA_800_480_60_24_0
#define DLO_MODE_ENABLE DLO_MODE_ENABLE_800_480_60_24_0
// END OF CONFIGURATION
*** CAUTION ***
this is a proof of concept, it contains leaks, bad code practice and all
sort of evil things, i hope to release a real version in the next week
(if the world is still rotating after your tests).
--
Roberto De Ioris
http://unbit.it
JID: roberto at jabber.unbit.it
-------------- next part --------------
A non-text attachment was scrubbed...
Name: udlfb.c
Type: text/x-csrc
Size: 23368 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libdlo/attachments/20090522/ef0dc550/attachment-0002.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 304 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libdlo/attachments/20090522/ef0dc550/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testctl.c
Type: text/x-csrc
Size: 226 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libdlo/attachments/20090522/ef0dc550/attachment-0003.c
More information about the Libdlo
mailing list