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 12.0k 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.
    • EthyxE Offline
      Ethyx
      last edited by

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

      1 Reply Last reply Reply Quote 0
      • EthyxE Offline
        Ethyx
        last edited by

        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 Reply Quote 0
        • S Do not disturb
          sdetweil @Ethyx
          last edited by sdetweil

          @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
          • EthyxE Offline
            Ethyx
            last edited by

            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 Reply Quote 0
            • S Do not disturb
              sdetweil @Ethyx
              last edited by

              @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

              EthyxE 1 Reply Last reply Reply Quote 0
              • EthyxE Offline
                Ethyx @sdetweil
                last edited by

                @sdetweil yes, it does

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

                  @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 Reply Quote 0
                  • S Do not disturb
                    sdetweil @sdetweil
                    last edited by

                    @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
                    • EthyxE Offline
                      Ethyx
                      last edited by

                      how do you do that tho?

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

                        @Ethyx Google is your friend

                        https://www.raspberrypi-spy.co.uk/2017/11/how-to-rotate-the-raspberry-pi-display-output/

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        EthyxE 2 Replies Last reply Reply Quote 0
                        • EthyxE Offline
                          Ethyx @sdetweil
                          last edited by

                          @sdetweil so true

                          1 Reply Last reply Reply Quote 0
                          • EthyxE Offline
                            Ethyx @sdetweil
                            last edited by

                            @sdetweil the issue still persists

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

                              @Ethyx u set the rotation in /boot/config.txt and rebooted and rotation was changed, yes?
                              the remove xrandr from mm.sh

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              EthyxE 2 Replies Last reply Reply Quote 0
                              • EthyxE Offline
                                Ethyx @sdetweil
                                last edited by

                                @sdetweil ok on it

                                1 Reply Last reply Reply Quote 0
                                • EthyxE Offline
                                  Ethyx @sdetweil
                                  last edited by

                                  @sdetweil this time even when I give ^q, the screen is not inverted as opposed to last time.

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

                                    @Ethyx so the /boot/config.txt didn’t work. read more

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    EthyxE 1 Reply Last reply Reply Quote 0
                                    • EthyxE Offline
                                      Ethyx @sdetweil
                                      last edited by

                                      @sdetweil yep

                                      S EthyxE 2 Replies Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @Ethyx
                                        last edited by

                                        @Ethyx you added
                                        display_rotate=2

                                        to config.txt, right, and saved it

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • EthyxE Offline
                                          Ethyx @Ethyx
                                          last edited by

                                          @sdetweil yeah and the issue still somehow persists

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

                                            @Ethyx you had to use
                                            sudo nano /boot/config.txt
                                            to edit that file, right?

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • 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