• 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.

RPI 3B keeps going to blank screen (cursor showing)

Scheduled Pinned Locked Moved Solved Troubleshooting
27 Posts 5 Posters 6.0k Views 5 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.
  • S Away
    sdetweil @BigTJ
    last edited by Oct 2, 2022, 4:42 PM

    @BigTJ if u did --disable-gpu, then u shouldnt be getting those messages

    u can use all the default modules multiple times

    when the screen goes black, does the mouse work? does it wake up?

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    B 1 Reply Last reply Oct 11, 2022, 10:48 AM Reply Quote 0
    • B Offline
      BigTJ @sdetweil
      last edited by Oct 11, 2022, 10:48 AM

      @sdetweil Thanks for the response

      I amended the package.json as follows;-

      “start”: “DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron --disable-gpu js/electron.js”,
      “start:dev”: “DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron --disable-gpu js/electron.js”,

      Is this correct?

      Yes the mouse still works. Cursor is a black arrow with a white outline. No it does wake up.
      Control M works
      Control R Works
      Control Q works

      The start up report of the mirror with minimal content shows;-

      magicmirror@2.18.0 start
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron --disable-gpu js/electron.js “run”

      [11.10.2022 11:45.29.988] [LOG] Starting MagicMirror: v2.18.0
      [11.10.2022 11:45.30.003] [LOG] Loading config …
      [11.10.2022 11:45.30.030] [LOG] Loading module helpers …
      [11.10.2022 11:45.31.926] [LOG] Initializing new module helper …
      [11.10.2022 11:45.31.930] [LOG] Module helper loaded: MMM-Wallpaper
      [11.10.2022 11:45.31.935] [LOG] No helper found for module: weather.
      [11.10.2022 11:45.31.936] [LOG] All module helpers loaded.
      [11.10.2022 11:45.32.214] [LOG] Starting server on port 8080 …
      [11.10.2022 11:45.32.258] [LOG] Server started …
      [11.10.2022 11:45.32.261] [LOG] Connecting socket for: MMM-Wallpaper
      [11.10.2022 11:45.32.268] [LOG] Starting node helper for: MMM-Wallpaper
      [11.10.2022 11:45.32.270] [LOG] Sockets connected & modules started …
      [11.10.2022 11:45.32.942] [LOG] Launching application.
      [6000:1011/114533.695740:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.

      Any further ideas?

      Thanks for your continued assistance

      1 Reply Last reply Reply Quote 0
      • B Offline
        BigTJ
        last edited by Oct 23, 2022, 10:41 AM

        @sdetweil
        Hi,
        Did you have any further thoughts on this problem?

        S 1 Reply Last reply Oct 23, 2022, 11:33 AM Reply Quote 0
        • S Away
          sdetweil @BigTJ
          last edited by sdetweil Oct 23, 2022, 11:34 AM Oct 23, 2022, 11:33 AM

          @BigTJ no. not really. 2.18 is fairly old and we have upgraded electron in each of the last releases

          I would use my upgrade script, see
          https://github.com/sdetweil/MagicMirror_scripts

          it will complain about package.json as we made the disable-gpu change

          so restore it first, before running the upgrade

          cd ~/MagicMirror 
          git checkout package.json
          

          there is a new way to disable gpu use without editing that package.json file

          edit the ~/MagicMirror/installers/mm.sh

          and add

          export ELECTRON_DISABLE_GPU
          

          before the npm start line

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B B 2 Replies Last reply Oct 25, 2022, 10:25 PM Reply Quote 0
          • B Offline
            BigTJ @sdetweil
            last edited by Oct 25, 2022, 10:25 PM

            @sdetweil
            I’ll give that a go in the next few days.
            Thanks

            1 Reply Last reply Reply Quote 0
            • B Offline
              BKeyport Module Developer @sdetweil
              last edited by Oct 25, 2022, 11:02 PM

              @sdetweil Course, now begs the question… “What if there’s no npm start line?”

              run-start.sh is used. :)

              The "E" in "Javascript" stands for "Easy"

              S 1 Reply Last reply Oct 26, 2022, 12:00 AM Reply Quote 0
              • S Away
                sdetweil @BKeyport
                last edited by Oct 26, 2022, 12:00 AM

                @BKeyport do it the same. run-start does npm run server

                but at that point, there is no electron…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Nov 28, 2022, 5:19 PM Reply Quote 0
                • B Offline
                  BigTJ @sdetweil
                  last edited by Nov 28, 2022, 5:19 PM

                  @sdetweil
                  Thanks for all your efforts and assistance. After many reloads of the OS and the MM software I still have the same issue. After searching for similar Pi problems outside of MM it appears that this can happen due to hardware failure. I am now going to purchase a new pi and start from the beginning. Will report back on success or failure in due course. Thanks to everyone that has offered help and assistance.

                  BigTJ

                  C 1 Reply Last reply Dec 16, 2022, 7:52 PM Reply Quote 0
                  • C Offline
                    costascontis @BigTJ
                    last edited by Dec 16, 2022, 7:52 PM

                    i have the same “problem” i think…New installation mirror works just fine for hours or even a day or two,then black screen with cursor.No network,so i cant restart it properly.I did disable gpu so no error massage anymore and i did the " npm init -y" thing inside every module folder.No solution yet…

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      BigTJ
                      last edited by Dec 30, 2022, 5:23 PM

                      Finally resolved my black screen issue!
                      After replacing the Pi 3B, the SD card, the OS, using the latest MM software, much internet searching and a great deal of help through this forum it appears the problem is being caused by the jpg photos being added to the wallpaper module. Changing the photos from large tif files into jpg files using Adobe lightroom creates a highly compressed jpg file that the wallpaper module cannot deal with properly.
                      Reducing the resolution of the files during the conversion seems to create a less compressed jpg file that the Wallpaper module can deal with.
                      Hope this helps others with the same issue.

                      S 1 Reply Last reply Dec 30, 2022, 6:59 PM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 3 / 3
                      • 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