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

Scrolling is not detected on ADS7846 display #364

Open
FloerlPhilip opened this issue Mar 19, 2024 · 0 comments
Open

Scrolling is not detected on ADS7846 display #364

FloerlPhilip opened this issue Mar 19, 2024 · 0 comments

Comments

@FloerlPhilip
Copy link

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

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