Read the statement by Michael Teeuw here.
MMM-BackgroundSlideshow
-
@CyruS1337 by default, the raspberry pi OS uses physical memory… if it runs out, it will try to swap out things not being used to make room for current work. but… the swap space is very small, only 100 meg…
so the swap out fails, and the current process is killed -
Ok, thanks for the explanation :) I can understand that reasonably. You are a genius
-
@CyruS1337 no… it happened to me!
-
Now I thought it was solved, but after about 1 hour the screen was black again. I had to stop the MagicMirror with
pm2 stop 0
and then restart it withpm2 start 0
.I also changed the size from 100 to 1024.
What else can it be?
sudo dphys-swapfile swapoff sudo nano /etc/dphys-swapfile / (changed size 1024) sudo dphys-swapfile swapon
-
@CyruS1337 and rebooted after changing swap file
-
@sdetweil said in MMM-BackgroundSlideshow:
and rebooted after changing swap file
I have now reboot the mirror …
-
free -m
Command will show memory usage -
@sdetweil said in MMM-BackgroundSlideshow:
free -m
Command will show memory usagepi@raspberrypi_1:~ $ free -m total used free shared buff/cache available Mem: 925 218 404 1 302 657 Swap: 1023 111 912
-
This morning, the mirror was dark again.
This is the memory output
pi@raspberrypi_1:~ $ free -m total used free shared buff/cache available Mem: 925 220 391 1 313 653 Swap: 1023 118 905
Edit: The mirror was stopped and started and after 15min he was dark again …
-
I seem to have found the mistake. I have selected one to quality of photos for playing the photos (4mb per photo). The fact that I have chosen a lower quality of the photos, the problem is gone.