1

Dell Dimension M6500 で Ubuntu 14.04 LTS trusty を実行しており、2 台のモニターを自動的に配置しようとしています。

グラフィック カード: Quadro FX 2800M NVIDIA ドライバー バージョン: 331.38

ラインを入れました

xrandr --output DP-0 --LVDS-0 の左

さまざまなファイルでコマンド ラインとして機能します: .profile、.xsession、.xinitrc、/etc/X11/Xsession.d/45custom_xrandr-settings

sleep 2 を前に置き、バッチ経由で起動しようとしました

台詞

xrandr -q >> xrandr.log xrandr --output DP-0 --LVDS-0 の左 & xrandr -q >> xrandr.log

.profile ファイルで作業し、再配置が発生したことを示しますが、何かを見る前に戻ってきました!

何か案は ?

4

1 に答える 1

0

これは少し古いことは知っていますが、自分で解決策を探しているときにこの投稿を見つけたので、助けようと思いました.

setup_monitorsin/usr/bin/と呼ばれるスクリプトを作成して実行するsudo chmod +x /usr/bin/setup_monitors

これを追加setup_monitors

#!/bin/sh
# you might want to uncomment the following line or
# something like it as well
# xrandr --output DP-0 --mode 1920x1080 --noprimary --pos 1920x0
xrandr --output DP-0 --left-of LVDS-0

次に/etc/lightdm/lightdm.conf、次を追加します。

display-setup-script=/usr/bin/setup_monitors

デスクトップ環境を再起動 (ログアウト/コンピューターの再起動) すると、機能するはずです。

于 2014-07-17T03:15:50.830 に答える