Comment 7 for bug 199065

Revision history for this message
ToddBrandt (todd-e-brandt) wrote :

ok, fix committed in 0.52. It was actually just a little bit more busted than this bug shows. There are 8 possible layouts for the touchscreen, all of which have now been tested. These are the possible ways that the touchscreen can be mapped to the display. These can be simulated on the samsung by pressing the buttons in different orders.

Screen points:
0 1
2 3

1) No Rotation, X Aligned, Y Aligned
press 0 1 2 3
2) No Rotation, X Inverted, Y Aligned
press 1 0 3 2
3) No Rotation, X Aligned, Y Inverted
press 2 3 0 1
4) No Rotation, X Inverted, Y Inverted
press 3 2 1 0
5) ClockWise Rotation, X Aligned, Y Aligned
press 2 0 3 1
6) ClockWise Rotation, X Inverted, Y Aligned
press 0 2 1 3
7) ClockWise Rotation, X Aligned, Y Inverted
press 3 1 2 0
8) CounterClockWise Rotation, X Aligned, Y Aligned
press 1 3 0 2

The touchscreen calibration algorithm assumes the screen is rotated if the x coordinates of points 0, 1 and 2, 3 are within 100 of each other. This way you have some room to create a rectangle with your presses but if you go too far outside the points it will create a junk config. The config can be reversed though by redoing it properly.