torizon@colibri-imx7-emmc-06673350:~$ docker exec -it weston evtest /dev/input/touchscreen0
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x79 version 0x3
Input device name: “AD7879 Touchscreen”
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 0
Min 0
Max 4095
Event code 1 (ABS_Y)
Value 0
Min 0
Max 4095
Event code 24 (ABS_PRESSURE)
Value 0
Min 0
Max 4096
Properties:
Testing … (interrupt to exit)
this is screen event which are currently executed in my display 7inch resistive imx7 colibri even though i am not able to touch screen .screen is clickable but not touchable.
weston.ini
[shell]
panel-position=none
locking=false
cursor-theme=hicolor
cursor-size=32
[input]
touch2pointer=true
[screensaver]
disable=true
i set this please guide me for this issue @ToradexAI .
I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.
Did you like my answer?
Hello! Thank you for providing the detailed information about your setup and configuration.
From your description, the AD7879 touchscreen input device is detected, and evtest shows that it is generating events. However, you mention that the screen is “clickable but not touchable,” which I understand as the display responding to pointer events (possibly from a mouse), but not to actual touch input on your 7-inch resistive screen.
Here are the steps you should take to resolve this:
1. Calibrate the Touchscreen
For resistive touch displays on Colibri iMX7 with Torizon, you need to calibrate the touchscreen using the weston-touch-calibrator container. This ensures that touch coordinates are correctly mapped.
c. You should see a calibration screen. Touch each cross as it appears. When finished, you will return to the Weston desktop.
d. Reboot the device so the calibration takes effect.
2. Check Your weston.ini
Your [input] section with touch2pointer=true is correct for converting single touches to pointer events. After calibration, this should ensure proper pointer operation from the touchscreen.
3. Troubleshooting
If you still have issues after calibration, verify that the touch device is correctly set in /etc/udev/rules.d/ and see if a matrix calibration file was created (typically /etc/udev/rules.d/98-touchscreen-calibration.rules).
Check if the Weston service logs (journalctl -u weston.service) report any errors regarding input devices.
Confirm that no other input device (like a USB mouse) is interfering during calibration.
You can find the official touchscreen calibration instructions and additional troubleshooting tips in the documentation: Touch Screen Calibration on Torizon
Let me know if calibration solves the problem or if you need more help with additional troubleshooting steps.
no please help me solve this touch calibration issue i am able to click my application not able to touch
this is input
torizon@colibri-imx7-emmc-06673350:~$ cat /proc/bus/input/devices
I: Bus=0018 Vendor=0000 Product=0079 Version=0003
N: Name=“AD7879 Touchscreen”
P: Phys=0-002c/input0
S: Sysfs=/devices/platform/soc/30800000.bus/30a20000.i2c/i2c-0/0-002c/input/input0
U: Uniq=
H: Handlers=event0
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003
then i start docker run -it --ipc=host --name=weston --net=host --cap-add CAP_SYS_TTY_CONFIG -v /dev:/dev -v /tmp:/tmp -v /run/udev:/run/udev -v /home/torizon/weston-config/weston.ini:/etc/xdg/weston/weston.ini --device-cgroup-rule=‘c 4:* rmw’ --device-cgroup-rule=‘c 13:* rmw’ --device-cgroup-rule=‘c 226:* rmw’ torizon/arm32v7-debian-weston
after run my app using docker run -it -v /tmp/1000-runtime-dir:/tmp/1000-runtime-dir -v /dev:/dev -v /run/udev:/run/udev -e XDG_RUNTIME_DIR=/tmp/1000-runtime-dir -e QT_QPA_PLATFORM=wayland intersense123/my_app1:1.0 I am using pyqt5 ui in my application please help me to find solution @lucas_az.tx@ToradexAI
Please remember to tick the “Solution” checkbox below if my response solves your question. If you have follow-up questions, just continue to tag me using @ToradexAI in your new posts.
Did you like my answer?
Hello and thank you for the details. Since you can “click” but not register real touchscreen events in your PyQt5 application, your issue is typical for resistive touch panels used with Wayland/Weston and needs proper calibration, touch2pointer setup, and potentially special udev rules. Here’s a full step-by-step solution:
1. Calibrate the Touchscreen
You need to run the Weston Touch Calibrator to generate the calibration data.
a) Stop all running containers (including weston and your app):
c) Complete the calibration:
Touch all points as requested. When done, the container exits and writes the calibration matrix as a udev rule, usually /etc/udev/rules.d/98-touchscreen-calibration.rules.
[10:43:07.828] launching ‘/usr/lib/arm-linux-gnueabihf/weston-desktop-shell’
could not load cursor ‘dnd-move’
could not load cursor ‘dnd-copy’
could not load cursor ‘dnd-none’
wayland-0
could not load cursor ‘dnd-move’
could not load cursor ‘dnd-copy’
could not load cursor ‘dnd-none’
could not load cursor ‘dnd-move’
could not load cursor ‘dnd-copy’
could not load cursor ‘dnd-none’
weston-touch-calibrator error: “Unknown-1” was not found. always this error getting @ToradexAI
Please remember to tick the “Solution” checkbox below if my response solves your question. If you have follow-up questions, just continue to tag me using @ToradexAI in your new posts.
Did you like my answer?
Thank you for your detailed update.
The error message:
weston-touch-calibrator error: “Unknown-1” was not found.
means the weston-touch-calibrator cannot identify your AD7879 touchscreen device. This is a known issue, especially with resistive touchscreens on Colibri iMX7. The calibrator fails to autocomplete the device, so you’ll need to work around it with a manual calibration.
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name=“gpio-keys”
P: Phys=gpio-keys/input0
S: Sysfs=/devices/platform/gpio-keys/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=8000 0 0 0 0
please guide me what i do step by step i tried multiple ways but not working @ToradexAI