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.

    Disable GPU? MESA-LOADER failure on fresh manual install

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 4 Posters 1.8k 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 Do not disturb
      sdetweil @Corvidael
      last edited by

      @Corvidael how did you launch magicmirror? npm start in the MagicMirror folder
      or using pm2?

      in either case, before issuing

      npm start 
      

      manually or in the script you created. or in a terminal session

      do

      export ELECTRON_DISABLE_GPU=1
      npm start
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Corvidael @sdetweil
        last edited by

        @sdetweil
        Thank you. I’ve been using ‘npm run start’ as per the documentation off the manual installation instructions.
        Just tried ‘npm start’ as well, which also seems to work identically (again, new to npm, so not sure of the difference)

        manually exporting the GPU disable at the terminal command line has proven to fix the error for that single run, but after a reboot and not manually entering the export of the GPU disable from command line again, the problem returns.

        Seems my solution is starting to boil down to understanding the exact process of how npm launches when issuing the ‘start’ command, and finding the config script?

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @Corvidael
          last edited by

          @Corvidael yes, you have to do it EVERY time you do npm start/npm run start

          (you don’t need run for the start command, but do for any other)

          so. however your autostart gets done, edit that to add the disable before the npm start

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • butchkemperB Offline
            butchkemper
            last edited by

            In the file MagicMirror/package.json, in the first liine of the “scripts” section, update the “start” line to be “start”: “DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron --disable-gpu js/electron.js”.

            Butch

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

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @butchkemper
              last edited by

              @butchkemper the ENV variable does it so u don’t have to edit package.json

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              BKeyportB 1 Reply Last reply Reply Quote 0
              • BKeyportB Offline
                BKeyport Module Developer @sdetweil
                last edited by

                @sdetweil … so, are you gonna add this to the script? 😉

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

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @BKeyport
                  last edited by

                  @BKeyport no… it’s not fatal, just annoying.
                  maybe someone will figure out how to configure the video drivers in config.txt

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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