3 ms·
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 g
by jimmytidey 10y ago
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/ http://webiopi.trouch.com/
- gregmac 10y ago> 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.
- pjc50 10y agoPresumably the X11 / HDMI interface going to sleep, not the whole thing.
- jimmytidey 10y agoThat's correct, it's the display that goes to sleep.
- rgoodwintx 10y agoIt'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!
- Knacker_Hughes 10y agoI 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 https://www.raspberrypi.org/forums/viewtopic.php?t=61665
- rgoodwintx 10y agoBingo, that was it!
- squeaky-clean 10y agoI 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.
- jsingleton 10y agoScreen 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-sign https://shutdownscanner.com/blog/posts/raspberry-pi-digital-... These days you're probably better off using something like Screenly: https://www.screenly.io/ose https://www.screenly.io/ose I have a fork that I hacked some basic auth into here: https://github.com/jpsingleton/screenly-ose https://github.com/jpsingleton/screenly-ose
- iammyIP 10y agoTotally deserved, because they failed to '2) Test it thoroughly so you know it will be robust'.