天嵌 ARM开发社区

 找回密码
 注册
查看: 1879|回复: 0

天嵌的ubuntu怎么实现屏幕旋转?

[复制链接]
miaotouyang 发表于 2015-1-29 11:25:10 | 显示全部楼层 |阅读模式
网上搜了下,还会报错,没发实现



用 xrandr -o left 就可以了。不过我运行之后,遇到了这个错误:
Java代码  [url=][/url]

  • $ xrandr -o left  
  • X Error of failed request: BadMatch (invalid parameter attributes)  
  • Major opcode of failed request: 153 (RANDR)  
  • Minor opcode of failed request: 2 (RRSetScreenConfig)  
  • Serial number of failed request: 12  
  • Current serial number in output stream: 12  

需要修改一下xorg.conf:
Java代码  [url=][/url]

  • 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 回到正常角度



您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-29 01:36 , Processed in 1.031250 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表