Disabling touchscreen

Which system do you use? Android, Ubuntu, OOWOW or others?


Which version of system do you use? Khadas official images, self built images, or others?

official images

Please describe your issue below:

Hello, how can I programmatically or physically disable touch screen? On vim3 I can disable touchscreen cable, but on vim4 after disabling touchscreen cable screen stops showing image at all

@Y2Kot You cannot disable the touch screen through hardware. Because during the uboot startup process, a touch screen is used to identify different screens (old TS050, new TS050, TS101) for compatibility purposes. So you can only disable it through software. You can modify the DTS configuration as follows:

common$ git diff
diff --git a/arch/arm64/boot/dts/amlogic/kvim4.dts b/arch/arm64/boot/dts/amlogic/kvim4.dts
index ee625d567d25..bae1b5d473ac 100644
--- a/arch/arm64/boot/dts/amlogic/kvim4.dts
+++ b/arch/arm64/boot/dts/amlogic/kvim4.dts
@@ -1480,13 +1480,13 @@
                 reg = <0x38>;
                 interrupt_pin = <&gpio GPIOM_8 GPIO_ACTIVE_HIGH>;
                 reset_pin = <&gpio GPIOM_9 GPIO_ACTIVE_HIGH>;
-                status = "okay";
+                status = "disable";
        gt9xx@14 {
                compatible = "goodix,gt9xx";
                reg = <0x14>;
-               status = "okay";
+               status = "disable";
                irq-gpio = <&gpio GPIOM_8 IRQ_TYPE_LEVEL_LOW>;
                reset-gpio = <&gpio GPIOM_9 GPIO_ACTIVE_HIGH>;
                tp-size = <89>;