> For the complete documentation index, see [llms.txt](https://bananapi.gitbook.io/bpi-m3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bananapi.gitbook.io/bpi-m3/zh/howtorotatedisplayscreen.md).

# 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°

![](/files/-M2HXIcdGc3dBD_cXxHZ)

clockwise 180°

![](/files/-M2HXIcfXHEGfzws98au)
