how do rotate hid-multitouch

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how do rotate hid-multitouch

2,852 次查看
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,790 次查看
ujwal-setlur
Contributor I

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

0 项奖励

2,784 次查看
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,767 次查看
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,840 次查看
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,829 次查看
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,848 次查看
MicMoba
Contributor V

Sorry I forgot. I use a framebuffer system.

0 项奖励