Skip to content

fix(evdev): fix touch point reading failure #8029

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

Closed
wants to merge 1 commit into 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
@FASTSHIFT FASTSHIFT changed the title fix(lv_evdev_create):fix screen touch failure fix(evdev): fix touch point reading failure Apr 8, 2025
Copy link
Member

@liamHowatt liamHowatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We can also port it to v9.1 after. Please fix the formatting problem reported by the CI.

@lvgl-bot
Copy link

We need some feedback on this pull request.

Now we mark this as "Abandoned" because there was no activity here for 14 days.

Remove the "Abandoned" label or comment else this will be closed in 7 days.

@AndreCostaaa
Copy link
Collaborator

Hey @TaoAaron, are you still free to get this across the finishing line ? 🏁

@AndreCostaaa
Copy link
Collaborator

Let's continue in #8282

Seems like the micropython CI no longer works for v9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 Review needed Anyone can review a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants