web-dev-qa-db-ja.com

HDMIモニターのxcalib画面番号は何ですか?

2台のモニターを実行するには、VGA-DVIケーブルとHDMIケーブルを使用する必要があります。両方のモニターの色を反転しようとしていますが、反転できるのは一方だけです。

$ xcalib -invert -alter -s 0 #works


$ xcalib -invert -alter -s 1
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  129 (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

HDMIケーブルを抜いて、もう一度差し込んだ。さて、xcalib -invert -alter -s 0コマンドは他のモニターを反転します。つまり、今のところ両方のモニターが反転していますが、それを実現するには1つのモニターを再接続する必要がありました。

これが私の設定です:

$ xrandr
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
VGA-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 510mm x 287mm
   1920x1080      60.0*+
   1680x1050      60.0  
   1280x1024      60.0  
   1440x900       59.9  
   1280x720       60.0  
   1024x768       60.0  
   800x600        60.3  
   640x480        60.0  
   720x400        70.1  
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
   1920x1080      60.0*+
   1680x1050      59.9  
   1280x1024      60.0  
   1440x900       59.9  
   1280x720       60.0  
   1024x768       60.0  
   800x600        60.3  
   640x480        60.0  
   720x400        70.1  

グラフィックスカード:

$ lspci |egrep -i vga
01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880 [Radeon HD 4200]

これはUbuntuサーバー12.04LTS w/gnome-panelです。この問題はUbuntu14.04でも発生しますが、回避策は機能しません。

6
jcalfee314

Xcalibを使用してモニターを反転することはできません。この制限を克服するには、次のユーティリティを使用する必要があります。

最後のテスト(2014、xcalibバージョン0.8)の時点では、すべてのモニターがX11サーバーによって単一の画面として表示されるため、xcalibはマルチモニターセットアップのすべてのモニターの色を反転できなかったことに注意してください。したがって、この制限はX11サーバーから発生しています。 xrandr-invert-colorsは、接続されているすべてのモニターを正しく処理するXRandR APIを使用するため、この制限はありません。

参照: https://github.com/zoltanp/xrandr-invert-colors

2
python

試行錯誤から、xcalib-screenパラメータは、xrandr出力に従って、モニターのゼロインデックス番号を取得します。つまり、この場合、xcalib -s 0(デフォルト)は制御VGA-0およびxcalib -s 1HDMI-0を制御します。

1
Jamie Kitson