eee123
Posts: 17
Joined: Tue May 29, 2018 9:50 pm

3b+ startup/shutdown button

Mon Jun 25, 2018 2:53 pm

trying to get an access point (working) AND a shutdown button script to work on startup...

when i run the button script separately in terminal it works, but not when its started on boot automatically via rc.local
even running rc.local directly with: sudo /etc/rc.local makes it work, but it does not run at startup so i may have an rc.local startup issue

adding the shutdown button script to the rc.local doesnt work, as per this guide:
https://www.element14.com/community/doc ... berry-pi-b

nor does it work going the direct route as per this guide:
https://howchoo.com/g/mwnlytk3zmm/how-t ... spberry-pi

nor does it work as per this guide:
http://www.instructables.com/id/Simple- ... wn-Button/

trying to run it off GPIO3 so i can have a combined shutdown/startup button

any help/ideas appreciated

eee123
Posts: 17
Joined: Tue May 29, 2018 9:50 pm

Re: 3b+ startup/shutdown button

Mon Jun 25, 2018 3:03 pm

does the issue have something to do with the message i get when i run the script:

runtime warning "A physical pull up resistor is fitted on this channel!"

when using GPIO 3 (pin 5.)

so cant use GPIO 3 regardless of it having the ability to startup/shutdown the pi?

although im unsure because i previously tried GPIO 27 and that wasn't working either...

klricks
Posts: 5775
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: 3b+ startup/shutdown button

Mon Jun 25, 2018 7:07 pm

See my reply here: viewtopic.php?f=28&t=216586
Unless specified otherwise my response is based on the latest and fully updated Raspbian Stretch w/ Desktop OS.

eee123
Posts: 17
Joined: Tue May 29, 2018 9:50 pm

Re: 3b+ startup/shutdown button

Wed Jun 27, 2018 2:01 pm

klricks wrote:
Mon Jun 25, 2018 7:07 pm
See my reply here: viewtopic.php?f=28&t=216586

thank you very much, fixed my issue completely!

Return to “General discussion”

Who is online

Users browsing this forum: LTolledo and 43 guests