Code: Select all
pi@raspberrypi ~ $ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ADS7846 Touchscreen id=6 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
pi@raspberrypi ~ $ xinput --list 6
ADS7846 Touchscreen id=6 [slave pointer (2)]
Reporting 4 classes:
Class originated from: 6. Type: XIButtonClass
Buttons supported: 5
Button labels: "Button Unknown" "Button Unknown" "Button Unknown" "Button Wheel Up" "Button Wheel Down"
Button state: 1
Class originated from: 6. Type: XIValuatorClass
Detail for Valuator 0:
Label: Abs X
Range: 0.000000 - 4095.000000
Resolution: 0 units/m
Mode: absolute
Current value: 3958.000000
Class originated from: 6. Type: XIValuatorClass
Detail for Valuator 1:
Label: Abs Y
Range: 0.000000 - 4095.000000
Resolution: 0 units/m
Mode: absolute
Current value: 2657.000000
Class originated from: 6. Type: XIValuatorClass
Detail for Valuator 2:
Label: Abs Pressure
Range: 0.000000 - 65535.000000
Resolution: 0 units/m
Mode: absolute
Current value: 64707.000000
pi@raspberrypi ~ $ xinput list-props 6
Device 'ADS7846 Touchscreen':
Device Enabled (114): 1
Coordinate Transformation Matrix (115): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (235): 0
Device Accel Constant Deceleration (236): 1.000000
Device Accel Adaptive Deceleration (237): 1.000000
Device Accel Velocity Scaling (238): 10.000000
Device Product ID (239): 0, 0
Device Node (240): "/dev/input/event0"
Evdev Axis Inversion (241): 0, 0
Evdev Axis Calibration (242): 3908, 226, 3982, 233
Evdev Axes Swap (243): 0
Axis Labels (244): "Abs X" (232), "Abs Y" (233), "Abs Pressure" (234)
Button Labels (245): "Button Unknown" (231), "Button Unknown" (231), "Button Unknown" (231), "Button Wheel Up" (120), "Button Wheel Down" (121)
Evdev Middle Button Emulation (246): 0
Evdev Middle Button Timeout (247): 50
Evdev Third Button Emulation (248): 0
Evdev Third Button Emulation Timeout (249): 1000
Evdev Third Button Emulation Button (250): 3
Evdev Third Button Emulation Threshold (251): 20
Evdev Wheel Emulation (252): 0
Evdev Wheel Emulation Axes (253): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (254): 10
Evdev Wheel Emulation Timeout (255): 200
Evdev Wheel Emulation Button (256): 4
Evdev Drag Lock Buttons (257): 0That gets it to display the full output including 99-calibration.conf file contents, which you'll need to create yourself as root (sudo your fav text editor.)DISPLAY=:0.0 xinput_calibrator
And lastly add two more options before the end of the file:/usr/share/X11/xorg.conf.d/99-calibration.conf
The default tap-and-hold timeout interval works fine for me.Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonMoveThreshold" "60"