nvidia-settings -load-config-only 似乎無法恢復保存的顯示器位置設置
使用 nvidia-settings,我可以將外接顯示器正確放置在筆記型電腦的右側,就像我喜歡的那樣。但是,當我重新啟動、重新啟動 X 並登錄時,我發現我回到了開始時兩台顯示器相互鏡像的位置(而不是顯示器從筆記型電腦延伸到我右側的外接顯示器)。
我已經讀過正確的解決方案是呼叫 文件
nvidia-settings --load-config-only
中的命令.xinitrc
。我嘗試將這個命令放在那裡,並放在我的全域/etc/X11/xinit/xinitrc
文件中,但這兩種方法都不適合我。我懷疑也許是全域
/etc/X11/xinit/xinitrc
文件,以及$HOME/.xinitrc
沒有被讀入。所以,我決定單獨測試這個動作nvidia-settings -load-config-only
。這是我所做的(沒有用,我想知道:為什麼哦,為什麼?):
啟動狀態:右側外接顯示器/未鏡像
rm ~/.nvidia-settings-rc
- 呼叫“
nvidia-settings
”,然後通過“X 伺服器顯示配置”故意將監視器配置從“向右擴展”更改為“鏡像”。$$ I change the position of external monitor to ‘Same As’ laptop monitor, and that gets it to work as if it is mirroring $$ 3. 然後點擊Apply,點擊OK。 4. 為了涵蓋所有基礎,我還選擇了“保存到 X 配置文件”
[ /etc/X11/xorg.conf ]
5. 仍然沒有~/.nvidia-settings-rc
,所以我點擊左側面板底部的 nvidia-settings 配置,然後選擇“保存目前配置” 6. 現在,我看到裡面的東西~/.nvidia-settings-rc
7. 重新啟動nvidia-settings
並更改配置,以便筆記型電腦顯示器擴展到我的外接顯示器的右側。點擊應用並驗證更改是否生效(我現在處於我想要的狀態)。 8. 現在,退出nvidia-settings
GUI 配置會話 9. 跑nvidia-settings --load-config-only
10. 預期的結果是我看到我的監視器被鏡像,因為這是我保存的配置。但這不會發生。似乎配置沒有被載入,或者它可能一開始就被錯誤地保存了。
關於可能發生的事情有什麼建議嗎?
~/.nvidia-settings-rc
也許有人可以告訴我在我的文件中尋找什麼?那裡似乎沒有與監視器放置有關的任何東西。為了完整起見,我正在複製下面該文件的內容。
PS:我正在使用 xfce 視窗管理器。
# # /home/chris/.nvidia-settings-rc # # Configuration file for nvidia-settings - the NVIDIA X Server Settings utility # Generated on Sun Oct 18 17:43:09 2015 # # ConfigProperties: RcFileLocale = C ToolTips = Yes DisplayStatusBar = Yes SliderTextEntries = Yes IncludeDisplayNameInConfigFile = No ShowQuitDialog = Yes UpdateRulesOnProfileNameChange = Yes Timer = PowerMizer_Monitor_(GPU_0),Yes,1000 Timer = Thermal_Monitor_(GPU_0),Yes,1000 Timer = Memory_Used_(GPU_0),Yes,3000 # Attributes: 0/SyncToVBlank=1 0/LogAniso=0 0/FSAA=0 0/TextureSharpen=0 0/GammaCorrectedAALines=0 0/TextureClamping=1 0/FXAA=0 0/AllowFlipping=1 0/FSAAAppControlled=1 0/LogAnisoAppControlled=1 0/OpenGLImageSettings=1 0/FSAAAppEnhanced=0 0/GammaCorrectedAALinesValue=16 [DPY:VGA-0]/RedBrightness=0.000000 [DPY:VGA-0]/GreenBrightness=0.000000 [DPY:VGA-0]/BlueBrightness=0.000000 [DPY:VGA-0]/RedContrast=0.000000 [DPY:VGA-0]/GreenContrast=0.000000 [DPY:VGA-0]/BlueContrast=0.000000 [DPY:VGA-0]/RedGamma=1.000000 [DPY:VGA-0]/GreenGamma=1.000000 [DPY:VGA-0]/BlueGamma=1.000000 [DPY:VGA-0]/Dithering=0 [DPY:VGA-0]/DitheringMode=0 [DPY:VGA-0]/DitheringDepth=0 [DPY:VGA-0]/DigitalVibrance=0 [DPY:VGA-0]/SynchronousPaletteUpdates=0 [DPY:DP-0]/Dithering=0 [DPY:DP-0]/DitheringMode=0 [DPY:DP-0]/DitheringDepth=0 [DPY:DP-0]/ColorSpace=0 [DPY:DP-0]/ColorRange=0 [DPY:DP-0]/SynchronousPaletteUpdates=0 [DPY:DP-1]/Dithering=0 [DPY:DP-1]/DitheringMode=0 [DPY:DP-1]/DitheringDepth=0 [DPY:DP-1]/ColorSpace=0 [DPY:DP-1]/ColorRange=0 [DPY:DP-1]/SynchronousPaletteUpdates=0 [DPY:DP-2]/Dithering=0 [DPY:DP-2]/DitheringMode=0 [DPY:DP-2]/DitheringDepth=0 [DPY:DP-2]/ColorSpace=0 [DPY:DP-2]/ColorRange=0 [DPY:DP-2]/SynchronousPaletteUpdates=0 [DPY:DP-3]/Dithering=0 [DPY:DP-3]/DitheringMode=0 [DPY:DP-3]/DitheringDepth=0 [DPY:DP-3]/ColorSpace=0 [DPY:DP-3]/ColorRange=0 [DPY:DP-3]/SynchronousPaletteUpdates=0 [DPY:DP-4]/RedBrightness=0.000000 [DPY:DP-4]/GreenBrightness=0.000000 [DPY:DP-4]/BlueBrightness=0.000000 [DPY:DP-4]/RedContrast=0.000000 [DPY:DP-4]/GreenContrast=0.000000 [DPY:DP-4]/BlueContrast=0.000000 [DPY:DP-4]/RedGamma=1.000000 [DPY:DP-4]/GreenGamma=1.000000 [DPY:DP-4]/BlueGamma=1.000000 [DPY:DP-4]/Dithering=0 [DPY:DP-4]/DitheringMode=0 [DPY:DP-4]/DitheringDepth=0 [DPY:DP-4]/DigitalVibrance=0 [DPY:DP-4]/ColorSpace=0 [DPY:DP-4]/ColorRange=0 [DPY:DP-4]/SynchronousPaletteUpdates=0 [DPY:DP-5]/Dithering=0 [DPY:DP-5]/DitheringMode=0 [DPY:DP-5]/DitheringDepth=0 [DPY:DP-5]/ColorSpace=0 [DPY:DP-5]/ColorRange=0 [DPY:DP-5]/SynchronousPaletteUpdates=0 [DPY:DP-6]/Dithering=0 [DPY:DP-6]/DitheringMode=0 [DPY:DP-6]/DitheringDepth=0 [DPY:DP-6]/ColorSpace=0 [DPY:DP-6]/ColorRange=0 [DPY:DP-6]/SynchronousPaletteUpdates=0
系統正在執行 RHEL7;桌面環境是 XFCE
xrandr
首先執行
xrandr
並查找“…已連接”行以找出顯示器的名稱。然後執行xrandr --output VGA1 --auto --same-as LVDS1
使顯示器 VGA1 成為鏡像或 LVDS1。“–same-as”是設置鏡像的參數。如果要翻轉或縮放,請參見 的其他參數
xrandr
。英偉達-xorg
要使配置在
/etc/X11/xorg.conf
文件中永久持久,請添加Option "MetaModeOrientation" "SamePositionAs"
到相關的監視器/螢幕/顯示部分/子部分。查看
/usr/share/doc/nvidia-x11-drv-...
nvidia xorg 驅動程序的文件文件。選項“MetaModeOrientation”“字元串”
Controls the default relationship between display devices when using multiple display devices on a single X screen. Takes one of the following values: "RightOf" "LeftOf" "Above" "Below" "SamePositionAs". For backwards compatibility, "TwinViewOrientation" is a synonym for "MetaModeOrientation", and "Clone" is a synonym for "SamePositionAs". See Chapter 12 for details. Default: string is NULL.