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.

    Installing on a Pi Zero

    Scheduled Pinned Locked Moved Troubleshooting
    175 Posts 33 Posters 220.8k Views 33 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.
    • D Offline
      Dimasua @sdetweil
      last edited by

      @sdetweil Another question, how I can restart the mirror from the command line? Didn’t find that information.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Dimasua
        last edited by sdetweil

        @Dimasua if u said yes to pm2,

        pm2 start 0

        If it does not start on boot, the run the fixuppm2 script from my site,

        If not pm2, then npm start from the MagicMirror folder

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          stanvv
          last edited by stanvv

          I’ve used quite some of these manuals before, most without succes cause after a few weeks they all seem to crash/freeze screen. Finally I have a setup that’s working:

          • install raspian lite
          • use this script to install MM: https://github.com/pureartisan/magic-mirror-raspbian-lite
          • update npm with npm install -g electron --unsafe-perm=true --allow-root
          • increase swap
          sudo dphys-swapfile swapoff
          sudo nano /etc/dphys-swapfile
          CONF_SWAPSIZE=1024
          sudo dphys-swapfile setup
          sudo dphys-swapfile swapon
          sudo reboot
          
          • adjust /boot/config.txt with the following settings for overclock:
          arm_freq=1085
          gpu_freq=530
          over_voltage=8
          sdram_freq=500
          over_voltage_sdram=1
          
          • I also monitor the behaviour of the RPI’s performance in Home Assistant (in case it would crash, I have an indicator what went wrong) with: https://github.com/Sennevds/system_sensors

          So far it -finally- works like a charm!

          S ebolisaE 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @stanvv
            last edited by

            @stanvv shoulda just used my script

            https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • ebolisaE Offline
              ebolisa @stanvv
              last edited by

              @stanvv hi, that install was done on a P0, right?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @ebolisa
                last edited by

                @ebolisa just use my script

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                Mykle1M ebolisaE 2 Replies Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @sdetweil
                  last edited by

                  @sdetweil said in Installing on a Pi Zero:

                  just use my script

                  Amen to that.

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • ebolisaE Offline
                    ebolisa @sdetweil
                    last edited by

                    @sdetweil but which one exacly? I had MM running on P4 but the heat produced by the processor, the screen and its electronics, has pushed me to try out MM on a P0. With that, I should resolve the heat issue.

                    So, after reading several outdated procedures and after investing hours (as you know, P0 is as slow as hell) I’m back to square one.

                    Which steps should I take from scratch?
                    Which SO should I start with?
                    Which install batch should I install?

                    @stanvv’s procedure worked till I had to reboot, then the X server stopped responding :angry_face:

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @ebolisa
                      last edited by

                      @ebolisa what does it say?

                      to install do this

                      to update do this

                      u want to install, so u do the 1st
                      make sure to remove the MagicMirror folder, cause the script is starting from the beginning

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      ebolisaE 1 Reply Last reply Reply Quote 0
                      • ebolisaE Offline
                        ebolisa @sdetweil
                        last edited by ebolisa

                        @sdetweil ok. Done the following with no avail.

                        Removed MagicMirror folder

                        Ran the install script. No errors. It did an autoreboot but no go.

                        Reviewed the install_log… no errors.

                        Did notice, however, the script created 3 folders:
                        MagicMirror
                        magic-mirror
                        magic-mirror-app

                        At reboot, the X server intent to start but incounters some errors and shuts down with the message: Server terminated successfully (0). Closing log file.

                        Where do I go from here?
                        TIA

                        EDIT:
                        Here’s the Xorg log:

                        [    64.036]
                        X.Org X Server 1.20.4
                        X Protocol Version 11, Revision 0
                        [    64.101] Build Operating System: Linux 5.4.0-54-generic armv8l Raspbian
                        [    64.123] Current Operating System: Linux magicmirror 5.10.11+ #1399 Thu Jan                                                                                                                                    28 12:02:28 GMT 2021 armv6l
                        [    64.123] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.e                                                                                                                                   nable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1280 bcm2708_fb                                                                                                                                   .fbheight=1024 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:7C:38:09 vc_mem.mem                                                                                                                                   _base=0x1ec00000 vc_mem.mem_size=0x20000000  console=ttyS0,115200 console=tty1 r                                                                                                                                   oot=PARTUUID=a27be534-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootw                                                                                                                                   ait
                        [    64.220] Build Date: 15 January 2021  02:03:57PM
                        [    64.243] xorg-server 2:1.20.4-1+rpt2+deb10u3 (https://www.debian.org/support                                                                                                                                   )
                        [    64.265] Current version of pixman: 0.36.0
                        [    64.311]    Before reporting problems, check http://wiki.x.org
                                to make sure that you have the latest version.
                        [    64.314] Markers: (--) probed, (**) from config file, (==) default setting,
                                (++) from command line, (!!) notice, (II) informational,
                                (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
                        [    64.415] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Feb 15 18:44:41 202                                                                                                                                   1
                        [    64.455] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
                        [    64.471] (==) No Layout section.  Using the first Screen section.
                        [    64.471] (==) No screen section available. Using defaults.
                        [    64.471] (**) |-->Screen "Default Screen Section" (0)
                        [    64.471] (**) |   |-->Monitor "<default monitor>"
                        [    64.494] (==) No monitor specified for screen "Default Screen Section".
                                Using a default monitor configuration.
                        [    64.495] (==) Automatically adding devices
                        [    64.496] (==) Automatically enabling devices
                        [    64.496] (==) Automatically adding GPU devices
                        [    64.503] (==) Max clients allowed: 256, resource mask: 0x1fffff
                        [    64.517] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
                        [    64.517]    Entry deleted from font path.
                        [    64.517] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
                        [    64.517]    Entry deleted from font path.
                        [    64.518] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
                        [    64.518]    Entry deleted from font path.
                        [    64.518] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
                        [    64.518]    Entry deleted from font path.
                        [    64.518] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
                        [    64.518]    Entry deleted from font path.
                        [    64.518] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
                        [    64.519]    Entry deleted from font path.
                        [    64.519] (==) FontPath set to:
                                /usr/share/fonts/X11/misc,
                                built-ins
                        [    64.519] (==) ModulePath set to "/usr/lib/xorg/modules"
                        [    64.519] (II) The server relies on udev to provide the list of input devices                                                                                                                                   .
                                If no devices become available, reconfigure udev or disable AutoAddDevic                                                                                                                                   es.
                        [    64.519] (II) Loader magic: 0x1fdf80
                        [    64.519] (II) Module ABI versions:
                        [    64.519]    X.Org ANSI C Emulation: 0.4
                        [    64.519]    X.Org Video Driver: 24.0
                        [    64.522]    X.Org XInput driver : 24.1
                        [    64.522]    X.Org Server Extension : 10.0
                        [    64.538] (--) using VT number 2
                        
                        [    64.538] (II) systemd-logind: logind integration requires -keeptty and -keep                                                                                                                                   tty was not provided, disabling logind integration
                        [    64.542] (II) no primary bus or device found
                        [    64.545] (II) LoadModule: "glx"
                        [    64.556] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
                        [    64.656] (II) Module glx: vendor="X.Org Foundation"
                        [    64.657]    compiled for 1.20.4, module version = 1.0.0
                        [    64.657]    ABI class: X.Org Server Extension, version 10.0
                        [    64.657] (==) Matched modesetting as autoconfigured driver 0
                        [    64.657] (==) Matched fbdev as autoconfigured driver 1
                        [    64.657] (==) Assigned the driver to the xf86ConfigLayout
                        [    64.657] (II) LoadModule: "modesetting"
                        [    64.664] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
                        [    64.674] (II) Module modesetting: vendor="X.Org Foundation"
                        [    64.675]    compiled for 1.20.4, module version = 1.20.4
                        [    64.675]    Module class: X.Org Video Driver
                        [    64.675]    ABI class: X.Org Video Driver, version 24.0
                        [    64.675] (II) LoadModule: "fbdev"
                        [    64.682] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
                        [    64.689] (II) Module fbdev: vendor="X.Org Foundation"
                        [    64.690]    compiled for 1.20.3, module version = 0.5.0
                        [    64.690]    Module class: X.Org Video Driver
                        [    64.690]    ABI class: X.Org Video Driver, version 24.0
                        [    64.693] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
                        [    64.693] (II) FBDEV: driver for framebuffer: fbdev
                        [    64.719] (WW) Falling back to old probe method for modesetting
                        [    64.719] (EE) open /dev/dri/card0: No such file or directory
                        [    64.720] (WW) Falling back to old probe method for fbdev
                        [    64.720] (II) Loading sub module "fbdevhw"
                        [    64.720] (II) LoadModule: "fbdevhw"
                        [    64.721] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
                        [    64.729] (II) Module fbdevhw: vendor="X.Org Foundation"
                        [    64.729]    compiled for 1.20.4, module version = 0.0.2
                        [    64.730]    ABI class: X.Org Video Driver, version 24.0
                        [    64.734] (II) FBDEV(0): using default device
                        [    64.734] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
                        [    64.739] (II) FBDEV(0): Creating default Display subsection in Screen sectio                                                                                                                                   n
                                "Default Screen Section" for depth/fbbpp 24/32
                        [    64.739] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
                        [    64.739] (==) FBDEV(0): RGB weight 888
                        [    64.743] (==) FBDEV(0): Default visual is TrueColor
                        [    64.762] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
                        [    64.763] (II) FBDEV(0): hardware: BCM2708 FB (video memory: 5120kB)
                        [    64.763] (DB) xf86MergeOutputClassOptions unsupported bus type 0
                        [    64.763] (II) FBDEV(0): checking modes against framebuffer device...
                        [    64.763] (II) FBDEV(0): checking modes against monitor...
                        [    64.764] (II) FBDEV(0): Virtual size is 1280x1024 (pitch 1280)
                        [    64.764] (**) FBDEV(0):  Built-in mode "current"
                        [    64.764] (==) FBDEV(0): DPI set to (96, 96)
                        [    64.764] (II) Loading sub module "fb"
                        [    64.764] (II) LoadModule: "fb"
                        [    64.765] (II) Loading /usr/lib/xorg/modules/libfb.so
                        [    64.787] (II) Module fb: vendor="X.Org Foundation"
                        [    64.787]    compiled for 1.20.4, module version = 1.0.0
                        [    64.787]    ABI class: X.Org ANSI C Emulation, version 0.4
                        [    64.787] (**) FBDEV(0): using shadow framebuffer
                        [    64.787] (II) Loading sub module "shadow"
                        [    64.787] (II) LoadModule: "shadow"
                        [    64.788] (II) Loading /usr/lib/xorg/modules/libshadow.so
                        [    64.796] (II) Module shadow: vendor="X.Org Foundation"
                        [    64.796]    compiled for 1.20.4, module version = 1.1.0
                        [    64.801]    ABI class: X.Org ANSI C Emulation, version 0.4
                        [    64.801] (II) UnloadModule: "modesetting"
                        [    64.801] (II) Unloading modesetting
                        [    64.838] (==) FBDEV(0): Backing store enabled
                        [    64.845] (==) FBDEV(0): DPMS enabled
                        [    64.847] (II) Initializing extension Generic Event Extension
                        [    64.852] (II) Initializing extension SHAPE
                        [    64.865] (II) Initializing extension MIT-SHM
                        [    64.877] (II) Initializing extension XInputExtension
                        [    64.888] (II) Initializing extension XTEST
                        [    64.897] (II) Initializing extension BIG-REQUESTS
                        [    64.905] (II) Initializing extension SYNC
                        [    64.913] (II) Initializing extension XKEYBOARD
                        [    64.921] (II) Initializing extension XC-MISC
                        [    64.930] (II) Initializing extension SECURITY
                        [    64.937] (II) Initializing extension XFIXES
                        [    64.947] (II) Initializing extension RENDER
                        [    64.955] (II) Initializing extension RANDR
                        [    64.974] (II) Initializing extension COMPOSITE
                        [    64.981] (II) Initializing extension DAMAGE
                        [    64.992] (II) Initializing extension MIT-SCREEN-SAVER
                        [    65.000] (II) Initializing extension DOUBLE-BUFFER
                        [    65.007] (II) Initializing extension RECORD
                        [    65.016] (II) Initializing extension DPMS
                        [    65.025] (II) Initializing extension Present
                        [    65.032] (II) Initializing extension DRI3
                        [    65.035] (II) Initializing extension X-Resource
                        [    65.042] (II) Initializing extension XVideo
                        [    65.053] (II) Initializing extension XVideo-MotionCompensation
                        [    65.054] (II) Initializing extension SELinux
                        [    65.054] (II) SELinux: Disabled on system
                        [    65.058] (II) Initializing extension GLX
                        [    65.065] (II) AIGLX: Screen 0 is not DRI2 capable
                        [    68.618] (II) IGLX: Loaded and initialized swrast
                        [    68.620] (II) GLX: Initialized DRISWRAST GL provider for screen 0
                        [    68.621] (II) Initializing extension XFree86-VidModeExtension
                        [    68.628] (II) Initializing extension XFree86-DGA
                        [    68.637] (II) Initializing extension XFree86-DRI
                        [    68.641] (II) Initializing extension DRI2
                        [   118.828] (II) Server terminated successfully (0). Closing log file.
                        
                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 7
                        • 8
                        • 9
                        • 10
                        • 11
                        • 17
                        • 18
                        • 9 / 18
                        • First post
                          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