Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rock 5B Android USB Touchscreen maps incorrectly #34

Open
Masssssy opened this issue Jan 25, 2023 · 2 comments
Open

Rock 5B Android USB Touchscreen maps incorrectly #34

Masssssy opened this issue Jan 25, 2023 · 2 comments

Comments

@Masssssy
Copy link

Masssssy commented Jan 25, 2023

Connecting a USB touchscreen of the following type work somewhat but the axis are swapped/inverted/flipped on Rock 5B.

In potrait mode as an example swiping down will swipe right. It does not matter what screen orientation that is selected.
In all 4 orientations the touch is flipped around.

Vendor=2a94 Product=526d
Name="G2Touch Multi-Touch by G2TSP"

The touchscreen works fine in normal orientation when connecting a Samsung phone with DeX, running KostaKangs Android on RPi4 and running Ubuntu on Rock 5B. The screen works fine, this issue is specific for the Android released for Rock 5B.

Running the following image
Rock5B-Android12-rkr12-Tablet-20221129-gpt.zip

@Masssssy Masssssy changed the title USB Touchscreen maps incorrectly Rock 5B Android USB Touchscreen maps incorrectly Jan 25, 2023
@Masssssy
Copy link
Author

Masssssy commented Jan 29, 2023

Can be solved by adding an .idc file in

/system/usr/idc/Vendor_2a94_Product_526.idc

with the following contents where I believe that setting device.internal to 1 is what actually solved it (deviceType and orientationAware was already set as per dumpsys). I suppose that the HDMI port on Rock 5B is not to consider external from Androids point of view but the touch interface becomes "external" and therefore resolution of the HDMI screen and the touch interface mismatches.

device.internal = 1

touch.deviceType = touchScreen
touch.orientationAware = 1

@zyx486013
Copy link

Thank you for sharing this solution, it also works on my Rock 5A.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants