# How to get touch input working with a CM3 Panel

**URL:** <https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974>\
**Category:** balenaOS\
**Created:** [May 23, 2019, 5:57am UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974 "2019-05-23T05:57:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zane470](https://avatars.discourse-cdn.com/v4/letter/z/e0b2c6/32.png) [@Zane470](https://forums.balena.io/u/Zane470)\
**Post date:** [May 23, 2019, 5:57am UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/1 "2019-05-23T05:57:46Z")

</div>

Hello,

I picked up one of these  
[https://www.acmesystems.it/CM3-PANEL](https://www.acmesystems.it/CM3-PANEL)

and following these instructions gets both the screen and touch input working on raspbian  
[https://www.acmesystems.it/CM3-PANEL\_microsd](https://www.acmesystems.it/CM3-PANEL_microsd)

I tried following those same instructions on Balena OS to no avail. The LCD works fine but not the touch controller.

1.) copying the goodix-7-acme.dtbo file into the boot/overlays folder  
2.) Adding these lines to config.txt

```auto
# Activates the I2C 1 port on GPIO44 and 45 to talk with the
# touch screen controller end camera crypto-chip
dtoverlay=i2c1-bcm2708,sda1_pin=44,scl1_pin=45,pin_func=6
dtoverlay=goodix-7-acme

```

…but the touch input isn’t working. Even looking in /dev/input shows nothing other than “mouse” and lsmod doesn’t show anything relating to the Goodix touch input driver. Any ideas on what I should do to get this working?

---

<div class="post-metadata">

**Author:** ![richbayliss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/richbayliss/32/1054_2.png) [@richbayliss](https://forums.balena.io/u/richbayliss)\
**Post date:** [May 23, 2019, 7:17am UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/2 "2019-05-23T07:17:00Z")

</div>

Hi,

Just checking; are you using this in conjunction with our balenaCloud service, and is that device currently setup in an application there?

---

<div class="post-metadata">

**Author:** ![Zane470](https://avatars.discourse-cdn.com/v4/letter/z/e0b2c6/32.png) [@Zane470](https://forums.balena.io/u/Zane470)\
**Post date:** [May 23, 2019, 7:45am UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/3 "2019-05-23T07:45:17Z")

</div>

Yes it is. I’ve been trying different kiosk applications to see if the touch would work in any of them, and nothing has worked as of yet.

> **[balenalabs/balena-dash](https://github.com/balenalabs/balena-dash)**
>
> Build a Raspberry Pi based desktop dashboard for stats, photos, videos and more! - balenalabs/balena-dash

[https://github.com/balena-io/resin-electronjs](https://github.com/balena-io/resin-electronjs)

---

<div class="post-metadata">

**Author:** ![richbayliss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/richbayliss/32/1054_2.png) [@richbayliss](https://forums.balena.io/u/richbayliss)\
**Post date:** [May 23, 2019, 7:48am UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/4 "2019-05-23T07:48:01Z")

</div>

Cool. So if you have the device linked to a balenaCloud application then you need to change the config.txt values through the balenaCloud dashboard; part of the way the device is managed means that the config.txt is set by the cloud service, and if you change it manually then it gets reverted.

If you log in to the dashboard and go to the device in question, you should see the `Device Configuration` option in the left menu. In there, you can set config values which will be put into the config.txt for you.

Please give that a try, and see if it makes any difference.

---

<div class="post-metadata">

**Author:** ![Zane470](https://avatars.discourse-cdn.com/v4/letter/z/e0b2c6/32.png) [@Zane470](https://forums.balena.io/u/Zane470)\
**Post date:** [May 23, 2019, 4:27pm UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/6 "2019-05-23T16:27:36Z")

</div>

All of those settings came up in the device configuration online once I added them to the config.txt file, here are some of them:

 ![image](https://global.discourse-cdn.com/balena/original/2X/f/ff416e56b97a3c16ff29015f2f4584ac31b4dc19.png)

So it looks like the important one is the **RESIN\_HOST\_CONFIG\_dtoverlay** and this is the value for that field:

`"uart1,txd1_pin=32,rxd1_pin=33","i2c1-bcm2708,sda1_pin=44,scl1_pin=45,pin_func=6","goodix-7-acme","dpi18"`

So it looks like it automatically copied anything with **dtoverlay** into **RESIN\_HOST\_CONFIG\_dtoverlay**

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [May 23, 2019, 8:07pm UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/7 "2019-05-23T20:07:09Z")

</div>

Hi Zane,  
does that mean that your touch controller is working now, or are you still struggling to get it to work ?  
Regards  
Thomas

---

<div class="post-metadata">

**Author:** ![Zane470](https://avatars.discourse-cdn.com/v4/letter/z/e0b2c6/32.png) [@Zane470](https://forums.balena.io/u/Zane470)\
**Post date:** [May 23, 2019, 8:31pm UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/9 "2019-05-23T20:31:12Z")

</div>

It’s not working. I was just showing that it seems to be attempting to use the device tree settings.

---

<div class="post-metadata">

**Author:** ![jacobrosenthal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jacobrosenthal/32/1466_2.png) [@jacobrosenthal](https://forums.balena.io/u/jacobrosenthal)\
**Post date:** [May 23, 2019, 8:44pm UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/10 "2019-05-23T20:44:19Z")

</div>

Ive noticed that input on x11 kiosk stuff doesnt seem work without systemd (or works for… like a few seconds?) .

For instance some of us have done chromium kiosks with working input youll generally see this  
[https://github.com/jayatvars/balena-chromium-kiosk/blob/master/Dockerfile.template#L33](https://github.com/jayatvars/balena-chromium-kiosk/blob/master/Dockerfile.template#L33)

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [May 23, 2019, 9:58pm UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/13 "2019-05-23T21:58:03Z")

</div>

@Zanne470 might make sense to start at the beginning and see if your device actually shows up as an input on the host OS.  
So calling `lsmod` and listing the devices under `/dev/input` would be a good starting point to see if we might need another overlay to enable your device.

---

<div class="post-metadata">

**Author:** ![Zane470](https://avatars.discourse-cdn.com/v4/letter/z/e0b2c6/32.png) [@Zane470](https://forums.balena.io/u/Zane470)\
**Post date:** [May 23, 2019, 11:38pm UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/16 "2019-05-23T23:38:11Z")

</div>

The only thing that shows up under /dev/input is _mouse_. lsmod doesn’t list anything relating to it – it shows up as _pointer:Goodix Capacitive TouchScreen_ when working on raspbian.

I also tried looking at the logs with dmesg and nothing shows up that I can see relating to the system even attempting to insert the module.

Jacob, I’ll try that in a few hours. I’m pretty sure I tried that repo already and it got stuck in some loop when booting where it kept saying port forwarded, port deleted, etc.

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [May 24, 2019, 8:00am UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/17 "2019-05-24T08:00:07Z")

</div>

@Zane470 one piece on info on this thread is that we actually ordered a few of these CM3panels 2 months ago and its on the device teams list of device types to support, but they haven’t yet got to it. Our plan is to add a new device type and support the touchscreen and onboard wifi, but if you can figure this out it will be really great if its just configuration and doesn’t need additional OS level changes.

---

<div class="post-metadata">

**Author:** ![flypeek](https://avatars.discourse-cdn.com/v4/letter/f/51bf81/32.png) [@flypeek](https://forums.balena.io/u/flypeek)\
**Post date:** [July 23, 2019, 9:28am UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/20 "2019-07-23T09:28:02Z")

</div>

Adding these lines to config.txt  
The following is also required

## Enable the DPI port to talk with the TFT display(In front of #)

dtoverlay=dpi18  
overscan\_left=0  
overscan\_right=0  
overscan\_top=0  
overscan\_bottom=0  
framebuffer\_width=800  
framebuffer\_height=480  
enable\_dpi\_lcd=1  
display\_default\_lcd=1  
dpi\_group=2  
dpi\_mode=87  
dpi\_output\_format=0x6f005  
hdmi\_timings=800 0 40 48 88 480 0 13 3 32 0 0 0 60 0 32000000 6

---

<div class="post-metadata">

**Author:** ![jacobrosenthal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jacobrosenthal/32/1466_2.png) [@jacobrosenthal](https://forums.balena.io/u/jacobrosenthal)\
**Post date:** [July 26, 2019, 5:26pm UTC](https://forums.balena.io/t/how-to-get-touch-input-working-with-a-cm3-panel/10974/21 "2019-07-26T17:26:39Z")

</div>

Im still super interested in these. Has anyone had any success yet?
