The pi is configured to start into text mode so that no xorg libraries are loaded during normal operation. Yet I would like to be able to occasionally run a xorg desktop session when connected to an HDMI display.
I already have enabled HDMI display with:
The HDMI screen is working in text mode. I have no keyboard connected to the pi and therefore would like to control it via ssh which is already working.
I tried starting the xorg session via ssh with
startx -- -layout HDMI but this did not work for obvious reasons, since xorg is not gonna run through a ssh connection.
So the question is how to start xorg on the physical HDMI display via an ssh connection?
startx -- vt7
results in the following error:
(EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied)
export DISPLAY=:0.0 did not make any difference.
I am currently using the workaround of changing the boot type using
sudo raspi-config > Boot Options > Desktop GUI but would like to be able to start xorg on-demand via an ssh session.