There are two problems:
Timieng issue since leila takes abit longer to close then krypton, easy to fix edit /home/osmc/x11-start/x_init.sh change the sleep 2 to sleep 12
Second problem, user osmc seems not to be allowed to make changes to fbdev in openvt in stretch, so you can run xwindows if you replace sudo su osmc -c “startx” with sudo su -c “startx” in the same file. This however lets you run Xwindows as root, and it is a security issue.
The strange part is that if you run the commands manually in shell, shutdown mediacenter and startx as osmc it works, but not in the script. Will figure this out when i get alittle more time on my hands. Suspect opentvt is to blame here.