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

pm2 Autostart invert issue

Scheduled Pinned Locked Moved Solved Bug Hunt
32 Posts 4 Posters 6.7k Views 4 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.
  • E Offline
    Ethyx
    last edited by Jul 18, 2020, 2:07 AM

    Hello,
    This is my first mm project. I used pm2 to autostart my magicmirror and everything is going fine. but the mirror i made can only be put up when the screen is inverted. so i added that to my mm.sh file. Once it boots up, the screen becomes regualr and i have to vnc to it and do ^Q in order to exit the mm. it opens up a short while after and thats when its inverted.

    S 1 Reply Last reply Jul 18, 2020, 3:17 AM Reply Quote 0
    • S Away
      sdetweil @Ethyx
      last edited by sdetweil Jul 18, 2020, 3:05 PM Jul 18, 2020, 3:17 AM

      @Ethyx are u sure u don’t have two MM’s starting at boot?
      see
      pm2 status

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • E Offline
        Ethyx
        last edited by Jul 18, 2020, 3:53 PM

        Yeah I don’t have 2 mm’s starting up at boot.

        1 Reply Last reply Reply Quote 0
        • E Offline
          Ethyx
          last edited by Jul 18, 2020, 3:57 PM

          here’s my mm.sh file:

          cd./ MagicMirror
          DISPLAY=:0 npm start
          DISPLAY=:0 xrandr --output HDMI-1 --rotate inverted
          
          S 1 Reply Last reply Jul 18, 2020, 4:12 PM Reply Quote 0
          • S Away
            sdetweil @Ethyx
            last edited by sdetweil Jul 18, 2020, 4:14 PM Jul 18, 2020, 4:12 PM

            @Ethyx right u start mm before u change rotation, swap the last two lines

            npm start doesn’t return for the next line until mm shuts down

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • E Offline
              Ethyx
              last edited by Jul 18, 2020, 4:15 PM

              I did that already but the issue still persists.

              cd./ MagicMirror
              DISPLAY=:0 xrandr --output HDMI-1 --rotate inverted
              DISPLAY=:0 npm start
              
              S 1 Reply Last reply Jul 18, 2020, 4:25 PM Reply Quote 0
              • S Away
                sdetweil @Ethyx
                last edited by Jul 18, 2020, 4:25 PM

                @Ethyx what happens when u execute mm.sh manually. not using pm2?

                does xrandr return immediately

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                E 1 Reply Last reply Jul 18, 2020, 4:26 PM Reply Quote 0
                • E Offline
                  Ethyx @sdetweil
                  last edited by Jul 18, 2020, 4:26 PM

                  @sdetweil yes, it does

                  S 1 Reply Last reply Jul 18, 2020, 4:26 PM Reply Quote 0
                  • S Away
                    sdetweil @Ethyx
                    last edited by Jul 18, 2020, 4:26 PM

                    @Ethyx with the screen flipped?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Jul 18, 2020, 4:28 PM Reply Quote 0
                    • S Away
                      sdetweil @sdetweil
                      last edited by Jul 18, 2020, 4:28 PM

                      @Ethyx I think u can put the screen flip in /boot/config.txt

                      not the xrandr command tho

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 4
                      1 / 4
                      • First post
                        1/32
                        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