Go to advanced search

by Testamine
Wed Feb 01, 2017 11:45 am
Forum: Troubleshooting
Topic: Haunted? Shuts down after first boot. Second boot works!
Replies: 2
Views: 521

Re: Haunted? Shuts down after first boot. Second boot works!

My powerbutton shutdown script: from gpiozero import Button from subprocess import check_call from signal import pause def shutdown(): check_call(['sudo', 'poweroff']) shutdown_btn = Button(3, hold_time=2) shutdown_btn.when_held = shutdown[/size] pause() My rc.local: #!/bin/sh -e # # rc.local # # T...
by Testamine
Wed Feb 01, 2017 11:30 am
Forum: Troubleshooting
Topic: Haunted? Shuts down after first boot. Second boot works!
Replies: 2
Views: 521

Haunted? Shuts down after first boot. Second boot works!

I have a strange problem with my Raspberry Pi 3. Every time when it has gone several of hours without using the Pi, I need to boot it 2 times to get it to work. When I first plug in the power, it boots, launches Kodi (script) and shuts down (correctly) after 3 seconds. I then need to start it again,...
by Testamine
Thu Dec 15, 2016 10:45 am
Forum: Troubleshooting
Topic: Mother needs help with Push Button GPIO
Replies: 7
Views: 1638

Re: Mother needs help with Push GPIO

There is another simpler (easier to use) GPIO controlling library called GPIO zero. On their page they have an example for a button that that shuts down the Pi after the power button is held down for certain amount of time. If it is indeed so that the electrical interference is causing a short spik...
by Testamine
Sat Nov 26, 2016 11:09 am
Forum: Troubleshooting
Topic: Mother needs help with Push Button GPIO
Replies: 7
Views: 1638

Re: Mother needs help with Push Button GPIO

Thanks for the help guys! As of now, I see three solutions? Please help me some steps further to my goal, would be fantastic. 1. The correct solution is to add a de-bounce circuit to the GPIO input - this requires at least a resistor and capacitor added to smooth out any interference-generated pulse...
by Testamine
Fri Nov 25, 2016 8:23 pm
Forum: Troubleshooting
Topic: Mother needs help with Push Button GPIO
Replies: 7
Views: 1638

Mother needs help with Push Button GPIO

First off, I am a beginner in programming, so have some faith in me :) I started with Raspberry after my kids got a kit for christmas. I have searched for a solution, but found none. Also error-searching to try fix it my self have been 20+hours, so I really hope some clever heads can guide me. The p...

Go to advanced search