Scrolling is not detected on ADS7846 display
FloerlPhilip opened this issue · comments
Philip Flörl commented
Cannot detect touch events
I have a browser visible on the touchscreen (chromium-browser in kiosk mode using openbox and x-server). When I try to scroll up, the "touchmove" event is not detected, instead it is detected as "mousedown".
Xorg.0.log
I believe the driver is making each click and drag like a mouse event. Looking at Xorg.0.log, the display appears under /dev/input/mouse0
:
[ 34.025] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/event0)
[ 34.026] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
[ 34.026] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
[ 34.026] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[ 34.026] (II) LoadModule: "evdev"
[ 34.026] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 34.033] (II) Module evdev: vendor="X.Org Foundation"
[ 34.034] compiled for 1.21.1.3, module version = 2.10.6
[ 34.034] Module class: X.Org XInput Driver
[ 34.034] ABI class: X.Org XInput driver, version 24.4
[ 34.034] (II) Using input driver 'evdev' for 'ADS7846 Touchscreen'
[ 34.034] (**) ADS7846 Touchscreen: always reports core events
[ 34.034] (**) evdev: ADS7846 Touchscreen: Device: "/dev/input/event0"
[ 34.034] (--) evdev: ADS7846 Touchscreen: Vendor 0 Product 0x1ea6
[ 34.034] (--) evdev: ADS7846 Touchscreen: Found absolute axes
[ 34.034] (--) evdev: ADS7846 Touchscreen: Found x and y absolute axes
[ 34.034] (--) evdev: ADS7846 Touchscreen: Found absolute touchscreen
[ 34.034] (**) Option "SwapAxes" "1"
[ 34.034] (II) evdev: ADS7846 Touchscreen: Configuring as touchscreen
[ 34.034] (**) evdev: ADS7846 Touchscreen: YAxisMapping: buttons 4 and 5
[ 34.034] (**) evdev: ADS7846 Touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 34.034] (**) Option "config_info" "udev:/sys/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.1/input/input0/event0"
[ 34.034] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 6)
[ 34.034] (II) evdev: ADS7846 Touchscreen: initialized for absolute axes.
[ 34.035] (**) ADS7846 Touchscreen: (accel) keeping acceleration scheme 1
[ 34.035] (**) ADS7846 Touchscreen: (accel) acceleration profile 0
[ 34.035] (**) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
[ 34.035] (**) ADS7846 Touchscreen: (accel) acceleration threshold: 4
[ 34.036] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse0)
[ 34.036] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
[ 34.036] (II) No input driver specified, ignoring this device.
[ 34.036] (II) This device may have been added with another device file.
[ 166.889] (II) evdev: ADS7846 Touchscreen: Close
[ 166.889] (II) UnloadModule: "evdev"
[ 167.227] (II) Server terminated successfully (0). Closing log file.
System
I'm using a Rpi 4B with 8Gb RAM and RaspianOS.
Request
Any ideas how to detect touch events? Might also be due to misconfiguration on my part.
TIA