「偽」X11セッションで追加のモニタを無効にする

「偽」X11セッションで追加のモニタを無効にする

私のシステムには3つのNVIDIA GPUがあります。 1つは表示用で、2つは計算用です。両方のコンピューティングGPUのファン曲線を調整したいと思います。現在、すべての方法を使用するには、ファン制御が機能するためにXサーバーを実行する必要があります。一部ではXをオンにしてファンの速度を調整してからオフにすることができるというが、私には効果がないので絶対効果がないと言う)。

大丈夫です。 Xをオンにしましたが、次のコマンドを使用してモニターを接続していませんsudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configurationでした。問題は、これが私のワークスペースの一部となった新しい「モニター」または「Xスクリーン」を導入することです。これは本物私のマウスはしばしば範囲外で「偽の画面」に入るので、非常に迷惑です。

私はマウスキャプチャスクリプト(マウスを継続的に監視して有効なワークスペースに戻すプログラム)の使用を検討しました。しかし、私はCPU時間を無駄にしたくありません。

すべての設定を確認しましたが、nvidia-settings無効にする方法が見つかりませんでした。

これは私のものですXorg.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 440.95.01

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    Screen      1  "Screen1" RightOf "Screen0"
    Screen      2  "Screen2" RightOf "Screen1"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option "ignore" "true"
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor2"
    VendorName     "Unknown"
    Option "ignore" "true"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce RTX 2080 Ti"
    BusID          "PCI:9:0:0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1080 Ti"
    BusID          "PCI:66:0:0"
EndSection

Section "Device"
    Identifier     "Device2"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce RTX 2080 Ti"
    BusID          "PCI:67:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "28"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "28"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen2"
    Device         "Device2"
    Monitor        "Monitor2"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "28"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

追加画面を無効にするには?

ベストアンサー1

より良い答えを歓迎します。私は長い間この問題を解決しようとしてきましたが、これが私が持っている最高のトリックです。 NVIDIAの設定ですべての設定をランダムに試してみて、洞察を得ました。 「絶対位置は画面0にのみ設定できます。そうしないと、一部の画面にアクセスできない可能性があります」という警告が表示されます。到着できません!これがまさに私が欲しいものです!

とにかく、私は余分な画面を遠くの絶対位置に「移動」し、すべてがうまく機能し、次の点だけを変更するだけで済みました。

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    Screen      1  "Screen1" Absolute 1000 0
    Screen      2  "Screen2" RightOf "Screen1"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

おすすめ記事