Hey @OldSunGuy , thanks. ‘0’ and ‘0.0’ seem to be the first monitor however I get an error when I try anything else. So far I have tried using each of the following: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9
Each time I try to start npm (npm start) apart from when I use 0 or 0.0 I get the following (with the value reflecting the number I changed in ‘run-start.sh’):
(electron:2238): Gtk-WARNING **: 06:14:02.236: cannot open display: :0.1
@sdetweil - not sure if this is relevant but it does not seem to matter what value I set in ‘run-start.sh’, when I reboot the pi it will always start MM on the first screen. Should it not fail if it is using ‘run-start.sh’?
Also with an incorrect value being added to ‘run-start.sh’, when I run ‘mm.sh’ this always works and displays MM on the first screen.
okay, I think I understand it now. When I reboot it is using ‘mm.sh’, within mm.sh is the following:
cd ~/MagicMirror
DISPLAY=:0 npm start
Which I assume means that the ‘run-start.sh’ is not used during boot up?
When I change this value to anything other than 0, this will also fail with the same error seen when trying to run npm previously.