Turning off touch screen

Hi all,

I’m trying to develop an application with xserver similar project like this.
I use Raspberry Pi 4 and Raspberry Pi Touch Display. The display connected with DSI. And I want to turn off touch input. As far as I can understand that for this purpose I should add “disable_touchscreen=1” to “config.txt”. However it doesn’t have any effect, touch input still enabled. Any idea how I can manage this functionality? Have balenaOS got different parameter from raspian for this functionality?

Here is the config file in resin-boot;

camera_auto_detect=1
gpu_mem=128
ignore_lcd=1
max_framebuffers=3
avoid_warnings=1
disable_splash=1
disable_touchscreen=1
dtoverlay=imx477
dtoverlay=edt-ft5406
dtoverlay=vc4-kms-v3d
dtoverlay=vc4-kms-dsi-7inch
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=audio=on
dtparam=disable_touchscreen=1

Any clue appreciated, thank you!

Hi @chtakyol ! I apologize we weren’t able to get to your question before! Are you still having this issue? If so, I believe this section of our docs may help: Advanced boot settings - Balena Documentation (especially the parts on config.txt and dtparam).

In summary, changing config.txt in a balena device will generally not work as expected after the first boot. Instead, you can create configuration variables (like BALENA_HOST_CONFIG_disable_touchscreen, with a value of 1 to achieve similar effects.