You are not logged in.

#1 2013-04-27 18:11:13

4ybaka
Member
Registered: 2013-04-27
Posts: 3

[Solved] Problem with Twin view for nvidia

Hi everyone,

I have 1 VGA and 1 DVI monitor. In my configuration DVI monitor should be primary and on the left side. After one of updates my twinview configuration was broken.
I run nvidia-xconfig and then setup all what I need with nvidia-settings. After apply new configuration all worked perfectly but after reboot I've got VGA monitor as primary and on the left side (yes, I save changes in xorg.conf).

Here is my xorg.conf

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 650 Ti"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "Stereo" "0"
    Option         "metamodes" "DFP: nvidia-auto-select +0+0, CRT: nvidia-auto-select +1680+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I also tried replace line 'Option         "nvidiaXineramaInfoOrder" "DFP-0"' with:

    Option         "TwinView" "True"
    Option         "TwinViewOrientation" "RightOf"

But it doesn't help.
What I doing wrong?

Last edited by 4ybaka (2013-05-03 07:04:47)

Offline

#2 2013-04-27 19:45:52

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [Solved] Problem with Twin view for nvidia

From the nvidia documentation:

Because it is often unclear which display device relates to which,
MetaModeOrientation can be confusing. You can further clarify the
MetaModeOrientation with display device names to indicate which display
device is positioned relative to which display device.

Beyond that, you can reduce your entire config down to this:

Section "Device"
  Identifier "GeForce GTX 650 Ti"
  Driver "nvidia"
  Option "nvidiaXineramaInfoOrder" "DFP-0, CRT-0"
  Option "MetaModeOrientation" "CRT-0 RightOf DFP-0"
EndSection

Last edited by Gusar (2013-04-27 19:46:23)

Offline

#3 2013-04-28 13:10:57

4ybaka
Member
Registered: 2013-04-27
Posts: 3

Re: [Solved] Problem with Twin view for nvidia

I reduce xorg.conf to next

Section "Device"
  Identifier "GeForce GTX 650 Ti"
  Driver "nvidia"
  Option "nvidiaXineramaInfoOrder" "DFP-0, CRT-0"
  Option "MetaModeOrientation" "CRT-0 RightOf DFP-0"
EndSection

But it doesn't help.
In logs I found strange: Unable to find all display devices requested in MetaMode Orientation string "CRT-0 RightOf DFP-0".
Here are logs before this message:

[    11.076] 
X.Org X Server 1.14.1
Release Date: 2013-04-17
[    11.076] X Protocol Version 11, Revision 0
[    11.077] Build Operating System: Linux 3.8.7-1-ARCH x86_64 
[    11.077] Current Operating System: Linux phenya 3.8.8-2-ARCH #1 SMP PREEMPT Tue Apr 23 10:28:14 CEST 2013 x86_64
[    11.077] Kernel command line: root=/dev/disk/by-uuid/0869e52b-990a-419a-a2b3-2ebe94e4fc20 ro
[    11.077] Build Date: 17 April 2013  02:37:06PM
[    11.077]  
[    11.077] Current version of pixman: 0.28.2
[    11.077] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    11.077] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    11.077] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Apr 28 17:39:08 2013
[    11.167] (==) Using config file: "/etc/X11/xorg.conf"
[    11.167] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    11.231] (==) No Layout section.  Using the first Screen section.
[    11.231] (==) No screen section available. Using defaults.
[    11.231] (**) |-->Screen "Default Screen Section" (0)
[    11.231] (**) |   |-->Monitor "<default monitor>"
[    11.231] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    11.231] (**) |   |-->Device "GeForce GTX 650 Ti"
[    11.231] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    11.231] (==) Automatically adding devices
[    11.231] (==) Automatically enabling devices
[    11.231] (==) Automatically adding GPU devices
[    11.304] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[    11.304] 	Entry deleted from font path.
[    11.512] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[    11.512] (==) ModulePath set to "/usr/lib/xorg/modules"
[    11.512] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    11.528] (II) Loader magic: 0x7fcc20
[    11.528] (II) Module ABI versions:
[    11.528] 	X.Org ANSI C Emulation: 0.4
[    11.528] 	X.Org Video Driver: 14.1
[    11.528] 	X.Org XInput driver : 19.1
[    11.528] 	X.Org Server Extension : 7.0
[    11.531] (--) PCI:*(0:1:0:0) 10de:11c6:1458:3557 rev 161, Mem @ 0xfd000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    11.533] Initializing built-in extension Generic Event Extension
[    11.533] Initializing built-in extension SHAPE
[    11.533] Initializing built-in extension MIT-SHM
[    11.533] Initializing built-in extension XInputExtension
[    11.533] Initializing built-in extension XTEST
[    11.533] Initializing built-in extension BIG-REQUESTS
[    11.533] Initializing built-in extension SYNC
[    11.533] Initializing built-in extension XKEYBOARD
[    11.533] Initializing built-in extension XC-MISC
[    11.533] Initializing built-in extension SECURITY
[    11.533] Initializing built-in extension XINERAMA
[    11.533] Initializing built-in extension XFIXES
[    11.533] Initializing built-in extension RENDER
[    11.533] Initializing built-in extension RANDR
[    11.533] Initializing built-in extension COMPOSITE
[    11.533] Initializing built-in extension DAMAGE
[    11.533] Initializing built-in extension MIT-SCREEN-SAVER
[    11.533] Initializing built-in extension DOUBLE-BUFFER
[    11.533] Initializing built-in extension RECORD
[    11.533] Initializing built-in extension DPMS
[    11.533] Initializing built-in extension X-Resource
[    11.533] Initializing built-in extension XVideo
[    11.533] Initializing built-in extension XVideo-MotionCompensation
[    11.533] Initializing built-in extension XFree86-VidModeExtension
[    11.533] Initializing built-in extension XFree86-DGA
[    11.533] Initializing built-in extension XFree86-DRI
[    11.533] Initializing built-in extension DRI2
[    11.533] (II) LoadModule: "glx"
[    12.134] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    13.404] (II) Module glx: vendor="NVIDIA Corporation"
[    13.404] 	compiled for 4.0.2, module version = 1.0.0
[    13.404] 	Module class: X.Org Server Extension
[    13.404] (II) NVIDIA GLX Module  313.30  Wed Mar 27 15:51:21 PDT 2013
[    13.410] Loading extension GLX
[    13.410] (II) LoadModule: "nvidia"
[    13.410] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    13.524] (II) Module nvidia: vendor="NVIDIA Corporation"
[    13.524] 	compiled for 4.0.2, module version = 1.0.0
[    13.525] 	Module class: X.Org Video Driver
[    13.536] (II) NVIDIA dlloader X Driver  313.30  Wed Mar 27 15:33:21 PDT 2013
[    13.536] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    13.537] (++) using VT number 1

[    13.539] (II) Loading sub module "wfb"
[    13.539] (II) LoadModule: "wfb"
[    13.764] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    13.853] (II) Module wfb: vendor="X.Org Foundation"
[    13.853] 	compiled for 1.14.1, module version = 1.0.0
[    13.853] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    13.853] (II) Loading sub module "ramdac"
[    13.853] (II) LoadModule: "ramdac"
[    13.853] (II) Module "ramdac" already built-in
[    13.908] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    13.908] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    13.908] (==) NVIDIA(0): RGB weight 888
[    13.908] (==) NVIDIA(0): Default visual is TrueColor
[    13.908] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    13.908] (**) NVIDIA(0): Option "MetaModeOrientation" "CRT-0 RightOf DFP-0"
[    13.908] (**) NVIDIA(0): Option "nvidiaXineramaInfoOrder" "DFP-0, CRT-0"
[    13.931] (**) NVIDIA(0): Enabling 2D acceleration
[    14.597] (II) NVIDIA(GPU-0): Display (Samsung SyncMaster (CRT-0)) does not support NVIDIA
[    14.597] (II) NVIDIA(GPU-0):     3D Vision stereo.
[    14.602] (II) NVIDIA(GPU-0): Display (Acer X223W (DFP-0)) does not support NVIDIA 3D Vision
[    14.602] (II) NVIDIA(GPU-0):     stereo.
[    14.604] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 650 Ti (GK106) at PCI:1:0:0 (GPU-0)
[    14.604] (--) NVIDIA(0): Memory: 1048576 kBytes
[    14.604] (--) NVIDIA(0): VideoBIOS: 80.06.21.00.27
[    14.604] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    14.616] (--) NVIDIA(0): Valid display device(s) on GeForce GTX 650 Ti at PCI:1:0:0
[    14.616] (--) NVIDIA(0):     Samsung SyncMaster (CRT-0) (connected)
[    14.616] (--) NVIDIA(0):     Acer X223W (DFP-0) (connected)
[    14.616] (--) NVIDIA(0):     DFP-1
[    14.616] (--) NVIDIA(0):     DFP-2
[    14.616] (--) NVIDIA(0): Samsung SyncMaster (CRT-0): 400.0 MHz maximum pixel clock
[    14.616] (--) NVIDIA(0): Acer X223W (DFP-0): 330.0 MHz maximum pixel clock
[    14.616] (--) NVIDIA(0): Acer X223W (DFP-0): Internal Dual Link TMDS
[    14.616] (--) NVIDIA(0): DFP-1: 165.0 MHz maximum pixel clock
[    14.616] (--) NVIDIA(0): DFP-1: Internal Single Link TMDS
[    14.616] (--) NVIDIA(0): DFP-2: 330.0 MHz maximum pixel clock
[    14.616] (--) NVIDIA(0): DFP-2: Internal Single Link TMDS
[    14.616] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[    14.616] (**) NVIDIA(0):     device Samsung SyncMaster (CRT-0) (Using EDID frequencies
[    14.616] (**) NVIDIA(0):     has been enabled on all display devices.)
[    14.618] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[    14.618] (**) NVIDIA(0):     device Acer X223W (DFP-0) (Using EDID frequencies has been
[    14.618] (**) NVIDIA(0):     enabled on all display devices.)
[    14.620] (==) NVIDIA(0): 
[    14.620] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[    14.620] (==) NVIDIA(0):     will be used as the requested mode.
[    14.620] (==) NVIDIA(0): 
[    14.620] (II) NVIDIA(0): Validated MetaModes:
[    14.620] (II) NVIDIA(0):     "CRT-0:nvidia-auto-select,DFP-0:nvidia-auto-select"
[    14.620] (II) NVIDIA(0): Virtual screen size determined to be 2960 x 1050
[    14.620] (WW) NVIDIA(0): Unable to find all display devices requested in MetaMode
[    14.620] (WW) NVIDIA(0):     Orientation string "CRT-0 RightOf DFP-0".
[    14.653] (--) NVIDIA(0): DPI set to (85, 86); computed from "UseEdidDpi" X config
[    14.653] (--) NVIDIA(0):     option
[    14.653] (--) Depth 24 pixmap format is 32 bpp

Last edited by 4ybaka (2013-04-28 13:47:35)

Offline

#4 2013-05-01 11:27:40

miles969
Member
Registered: 2013-02-03
Posts: 23

Re: [Solved] Problem with Twin view for nvidia

Hi!

I'm having the same problem and nothing seems to work. My DFP (over HDMI cable) is always reset to the secondary monitor, despite the settings in xorg.conf...

I used (sudo) nvidia-xconfig (and after that also sudo nvidia-settings) to generate this xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 313.30  (buildmeister@swio-display-x86-rhel47-05)  Wed Mar 27 16:37:22 PDT 2013

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "FUS LL 3190T"
    HorizSync       28.0 - 82.0
    VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 650"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "UseEdidFreqs" "True"
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "CRT: nvidia-auto-select +0+312, DFP: nvidia-auto-select +1366+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

The options "nvidiaXineramaInfoOrder" and "metamodes" are ignored on reboot. I've tried moving the options to the "Device" section, setting "MetaModes" manually (according to the nvidia Readme file), removing and setting the "UseEdidFreqs" option (to fix Xorg0.log messages about conflicting HSync Freqs), all to no avail.

Any pointers would be greatly appreciated!

regards,
M.

----
Edit: It seems Gnome handles primary display settings too. After setting up multiple monitors through the Gnome Settings menu, it seems the settings are preserved. If I start an Openbox session though, the same problem as above occurs. GDM also displays the monitors incorrectly, presumably because nvidia ignores the xorg.conf settings.

Last edited by miles969 (2013-05-01 17:17:44)

Offline

#5 2013-05-03 07:04:26

4ybaka
Member
Registered: 2013-04-27
Posts: 3

Re: [Solved] Problem with Twin view for nvidia

Yep, after setup primary monitor in gnome settings all works correctly. I don't think that nvidia ignores xorg.conf because it's stupid to save it and not use. But my problem is solved so I close topic.

Offline

#6 2013-05-03 18:57:36

miles969
Member
Registered: 2013-02-03
Posts: 23

Re: [Solved] Problem with Twin view for nvidia

well, the bug is still there, but the newest driver release has an interesting bugfix in the releasenotes:

Updated nvidia-settings to preserve the relative positioning of displays when changing from a layout where multiple displays are on the same X screen to one where the same displays span multiple X screens.

not exactly the same bug, but perhaps it'll fix the weird behaviour nonetheless...

Offline

Board footer

Powered by FluxBB