[Libdlo] dlfb 0.2rc2 (udlfb)

Roberto De Ioris roberto at unbit.it
Tue May 26 07:05:31 PDT 2009


Hi all this is a second release candidate for the displaylink
framebuffer linux module.

It implements edid (the devices is set to the best display resolution
dinamically), multiple devices connected to the same system, and some
code refactoring.

Resolutions supported are:

1400x1050
1280x1024
1024x768
800x480

tested on

vibook
mimo display 710 and 730
hp docking station
asus vw223

***** Tutorial ******

copy the three file attached in a new directory

launch make
(now plug-in all of your displaylink devices)
insmod udlfb.ko
(all of your screen will became green)

map the fbcon:

con2fbmap 3 1

(substitute the second number with 0 if you have no other framebuffer
device active) 


***** MPlayer patch ******

This is the draw_slice function of mplayer modified to play video with
this driver (without using the hack posted last week):

Use it in libvo/vo_fbdev.c

/* displaylink framebuffer function */

static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x,
int y)
{
    uint8_t *d, *s;
        int ret;

    uint32_t dloarea[4] ;

    dloarea[0] = x ;
    dloarea[1] = y ;
    dloarea[2] = w ;
    dloarea[3] = h ;


    d = center + fb_line_len * y + fb_pixel_size * x;

    s = src[0];
    while (h) {
        fast_memcpy(d, s, w * fb_pixel_size);
        d += fb_line_len;
        s += stride[0];
        h--;
    }


    ioctl(fb_dev_fd, 0xaa,  &dloarea);

    return 0;
}


*** TODO ***

- remove use of usb_bulk_msg() and go to simple usb_submit_urb using the
same urb for all bulk packet.
- more optimization for vertical scrolling
- cursor acceleration (???)
- compression (waiting for libdlo)

*** Xorg driver ***

A modified (in the same way as mplayer) fbdev xorg driver is ready, i
will release it after the 0.2 version of the kernel module.


Please test it


-- 
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: 17362 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libdlo/attachments/20090526/c2e62841/attachment-0001.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dlfb.h
Type: text/x-chdr
Size: 8964 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libdlo/attachments/20090526/c2e62841/attachment-0001.h 
-------------- 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/20090526/c2e62841/attachment-0001.bin 


More information about the Libdlo mailing list