兰德尔

兰德尔

使用 nvidia-settings,我可以将外接显示器正确放置在笔记本电脑的右侧,就像我喜欢的那样。然而,当我重新启动、重新启动 X 并登录时,我发现我回到了开始的位置,两个显示器相互镜像(而不是显示器从笔记本电脑延伸到我右侧的外部显示器)。

我读到正确的解决方案是调用 nvidia-settings --load-config-only文件中的命令.xinitrc。我尝试将此命令放在那里并放在我的全局/etc/X11/xinit/xinitrc文件中,但这两种方法都不适合我。

我怀疑全局 /etc/X11/xinit/xinitrc文件可能没有被读入。因此,我决定单独$HOME/.xinitrc测试 的操作。nvidia-settings -load-config-only

这就是我所做的(这没有用,我想知道:为什么哦为什么?):

启动状态:外部显示器位于右侧/未镜像

  1. rm ~/.nvidia-settings-rc

  2. 调用“ nvidia-settings”,然后通过“X 服务器显示配置”,故意将监视器配置从“向右延伸”更改为“镜像”。

    [我将外部显示器的位置更改为“与笔记本电脑显示器相同”,这样它就可以像镜像一样工作了]

  3. 申请然后,打好的

  4. 为了涵盖所有基础,我还选择“保存到 X 配置文件” [ /etc/X11/xorg.conf ]

  5. 中仍然没有任何内容~/.nvidia-settings-rc,因此我单击左侧面板底部的 nvidia-settings Configuration,然后选择“保存当前配置”

  6. 现在,我看到了一些东西~/.nvidia-settings-rc

  7. 重新启动nvidia-settings并更改配置,以便笔记本电脑显示器延伸到我的外接显示器的右侧。点击应用并验证更改是否生效(我现在处于我想要的状态)。

  8. 现在,退出nvidia-settingsGUI 配置会话

  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

答案1

兰德尔

第一次运行xrandr并查找“...连接”行以找出显示器的名称。然后运行

xrandr --output VGA1 --auto --same-as LVDS1

使显示器VGA1成为镜像或LVDS1。 “--same-as”是设置镜像的参数。如果你想要翻转或缩放,请参阅 的其他参数xrandr


Nvidia-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.

相关内容