Switching a Pi off

Raspberry Pi related support

Re: Switching a Pi off

Postby noxx2 » 07 May 2015, 16:57

noxx2
 
Posts: 5
Joined: 05 May 2015, 17:24

Re: Switching a Pi off

Postby neanderthaler » 09 May 2015, 07:39

neanderthaler
 
Posts: 22
Joined: 01 May 2015, 08:20

Re: Switching a Pi off

Postby yjo » 10 May 2015, 04:18

Hi,
I installed a button switch and an LED.
The hardware and software are both very simple.
The short push of the button toggles play/pause, and the long push (indicated by the LED) starts shutdown.
The control script is written in shell script, so installation of python or so is not required.



yjo
yjo
 
Posts: 11
Joined: 07 Feb 2015, 14:38

Re: Switching a Pi off

Postby neanderthaler » 10 May 2015, 19:37

Hi yio,

your solution with bash scripting looks indeed promising.
Did you check if it causes any measurable load on cpu?

BTW, to start (again), you have to unplug and plug in the power source?
When I find some spare time, I'll try to merge start function into your bash script. It's just one more GPIO. Pentecost, or summer holiday, or christmas...:-)

Isn't it great to find at least some solutions to this !"§$%&! problem?
I like this forum.
neanderthaler
 
Posts: 22
Joined: 01 May 2015, 08:20

Re: Switching a Pi off

Postby yjo » 11 May 2015, 13:08

Attachments
raspi.jpg
raspi.jpg (118.72 KiB) Viewed 3149 times
yjo
 
Posts: 11
Joined: 07 Feb 2015, 14:38

support RuneAudio Donate with PayPal

Previous

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 19 guests