Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Sep 2007 17:47:49 -0400
From:      Eric Ekong <eric@unixtechs.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: nvidia-driver rebooting machine on X startup
Message-ID:  <20070909214749.GA11553@blackguy>
In-Reply-To: <200709081659.32603.fbsd.questions@rachie.is-a-geek.net>
References:  <839aec700709061310m44a1f0f8p55fd7706ed3c02af@mail.gmail.com> <200709072045.58773.fbsd.questions@rachie.is-a-geek.net> <839aec700709071543l241ec6bck8f37712f4dbd4011@mail.gmail.com> <200709081659.32603.fbsd.questions@rachie.is-a-geek.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Mel <fbsd.questions@rachie.is-a-geek.net> [070908 10:59]:
> Date: Sat, 8 Sep 2007 16:59:32 +0200
> From: Mel <fbsd.questions@rachie.is-a-geek.net>
> To: freebsd-questions@freebsd.org
> Subject: Re: nvidia-driver rebooting machine on X startup
> 
> On Saturday 08 September 2007 00:43:59 Darren Spruell wrote:
> > On 9/7/07, Mel <fbsd.questions@rachie.is-a-geek.net> wrote:
> > > On Friday 07 September 2007 19:43:03 Darren Spruell wrote:
> > > > On 9/6/07, Derek Ragona <derek@computinginnovations.com> wrote:
> > > > >  At 03:10 PM 9/6/2007, Darren Spruell wrote:
> > > > >
> > > > > Wondering if this is a known issue, or if anyone has suggestions to
> > > > >  get it working...?
> > > > >
> > > > >  Running FreeBSD 6.2-RELEASE-p4 SMP i386.
> > > > >
> > > > >  I installed nvidia-driver-100.14.11 from ports (Sep. 5 snapshot),
> > > > >  Linux compatibility enabled. After loading modules 'linux' and
> > > > >  'nvidia', I do:
> > > > >
> > > > >  # X -configure
> > > > >  # X -config /root/xorg.conf.new
> > > > >
> > > > >  At this point the system spontaneously reboots. 'X -configure' runs
> > > > >  fine and produces a configuration without issue, but the reboot
> > > > >  occcurs when launching X. Nothing is output to screen (it flickers
> > > > > as if starting X), and nothing is written to /var/log/Xorg.0.log. I
> > > > > do get the same behavior if running 'xorgcfg'.
> > > > >
> > > > >  Card info:
> > > > >
> > > > >  "NV41 [Quadro FX 3450/4000 SDI] rev 162"
> > > > >
> > > > >  nvidia0@pci7:0:0: class=0x030000 card=0x029b10de chip=0x00cd10de
> > > > >  rev=0xa2 hdr=0x00
> > > > >      vendor   = 'NVIDIA Corporation'
> > > > >      class    = display
> > > > >      subclass = VGA
> > > > >
> > > > >  I've tried an alternate version of the binary driver
> > > > >  (nvidia-driver-96xx) to see if there was any change, and it also
> > > > >  reboots on X startup.
> > > > >
> > > > >
> > > > >  --
> > > > >  Check your AGP settings and consult the readme, chapter 9, for the
> > > > > latest driver.  You should be running the latest driver with your
> > > > > card.
> > > > >
> > > > >  Make sure you have the correct AGP settings, either letting FreeBSD
> > > > > do it in the kernel or disable the kernel and let the Nvidia driver
> > > > > manage it.
> > > >
> > > > So, I'm not having terrific luck with any combination of settings I
> > > > try.
> > > >
> > > > The latest FreeBSD driver release from Nvidia is the same as the
> > > > version in the ports tree. This is what I've installed.
> > > >
> > > > Attempting the AGPGART route (building the driver with
> > > > "WITH_FREEBSD_AGP=yes" and disabling NvAgp support in xorg.conf) still
> > > > results in a reboot.
> > > >
> > > > Going the NvAGP route (Building without support for AGPGART, setting
> > > > NvAgp to 1 in the xorg.conf, and setting hint.agp.0.disabled=1 in
> > > > /boot/device.hints) also results in a reboot when X starts. One thing
> > > > I notice here; when I specify hint.agp.0.disabled=1, and check the
> > > > output of 'kldstat -v' after booting, I still see several agp drivers
> > > > loaded:
> > > >
> > > > $ kldstat -v |grep -i agp
> > > >                 387 pci/agp_ali
> > > >                 388 pci/agp_amd
> > > >                 389 pci/agp_amd64
> > > >                 390 pci/agp_ati
> > > >                 391 pci/agp_i810
> > > >                 392 pci/agp_intel
> > > >                 393 pci/agp_nvidia
> > > >                 394 pci/agp_sis
> > > >                 395 pci/agp_via
> > > >
> > > > Is this a problem?
> > > >
> > > > I suspect a couple of problems with what I'm doing. Number one,
> > > > there's several knobs to turn (in the driver, in the OS, etc.) and
> > > > it's possible I'm not getting the correct combination. Other thing is,
> > > > I've been told by a technician that this is a PCI Express video card,
> > > > so would AGP even come into play?
> > >
> > > Probably not. I'm seeing the same thing on one machine, no AGP on MB, and
> > > agp kernel modules loaded, but nvidia-driver doesn't care about it.
> > > Let's kill all red herrings:
> > > - Is COMPAT5X in the kernel?
> >
> > COMPAT5X doesn't show up anywhere in /usr/src/; I do have 'options
> > COMPAT_FREEBSD5'  defined, though (stock SMP kernel).
> >
> > > - Does running `nvidia-xconfig --query-gpu-info' reboot the system?
> > > - If you do not load the nvidia kernel module, but use Xorg's "nv" driver
> > > does this reboot the system?
> >
> > No, doesn't reboot the system. Output attached below.
> >
> > With the 'nv' driver, X starts fine. I don't use it because I don't
> > have success with the two output displays and xinerama window sizing.
> >
> > nvidia-xconfig --query-gpu-info:
> >
> > Number of GPUs: 1
> >
> > GPU #0:
> >   Name      : Quadro FX 3450/4000 SDI
> >   PCI BusID : PCI:7:0:0
> >
> >   Number of Display Devices: 2
> >
> >   Display Device 0 (CRT-0):
> >      EDID Name             : DELL 2001FP
> >      Minimum HorizSync     : 31.000 kHz
> >      Maximum HorizSync     : 80.000 kHz
> >      Minimum VertRefresh   : 56 Hz
> >      Maximum VertRefresh   : 76 Hz
> >      Maximum PixelClock    : 162.000 MHz
> >      Maximum Width         : 1600 pixels
> >      Maximum Height        : 1200 pixels
> >      Preferred Width       : 1600 pixels
> >      Preferred Height      : 1200 pixels
> >      Preferred VertRefresh : 60 Hz
> >      Physical Width        : 410 mm
> >      Physical Height       : 310 mm
> >
> >   Display Device 1 (CRT-1):
> >      EDID Name             : DELL 2001FP
> >      Minimum HorizSync     : 31.000 kHz
> >      Maximum HorizSync     : 80.000 kHz
> >      Minimum VertRefresh   : 56 Hz
> >      Maximum VertRefresh   : 76 Hz
> >      Maximum PixelClock    : 162.000 MHz
> >      Maximum Width         : 1600 pixels
> >      Maximum Height        : 1200 pixels
> >      Preferred Width       : 1600 pixels
> >      Preferred Height      : 1200 pixels
> >      Preferred VertRefresh : 60 Hz
> >      Physical Width        : 410 mm
> >      Physical Height       : 310 mm
> 
> There's 3 things left I can think of:
> - weird module clash
> - bug in nvidia-driver (I assume you're running Xorg 7.x)
> - driver was not built against running kernel
> 
> Using a working Xorg config from a machine with TV-out, I've tried 
> compensating for your setup. Please try this xorg.conf:
> 
> Section "ServerLayout"
>     Identifier     "Layout0"
>     Screen      0  "Screen0" 0 0
>     InputDevice    "Keyboard0" "CoreKeyboard"
>     InputDevice    "Mouse0" "CorePointer"
> EndSection
> 
> Section "Files"
>     RgbPath         "/usr/local/lib/X11/rgb"
>     FontPath        "/usr/local/lib/X11/fonts/misc/:unscaled"
>     FontPath        "/usr/local/lib/X11/fonts/100dpi/:unscaled"
>     FontPath        "/usr/local/lib/X11/fonts/75dpi/:unscaled"
>     FontPath        "/usr/local/lib/X11/fonts/misc/"
>     FontPath        "/usr/local/lib/X11/fonts/Type1/"
>     FontPath        "/usr/local/lib/X11/fonts/100dpi/"
>     FontPath        "/usr/local/lib/X11/fonts/75dpi/"
>     FontPath        "/usr/local/lib/X11/fonts/cyrillic/"
>     FontPath        "/usr/local/lib/X11/fonts/TTF/"
> EndSection
> 
> Section "Module"
>     Load           "dbe"
>     Load           "extmod"
>     Load           "type1"
>     Load           "freetype"
>     Load           "glx"
> EndSection
> 
> Section "ServerFlags"
>     Option         "Xinerama" "0"
> EndSection
> 
> Section "InputDevice"
>     Identifier     "Mouse0"
>     Driver         "mouse"
>     Option         "Protocol" "auto"
>     Option         "Device" "/dev/sysmouse"
>     Option         "Emulate3Buttons" "no"
>     Option         "ZAxisMapping" "4 5"
> EndSection
> 
> Section "InputDevice"
>     Identifier     "Keyboard0"
>     Driver         "keyboard"
> EndSection
> 
> Section "Monitor"
>     Identifier     "Monitor0"
>     VendorName     "Dell"
>     ModelName      "2001FP"
>     HorizSync       31.0 - 80.0
>     VertRefresh     56.0 - 76.0
>     Option         "DPMS"
> EndSection
> 
> Section "Monitor"
>     Identifier     "Monitor1"
>     VendorName     "Dell"
>     ModelName      "2001FP"
>     HorizSync       31.0 - 80.0
>     VertRefresh     56.0 - 76.0
>     Option         "DPMS"
> EndSection
> 
> Section "Device"
>     Identifier     "Device0"
>     Driver         "nvidia"
>     VendorName     "NVIDIA Corporation"
>     BoardName      "Quadro FX 3450/4000 SDI"
>     Option         "NvAgp" "0"
> EndSection
> 
> Section "Device"
>     Identifier     "Videocard0"
>     Driver         "nvidia"
>     VendorName     "NVIDIA Corporation"
>     BoardName      "Quadro FX 3450/4000 SDI"
> EndSection
> 
> Section "Screen"
>     Identifier     "Screen0"
>     Device         "Videocard0"
>     Monitor        "Monitor0"
>     DefaultDepth    24
>     Option         "TwinView" "1"
>     SubSection     "Display"
>         Depth       24
>         Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
>     EndSubSection
> EndSection
> 
> 
> -- 
> Mel
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

I've read this entire thread and I'm having the exact same issue, with
a different nvidia card on Fbsd6.2.  I'm sure we both have different
hw.  That leaves one thing in common, we both have the new nvidia
driver installed and that is what is causing the issue.  I have already
rebuilt my kernel.  BTW I have nvidia geforce 6600 gt.

Time to check nvidia's site/forums.

Eric
-- 
=======================================================
Eric I. Ekong                        eric@unixtechs.org
FreeBSD - The Power to Serve     http://www.freebsd.org           
K Desktop Environment on FreeBSD http://freebsd.kde.org           
Enlightenment E16 and E17        http://www.e.org
=======================================================

Laws of Serendipity:

        (1) In order to discover anything, you must be looking for
            something.
        (2) If you wish to make an improved product, you must already
            be engaged in making an inferior one.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070909214749.GA11553>