Debianで2つのモニタを動作させる

Debianで2つのモニタを動作させる

デュアルスクリーンを設定したいです。

何度も検索しましたが、設定が機能するために何をすべきかを正確に把握できる初心者向けのアイテムはありません。

私はいくつかのコマンドを選択しましたが、これが私が持っているコマンドです。

xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
DVI-I-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 476mm x 268mm
   1920x1080      60.0*+
   1680x1050      60.0  
   1280x1024      60.0  
   1440x900       59.9  
   1280x960       60.0  
   1152x864       75.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  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)

2台目のモニターが正しく接続されているので、次のいずれかの接続を表示する必要があると思いますか?

  DP-1 disconnected (normal left inverted right x axis y axis)
  DP-2 disconnected (normal left inverted right x axis y axis)

以下のようにNVIDIAグラフィックカードがあるようです。

lspci -nn | grep VGA
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107 [Quadro K2000] [10de:0ffe] (rev a1)

いくつかのシステム情報:

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.4 (wheezy)
Release:    7.4
Codename:   wheezy

次の作業を行うにはどうすればよいですか?

ベストアンサー1

Xサーバー/セッションを開始する方法によっては、モニターを有効/無効にすることができます。私は単純さが好きなので、自分で処理するのが最善ですxrandr。これが.xinitrc基本的に私がやっていることですが、何が起こっているのかを制御することを選択すると、Xサーバーを直接実行します。

だからただフォローしてくださいxrandr。デフォルトでは、モニターを必要に応じて設定できるコマンドラインインターフェースがあります(参考資料を参照man xrandr)。インストールをすばやく調整するために、arandrシンプル/最小化とデスクトップにこだわらないxrandrフロントエンドですが、すべてのxrandr機能をサポートしているわけではありません。これは通常、一時的にのみ迅速な構成変更に使用します。次に、autorandr接続されたモニターに基づいて自動的に認識される(EDID情報を考慮)、プロファイル名で正確な設定を記憶します。 2つの設定ファイルdockmobilexrandr

私はモニターを交換し、「リフレッシュ」をしたいときはいつでもこれを行います。唯一の方法は、特定のX画面の基本をリセットすることです。

$ cat ~/bin/xscreen 
#!/bin/bash

if [ "$(xserver-name)" = 'X' ]; then
    autorandr -c --force
fi

xset b off s off dpms 0 0 300
xsetroot -solid black
xsetroot -cursor_name left_ptr

編集する:

xrandrアクティブでない出力が切断されたという誤った印象を受けました。私はしばらくこれで遊んだ。

独自のNvidiaドライバを使用するのはドライバですxrandrdisperたとえば、autorandrこれはxrandrandでも動作するようですdisper(readmeから取得)。

While the script uses xrandr by default, calling it by the name "autodisper"
or "auto-disper" forces it to use the "disper" utility, which is useful for
controlling nvidia chipsets. The formats for fingerprinting the current setup
and saving/loading the current configuration are adjusted accordingly.

次のことも役に立ちます。https://wiki.archlinux.org/index.php/NVIDIA#Multiple_monitors

おすすめ記事