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, no desktop after pm2 stop MagicMirror

    Scheduled Pinned Locked Moved Solved Troubleshooting
    8 Posts 3 Posters 2.9k 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.
    • P Offline
      popeofmope
      last edited by

      I have MagicMirror up and running on a RPi3b+ and a 4" HDMI touch screen. It autoloads MM on boot via PM2. I can ssh and run pm2 stop MagicMirror and MM exits but I don’t see the rasbian desktop, just a black screen. I can get the file menu via alt but there’s nothing helpful there. Minimizing works but it’s just a black screen and no desktop. ctrl + q will quit but PM2 restarts MM a few seconds later. How can I get back to the raspbian desktop? I want to configure some OS stuff like other WiFi networks etc.

      bheplerB 1 Reply Last reply Reply Quote 0
      • M Offline
        mlcampbe
        last edited by

        It sounds like the pi does not have the desktop running. Did you happen to configure the ~/.config/lxsession/LXDE-pi/autostart and put lines in it? If so then there is a good chance that perhaps this file is taking precedence over the /etc/xdg/lxsession/LXDE-pi/autostart file. If that is the case then the entries to start the desktop may not get executed. Try removing/renaming the ~/.config/lxsession/LXDE-pi/autostart and reboot and see what happens. If you get the desktop GUI that way then you may want to add these lines to the ~/.config/lxsession/LXDE-pi/autostart file:

        @lxpanel --profile LXDE-pi
        @pcmanfm --desktop --profile LXDE-pi
        @point-rpi

        P 1 Reply Last reply Reply Quote 2
        • bheplerB Offline
          bhepler Module Developer @popeofmope
          last edited by

          @popeofmope - You can try Ctrl + Alt + t to open a terminal window. You can switch to it using Alt+Tab with or without closing the Magic Mirror interface.

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            popeofmope @bhepler
            last edited by

            @bhepler Ctrl + Alt + t opens the file menu, just like if I only pressed alt. I see the switcher with alt + tab but only MM listed

            bheplerB 1 Reply Last reply Reply Quote 0
            • bheplerB Offline
              bhepler Module Developer @popeofmope
              last edited by

              @popeofmope - That sounds like your keyboard is set to some near-English version. If you get the chance, run sudo raspi-config and carefully select the keyboard layout that corresponds to your location. The defaults for the RasPi are weird. It starts with British English and the default US keyboard is Cherokee for some weird reason.

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                popeofmope @bhepler
                last edited by

                @bhepler I’m able to get the terminal up with ctrl + alt + t, I think it may have had to do with the mini wireless USB keyboard/mouse combo I was using. Worked after using a more traditional wireless keyboard. So I have the terminal up but pm2 stop MagicMirror behaves the same as when I issue the command via SSH, just a blank screen and no desktop

                1 Reply Last reply Reply Quote 0
                • P Offline
                  popeofmope
                  last edited by

                  @bhepler if I quit or minimize MM, should I expect to see the rasbian desktop?

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    mlcampbe
                    last edited by

                    It sounds like the pi does not have the desktop running. Did you happen to configure the ~/.config/lxsession/LXDE-pi/autostart and put lines in it? If so then there is a good chance that perhaps this file is taking precedence over the /etc/xdg/lxsession/LXDE-pi/autostart file. If that is the case then the entries to start the desktop may not get executed. Try removing/renaming the ~/.config/lxsession/LXDE-pi/autostart and reboot and see what happens. If you get the desktop GUI that way then you may want to add these lines to the ~/.config/lxsession/LXDE-pi/autostart file:

                    @lxpanel --profile LXDE-pi
                    @pcmanfm --desktop --profile LXDE-pi
                    @point-rpi

                    P 1 Reply Last reply Reply Quote 2
                    • P Offline
                      popeofmope @mlcampbe
                      last edited by

                      @mlcampbe That did it! Thanks! I did edit the ~/.config/lxsession/LXDE-pi/autostart according to the Configuring the Raspberry Pi instructions. It didn’t mention the desktop disappearing though.

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