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

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

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

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

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

答え2

fglrxこれはドライバなので、コマンドを使用してファイルをaticonfig生成できます。xorg.confあなたの出力でxrandr必要なコマンドは次のとおりです。

sudo aticonfig --initial=dual-head --screen-layout=left

それでも目的の結果が出ない場合は、aticonfigファイルxorg.confが自動的にバックアップされ(.fglrx-x拡張子を含む)元の構成を簡単に復元できます。

運が悪い場合は、configというaticonfigGUIツールがあります(パッケージ内にある必要があります)。xorg.confamdccclefglrx-control

答え3

起動スクリプトを使用して実行します。

パート1:

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

mkdir ~/Scripts

次のセクションでは、必要なテキストエディタを使用できます。

gedit ~/Scripts/setoutput.sh

これをスクリプト#!/usr/bin/env sh xrandr --autoに追加します。

ファイルを保存/閉じるには、「xrandr -s 1440x900」を使用します。次のコマンドを実行して完了します。

chmod +x ~/Scripts/setoutput.sh
sudo ln -s ~/Scripts/setoutput.sh /etc/X11/Xsession.d/45setoutput
reboot

「reboot」を「shutdown -r now」に置き換える必要があるかもしれません。

システムが起動すると、設定はすでに実行されている必要があり、スクリプトが存在する限り、その設定は維持されます。

2011年11月1日火曜日午前7時2分に投稿された「xenopeek」の投稿に部分的に感謝します。Linuxミント「xrandr --output VGA-0 --primary」を使用してこれを行うためのガイダンスが提供されます。命令が若干変更されても、基本概念/スクリプトは同じです。

答え4

cvt 2560 1080 600
# copy output, minus 'Modeline'
xrandr --newmode "2560x1080_60.00"  230.00  2560 2720 2992 3424  1080 1083 1093 1120 -hsync +vsync
xrandr --addmode HDMI1 "2560x1080_60.00"
xrandr --output HDMI1 --mode 2560x1080_60.00 --rate 50.0
xrandr --output eDP1 --mode 1920x1080 --rate 60.0

xrandrを確認してHDMI番号を確認し、eDP1(私の内部スクリーンノートブック)をsudo gedit /usr/sbin/lightdm-sessionに追加します。

#Guide
#Purge xorg, xserver-* nvidia*
#Install online xorg and xserver-xorg
#Install nvidia-settings and nvidia-prime


#gnome-session-properties
#unity --replace

関連情報