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

increase timeout in ipts_control_wait_flush #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Leo1998
Copy link

@Leo1998 Leo1998 commented Dec 21, 2024

This fixes a rare issue on my Surface Pro 5 (Arch Linux). Happens about every tenth boot.

log: dmesg.txt

As far as i debugged this, the module switches the mode from event to poll (see ipts_eds1_switch_mode) thus calling ipts_control_restart. During shutdown the IPTS_CMD_QUIESCE_IO command sometimes times out in ipts_control_wait_flush returning EAGAIN (-11).
If the module tries to start again, the device is still "flushing" leading to the failure in ipts_control_get_device_info, which obviously makes the touchscreen not working.

Increasing the timeout in ipts_control_wait_flush to 10 sec fixes this on my device, but maybe you have a nicer solution?? Alternatively we could increase the msleep timeout in ipts_control_restart but i think this PR should be the better option.

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