Comment 1 for bug 214380

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

ok, the problem is this, the touchscreen calibration code we inherited and that has never had troubles on samsung only looks at these five options in the xorg.conf file: MinX, MaxX, MinY, MaxY, and Rotate. The config on the crown beach apparantly adds in two rare, but valid options: SwapX and SwapY.

Let me illustrate, this is the functional config that Yang sent me (inside the touchscreen device section):

Option "MinX" "28"
Option "MinY" "46"
Option "MaxX" "991"
Option "MaxY" "954"
Option "SwapX" "1"
Option "SwapY" "1"

What this means is that the MinX, MaxX, MinY, and MaxY values look orientated typically, but the SwapX and SwapY options mean that both X and Y are actually inverted. Thus, the following should be an identical config (subtracting the two swap options):

Option "MinX" "991"
Option "MinY" "954"
Option "MaxX" "28"
Option "MaxY" "46"

Since the current touchscreen calibrator doesn't even look at the swap options, it puts the data in backwards. This is why it produces a good config when the buttons are pressed in reverse order.

Great catch Yang! I'll add a fix for 0.53 this evening.