[BPI-M3] how to rotate display screen

(BPI_Justin) #1

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"

Parameter Description

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

clockwise 90°

clockwise 180°


I did this on my banana pi pro with Bananian Linux with LXDE desktop. I can rotate the screen. However the video is not rotated. Just wonder if you can rotate your video when the screen is rotated.

(soufyen) #3

What about android ?


You mean Android 5.1 as below can rotate screen with hardware acceleration for video playback?

If so, any video playback software supports Android can have hardware acceleration and screen rotation?

(soufyen) #5

I meant manual rotate the screen output by 90 or 180

(SuporteBRLOTO1) #6

Good Morning.

I have a Dell S2240T touchscreen, and I installed Android, but I can not turn the screen. I would like to know how to solve this. And also the keyboard does not appear.