News for hackers. Stuff that matters.
Re:PiBakery – a blocks based, easy to use setup tool for Ras... by jimmytidey on Wednesday September 07, 2016 @08:34AM (#12442808)
Well known story from Art School:

1) Develop your art installation on Raspberry Pi

2) Test it thoroughly so you know it will be robust

3) Install it in the gallery. Works great. Start organising wine for the private view

4) Come back to find Pi has turned off

5) Start debugging up a step ladder or inside a plinth, with an hour before people start arriving

Turns out the standard install goes to sleep if you don't interact with it for 20 mins, something you'd never think of testing for.

Removing this setting, especially for scripts that run as sudo on boot turns out to be tricky, especially with a keyboard balanced on your knee.

Pi Bakery is a welcome addition to the Pi Ecosystem!

Also, very interested in using this to make hardware dev more accessible to those familiar with web development:

http://webiopi.trouch.com/

Re:PiBakery – a blocks based, easy to use setup tool for Ras... by gregmac on Wednesday September 07, 2016 @09:38AM (#12443245)
> Turns out the standard install goes to sleep if you don't interact with it for 20 mins

Can you cite a source for this? I've used several differnt Pi's for various different purposes, and have never ran into this. In fact up until a couple weeks ago I had one plugged in sitting on my desk that I was using to test something periodically, and it would sometimes sit idle for a couple weeks between connections - but never had a problem with it.

I can find a stackoverflow question filled with people pointing out there is no sleep mode[0], but nothing else about it.

Re:PiBakery – a blocks based, easy to use setup tool for Ras... by rgoodwintx on Wednesday September 07, 2016 @10:00AM (#12443414)
It's been a while, but when I first set up OctoPi, I'd run into the same thing. Would disappear from Wifi after a short amount of time. At the time, I searched and found a directive to prevent something from going to sleep: wireless, USB (wifi dongle), the whole Pi. Endlessly frustrating. But I think/thought this has been resolved for some time.

Exciting project nonetheless and look forward to using it!

Re:PiBakery – a blocks based, easy to use setup tool for Ras... by Knacker_Hughes on Wednesday September 07, 2016 @10:17AM (#12443557)
I think the Edimax Nano WiFi dongle driver goes to sleep after a while under the default settings.

https://www.raspberrypi.org/forums/viewtopic.php?t=61665

Re:PiBakery – a blocks based, easy to use setup tool for Ras... by rgoodwintx on Wednesday September 07, 2016 @10:40AM (#12443756)
Bingo, that was it!
Re:PiBakery – a blocks based, easy to use setup tool for Ras... by squeaky-clean on Wednesday September 07, 2016 @10:55AM (#12443899)
I had the same thing happen to me with a wifi adapter. I was using the Pi as a server to host ouimeaux (which creates a REST API to toggle Belkin wifi light switches). It worked great, except after an hour of inactivity it would take 1-2 minutes to register an action, before becoming responsive again for the next hour.

Until I properly found out how to disable wifi power saving, I worked around it by just pinging it from another device every 30 minutes to keep it awake.

Re:PiBakery – a blocks based, easy to use setup tool for Ras... by pjc50 on Wednesday September 07, 2016 @09:59AM (#12443403)
Presumably the X11 / HDMI interface going to sleep, not the whole thing.
Re:PiBakery – a blocks based, easy to use setup tool for Ras... by jimmytidey on Wednesday September 07, 2016 @10:26AM (#12443640)
That's correct, it's the display that goes to sleep.
Re:PiBakery – a blocks based, easy to use setup tool for Ras... by jsingleton on Wednesday September 07, 2016 @10:50AM (#12443847)
Screen blanking is a very common problem on the default Pi install. I wrote up some fixes here a while ago: https://shutdownscanner.com/blog/posts/raspberry-pi-digital-...

These days you're probably better off using something like Screenly: https://www.screenly.io/ose

I have a fork that I hacked some basic auth into here: https://github.com/jpsingleton/screenly-ose

Re:PiBakery – a blocks based, easy to use setup tool for Ras... by iammyIP on Thursday September 08, 2016 @12:34AM (#12450326)
Totally deserved, because they failed to '2) Test it thoroughly so you know it will be robust'.