As expected, it’s not easy.
After enabling the VNC service and booting, the screen rotates 90 degrees to the left. The same goes for Kodi.
Even though screen rotation is handled in the kernel, some apps don’t seem to be affected by it.
I’m curious to know how others set it up.
<<added at 2023-10-10 (Tue)>>
By restoring the folloing, screen rotation problem is fixed (for VNC service)
$ cat /etc/X11/Xsession.d/100custom_xrandr xrandr --output DSI-1 --rotate right
I guess the other problem of Kodi screen is due to the version of it. (19.x)
I’m trying to source compile the 20.x version of Kodi.