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