I have a python program that turns the monitor off and on. It works, but not when Magic Mirror is running. I’ve tried every trick I’ve found but nothing works. I’m using “sudo xrandr --output HDMI-2 --off” to turn it off and “sudo xrandr --output HDMI-2 --auto” to turn it on. Tvservice doesn’t work in Bullseye.
Interestingly, if I stop Magic Mirror with “pm2 stop mm” from an ssh session, start my python program, and then restart Magic Mirror (“pm2 start mm”) the PIR program works as expected.
Where is MagicMirror started and is there a way to insert my program start command before MM starts? Starting my program in crontab @reboot doesn’t work.