In order to make the power button and power off to work add these lines to the /boot/config.txt The necessary drivers are already in Raspbian:
dtoverlay=gpio-poweroff,gpiopin=40
dtoverlay=gpio-key,gpio=41,label="Power button",keycode=116,active_low
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.