klricks wrote: ↑Sat Oct 05, 2019 7:50 pmUse sudo raspi-config to set a forced screen resolution. (Choose anything other than monitor default).
The reason is that by default (RPi4), if no screen is connected at boot then a display device is not created. Without a display device the GUI desktop does not start so any program that requires GUI will not start. Other RPi models did not have that issue because they would fall back to composite mode if no HDMI was connected. The RPi4 has composite mode disabled by default so no display device is created.
Setting a resolution mode with raspi-config or the GUI config tool or manual edits to config.txt as mentioned above, will force a display device on boot even without the HDMI connected as long as you don't choose the monitor default setting.
Thank you for your help. I searched for hours but couldn't find the relevant info, mainly because most information was for previous versions of the Pi.
VNC seems to work; I also have this set to force a video setting (/boot/config.txt)
Code: Select all
# uncomment to force a specific HDMI mode (this will force 1080p) hdmi_group=2 hdmi_mode=82
VNC indeed doesn't work, that's how my problem started. I usually install raspbian on my Pi and then make it headless right afterwards, because I do everything through VNC. But it just wasn't working on my new Pi 4, because of this problem. VNC would connect, but then give a blank screen with an error message (I forget what the wording of the message is).