Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian 11 - ts_calibrate / ts_test issue #230

Open
bigguiness opened this issue Dec 12, 2024 · 2 comments
Open

Debian 11 - ts_calibrate / ts_test issue #230

bigguiness opened this issue Dec 12, 2024 · 2 comments

Comments

@bigguiness
Copy link

I am trying to get a Meteor 10.1 touchscreen working with Debian 11 on a BeagleBone Black.
https://www.elecrow.com/wiki/meteor-screen-10122-ips-touch-screen-with-rgb-animated-light.html

It works fine on a Debian 7.11 image with the latest libts code based on commit bec90df.

On Debian 11, ts_calibrate seems to work fine. But when I run ts_test the cursor dos not follow the touches.
Dragging left to right moves the cursor from the top of the screen to the bottom in a little less than the full screen.
Dragging top to bottom move the cursor from the right of the screen to the left in about the middle third of the screen.

If I remove the /etc/pointercal file, ts_test then tracks the cursor with the touches.

My end use is with a SDL1.2 based app. On Debian 7.11 it works properly. On Debian 11 I get all kinds of garbage touch events. I have not dug into what the vents are yet.

Any idea?

@bigguiness
Copy link
Author

bigguiness commented Dec 12, 2024

More info... This is a bit strange.

On Debian 7.11, the touchscreen is found as:
$ dmesg | grep MPI
[ 1.590977] usb 1-1.2: Product: MPI1001
[ 1.590996] usb 1-1.2: SerialNumber: MPI1001\xffffffe0\xffffffb4\xffffff85\xffffffd0\xffffff89\xffffffc6\xffffffa1\xffffffc6\xffffff85\xffffffe2\xffffff88\xffffff89\xffffffca\xffffffa1\xffffffe4\xffffff88\xffffff89
[ 1.606400] input: QDtech MPI1001 as /devices/ocp.3/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1.2/1-1.2:1.0/input/input1
[ 1.608596] hid-multitouch 0003:0484:5750.0001: input,hiddev0,hidraw0: USB HID v1.01 Device [QDtech MPI1001] on usb-musb-hdrc.1.auto-1.2/input0

I'm not sure why the final input0 happens. But /dev/input/by-id shows this for the MPI devices:
$ ls /dev/input/by-id/ -la | grep MPI
lrwxrwxrwx 1 root root 9 Nov 22 10:19 usb-QDtech_MPI1001_MPI1001അЉơƅ∉ʡ䈉-event-if00 -> ../event1

On Debian 11, it's found as:
$ dmesg | grep MPI
[ 12.722299] usb 1-1.4: Product: MPI1001
[ 12.722318] usb 1-1.4: SerialNumber: MPI1001\xe0\xb4\x85\xd0\x89\xc6\xa1\xc6\x85\xe2\x88\x89\xca\xa1\xe4\x88\x89
[ 12.765283] input: QDtech MPI1001 Touchscreen as /devices/platform/ocp/47400000.target-module/47401c00.usb/musb-hdrc.1/usb1/1-1/1-1.4/1-1.4:1.0/0003:0484:5750.0003/input/input3
[ 12.767167] hid-generic 0003:0484:5750.0003: input,hiddev1,hidraw2: USB HID v1.01 Device [QDtech MPI1001] on usb-musb-hdrc.1-1.4/input0
[ 56.412254] input: QDtech MPI1001 as /devices/platform/ocp/47400000.target-module/47401c00.usb/musb-hdrc.1/usb1/1-1/1-1.4/1-1.4:1.0/0003:0484:5750.0003/input/input5
[ 56.456380] hid-multitouch 0003:0484:5750.0003: input,hiddev1,hidraw2: USB HID v1.01 Device [QDtech MPI1001] on usb-musb-hdrc.1-1.4/input0

Again, not sure what is up with input0 or input5. But /dev/input/by-id shows this for the MPI devices:
$ ls /dev/input/by-id/ -la | grep MPI
lrwxrwxrwx 1 root root 9 Dec 12 22:39 usb-QDtech_MPI1001-event-if00 -> ../event3

Could Debian 11 by using the wrong /dev/input/event?

@bigguiness
Copy link
Author

bigguiness commented Dec 17, 2024

There does seem to be a problem with tslib and Debian 11.

I tried a ViewSonic TD2230 10-point touch screen monitor with the BeagleBone Black Debian 11.

That screen does appear to calibrate and then runs ts_test properly. But I also get garbage touch (mouse) events when I run a SDL1.2 program.

I tried ts_test_mt also. It says "10 touch contacts supported (driver)" at the bottom. But only shows 1 touch contact on the screen no matter how may contacts I make.

Also, ts_conf segfaults when selecting "2. show ts.conf modules".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant