Ubuntu 18.04
实际显示器的最大分辨率“分辨率(最大):2560x1440”
双监视器设置。
问题:安装NVidia驱动程序之后,一切都要大得多,就好像屏幕分辨率更低一样。
<#>所需:显示方式与Nouveau下的一样,但具有双监视器支持。
这方面的步骤:
ubuntu-drivers devices检查终端中所需的驱动程序
nvidia-driver-390 - distro non-free recommended
为解决这一问题,我:
Option "DPI" "96x96"下添加一个选项。重启时没有变化。Option "DPI" "96x96"设置,以防NVidia找错位置。重启时没有变化。以下是xorg.conf内容:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 390.132 (buildmeister@swio-display-x64-rhel04-14) Fri Nov 1 05:15:46 PDT 2019
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 440.64
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "BenQ EW3270ZL"
HorizSync 30.0 - 89.0
VertRefresh 50.0 - 76.0
Option "DPMS"
Option "DPI" "96x96"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 630"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-0"
Option "metamodes" "DVI-I-2: nvidia-auto-select +0+0, DVI-I-3: nvidia-auto-select +1920+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
Option "UseEdidDpi" "False"
SubSection "Display"
Depth 24
EndSubSection
EndSection我该怎么办?谢谢。
更新:
仍然没有进展,但也尝试了以下/一些额外的信息。
NVidia卡有两个DVI输出。监视器采用HDMI,所以我在每个监视器上使用从DVI到HDMI的转换器电缆。不确定这是否会影响分辨率检测。
尝试根据显示器支持的最高分辨率(通过主板上的HDMI运行时已知的工作分辨率),向xrandr添加自定义分辨率。
检查支持的分辨率的xrandr提供
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384
DVI-I-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 709mm x 399mm
1920x1080 60.00*+ 59.94 50.00 60.05 60.00 50.04
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
DVI-I-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 709mm x 399mm
1920x1080 60.00*+ 59.94 50.00 60.05 60.00 50.04
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
HDMI-0 disconnected (normal left inverted right x axis y axis)获取监视器已知的最大支持分辨率的ModeLine:
cvt 2560 1440 60给..。
# 2560x1440 59.96 Hz (CVT 3.69M9) hsync: 89.52 kHz; pclk: 312.25 MHz
Modeline "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync增加一项新的解决方案:
xrandr --newmode "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync然后再做一次,看看我得到了什么:
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 16384 x 16384
DVI-I-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 709mm x 399mm
1920x1080 60.00*+ 59.94 50.00 60.05 60.00 50.04
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
DVI-I-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 709mm x 399mm
1920x1080 60.00*+ 59.94 50.00 60.05 60.00 50.04
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
HDMI-0 disconnected (normal left inverted right x axis y axis)
2560x1440_60.00 (0x2be) 312.250MHz -HSync +VSync
h: width 2560 start 2752 end 3024 total 3488 skew 0 clock 89.52KHz
v: height 1440 start 1443 end 1448 total 1493 clock 59.96Hz我注意到,在HDMI-0中增加了自定义分辨率,而不影响DVI-I-0或DVI-I-1。我认为这是因为xrandr对NVidia卡没有任何影响?
因此,我再次查看了Xorg设置。"NVidia X服务器设置“工具似乎将保存到/etc/X11/xorg.conf文件中。因此,我认为它确实是从这个文件中获取设置。我按照这个职位将ModeLine添加到monitor部分,然后从Xorg.conf文件的Screen部分引用它。
这也没有任何影响。
因此,我们仍然非常欢迎你的想法:)
发布于 2020-05-29 02:42:52
好吧,我解决了。我卸载了NVidia驱动程序并使用了Nouvea。如果我知道这是可能的,我就会这么做,因为我不想要任何NVidia特性本身,只是双监视器支持。
对于任何对最终方法感兴趣的人来说,这就是。请注意,这些注释是特定于我的设备,所以您将需要更改设备的名称在以下命令。
在航站楼:
xrandr这将给您和输出,显示所有的图形输出和他们支持的分辨率。您应该看到HDMI-1是连接的,支持2560x1440分辨率。而DVI-I-1-2 (或类似的)也是连接的,但只支持1920x1080,所以我们需要让DVI-I-1-2也支持2560x1440。
要做到这一点,我们需要使用xrandr为2560x1440分辨率添加另一个配置文件,然后将其应用于DVI-I-1-2。再次在航站楼:
cvt 2560 1440 60这将使您获得用于此操作的"modeline“。
目前,这一栏是:
"2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync在此基础上构造以下内容以添加新模式:
xrandr --newmode "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync然后将模式添加到DVI-I-2中。
xrandr --addmode DVI-I-2 2560x1440_60.00现在,您应该能够进入正常的显示设置,并为每个监视器选择更高的分辨率。
但是,这不会在用户会话之间持续存在,因此您需要解决这个问题。
创建一个.xprofile文件,它将在每次Ubuntu启动时自动执行(在此之前检查它是否存在)。并将其设置为具有执行权限:
touch $HOME/.xprofile
chmod +x $HOME/.xprofile将以上两行复制并粘贴到该文件中:
xrandr --newmode "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync
xrandr --addmode DVI-I-2 2560x1440_60.00现在,在重新启动时,您将在两个监视器上获得完整的分辨率。
https://askubuntu.com/questions/1244457
复制相似问题