How to rotate TFT display during bootup


We have custom kernel for Beaglebone black with 7’inch LCD, it is configured as landscape mode. But for our application we want it in portrait mode.

We have tried these commands to rotate screen temporarily:
echo 1 > /sys/class/graphics/fb0/rotate
echo 1 > /sys/class/graphics/fb0/rotate_all
echo 1 > /sys/class/graphics/fbcon/rotate_all

We even tried to rotate the screen by using our Qt application, but result is same.
Please let us know, How we can rotate the screen by 90 degree during bootup?


There’s a rotate option in modedb.rst: modedb.rst « fb « Documentation - kernel/git/torvalds/linux.git - Linux kernel source tree

This has to be appled as a bootarg, so edit your /boot/uEnv.txt (cmdline=) variable…


Hi @RobertCNelson,

We tried adding the variable to uEnv.txt as per
this link but didn’t work.

Can you please let us know what we are missing. Kernel is customized as per our requirement.