PI3 and Waveshare 10.1 touchscreen issues

I recently purchased both the PI3 and RB-WAV-106. installed the Waveshare image without issue. When I run a non-PI software program the touchscreen inputs are swapped and inverted. however when running the PI GUI they react perfectly. is there a way to fix this? I have tried several other images as well as modifying different conf files, but nothing seems to affect the touchscreen inputs with software running. it only changes the inputs when running the PI GUI. thanks Dave.

Hi,

You mentioned running “non-PI software”. Could you please offer more details about what those are?

Sincerely,

I’m a newbe and didn’t know how else to refer to it. its an (*.sh) app designed for the PI3. I’ve include a link to the apps’ wiki. about half way down “installing the Racecapture app”.

wiki.autosportlabs.com/RaceCapture_on_Raspberry_Pi

Hi,

The .sh file is most likely a shell script. Those are typically used to setup environment variables and related settings before running the actual software (which seems to be “racecapture”, located in the root of the archive).

It is very possible that the libraries used by the software to produce a GUI do not support the touch screen properly or skip it as an input device. The best would be to contact the company that makes this software for support.

As you already confirmed, the touch component of your touchscreen is working well with the RPi GUI, so this assures us it is working well at this moment.

Sincerely,

thanks, I will forward that info. so just to be clear, the config file used to “tweek” the touch inputs in the GUI screens is the same file used by any running software? for example. if I invert X, which responds properly in the GUI, it should have the same effect in an app.

Hi,

Actually, we do not know for sure. This may not be the case, as each software can use different libraries for its input. Depending on how this is achieved, it may skip the touch input completely or misinterpret it.
Therefore, changes in one set of settings may not affect some or all of the other software properly/directly. Much trial and error may be needed here. Also, obtaining more information about the software itself (race capture) would most likely help figure out how it interacts with the touch input.

Sincerely,

Just to follow up, I found out the software app runs under Kivy, and uses a Kivy/config.ini to detect the touch input. so now I just need to figure out how to “calibrate” it and swap/invert x&y.

[input]
mouse = mouse
device_%(name)s = probesysfs,provider=hidinput

[modules]
touchring = show_cursor=true,scale=.3,alpha=.7
cursor = 1

thanks for the help, it got me pointed in the right direction, Dave

Hi Dave,

We are glad you seem to be going towards a solution. As we said earlier, trying things out will be key in finding a working solution.

Thanks for the update.

Good luck!

Sincerely,

I have an answer re Kivy & Waveshare 10.1 inch touchscreen. sudo nano .kivy/config.ini. I required the “param=rotation=90”

add:

[input]
mouse = mouse
mtdev_%(name)s = probesysfs,provider=mtdev
hid_%(name)s = probesysfs,provider=hidinput,param=rotation=90

1 Like