Skip to content

Instantly share code, notes, and snippets.

@baijian
Created January 4, 2014 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baijian/8253232 to your computer and use it in GitHub Desktop.
Save baijian/8253232 to your computer and use it in GitHub Desktop.
raspdebian-> /boot/config.txt
display_rotate=0 Normal
display_rotate=1 90 degrees
display_rotate=2 180 degrees
display_rotate=3 270 degrees
display_rotate=0x10000 horizontal flip
display_rotate=0x20000 vertical flip
在Terminal中输入命令
sudo gedit /etc/X11/xorg.conf
在屏幕(screen)一段,增加一句设置:
Option ”RandRRotation”
然后重启一下X(可以按 Ctrl+Alt+退格键),就可以用 xrandr 旋转屏幕了:
xrandr -o left 向左旋转90度
xrandr -o right 向右旋转90度
xrandr -o inverted 上下翻转
xrandr -o normal 回到正常角度
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment