MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. byte_me
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    byte_me

    @byte_me

    0
    Reputation
    55
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    byte_me Unfollow Follow

    Latest posts made by byte_me

    • RE: Trouble accessing Raspbian desktop after fresh install

      @sdetweil said in Trouble accessing Raspbian desktop after fresh install:

      @byte_me how did u install?

      Do this
      pm2 delete mm

      Then run the pm2setup script from here
      https://github.com/sdetweil/MagicMirror_scripts

      Thanks! This suggestion worked and I can now exit to Raspbian!

      posted in Troubleshooting
      B
      byte_me
    • RE: How to autorun script on MagicMirror boot

      @sdetweil said in How to autorun script on MagicMirror boot:

      @byte_me use pm2

      pm2 start xxx.py
      pm2 save

      @BKeyport said in How to autorun script on MagicMirror boot:

      I use PM2 and scripts to call the various external modules…

      EG: buttons.sh, mm.sh and omx.sh

      buttons.sh is a short script to launch python3 for buttons.py, my external button runner.
      mm.sh is the startup per the old instructions found in the old docks.
      omx.sh launches OMXplayer with a bunch of options.

      I wouldn’t use two of 'em, if I could get pm2 to launch with command line options.

      Thank you both, this seems to have solved the issue!

      posted in Troubleshooting
      B
      byte_me
    • RE: Trouble accessing Raspbian desktop after fresh install

      @sdetweil said in Trouble accessing Raspbian desktop after fresh install:

      @byte_me how did u install?

      Do this
      pm2 delete mm

      Then run the pm2setup script from here
      https://github.com/sdetweil/MagicMirror_scripts

      I installed MagicMirror manually using this guide:
      https://docs.magicmirror.builders/getting-started/installation.html#manual-installation

      I used this guide for the setup:
      https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi

      And this to install pm2 and autostart:
      https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

      I will try deleting mm this afternoon and reinstalling pm2, thanks for the suggestion

      posted in Troubleshooting
      B
      byte_me
    • How to autorun script on MagicMirror boot

      Hi all,

      I am having trouble getting my script for the PIR sensor to start on boot.

      I followed this guide which used to work until I did a fresh install with the latest version of MagicMirror.

      The guide suggests adding the following line to the autostart file in:

      ~/.config/lxsession/LXDE-pi
      
      @sudo /usr/bin/python /home/pi/MagicMirror/pir.py
      

      … however, I do not have the lxsession directory in ~/.config.
      I do have an autostart file in /etc/xdg/, but in the comments for the link I posted above it mentions that this is a global autostart file and the user one is preferred. The OP suggests manually creating the directory and autostart file using the path above, but that doesn’t seem to work either.

      A few things:

      • my test script shows both 0 and 1 values for the sensor, confirming that it is sensing motion properly.

      • Running my monitor_off.sh / monitor_on.sh scripts manually work as expected

      • Starting my pir.py script manually works as expected

      So, this leads me to believe that the problem is with the directory the autostart file is in.

      Any help on this is appreciated. Thanks!

      posted in Troubleshooting
      B
      byte_me
    • Trouble accessing Raspbian desktop after fresh install

      Hi all,

      I recently did a fresh install / setup for my mirror (with the latest version of MagicMirror) and almost everything is working perfectly. Before the install, I used to be able to access the top menu bar by pressing ALT, and then minimizing or closing the window to take me back to the Raspbian desktop. Now, when I minimize or close the window it takes me to a black screen with no UI and the only thing I can do is right click to get a few menu options like open terminal, setup, and exit openbox. If I exit, the screen remains black but no longer displays any options on right click. I have tried every key on the keyboard and absolutely nothing happens. The same occurs if I run:

      pm2 stop mm
      

      I’m not sure what is going on here, but I have no way to access my Raspbian desktop unless I disable the MagicMirror autostart - which will allow me to access the Desktop on boot.

      I haven’t been able to find any relevant documentation, other than an old thread which describes the way I used to access the desktop before installing the newest version.
      https://forum.magicmirror.builders/topic/1801/get-back-to-desktop

      I appreciate any help and suggestions!

      Thanks

      posted in Troubleshooting
      B
      byte_me