I have edited the autostart in "/etc/xdg/lxsession/LXDE-pi/" to this:
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
point-rpi
@lxterminal -e /home/pi/myScript.sh
All the script does is run an executable:
#!/bin/bash
/home/pi/myProgram
When the Pi is hooked up to a monitor, autostart works fine. Terminal pops up and the script is run with no issues. However, when I unplug the monitor and start the Pi, autostart doesn't run my script. I can still ssh into the pi and run it, but that's not a good solution for my situation.
Is there something in autostart that requires a monitor hookup?
hdmi_force_hotplug=1
will make the pi boot up as if a monitor is present – Jaromanda X Jul 15 '20 at 04:00