Adding overlays to the host OS


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


… 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.


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



That seemed to have worked. Thanks.