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

fix(lv_evdev_create):fix screen touch failure #8029

Open
wants to merge 1 commit into
base: release/v9.0
Choose a base branch
from

Conversation

TaoAaron
Copy link

@TaoAaron TaoAaron commented Apr 1, 2025

1、When I was using lvgl release v9.0, I found that my touch screen had no touch feedback, but i can get touch coordinates from /dev/inputt/envent2. I added debugging information and found that the values of dsc->min_x, dsc->max_x, dsc->min_y, and dsc->max_y are all 0. This caused _evdev_calibrate to miscalculate, causing the reported screen coordinates to be wrong and the screen touch to fail.

2、So get the absinfo assignment for the x and y axes of the event device to dsc->min_x, dsc->max_x, dsc->min_y, dsc->max_y can fixes this error.

3、By the way, the latest release v9.2 does not have this bug.

Notes

The values of dsc->min_x, dsc->max_x, dsc->min_y, and dsc->max_y are 0, causing an error in _evdev_calibrate that causes the screen touch to fail.
So get the absinfo assignment for the x and y axes of the event device to dsc->min_x, dsc->max_x, dsc->min_y, dsc->max_y can fixes this error.
@TaoAaron TaoAaron closed this Apr 1, 2025
@TaoAaron TaoAaron reopened this Apr 1, 2025
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

Successfully merging this pull request may close these issues.

1 participant