Touchscreen xinput set-prop on boot?[Solved]

Hi,

I have a quite annoying problem since updating to the latest version.
My screen is HDMI+USB using a custom config , this one EP-0081 - 52Pi Wiki :

framebuffer_width=800
framebuffer_height=480
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0

My touchscreen ILITEK ILITEK-TP use to work fine, but I had a problem using calibration.

My xinput list-props looks like this :

root@zynthian:~# DISPLAY=:0.0 xinput list-props 6
Device 'ILITEK ILITEK-TP':
	Device Enabled (113):	0
	Coordinate Transformation Matrix (114):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (238):	0
	Device Accel Constant Deceleration (239):	1.000000
	Device Accel Adaptive Deceleration (240):	1.000000
	Device Accel Velocity Scaling (241):	10.000000
	Device Product ID (242):	8746, 1
	Device Node (243):	"/dev/input/event0"
	Evdev Axis Inversion (244):	0, 0
	Evdev Axis Calibration (245):	16631, -340, 9242, -52
	Evdev Axes Swap (246):	0
	Axis Labels (247):	"Abs MT Position X" (236), "Abs MT Position Y" (237), "None" (0), "None" (0)
	Button Labels (248):	"Button Unknown" (233), "Button Unknown" (233), "Button Unknown" (233), "Button Wheel Up" (119), "Button Wheel Down" (120)
	Evdev Scrolling Distance (249):	0, 0, 0
	Evdev Middle Button Emulation (250):	0
	Evdev Middle Button Timeout (251):	50
	Evdev Middle Button Button (252):	2
	Evdev Third Button Emulation (253):	0
	Evdev Third Button Emulation Timeout (254):	1000
	Evdev Third Button Emulation Button (255):	3
	Evdev Third Button Emulation Threshold (256):	20
	Evdev Wheel Emulation (257):	0
	Evdev Wheel Emulation Axes (258):	0, 0, 4, 5
	Evdev Wheel Emulation Inertia (259):	10
	Evdev Wheel Emulation Timeout (260):	200
	Evdev Wheel Emulation Button (261):	4
	Evdev Drag Lock Buttons (262):	0

Using this allows me to use the calibrate function on my zynthian :

DISPLAY=:0.0 xinput set-prop 6 "Device Enabled" 1

(but still a problem with the axis)

Here is my /etc/X11/xorg.conf.d/99-calibration.conf

Section "InputClass" # Created 2024-01-27 16:08:01.659009
        Identifier "calibration"
        MatchProduct "7"
        Option "TransformationMatrix" "-1.018182 0.000000 1.003929 0.000000 -0.$
EndSection

So my plan is to try to add the command to enable the touchscreen at boot with xinput set-prop 6 “Device Enabled” 1.

What is the better way to do it ?
Or maybe I’m on the wrong track for bug resolution ?

Thanks.

Managed the issue by adding this to /zynthian/config/zynthian_envars.sh :

DISPLAY=:0.0 xinput set-prop "ILITEK ILITEK-TP" "Device Enabled" 1
1 Like