类似于 xcalib 的程序来反转桌面颜色

tom*_*ozb 12 colors multi-monitor linux-mint monitors intel-graphics

我正在使用xcalib在家中的计算机上反转颜色。我有两台显示器在工作,不幸的xcalib -i -a是,它们只反转了其中一个(我不想反转的那个)。我还没有找到解决此问题的任何解决方案,因此我正在寻找xcalib.

目标是能够仅反转选定显示器的颜色或同时反转两者。顺便说一下,我正在使用 Mint 13 Mate。

更新:计算机是带有集成英特尔卡的戴尔 Optiplex 990。

lspci -k | grep VGA

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
Run Code Online (Sandbox Code Playgroud)

数据来自xrandr

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
VGA1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080      60.0*+
   1680x1050      60.0  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       59.9  
   1280x800       59.8  
   1152x864       75.0  
   1280x720       60.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080      60.0*+   50.0  
   1680x1050      60.0  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       59.9  
   1280x800       59.8  
   1152x864       75.0  
   1280x720       50.0     60.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   720x576        50.0  
   720x480        59.9  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
DP1 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)

Cam*_*ell 5

我知道这是一个老问题,但我正在为后代回答。 xrandr-invert-colors是一个小应用程序,它完全符合我们的需要。

我将 xcalib 和 xrandr-invert-colors 都绑定到不同的快捷方式,因此如果我只想反转我的辅助显示器,我可以同时执行两者(xcalib 会将主显示器重新反转为正常颜色)。

https://github.com/zoltanp/xrandr-invert-colors获取它


slm*_*slm 2

注意: OP、我自己和 @Marco 已经确认没有办法用xcalib. 我将其留在这里,以免其他人继续走这条路!

我认为这个xcalib命令会做你想要的:

$ xcalib -s 1 -i -a
Run Code Online (Sandbox Code Playgroud)

我相信它从 0 开始对屏幕进行编号。因此 1 将是下一个屏幕。

xcalib 使用输出摘录

$ xcalib -help
xcalib 0.8
Copyright (C) 2004-2007 Stefan Doehla <stefan AT doehla DOT de>
THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY!

usage:  xcalib [-options] ICCPROFILE
     or xcalib [-options] -alter

where the available options are:
    -display <host:dpy>     or -d
    -screen <screen-#>      or -s
    -clear                  or -c
    -noaction <LUT-size>    or -n
    -verbose                or -v
    -printramps             or -p
    -loss                   or -l
    -invert                 or -i
    -gammacor <gamma>       or -gc
    -brightness <percent>   or -b
    -contrast <percent>     or -co
    -red <gamma> <brightness-percent> <contrast-percent>
    -green <gamma> <brightness-percent> <contrast-percent>
    -blue <gamma> <brightness-percent> <contrast-percent>
    -alter                  or -a
    -help                   or -h
    -version

last parameter must be an ICC profile containing a vcgt-tag

Example: ./xcalib -d :0 -s 0 -v bluish.icc
Example: ./xcalib -red 1.1 10.0 100.0
Run Code Online (Sandbox Code Playgroud)