Read the statement by Michael Teeuw here.
pm2 Autostart invert issue
-
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. -
@Ethyx are u sure u don’t have two MM’s starting at boot?
see
pm2 status -
Yeah I don’t have 2 mm’s starting up at boot.
-
here’s my mm.sh file:
cd./ MagicMirror DISPLAY=:0 npm start DISPLAY=:0 xrandr --output HDMI-1 --rotate inverted -
@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
-
I did that already but the issue still persists.
cd./ MagicMirror DISPLAY=:0 xrandr --output HDMI-1 --rotate inverted DISPLAY=:0 npm start -
-
@sdetweil yes, it does
-
@Ethyx with the screen flipped?
-
@Ethyx I think u can put the screen flip in /boot/config.txt
not the xrandr command tho
-
how do you do that tho?
-
-
@sdetweil so true
-
@sdetweil the issue still persists
-
-
@sdetweil ok on it
-
@sdetweil this time even when I give ^q, the screen is not inverted as opposed to last time.
-
@Ethyx so the /boot/config.txt didn’t work. read more
-
@sdetweil yep
-
@Ethyx you added
display_rotate=2to config.txt, right, and saved it
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