to add to my latest post:
so if you add an autostart file under ~/.config/lxsession/LXDE-pi/
the default file located under /etc/xdg/lxsession/LXDE-pi/autostart
is overridden for the user. Since I had a user-config the changes applied in the default file had no effect. See this post for reference.
To summarise the following configuration works in my case.
~/.config/lxsession/LXDE-pi/autostart
:
# hide mouse pointer when idle
@unclutter -display :0 -idle 3 -root -noevents
# rotate display by 90 degrees
@xrandr --output HDMI-1 --rotate right
(I opted for this way, since I don’t want to load the desktop ui)
/boot/config.txt
(snippet):
# MagicMirror configuration
disable_splash=1
avoid_warnings=1
dtoverlay=vc4-kms-v3d
gpu_mem=128
Make sure that there’s no dtoverlay=vc4-fkms-v3d
entry or comment it.