Alan,
Set up a symbolic link from /dev/input/event1 to /dev/input/tslib0. I
believe the tslib directfb driver is configured to use
/dev/input/tslibX as the input. If this works then you can add a udev
rule to make this automatically happen.
Supporting code snippet from directfb driver:
snprintf( buf, 32, "/dev/input/tslib%d", i );
ts = ts_open( buf, 0 );
Regards,
Shane
On 3/19/07, Alan Chuang <[EMAIL PROTECTED]> wrote:
>
> Dear all:
> I am trying to use tslib for my touch-panel in Directfb, but I got
> the
> following error:
>
> *********************************************
> Couldnt load module pthres
> (!) DirectFB/tslib: Error configuring `/dev/input/event1`!
> **********************************************
> It is not just the pthres module, but also all of the modules
> after the raw module (e.g. variance, dejitter, linear, etc.)
> However, my ts test programs and tinyX server don't have
> any problem loading the tslib library.
>
> I traced the code and found that when tslib is called by Directfb,
> it has problem doing "dlopen" on the pthres module. Interestingly,
> tslib doesn't have this problem when it was called by TinyX or my
> test program.
>
> Just wondering if anyone has run into the same issue.
>
> Here is my Directfb config:
> ./configure --prefix=/opt/dfb --enable-zlib --enable-fbdev --with-tests
> --with-gfxdrivers=none --with-inputdrivers=tslib,keyboard
> --enable-debug
>
> My tslib is configured to read linux raw input (/dev/input/event1). And
> this is my tslib config:
> ---------------------------------
> module_raw input
> module pthres pmin=1
> module variance delta=30
> module dejitter delta=100
> module linear
> ---------------------------------
> tslib is working for other programs; so I assume it is ok.
>
> Greatly appreciate it if someone can help me with this.
>
> Thank you,
> Alan
> _______________________________________________
> directfb-users mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>
--
Registered Linux User: #293401
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users