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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bananapi.gitbook.io/bpi-m3/zh/howtorotatedisplayscreen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
