We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
I am having a problem calibrating the touch screen on the 4D Systems Gen4 7" LCD display with a resistive touchscreen. Near the center of the display the calibration is very close but near the edges it’s off by more than 0.25 inch. At the lower left corner of the LCD the pointer appears approximately 0.25" above and 0.25" to the right the touch point. At the upper right hand corner the pointer appears 0.4" below and .3" to the left of the touch point.
The instructions for calibrating the touchscreen in the Gen4 user manual do not seem to apply. My environment is a BeagleBone Black with the latest image of Debian Stretch (Ver 9.5 dated 2018-09-16)
@texasEE, this is one of the screen’s i haven’t had a chance to personally calibrate yet. I had a chance to test the 4 and 5 inch, so those have it implemented. For the 7-inch, the values are in the device tree overlay, copied from the 4 and 5 inch displays, just disabled:
I’ve tried editing the touchscreen-offset-x & touchscreen-offset-y values from 250 to 5000 with very little results. Cursor is still off from touch position near the edges of the screen by about the same amount. Can you provide some idea of expected number values and what I should expect as number is increased or decreased?
@texasEE, i belive they are pixel values in the microchip touch sensor… But since you aren’t getting any good feedback, please run this script and share it’s output to this thread.
Ah, that would be a problem. Switched displays while trying to debug this issue. Once switching back to the 4D Systems Gen4 7" display the values started to adjust the cursor position. After some “playing” found that x of 100 and y of 275 worked.
Question, it would appear that this needs to be adjusted for each unit, or is there a good default value other than the 250 & 300 values which appear on my unit to over compensate for the issue? It’s a cumbersome job to interactively develop the adjustment for each unit.