Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-01-11, 01:47 PM   #1
JasonWard
Registered User
 
Join Date: Nov 2010
Posts: 17
Default 2xCards, one not in Xorg.conf

I have two Nvidia cards in my PC as reflected by lshw

Quote:

...
*-display
description: VGA compatible controller
product: GT216 [GeForce GT 220]
vendor: nVidia Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:18 memory:fc000000-fcffffff memory:b0000000-bfffffff memory:cc000000-cdffffff ioport:c800(size=128) memory:fbf80000-fbffffff
...
*-display
description: VGA compatible controller
product: GT216 [GeForce GT 220]
vendor: nVidia Corporation
physical id: 0
bus info: pci@0000:02:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:16 memory:fd000000-fdffffff memory:d0000000-dfffffff memory:ce000000-cfffffff ioport:d800(size=128) memory:fea80000-feafffff
...
But only one shows in my Xorg.conf

Quote:


# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 280.13 (buildd@rothera) Thu Aug 11 17:28:49 UTC 2011

Section "ServerLayout"

# Removed Option "Xinerama" "0"
# Removed Option "Xinerama" "1"
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"

# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "HSP HSG1116"
HorizSync 30.0 - 68.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection

Section "Monitor"

# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "HSP HSG1116"
HorizSync 30.0 - 68.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 220"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "CRT-0: 1920x1080 +0+0, CRT-1: nvidia-auto-select +1920+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "CRT-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
As you can see, I have two monitors connected to one card.

What I want is one monitor connected to each card.

Can anyone help?
JasonWard is offline   Reply With Quote
Old 12-01-11, 05:39 PM   #2
johnc
Registered User
 
Join Date: May 2011
Posts: 92
Default Re: 2xCards, one not in Xorg.conf

You can add the second Device section to your xorg.conf manually if you'd like... just make the BusID "PCI:2:0:0" for your case. (You can call it Device0 since there isn't one apparently.) Alternatively you should be able to generate an xorg.conf automatically using "nvidia-xconfig --enable-all-gpus"... just make a backup of your xorg.conf file first.

Of course, I don't think you can enable TwinView with two video cards. I forget how that works. I think TwinView runs off of one GPU only. (?) You could probably do multiple X Screens across multiple video cards if you're okay with that setup... in which case you'd want to add the second Screen option to the ServerLayout section.
johnc is offline   Reply With Quote
Old 12-01-11, 07:38 PM   #3
JasonWard
Registered User
 
Join Date: Nov 2010
Posts: 17
Default Re: 2xCards, one not in Xorg.conf

Thanks for the reply, unfortunately nvidia-xconfig errors

Quote:
Using X configuration file: "/etc/X11/xorg.conf".
NVIDIA: could not open the device file /dev/nvidia1 (Input/output error).

WARNING: Unable to use the nvidia-cfg library to query NVIDIA hardware.


ERROR: Unable to determine number of GPUs in system; cannot honor
'--enable-all-gpus' option.

Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
And with or without the --enable-all-gpus it produces an Xorg.conf that is unusable.

I thought about adding the card myself, its seems
Code:
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 220"
    BusID          "PCI:2:0:0"
EndSection
would do nicely.

However, it is this pre-existing section
Code:
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT-0: 1920x1080 +0+0, CRT-1: nvidia-auto-select +1920+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Seems to be none sense (to me at least) since "Screen0" seems to be the correct config that I'm using, yet it refers to device0 that doesn't exist, yet "Screen1" which doesn't seem to be anything real, refers to "device1" which does exist.

I really don't understand how the xorg.conf file sysntax works.
JasonWard is offline   Reply With Quote
Old 12-01-11, 07:55 PM   #4
johnc
Registered User
 
Join Date: May 2011
Posts: 92
Default Re: 2xCards, one not in Xorg.conf

The first error might be permissions-related? Did you run nvidia-xconfig with sudo?

The X configuration might be just defaulting to a particular video card in the absence of a Device0 being defined. It makes sense that it's using Screen0 since that's what's defined in the ServerLayout section. Are there any errors, warnings or interesting information statements listed in the Xorg log?
johnc is offline   Reply With Quote
Old 12-02-11, 06:38 AM   #5
JasonWard
Registered User
 
Join Date: Nov 2010
Posts: 17
Default Re: 2xCards, one not in Xorg.conf

Yes it was run with sudo so it's not a permissions problem.

Looking through the Xorglog (something entirely new to me) I do notice somethings such as

Code:
[     6.411] (EE) NVIDIA(GPU-1): Failed to initialize the NVIDIA GPU at PCI:2:0:0.  Please
[     6.411] (EE) NVIDIA(GPU-1):     check your system's kernel log for additional error
[     6.411] (EE) NVIDIA(GPU-1):     messages and refer to Chapter 8: Common Problems in the
[     6.411] (EE) NVIDIA(GPU-1):     README for additional information.
[     6.411] (EE) NVIDIA(GPU-1): Failed to initialize the NVIDIA graphics device!
lol, chapter 8 of the README, which README I'm left asking?

But as suggested I looked at the kernel log (another new experience for me)

Code:
Nov 30 12:42:57 Kirsten kernel: [    4.208025] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
Nov 30 12:42:57 Kirsten kernel: [    4.240020] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
Nov 30 12:42:57 Kirsten kernel: [    4.272019] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
Nov 30 12:42:57 Kirsten kernel: [    4.304020] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
Nov 30 12:42:57 Kirsten kernel: [    4.320098] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card1/input5
Nov 30 12:42:57 Kirsten kernel: [    4.320170] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card1/input6
Nov 30 12:42:57 Kirsten kernel: [    4.320215] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card1/input7
Nov 30 12:42:57 Kirsten kernel: [    4.320259] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card1/input8
Nov 30 12:42:57 Kirsten kernel: [    4.320521] HDA Intel 0000:02:00.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Nov 30 12:42:57 Kirsten kernel: [    4.320524] hda_intel: Disabling MSI
Nov 30 12:42:57 Kirsten kernel: [    4.320539] nvidia 0000:01:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
Nov 30 12:42:57 Kirsten kernel: [    4.320548] HDA Intel 0000:02:00.1: setting latency timer to 64
Nov 30 12:42:57 Kirsten kernel: [    4.320552] nvidia 0000:01:00.0: setting latency timer to 64
Nov 30 12:42:57 Kirsten kernel: [    4.320557] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
Nov 30 12:42:57 Kirsten kernel: [    4.320559] vgaarb: transferring owner from PCI:0000:01:00.0 to PCI:0000:02:00.0
Nov 30 12:42:57 Kirsten kernel: [    5.136020] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
Nov 30 12:42:57 Kirsten kernel: [    5.168019] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
Nov 30 12:42:57 Kirsten kernel: [    5.200025] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
Nov 30 12:42:58 Kirsten kernel: [    5.232019] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
Nov 30 12:42:58 Kirsten kernel: [    5.248095] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:04.0/0000:02:00.1/sound/card2/input9
Nov 30 12:42:58 Kirsten kernel: [    5.248172] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:04.0/0000:02:00.1/sound/card2/input10
Nov 30 12:42:58 Kirsten kernel: [    5.248218] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:04.0/0000:02:00.1/sound/card2/input11
Nov 30 12:42:58 Kirsten kernel: [    5.248260] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:04.0/0000:02:00.1/sound/card2/input12
Nov 30 12:42:58 Kirsten kernel: [    5.248540] nvidia 0000:02:00.0: enabling device (0000 -> 0003)
Nov 30 12:42:58 Kirsten kernel: [    5.248550] nvidia 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Nov 30 12:42:58 Kirsten kernel: [    5.248564] nvidia 0000:02:00.0: setting latency timer to 64
Nov 30 12:42:58 Kirsten kernel: [    5.248569] vgaarb: device changed decodes: PCI:0000:02:00.0,olddecodes=io+mem,decodes=none:owns=none
Nov 30 12:42:58 Kirsten kernel: [    5.248692] NVRM: loading NVIDIA UNIX x86 Kernel Module  280.13  Wed Jul 27 16:55:43 PDT 2011
Nov 30 12:42:58 Kirsten kernel: [    5.407283] vesafb: mode is 1024x768x32, linelength=4096, pages=0
Nov 30 12:42:58 Kirsten kernel: [    5.407285] vesafb: scrolling: redraw
Nov 30 12:42:58 Kirsten kernel: [    5.407287] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
Nov 30 12:42:58 Kirsten kernel: [    5.409787] vesafb: framebuffer at 0xcd000000, mapped to 0xfd000000, using 3072k, total 3072k
Nov 30 12:42:58 Kirsten kernel: [    5.409942] Console: switching to colour frame buffer device 128x48
Nov 30 12:42:58 Kirsten kernel: [    5.409961] fb0: VESA VGA frame buffer device
And then:

Code:
Nov 30 12:42:59 Kirsten kernel: [    6.410577] alloc_vmap_area: 36 callbacks suppressed
Nov 30 12:42:59 Kirsten kernel: [    6.410580] vmap allocation for size 16781312 failed: use vmalloc=<size> to increase size.
Nov 30 12:42:59 Kirsten kernel: [    6.411271] NVRM: failed to map registers!!
Nov 30 12:42:59 Kirsten kernel: [    6.411273] NVRM: RmInitAdapter failed! (0x10:0x32:1351)
Nov 30 12:42:59 Kirsten kernel: [    6.411280] NVRM: rm_init_adapter(1) failed
Done some Googling, it seems the above VMAP and NVRM errors are a real problem and are showing the problem with the video card, but as of yet I have no idea how to solve the issue.

OK, Googling and researching as I write this, I seem to have found someone with an identical problem in Fedora 11 back in 2009 https://bugzilla.redhat.com/show_bug.cgi?id=489078

I'll look at their fix for me and update.
JasonWard is offline   Reply With Quote
Old 12-02-11, 11:49 AM   #6
johnc
Registered User
 
Join Date: May 2011
Posts: 92
Default Re: 2xCards, one not in Xorg.conf

Ahh yes... this is a common problem for multi-GPU systems, though it's actually addressed in Chapter 9 of the README: ftp://download.nvidia.com/XFree86/Li...ownissues.html

See the heading, "Kernel virtual address space exhaustion on the X86 platform". Are you using a 32-bit kernel? It's a common problem on that platform.

To get around it you'll have to pass the vmalloc=256M (or whatever size is needed) to the kernel's boot parameters. So if your bootloader is GRUB, you'll have to modify the GRUB configuration.

Or go 64-bit if you can.
johnc is offline   Reply With Quote
Old 12-02-11, 02:42 PM   #7
JasonWard
Registered User
 
Join Date: Nov 2010
Posts: 17
Default Re: 2xCards, one not in Xorg.conf

Quote:
Originally Posted by johnc View Post
Or go 64-bit if you can.
I have indeed switched to 64bit, wow, Linux feels more like Windows every day.

However, it is working now for me, so I am happy...
JasonWard is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:02 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.