[求助]请教能够让屏幕水平翻转显示的办法

各种窗口管理器和美化相关
回复
头像
chinaz
帖子: 238
注册时间: 2007-02-07 9:23

[求助]请教能够让屏幕水平翻转显示的办法

#1

帖子 chinaz » 2014-11-23 18:47

最近在校园电视台提示字幕用的电脑上安装了debian,intel集成显卡,系统自带开源显示驱动。投射字幕时,需要将屏幕水平翻转,才能看到正确的图像。

翻遍了网上能找到的资料,绝大部分都讲的是如何旋转屏幕,用到的软件是xrandr:
xrandr -o 0 #默认
xrandr -o 1 #左旋90度
xrandr -o 2 #旋转180度
xrandr -o 3 #右旋90度
网上就找到这些。

经过我的反复尝试,发现还有个隐藏的:
xrandr -o 4 #水平翻转-------正是我想要的。
其中0,1,2,3四行指令不挑电脑,总能运行。就是 xrandr -o 4只在我安装了nvidia官方驱动的家用电脑上有效。在开源驱动的电脑上都无效,不管啥显卡。
网上有人提到在xorg.conf中加入一句什么代码,也照办了。结果一生成xorg.conf就黑屏进不去系统。删了才正常。

现在的情况是,不想折腾安装intel官方的显示驱动,也确实搞不定xrandr -o 4了,请问各位高手,有没有其他可行的办法?只要能让屏幕左右水平翻转显示(而不是旋转屏幕)就行。

刚硬着头皮看了一下关于xflip的英文介绍,好像有水平翻转屏幕的功能,就是不知道怎么用。
宠辱不惊,闲看庭前花开花落;去留无意,漫随天外云卷云舒。
头像
astolia
论坛版主
帖子: 6703
注册时间: 2008-09-18 13:11

Re: [求助]请教能够让屏幕水平翻转显示的办法

#2

帖子 astolia » 2014-11-23 19:10

要会查manpage
-o, --orientation rotation
This specifies the orientation of the screen, and can be one of normal, inverted, left or right.

-x Reflect across the X axis.

-y Reflect across the Y axis.
头像
chinaz
帖子: 238
注册时间: 2007-02-07 9:23

Re: [求助]请教能够让屏幕水平翻转显示的办法

#3

帖子 chinaz » 2014-11-23 19:43

谢谢楼上的回复。我刚试了一下,xrandr -x和xrandr -o 4是一样的效果。在家里的电脑上没有问题,但是在单位的电脑上,用的是intel开源显示驱动,运行xrandr -o 4就提示错误,估计xrandr -x也会提示错误吧,明天去单位试试。
宠辱不惊,闲看庭前花开花落;去留无意,漫随天外云卷云舒。
头像
astolia
论坛版主
帖子: 6703
注册时间: 2008-09-18 13:11

Re: [求助]请教能够让屏幕水平翻转显示的办法

#4

帖子 astolia » 2014-11-23 20:39

如果我只是告诉你用-x的话,就不会摘抄那么一段了。自己仔细看看-o选项的说明
另外不管是-o或-x都是RandR 1.1的东西,如果你的显卡驱动不支持,还可以试试1.2里的新方法,manpage里有写,自己去看
头像
chinaz
帖子: 238
注册时间: 2007-02-07 9:23

Re: [求助]请教能够让屏幕水平翻转显示的办法

#5

帖子 chinaz » 2014-11-23 20:46

:em06 好吧,虽然在下只学过三年初中英语,为了向黑客们致敬,就是查词典也要搞明白man里面的内容,再次感谢楼上的关注~
宠辱不惊,闲看庭前花开花落;去留无意,漫随天外云卷云舒。
头像
chinaz
帖子: 238
注册时间: 2007-02-07 9:23

Re: [求助]请教能够让屏幕水平翻转显示的办法

#6

帖子 chinaz » 2014-11-23 21:26

功夫不负有心人,照着鸟语,又琢磨出一条能用的命令(水平翻转屏幕):
xrandr --output DVI-I-0 --reflect x
恢复:
xrandr --output DVI-I-0 --reflect normal

居然用xrandr -o 0翻转不回去。。。

明天去单位电脑上再试一试。
宠辱不惊,闲看庭前花开花落;去留无意,漫随天外云卷云舒。
头像
chinaz
帖子: 238
注册时间: 2007-02-07 9:23

Re: [求助]请教能够让屏幕水平翻转显示的办法

#8

帖子 chinaz » 2014-11-24 16:05

刚在单位电脑上测试,intel核显,系统集成开源驱动。用xrandr -o 4水平翻转屏幕失败:
user@debian:~$ xrandr -o 4
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Value in failed request: 0x10
Serial number of failed request: 14
Current serial number in output stream: 14

但是使用
xrandr --output LVDS1 --reflect x
可以水平翻转屏幕!
而且,使用下面的2条命令都可以翻转回正常状态:
xrandr -o 0
xrandr --output LVDS1 --reflect normal

问题解决,多谢高手指点~
宠辱不惊,闲看庭前花开花落;去留无意,漫随天外云卷云舒。
头像
chinaz
帖子: 238
注册时间: 2007-02-07 9:23

Re: [求助]请教能够让屏幕水平翻转显示的办法

#9

帖子 chinaz » 2014-11-24 16:06

刚在单位电脑上测试,intel核显,系统集成开源驱动。用xrandr -o 4水平翻转屏幕失败:
user@debian:~$ xrandr -o 4
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Value in failed request: 0x10
Serial number of failed request: 14
Current serial number in output stream: 14

但是使用
xrandr --output LVDS1 --reflect x
可以水平翻转屏幕!
而且,使用下面的2条命令都可以翻转回正常状态:
xrandr -o 0
xrandr --output LVDS1 --reflect normal

问题解决,多谢高手指点~
宠辱不惊,闲看庭前花开花落;去留无意,漫随天外云卷云舒。
头像
astolia
论坛版主
帖子: 6703
注册时间: 2008-09-18 13:11

Re: [求助]请教能够让屏幕水平翻转显示的办法

#10

帖子 astolia » 2014-11-24 19:42

还在那里想当然的-o 4,我列出来的-o的正确用法都不看的吗?
回复