I own the Rock5t and Rock5c; I just solved the following problem on Android 12 and 14.
Touchscreen Mapping Correction
You need to create an ‘.idc’ file for your touchscreen in the directory path ‘/system/usr/idc’.
File name:Vendor_xxxx_Product_xxxx.idc
(You must replace the ‘xxxx’ for Vendor and Product with your specific touchscreen data; note that case sensitivity matters—use lowercase for hexadecimal letters.)
File content:
########################################
device.internal=1
touch.deviceType = touchScreen
touch.orientation = 180 # customize to your Screen
# device.internal = 1 (0= externes Gerät/1 = internes Gerät)
# touch.deviceType = touchScreen
# touch.orientation = 0 (Natural)
# touch.orientation = 90 (Clockwise)
# touch.orientation = 180 (Upside down)
# touch.orientation = 270 (Counterclockwise)
########################################
Procedure for transferring to the Rock device:
I established an ADB connection (via USB or network using the connect command):
1.: adb root
The following enables read/write access to the system:
If ADB is already running as root, ‘su’ is not required in the shell command.
2.: adb remount
Alternative command:
adb shell ‘mount -o rw,remount /’
Transfer your IDC config to the Radxa device (Source PC = Windows; please adjust the file path):