How to rotate display screen

OS: BPI-M3 Ubuntu15.10 (Kernel3.4)

Version: 1.0 HDMI

1.Add Command in your /etc/rc.local:

echo 1 > /sys/class/graphics/fbcon/rotate_all

2.Edit /etc/X11/xorg.conf with this content:

Section "Device"
     Identifier "Raspberry Pi FBDEV"
     Driver "fbturbo"
     Option "fbdev" "/dev/fb0"
     Option "SwapbuffersWait" "true"
     Option "rotate" "cw"
 EndSection

Parameter Description

  "rotate" "cw"   // clockwise 90°
  "rotate" "ud"   // clockwise 180°
  "rotate" "ccw"  //clockwise 270°

clockwise 90°

clockwise 180°

Last updated