Help with Power Switch Boot Config

Hello,

I’m adding a power switch on my rpi4 (pins 5&6) running Manjaro Gnome.
The part I’m having trouble with is where do I add the: dtoverlay=gpio-shutdown?
I’ve opened: sudo nano /boot/config.txt and added the dtoverlay to the text but nothing happens when I restarted the pi and pushed my power button.

Am I missing something, or is it done differently on Arch-linux?

Thanks in advance.

I think you need to add a little more, per this post.

You can add it at;
$ sudo nano /boot/config.txt
My case, I added followings and work fine.
dtoverlay=gpio-shutdown,debounce=1000,gpio_pin=3,active_low=1,gpio_pull=up

1 Like