• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MagicMirror Failing on Raspberry Pi Zero W Rev 1.1

Scheduled Pinned Locked Moved Unsolved Troubleshooting
43 Posts 3 Posters 3.0k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    butchkemper @davidgagne
    last edited by Sep 2, 2024, 8:42 PM

    @davidgagne The Pi Zero has 512KB memory, the default swapfile size setting is 100KB, and the swapfile is located on the SDcard which is not very fast.

    I would suggest changing the swapfile size to 2048KB by editing /etc/dphys-swapfile and changing CONF_SWAPSIZE=100 to CONF_SWAPSIZE=2048.

    You might consider moving from the SDcard to an SSD which will provide quicker data access and improved security against SDcard failure.

    Lastly, you might consider changing from a Pi Zero to a Pi Zero 2 or something with more processing power. I use a Pi 3 Model A+ with a USB attached SSD and 2048GB swapfile size.

    Butch

    Resistance is not Futile!
    It is voltage divided by current.

    S D 2 Replies Last reply Sep 2, 2024, 10:51 PM Reply Quote 0
    • S Away
      sdetweil @butchkemper
      last edited by Sep 2, 2024, 10:51 PM

      @butchkemper my install script increases the swap file size if its small (200meg or less).

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Sep 3, 2024, 12:37 AM Reply Quote 0
      • D Offline
        davidgagne @sdetweil
        last edited by Sep 3, 2024, 12:37 AM

        @sdetweil @butchkemper I just checked that file and it has no CONF_SWAPSIZE variable.

        There is a SWAPSIZE variable set to 1024.

        Is there a chance that @sdetweil’s script misnamed that variable?

        S 1 Reply Last reply Sep 3, 2024, 2:05 AM Reply Quote 0
        • S Away
          sdetweil @davidgagne
          last edited by sdetweil Sep 3, 2024, 2:05 AM Sep 3, 2024, 2:05 AM

          @davidgagne looks like you win the prize

          IMG_0174.png

          but funny cause it worked!

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Sep 3, 2024, 2:11 AM Reply Quote 0
          • S Away
            sdetweil @sdetweil
            last edited by sdetweil Sep 3, 2024, 2:49 AM Sep 3, 2024, 2:11 AM

            @davidgagne @butchkemper
            fixed

            but do

            free -m

            from command lineto see how big swap is

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • D Offline
              davidgagne @butchkemper
              last edited by Sep 3, 2024, 2:42 AM

              @butchkemper said in MagicMirror Failing on Raspberry Pi Zero W Rev 1.1:

              You might consider moving from the SDcard to an SSD which will provide quicker data access and improved security against SDcard failure.

              If I connect an SSD via the data port and remove the SIM, will the 0 boot from the SSD? Or is there a way to configure the SIM to have it switch to the SSD or something?

              S 1 Reply Last reply Sep 3, 2024, 2:48 AM Reply Quote 0
              • S Away
                sdetweil @davidgagne
                last edited by Sep 3, 2024, 2:48 AM

                @davidgagne pi 0 doesnt support boot from ssd/usb

                you can make a hybrid, boot from read only sd , run from ssd

                see
                https://forums.raspberrypi.com/viewtopic.php?t=251733

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 3
                • 4
                • 5
                • 5 / 5
                5 / 5
                • First post
                  41/43
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy