how do rotate hid-multitouch

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how do rotate hid-multitouch

3,746 Views
MicMoba
Contributor V

Hi I have a touchscreen connected over USB to my i.MX6 quad. 

The touch controller is detected by my Linux:

[    2.299132] hid-multitouch 0003:0EEF:C002.0001: input,hiddev96: USB HID v1.11 Mouse [eGalax Inc. eGalaxTouch P80H32 4009 v0059_M00 k03_215] on usb-ci_hdrc.0-1/input0

And the touch works, but I have to rotate it by 180°.

Is there a possibility to rotate it over the devicetree?

There is a  touchscreen-inverted-x property in the common touchscreen description but I don't know how to use it in the DT.

 

Thanks

Labels (4)
0 Kudos
Reply
6 Replies

3,684 Views
ujwal-setlur
Contributor I

I have exactly the same problem. Did you figure it out?

0 Kudos
Reply

3,678 Views
MicMoba
Contributor V

Hi ujwal-setlur

no not really. I wanted to rotate the touch with the device tree but I didn't find a way to do that.

Finally I used the tool ts_calibrate which comes with libts. After calibrating the touch was rotated. 

You can test it with ts_test which comes also with libts.

But if I started my QT application and the touch wasn't rotated as I expected. So I use the following QT environment variable to rotate the touch in QT:

export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0:rotate=180 

 

0 Kudos
Reply

3,661 Views
ujwal-setlur
Contributor I

Thanks @MicMoba . I am on Android-9, so I wonder if that will work for me, but I will give it a shot!

0 Kudos
Reply

3,734 Views
igorpadykov
NXP Employee
NXP Employee

Hi MicMoba

 

for better understanding of these properties one can look at 

"DT helper functions for touchscreen devices "

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/input/touchscreen/of_touchscreen.c...

 

Best regards
igor

0 Kudos
Reply

3,723 Views
MicMoba
Contributor V

Hi Igor,

thanks for reply. I always read the DT Documetation about touchscreen but I don't know how to implement this in my DT. When I use a I2C touchscreen I put the touchscreen properties into the I2C node. But I don't know where to place the properties when I have a USB touchscreen.

0 Kudos
Reply

3,742 Views
MicMoba
Contributor V

Sorry I forgot. I use a framebuffer system.

0 Kudos
Reply