View previous topic :: View next topic |
Author |
Message |
manywele l33t


Joined: 12 Jul 2003 Posts: 728 Location: Inside
|
Posted: Sat Apr 09, 2016 6:17 pm Post subject: Dual monitor problems [Solved] |
|
|
The last time I set up dual monitors 4 or 5 years ago it just worked. This time it seems things have become more complicated.
I have an EVGA GTX 970 with the dual dvi plugged into a 2560x1440 monitor and the hdmi plugged into a 1920x1080 monitor. The dvi monitor works just fine. The hdmi monitor is displaying at 1920x1080 but the resolution is so poor text is mostly unreadable. I had to get this setup working by directly editing the config files because nothing I tried with nvidia-settings would even get the hdmi monitor to get a signal.
I've spent too many hours wrestling with this setup without success. Any suggestions on how to get the second monitor resolution to behave?
My xorg conf files look like this:
Code: | 20-nvidia.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 970"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 970"
BusID "PCI:1:0:0"
Screen 1
Option "DPI" "96x96"
EndSection
|
Code: | 40-monitor.conf
Section "Monitor"
Identifier "Monitor0"
VendorName "Crossover"
ModelName "QHD270"
HorizSync 88.8
VertRefresh 59.5
Option "DPMS"
Modeline "2560x1440" 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync
DisplaySize 597 336
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Asus"
ModelName "DFP-1"
#HorizSync 88.8 - 88.8
#VertRefresh 60.0
ModeLine "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
Option "DPMS"
Option "RightOf" "Monitor0"
EndSection
|
Code: | 40-screen.conf
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "metamodes" "DVI-I-1: nvidia-auto-select +0+0"
Option "NoLogo" "True"
Option "UseEDID" "False"
Option "UseEDIDDPI" "False"
Option "UseEDIDFreqs" "False"
Option "ExactModeTimingsDVI" "True"
# Option "metamodes" "2560x1440_60"
Option "PreferredMode" "2560x1440"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "Off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "Stereo" "0"
Option "metamodes" "HDMI-0: nvidia-auto-select +0+0 {viewportin=1920x1080, viewportout=1920x1080+0+0}"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "Off"
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
|
Code: | 60-server.conf
Section "ServerLayout"
Identifier "Xinerama Screen"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Option "Xinerama" "true"
EndSection
|
My Xorg.0.log has the following warnings
Code: | /var/log $ grep WW Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 2392.096] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 2392.096] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 2392.096] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 2392.097] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 2392.098] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 2392.823] (WW) NVIDIA: The Composite and Xinerama extensions are both enabled, which
[ 2392.823] (WW) NVIDIA: is an unsupported configuration. The driver will continue
[ 2392.823] (WW) NVIDIA: to load, but may behave strangely.
[ 2392.823] (WW) NVIDIA: Xinerama is enabled, so RandR has likely been disabled by the
[ 2392.823] (WW) NVIDIA: X server.
[ 2393.789] (WW) NVIDIA(1): custom viewPortOut, 1920 x 1080 +0 +0, does not fit within
[ 2393.789] (WW) NVIDIA(1): rasterSize, 1024x768; ignoring custom viewPortOut
[ 2393.885] (WW) Warning, couldn't open module x11glvnd
[ 2393.885] (WW) NVIDIA(0): Option "PreferredMode" is not used
[ 2393.885] (WW) NVIDIA(0): Not registering RandR
[ 2393.953] (WW) NVIDIA(1): Option "RightOf" is not used
[ 2393.953] (WW) NVIDIA(1): Not registering RandR
/var/log $
|
Last edited by manywele on Wed Apr 13, 2016 12:02 am; edited 1 time in total |
|
Back to top |
|
 |
Syl20 Guru


Joined: 04 Aug 2005 Posts: 568 Location: France
|
Posted: Mon Apr 11, 2016 8:25 am Post subject: Re: Dual monitor problems |
|
|
manywele wrote: | Code: | [ 2392.823] (WW) NVIDIA: The Composite and Xinerama extensions are both enabled, which
[ 2392.823] (WW) NVIDIA: is an unsupported configuration. The driver will continue
[ 2392.823] (WW) NVIDIA: to load, but may behave strangely.
[ 2392.823] (WW) NVIDIA: Xinerama is enabled, so RandR has likely been disabled by the
[ 2392.823] (WW) NVIDIA: X server. |
|
You could disable Xinerama, and use the TwinView option :
Code: | Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 970"
BusID "PCI:1:0:0"
Option "TwinView" "true"
(...)
EndSection |
Then you normally don't have to define two devices.
Code: | [ 2393.885] (WW) NVIDIA(0): Option "PreferredMode" is not used
[ 2393.885] (WW) NVIDIA(0): Not registering RandR
[ 2393.953] (WW) NVIDIA(1): Option "RightOf" is not used
[ 2393.953] (WW) NVIDIA(1): Not registering RandR |
These options are for RandR, they are not known by the proprietary Nvidia driver.
I don't know if defining a "preferred mode" is useful with TwinView. For the second option, you can use :
Code: | Option "TwinViewOrientation" "RightOf" |
|
|
Back to top |
|
 |
manywele l33t


Joined: 12 Jul 2003 Posts: 728 Location: Inside
|
Posted: Tue Apr 12, 2016 2:18 am Post subject: |
|
|
Thanks for the reply. If I disable Xinerama and enable TwinView I get no signal on the HDMI monitor and get the following warning in the Xorg logs
Code: | (WW) NVIDIA(0): Option "TwinView" is not used |
which is the same thing that happens if I try to use nvidia-settings to configure the second monitor. I have used TwinView successfully before (with a different video card and different monitors a few years ago) but it does not want to work now.
Still looking for suggestions.
Edit:
So if I get rid of the metamode option for the HDMI monitor X forces it into a 1024x768 resolution which, while very small and not the native resolution of the monitor, is at least readable. |
|
Back to top |
|
 |
Syl20 Guru


Joined: 04 Aug 2005 Posts: 568 Location: France
|
Posted: Tue Apr 12, 2016 8:52 am Post subject: |
|
|
manywele wrote: | Thanks for the reply. If I disable Xinerama and enable TwinView I get no signal on the HDMI monitor and get the following warning in the Xorg logs
Code: | (WW) NVIDIA(0): Option "TwinView" is not used |
which is the same thing that happens if I try to use nvidia-settings to configure the second monitor. I have used TwinView successfully before (with a different video card and different monitors a few years ago) but it does not want to work now. |
It seems Nvidia removed this option, if I well understood its docs (http://http.download.nvidia.com/XFree86/Linux-x86/361.42/README/configtwinview.html). So it's enabled by default.
But the driver provides its own Xinerama extension, so the xorg's one must be disabled. So you should add Code: | Section "ServerFlags"
Option "Xinerama" "0"
EndSection | in your conf.
Quote: | So if I get rid of the metamode option for the HDMI monitor X forces it into a 1024x768 resolution which, while very small and not the native resolution of the monitor, is at least readable. |
If you use the native Twinview extension, you need only one "Screen" section, which should contain : Code: | Option "MetaModes" "2560x1440, 1920x1080"
Option "ConnectedMonitor" "DFP-0, DFP-1"
Option "MetaModeOrientation" "DFP-1 RightOf DFP-0" |
You certainly need to change the monitor names, depending on what the driver sees.
Additional questions :
- Could you wgetpaste one hole Xorg.0.log, please ? Most of the useful informations are in this log file.
- Did you already try to remove all the xorg.conf files (make backups first !), and to setup your stuff via the nvidia-xconfig utility ? |
|
Back to top |
|
 |
manywele l33t


Joined: 12 Jul 2003 Posts: 728 Location: Inside
|
Posted: Wed Apr 13, 2016 12:01 am Post subject: |
|
|
Ah, finally it works. Thank you for your suggestions. I haven't had that much trouble configuring X since I ran a CRT and and LCD dual monitor setup long ago.
Running nvidia-xconfig gave me a mostly working xorg.conf (albeit without a working glx module for some reason) which I parsed into pieces, added the opengl stuff and put back into /etc/X11/xorg.conf.d and now it all works, no mention of TwinView or Xinerama or metamodes in the configs. For some reason I expected nvidia-settings to do the same thing as nvidia-xconfig. And nvidia-settings now correctly recognizes both monitors with more info than it had before. Weird. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|