how do rotate hid-multitouch

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how do rotate hid-multitouch

2,993件の閲覧回数
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

ラベル(4)
0 件の賞賛
6 返答(返信)

2,931件の閲覧回数
ujwal-setlur
Contributor I

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

0 件の賞賛

2,925件の閲覧回数
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 件の賞賛

2,908件の閲覧回数
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 件の賞賛

2,981件の閲覧回数
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 件の賞賛

2,970件の閲覧回数
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 件の賞賛

2,989件の閲覧回数
MicMoba
Contributor V

Sorry I forgot. I use a framebuffer system.

0 件の賞賛