Adding overlays to the host OS

Hi,

I would like to add an overlay to my device that allows support for shutdown from GPIO. The overlay is gpio-shutdown-overlay.dts

This allows me to shutdown the device using GPIO without writing code to monitor a button.

To enable this I add the following to /boot/config.txt

dtoverlay=gpio-shutdown,gpio_pin=17,active_low=1,gpio_pull=up

… but currently it does not work when I use the GPIO, so how can I make this work as I think that it is needed in the HOST-OS to work.

Many thanks.

Hi,

When an Rpi is connected to balenaCloud, the supervisor manages the contents of config.txt.

Direct edits to config.txt are overwritten and the supervisor sets the state of config.txt that is configured in balenaCloud.

Please check the following docs for more info
https://www.balena.io/docs/learn/manage/configuration/#managing-device-configuration-variables
https://www.balena.io/docs/reference/OS/advanced/#configtxt

Regards
ZubairLK

Hi,

That seemed to have worked. Thanks.