Page 1 of 1

Touchscreen calibration

Posted: Wed Jul 13, 2011 8:08 am
by quotaholic
Just got word that tslib will work to calibrate a pm9000 serial touchscreen. This may be of benefit to Android folks as android comes with tslib installed.

This is good information to hear as I have been having a problem getting gCal to work and not segfault. Here is a clip from the email from Penmounts tech support:

Here is the tslib README:

https://github.com/kergoth/tslib/blob/master/README

When you use the tslib, you will need to setup the following:

(1) Modify /etc/ts.conf and setup module_raw, the tslib will read “/dev/inut/eventX” device.
(2) Set the environment variable: TSLIB_TSDEVICE to PenMount event device (for example, /dev/input/event2).
(3) Calibration reads /dev/fb0. Your system needs to support frame buffer.

Re: Touchscreen calibration

Posted: Tue Aug 16, 2011 12:28 pm
by damwashere
This is extremely interesting. I am reminded of "gpsd," which works with multiple gps devices and gives a standardized interface to applications.

Which OSs have you tried this on?

DAM

Re: Touchscreen calibration

Posted: Tue Aug 16, 2011 2:55 pm
by quotaholic
Tried this on debian 6 and ran in to limitations on the penmount side. Their latest driver did not include evtest although the readme indicated it was included. The result was that their driver did not report to the linux input layer. IE /dev/input/eventX. This is exactly what tslib needs to be able to work. After reporting this to their driver team they sent me a small package, including source, which has a small script that should work with the repository and their own penmount driver package.

I must have exchanged 30 emails with them since starting a debian 6 build. The end result, although not clearly proven yet, is that their drivers MAY not be i586 compatible. So we have been working on a way to get the penmount kernel driver to work on tslib instead of their gCal utility.

I was hoping to update this thread with a how to but I have just not gotten that far as of yet. Seems life threw me a curve ball recently and I went through an eviction last week. Staying in a temporary situation currently and all my tablets / electronics are in a self storage unit. If you want to give it a shot let me know, I can send you some copied instructions from the masses of emails as well as the script that I recently received to get the penmount kernel driver to report to the input layer. tslib is tiny in size so I am really hopeful that this will work. All attempts (even ubuntu and other drivers) I have made after my initial debian 6 build have not resulted well so this is pretty important to get functioning.