tag:blogger.com,1999:blog-6238454757421809452.post4285360242951347136..comments2024-01-29T06:22:58.174-05:00Comments on The Raspberry Pi <br>Hobbyist: Low Memory Automatic RebootTed B Halehttp://www.blogger.com/profile/16887056993667506084noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-6238454757421809452.post-51841369887664421782016-08-11T09:41:48.359-04:002016-08-11T09:41:48.359-04:00Also, the script must be made executable by the fo...Also, the script must be made executable by the following command<br /><br />chmod +x /etc/lowmemreboot.shTed B Halehttps://www.blogger.com/profile/16887056993667506084noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-48083778867453144062016-08-11T09:33:56.135-04:002016-08-11T09:33:56.135-04:00Save the script as a file named /etc/lowmemreboot....Save the script as a file named /etc/lowmemreboot.sh and call it by adding the following to /etc/rc.local <br /><br />/etc/lowmemreboot.sh &<br /><br />The & tells the system to let the script run in the background. Without this, it would never return and rc.local would hang causing the boot process to hang.Ted B Halehttps://www.blogger.com/profile/16887056993667506084noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-50331625824039507552016-08-11T00:34:17.108-04:002016-08-11T00:34:17.108-04:00I have a question if you don't mind.
I am ki...I have a question if you don't mind. <br /><br />I am kind of a newbie. I want to know where do you save the code for 'lowmemreboot.sh'?<br /><br />Do I just paste it in the /etc/rc.local file? <br /><br />I am running a different project and I think your solution will help my problem.<br /><br />If you could please explain, like i am a 5 year old, how you run this.Carlos Paishttps://www.blogger.com/profile/12129379878896094769noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-58891429982582515372014-12-03T17:36:01.009-05:002014-12-03T17:36:01.009-05:00The system is still running rock solid. I never d...The system is still running rock solid. I never did put fbi into a loop, and the low memory monitor is not running. I think an update the the fbi program may have fixed the memory problem. The system says it has been up for 21 days and it doesn't seem to be losing memory.Ted B Halehttps://www.blogger.com/profile/16887056993667506084noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-88747155958246995612014-12-03T10:18:12.063-05:002014-12-03T10:18:12.063-05:00I am making a RPI picture frame for my mom. Can y...I am making a RPI picture frame for my mom. Can you give me an 18mo later update? Does your setup continue to be rock solid? Are you still running fib in a loop? Do you have a reboot when memory low routine running in the background too? Thanks! Anonymoushttps://www.blogger.com/profile/09783810526417826641noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-60502397959554569322013-06-03T10:09:30.052-04:002013-06-03T10:09:30.052-04:00Run it in a loop in a shell script. Like this:
#...Run it in a loop in a shell script. Like this:<br /><br /># /bin/sh<br /><br />while [ true ]<br />do<br /> fbi -noverbose -m 1920x1080 -t 10 /boot/PICTURES/*.jpg<br />done<br />Ted B Halehttps://www.blogger.com/profile/16887056993667506084noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-89612983176182208882013-06-01T09:09:55.090-04:002013-06-01T09:09:55.090-04:00Hi Ted
Care to share the "... run fbi progra...Hi Ted<br /><br />Care to share the "... run fbi program in a loop" for us newbs?<br /><br />Cheers<br /><br />ChrisAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-85285244051477748612013-05-09T16:29:14.655-04:002013-05-09T16:29:14.655-04:00The leak is in the Frame Buffer Interface applicat...The leak is in the Frame Buffer Interface application (fbi) and have no desire to debug it. That can be someone else's problem.<br /><br />And I came up with a much easier fix that should have been obvious from the beginning. I just run the fbi program in a loop. When it crashes, the memory is freed up and then it just runs again. It has been running non-stop for about three weeks now.Ted B Halehttps://www.blogger.com/profile/16887056993667506084noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-11959440751892760372013-05-09T15:54:03.231-04:002013-05-09T15:54:03.231-04:00Hi Ted
As regards to your memory leak, instead of ...Hi Ted<br />As regards to your memory leak, instead of rebooting the Pi, why not find the source of the problem?<br /><br />Nice site b.t.w.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-44111642076578572422013-03-19T19:27:48.111-04:002013-03-19T19:27:48.111-04:00You could just use monit so you don't have to ...You could just use monit so you don't have to run your bash script. Monit would allow you to restart your server if cpu is too high, not enough memory, etc.<br /><br />check system <br /> if loadavg (1min) > 4 then alert<br /> if loadavg (5min) > 2 then alert<br /> if memory usage > 75% then alert<br /> if cpu usage (user) > 70% then alert<br /> if cpu usage (system) > 30% then alert<br /> if cpu usage (wait) > 20% then alert<br /><br />Something like this, or exec 'reboot' instead of alert. Found your blog searching Google for connecting my new raspberry with an alarm system, to start video recording/motion only when turning the alarm on.<br /><br />Might not be good enough in electronic to actually build the full alarm system (easy, one door and one infra red detector).Fabien Pensohttps://www.blogger.com/profile/07847515314666786800noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-48420455269375840942013-03-12T10:53:46.992-04:002013-03-12T10:53:46.992-04:00I am building a much nicer looking frame for home....I am building a much nicer looking frame for home. (The wife wants one.) It will have an all wooden frame - none of the plastic from the original monitor will be used.<br />That one will have WiFi just to make it easier to use. The picture directory will be shared using Samba, so I can just drag and drop pix.Ted B Halehttps://www.blogger.com/profile/16887056993667506084noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-35210595071078117012013-03-12T10:50:21.825-04:002013-03-12T10:50:21.825-04:00This particular frame hangs on the wall in my offi...This particular frame hangs on the wall in my office at work. Corp policy will not allow me to attach a "non-approved" device to the network. <br />Besides, there isn't really room for anything to plug into the USB port the way that I mounted the hardware. See the pictures in the post about the Jumbo Digital Picture Frame.Ted B Halehttps://www.blogger.com/profile/16887056993667506084noreply@blogger.comtag:blogger.com,1999:blog-6238454757421809452.post-91674233064506241162013-03-08T00:23:00.185-05:002013-03-08T00:23:00.185-05:00For $8 you could add wifi, and have NTP sync'd...For $8 you could add wifi, and have NTP sync'd time. :-) <br /><br /> Regardless, your solution is definitely the better way to solve your problem.Davehttp://www.techsneeze.comnoreply@blogger.com