LukeSkywalker92 / TeleFrame

TeleFrame - a digital picture frame for telegram
MIT License
92 stars 28 forks source link

Touchscreen calibration #113

Open Saku86 opened 4 years ago

Saku86 commented 4 years ago

Hi

I am not sure if this is correct to create a new issue, but my problem doesn't fit into any other issues. I'm new here in Github because of the Teleframe. Recently my touchscreen 7inch display arrived, but there is one problem I can't handle so far. I put the display into a 10x15cm picture frame. Since the display is a bit larger I used the overscan feature to create some borders so the picture fits perfectly into the frame. Unfortunately the touchscreen area didn't change. When I try to touch the buttons raspberry "thinks" that I touched exactly the overscanned pixel. That means Raspberry doesn't realize where I touch correctly. I calibrated the screen but even in the calibration mode Raspberry doesn't recognize the correct area. Does anyone of you know a feature to determine the area for the touchscreen? I hope that this was understandable. Thank you very much for your help.

KateiRen commented 3 years ago

I have to use xinput set-prop '8' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1 when rotating my tablets screen orientation to make the touch orientation follow. This is just a rotation transformation, but I would expect changing the 1 to 0.x or 0,x might allow for a size altering transformation as well.

Note that the device ID number '8' above may change if any devices are plugged into the USB port. running xiniton the machine itself shows the device list with IDs attached.

Using man xinput or googling xinput transformation might help getting closer to your solution.

Good luck.