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.

    Black Screen... I have not upgraded the MM2 system software.

    Scheduled Pinned Locked Moved Troubleshooting
    12 Posts 2 Posters 1.8k Views 2 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.
    • earnestrichardsE Offline
      earnestrichards
      last edited by

      and it happened… black screen on the Pi4 and MM is still running in the Chrome window on my MacMini.

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

        @earnestrichards cool… so… try running server mode

        npm start server

        and then use chromium browser on the pi4

        i have a config that does all this , i tried to have this as the default setup so one could chnage in config.js and voila… but it wasn’t accepted
        (I do this on pi 0 as electron doesn’t run there anymore)

        down load this file to MagicMirror folder
        https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/run-start.sh
        make it executable

        chmod +x run-start.sh
        

        edit package. json
        copy the start line
        change the word “start” to “start1”
        looks like this

        "start1": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
        

        this saves the old start command
        change the right side of the new start to “./run-start,sh”
        looks like this

          "start":"./run-start.sh",
        

        edit config.js
        and uncomment this line

        	// serverOnly:  true/false/"local" ,
        

        set to local
        so it looks like this

        	serverOnly:  "local" ,
        

        now npm start or pm2 start will launch the MM in server mode (no ui)
        and then launch chromium-browser over it.
        mac still talks to server

        if u need to go back, edit config.js, change serverOnly to false,
        then npm run start1

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • 1
        • 2
        • 2 / 2
        • 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