appfruits / buildroot-boards

This is a collection of build root boards that we have configured for our own project as a reference and starting point for others
GNU General Public License v2.0
4 stars 0 forks source link

TSLib configuration and calibration: missing files #3

Open ezamp opened 9 years ago

ezamp commented 9 years ago

Hi, I currently use the plugin evdevtouch to use the touch screen, but I have noticed it is not calibrated. So I decided to use TSLib already installed on your system.

To use TSLib I have defined environment variables:

export TSLIB_TSEVENTTYPE = INPUT
export TSLIB_CONSOLEDEVICE = none
export TSLIB_FBDEVICE = / dev / fb0
export TSLIB_TSDEVICE = / dev / input / event0
export TSLIB_CALIBFILE = / etc / pointercal        <------
export TSLIB_CONFFILE = etc / ts.conf
export TSLIB_PLUGINDIR = lib / ts      <-------

The problem is that I do not find the folder that contains the plugin ts and the file for calibration ("pointercal").

thanks Emanuele

pschuster commented 9 years ago

The pointercal file is generated by a tslib binary called ts_calibrate. A quite good explanation is here: http://processors.wiki.ti.com/index.php/How_to_Recalibrate_the_Touchscreen. You will have to run ts_calibrate which will start an App that displays a screen on your LCD connected to the Aqua A5 (if everything else works fine). You will have to tap on the crosshair on the screen (best with a pencil to get the correct position). After finished you should find the pointercal file in the /etc/ folder.

As I don't like resistive touch I am using capacitive touch that does not require tslib or calibration.

I have dedicated a whole section to lslib in my Qt 4.8.5 tutorial: http://www.appfruits.com/2015/01/compiling-qt-4-8-5-for-arietta-g25/

Hope that helps, Phillip

k1mgy commented 7 years ago

Phillip,

Visiting lots of horrors with Acme Acqua (BETRA A5). Objective is relatively simple: framebuffer+tslib with Qt5 application (able to create and plot graph) which also controls some I/O, reads ADC, does pwm and counts pulses.

All the I/O stuff is easy, but I continue to hit brick walls with (a) no tslib support in dev environment Ubuntu 16.04 (b) no Qt5 chart shared lib on Acqua target (debian).

So looking for kickstart from those who have this together.

Questions: 1) Your Acqua buildroot fails making the .config file:

make BR2_EXTERNAL=../buildroot-boards/ acqua_defconfig Makefile:200: *** '../buildroot-boards/': does not have a name (in 'external.desc'). See https://buildroot.org/manual.html#br2-external-converting. Stop.

This appears to occur because buildroot version is newer than one you worked on. Note that acqua_defconfig is in directory ../buildroot-boards/configs. If I do this:

make BR2_EXTERNAL=../buildroot-boards/configs/acqua_defconfig
Makefile:200: *** '../buildroot-boards/configs/acqua_defconfig': no such file or directory. Stop.

2) Will your instructions for compiling Qt-4-8-5-for-arietta-g25 work for the acqua? Presently I have qt-everywhere-opensource 5.9.1.

I realize it's been a few years since you've visited this. Appreciate any help/suggestions you can send my way.

Thank you!

/mark richards kmalittl1@gmail.com

pschuster commented 7 years ago

Hi,

it's been a pretty long way for me to get everything working on Acqua A5 and I tried my best to document what I did here. This error looks familiar. But I cannot remember what I did to fix it, or if I ever got that specific error or something very similar. Did you follow the URL provided? It looks like that external config file is deprecated?

I don't think compiling Qt for Arietta is working on Acqua. Did you try to contact support from Acmesystems? They have forums that helped me one or two times.

Today, if I would start a new project, I would not use A5. As A5 does not has a GPU you cannot use latest Qt libraries and it's quite slow in rendering, too. Having scroll views just does not work fine. I'd rather choose a cheap smartphone platform or so.

Cheers, Phillip