ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Ltib] Xfbdev


From: Kevin Wells
Subject: RE: [Ltib] Xfbdev
Date: Fri, 11 Dec 2009 18:06:26 +0100

Hi Paolo,

Here is some more info..

I've tested tslib with the 32xx board and have used ts_calibrate
to calibrate the touchscreen. Here are the basic steps...

Make sure the lpc32xx_ts driver is built with ABS_PRESSURE support.
This is another selectable option in the input/touchscreen area of
the Linux build menu.

You may need to build a new device node if it doesn't exist now. I
created /dev/input/event0 on major 13, minor 64.

You can do a 'cat /dev/input/event0' on the 13/64 device node and
should see lots of data being dumped when you touch the
touchscreen.

Setup the following environment variables for tslib:
TSLIB_TSDEVICE=/dev/input/event0
TSLIB_CALIBFILE=/etc/pointercal
TSLIB_CONFILE=/etc/ts.conf

Add a new file (/etc/ts.conf) with the following lines:
module_raw input-raw
module pthres pmin=1
module variance delta=100
module dejitter delta=10

I hope this helps,
Kevin

> 
> Hi Alan,
> thanks again.
> 
> I'm troubling with ts_calibrate/ts_test. Giving:
> 
> address@hidden /]# cat /proc/bus/input/devices
> I: Bus=0019 Vendor=0001 Product=0002 Version=0100
> N: Name="LPC32xx Touchscreen"
> P: Phys=lpc32xx/input0
> S: Sysfs=/class/input/input0
> U: Uniq=
> H: Handlers=mouse0 event0
> B: EV=b
> B: KEY=400 0 0 0 0 0 0 0 0 0 0
> B: ABS=1000003
> address@hidden /]#
> 
> then I think I have to set:
> 
> export TSLIB_TSDEVICE=/dev/input/event0
> export TSLIB_CONFFILE=/usr/etc/ts.conf
> 
> but if I ls the /dev, only event1 and mice are present. Then:
> 
> address@hidden /]# export TSLIB_TSDEVICE=/dev/input/event1
> address@hidden /]# ts_calibrate
> ts_open: No such device
> address@hidden /]#
> 
> changing in:
> 
> address@hidden /]# export TSLIB_TSDEVICE=/dev/input/event0
> address@hidden /]# ts_calibrate
> ts_open: No such file or directory
> address@hidden /]#
> 
> How can I know the device used for input by my TS?
> 
> Best regards,
> Paolo
> 
> 
> On gio, 2009-12-10 at 08:38 -0200, Alan Carvalho de Assis wrote:
> > Hi Paolo,
> >
> > On 12/10/09, Paolo Cremonese <address@hidden> wrote:
> > > Hi Alan,
> > > your suggestion was very useful, Thank you!
> > >
> >
> > You are welcome!
> >
> > > I have found a problem in the Xfbdev command, which tries to configure
> > > the display with a different resolution. It should be nice to take a
> > > look to the Xfbdev command, but I can't find the code...
> > > I have modified the fb driver, but I don't like this solution.
> > > Now the X11 starts: how can I calibrate the touchscreen?
> > > there is an application in the rootfs to do this?
> > >
> >
> > You can find the Xfbdev under xorg-server package. Xfbdev is also
> > known as Kdrive, a reduced X Server.
> >
> > You can use the ts_calibrate application to calibrate you touchscreen,
> > just select the tslib package to install this application.
> >
> > Best Regards,
> >
> > Alan
> 
> 
> 
> _______________________________________________
> LTIB home page: http://ltib.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib




reply via email to

[Prev in Thread] Current Thread [Next in Thread]