DescriptionAssociate internal touchscreen to internal display
Currently we associate touchscreen to display based on matching
resolution. But there could be cases the internal touchscreen
reports a resolution that does not match any display resolution,
or the internal display and external display have the same resolution
so we don't know which display to match the touchscreen to.
This patch adds a logic that if we have internal touchscreen and
internal display, we should match them first regardless of the
resolution.
We already have the information about which display is internal display.
For deciding internal touchscreen, we query X to get the touchscreen's
/dev/input/eventX node, and call a script is_touchscreen_internal
(which checks if the device is a I2C device) to decide whether the
touchscreen is internal or not.
BUG=chrome-os-partner:29398
TEST=touch position is correctly mapped on Blaze in extending mode, with
external monitor having 1920x1280 resolution.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283641
Patch Set 1 #Patch Set 2 : re-formatting #
Total comments: 18
Patch Set 3 : remove using external script is_touchscreen_internal #
Total comments: 10
Patch Set 4 : address comments #
Messages
Total messages: 9 (0 generated)
|