スクリプト用のディレクトリを作成してください...これはどこにあるかもしれません。その場所から離れた場合は、場所を覚えておくと交換できます。

スクリプト用のディレクトリを作成してください...これはどこにあるかもしれません。その場所から離れた場合は、場所を覚えておくと交換できます。

画面間でウィンドウを移動するには、次のコマンドを実行します。

xrandr --auto

この魔法のコマンドで私の画面が固定されました(このコマンドを実行する前は、2番目のモニターがマウスを動かすための空きスペースでした)。再起動時にこのコマンドが続行するようにするにはどうすればよいですか?このコマンドを再実行するよりも構成を変更する方が興味がありますが、これを行う方法がわかりません。

モニター2台(DFP 5とDFP 6)があります。実行xrandr結果は次のとおりです。

DFP1 disconnected (normal left inverted right x axis y axis)
DFP2 disconnected (normal left inverted right x axis y axis)
DFP3 disconnected (normal left inverted right x axis y axis)
DFP4 disconnected (normal left inverted right x axis y axis)
DFP5 connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050      60.0*+
   1400x1050      60.0  
   1280x1024      75.0     60.0  
   1440x900       60.0  
   1280x960       75.0     60.0  
   1280x800       75.0     60.0  
   1152x864       60.0     75.0  
   1280x768       75.0     60.0  
   1280x720       75.0     60.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  
DFP6 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050      60.0*+
   1400x1050      60.0  
   1280x1024      75.0     60.0  
   1440x900       60.0  
   1280x960       75.0     60.0  
   1280x800       75.0     60.0  
   1152x864       60.0     75.0  
   1280x768       75.0     60.0  
   1280x720       75.0     60.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  
CRT1 disconnected (normal left inverted right x axis y axis)

debianのメニューを使用して、DFP 5の右側にDFP 6を設定しましたDisplays。これは私のxorg.confファイルです。

Section "ServerLayout"
        Identifier     "aticonfig Layout"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-0"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID       "PCI:4:0:0"
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                virtual 3360 1050
        EndSubSection
EndSection

すべてを1画面に表示するように設定したようで、xrandr --auto何とか解決しました。結果をxorg.confに保存するためにこのコマンドが実行する操作を確認する方法はありますか?結果を維持するために通常xrandrをどのように使用しますか?

これを検索すると、xorg.confファイルを変更するように求められます。 (私は知らないので、どうしたらいいかわかりません。 xrandr --auto実際に行われています)、またはxrandr起動時に実行する方法についての指示は必要ないようですが、間違っている可能性があります。

ベストアンサー1

次のファイルを作成しました。

/etc/X11/Xsession.d/45custom_xrandr-settingsそしてその中に次の行を入れてください:

xrandr --output DFP6 --primary

これにより、正しいモニターがデフォルトのモニターになり、ログイン時に起動します。

おすすめ記事