Grz*_*cki 9 colors xorg multi-monitor
为了在监视器上反转颜色,我调用:
xcalib -invert -alter
Run Code Online (Sandbox Code Playgroud)
问题是,在双显示器设置中,它仅在第一个屏幕上反转颜色。
我不能使用 Compitz 小工具进行颜色反转,因为我的设置是
当两者都是 Piovot 时,双屏无法在我的卡上进行创作。
Xorg 似乎是唯一的解决方案。
xcalib 很棒,因为我可以立即根据应用程序进行切换。
任何建议,解决方案如何使用 xcalib 在两个屏幕上反转颜色?
聚苯乙烯
-screen 参数不起作用:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 130 (XFree86-VidModeExtension)
Minor opcode of failed request: 19 (XF86VidModeGetGammaRampSize)
Value in failed request: 0x17
Serial number of failed request: 10
Current serial number in output stream: 10
Run Code Online (Sandbox Code Playgroud)
这是我的xrandr屏幕配置:
~$ xrandr
Screen 0: minimum 320 x 200, current 2400 x 1920, maximum 3840 x 3840
DFP1 connected 1200x1920+1200+0 left (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 60.0*+
1680x1050 60.0 +
1440x900 59.9 +
1280x800 60.0 +
1920x1080 60.0 50.0 30.0 25.0 24.0
(...)
DFP2 connected 1200x1920+0+0 left (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 60.0*+
1920x1080 60.0 +
1776x1000 60.0 +
1680x1050 60.0 +
1440x900 59.9 +
1280x800 60.0 + 75.0
1152x648 60.0 +
1600x1200 60.0
1400x1050 60.0
1280x1024 75.0 60.0
(...)
CRT1 disconnected (normal left inverted right x axis y axis)
CRT2 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)
如您所见,它们1200x1920在一个虚拟屏幕上旋转 -设置maximum 3840 x 3840。我认为,这就是为什么它就像“一个”屏幕2400x1920,在两个屏幕上分开(因此,xcalib 仅适用于主要屏幕)。但是,这只是我的假设,也许原因不同。
这是一个可以执行您想要的操作的小型实用程序:
https://github.com/zoltanp/xrandr-invert-colors
Run Code Online (Sandbox Code Playgroud)
我发现了这个建议:
http://ubuntuforums.org/showthread.php?t=1482995
使用“桌面效果”(我在 KDE 中有这样的),有一个允许反转所有屏幕或仅选择性窗口的颜色。
由于在我当前的硬件 Compiz 或类似的东西上工作正常,我可以利用这种“桌面效果”。不过我想知道如何在其他窗口管理器(如 Fluxbox)上使用此类...但这是单独问题的主题:)。(PS 在研究了这种效果的来源之后:kwin/.../invert.cpp看起来它只是添加了用于处理在单独的缓冲区中渲染的窗口的钩子,这是在合成窗口管理器中完成的,所以也许只需要KWin ,能够与 KDE 以外的其他东西一起运行 - 有待实验;) )
| 归档时间: |
|
| 查看次数: |
5127 次 |
| 最近记录: |