Chung-yih Wang has uploaded a new change for review.
Change subject: x11-drivers/xf86-input-evdev: Add SYN_DROPPED handling
......................................................................
x11-drivers/xf86-input-evdev: Add SYN_DROPPED handling
If an evdev client can not consume evdev events in its queue fast enough, the
evdev kernel driver will fill an SYN_DROPPED event and clear the queue
once the client's queue is full. Then the queue will be out of sync with
evdev's state. The patch tries to handle the SYN_DROPPED event by retrieving
evdev's state with specific ioctl commands in order to make the state of evdev
consistent between kernel and user-space evdev driver.
BUG=chromium-os:35291
TEST=on device; run the platform_TouchscreenSynDrop test
1. Modify the line in /sbin/xstart.sh to change the nice level from -20 to 19.
exec nice -n 19 /usr/bin/X -noreset -nolisten tcp vt01 -auth $1 2> /dev/null
2. Execute the test script to genereate the SYN_DROPPED event and see if it passes the test.
cd /usr/local/autotest
bin/autotest tests/platform_TouchscreenSynDrop/control
3. Test if touchscreen still functions correctly.
Change-Id: Ia5b2eda0438152ead497e8c4f0053cd5a1f6a40c
---
A x11-drivers/xf86-input-evdev/files/evdev-2.7.3-Add-SYN_DROPPED-handling.patch
R x11-drivers/xf86-input-evdev/xf86-input-evdev-2.7.3-r7.ebuild
M x11-drivers/xf86-input-evdev/xf86-input-evdev-2.7.3.ebuild
3 files changed, 322 insertions(+), 0 deletions(-)
git pull ssh://
gerrit.chromium.org:29418/chromiumos/overlays/chromiumos-overlay refs/changes/06/36906/1
--
To view, visit
https://gerrit.chromium.org/gerrit/36906
To unsubscribe, visit
https://gerrit.chromium.org/gerrit/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5b2eda0438152ead497e8c4f0053cd5a1f6a40c
Gerrit-PatchSet: 1
Gerrit-Project: chromiumos/overlays/chromiumos-overlay
Gerrit-Branch: master
Gerrit-Owner: Chung-yih Wang <
cyw...@chromium.org>