DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th May 2008
greencross's Avatar
greencross greencross is offline
Real Name: David Gevorgyan
Fdisk Soldier
 
Join Date: May 2008
Location: Yerevan, Armenia
Posts: 58
Thanked 4 Times in 4 Posts
Exclamation problems with nvidia-driver-169.12

System - 7.0 Realease
All ports are up to date
(nv driver is working allright)
Hardware:
Motherboard - ASUS-M2N-X PLUS
Video card - GeForce 7300 GT (pci-e)
After installing nvidia-driver from ports I launch startx, then I have X working only for 15 seconds or so. The second startx gives no result.

I looked in logs and found the following:
Code:
(EE) NVIDIA(0): The NVIDIA kernel module does not appear to be receiving
(EE) NVIDIA(0):     interrupts generated by the NVIDIA graphics device
(EE) NVIDIA(0):     PCI:2:0:0.  Please see Chapter 6: Common Problems in the
(EE) NVIDIA(0):     README for additional information.
(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
(EE) Screen(s) found, but none have a usable configuration.
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) OS did not count PCI devices, guessing wildly
OK. I go to chapter 6. It tells about IRQ conflicts and suggests to change device slot, which is impossible in my case (single pci-e slot).
To watch IRQs:

Code:
% dmesg | grep "irq 11"
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xddefec00-0xddefecff irq 11 at device 2.1 on pci0
atapci1: <nVidia nForce MCP61 SATA300 controller> port 0xd400-0xd407,0xd080-0xd083,0xd000-0xd007,0xcc00-0xcc03,0xc880-0xc88f mem 0xddefc000-0xddefcfff irq 11 at device 8.0 on pci0
atapci2: <nVidia nForce MCP61 SATA300 controller> port 0xc800-0xc807,0xc480-0xc483,0xc400-0xc407,0xc080-0xc083,0xc000-0xc00f mem 0xddeef000-0xddeeffff irq 11 at device 8.1 on pci0
nvidia0: <GeForce 7300 GT> port 0xec00-0xec7f mem 0xdf000000-0xdfffffff,0xc0000000-0xcfffffff,0xde000000-0xdeffffff irq 11 at device 0.0 on pci2
I did everything required for driver installation (at least I hope so)

Code:
% kldstat
Id Refs Address    Size     Name
 1   14 0xc0400000 906518   kernel
 2    1 0xc0d07000 14324    snd_hda.ko
 3    2 0xc0d1c000 4a5ac    sound.ko
 4    1 0xc0d67000 80d964   nvidia.ko
 5    2 0xc1575000 28658    linux.ko
 6    1 0xc159e000 6a32c    acpi.ko
 7    1 0xc4c0d000 10000    ext2fs.ko
Code:
% pkg_info | grep "compat"
***
compat4x-i386-5.3_9 A convenience package to install the compat4x libraries
compat5x-i386-5.4.0.8_9 A convenience package to install the compat5x libraries
compat6x-i386-6.3.603000.200801 A convenience package to install the compat6x libraries
***
xorg.conf

Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (root@localhost.domain)  Sun May  4 02:49:32 CST 2008

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath         "/usr/local/share/X11/rgb"
    ModulePath      "/usr/local/lib/xorg/modules"
    FontPath        "/usr/local/lib/X11/fonts/misc/"
    FontPath        "/usr/local/lib/X11/fonts/TTF/"
    FontPath        "/usr/local/lib/X11/fonts/OTF"
    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/URW/"
    FontPath        "/usr/local/lib/X11/fonts/TrueType/"
    FontPath        "/usr/local/lib/X11/fonts/bitstream-vera/"
    FontPath        "/usr/local/lib/X11/fonts/dejavu/"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
    Load           "record"
    Load           "xtrap"
    Load           "freetype"
    Load           "type1"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us,ru(phonetic),am(phonetic)"
    Option         "XkbVariant" "winkeys"
    Option         "XkbOptions" "grp:alt_shift_toggle"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/sysmouse"
    Option         "ZAxisMapping" "4 5 6 7"

EndSection

Section "Monitor"

   #DisplaySize     330   210   # mm
 ### Comment all HorizSync and VertRefresh values to use DDC:
    Identifier     "Monitor0"
    VendorName     "HST"
    ModelName      "HF154B/D"
    HorizSync       30.0 - 82.0
    VertRefresh     60.0
    Option         "DPMS"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: : integer, : float, : "True"/"False",
        ### : "String", : " Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"              # []
        #Option     "HWcursor"              # []
        #Option     "NoAccel"               # []
        #Option     "ShadowFB"              # []
        #Option     "UseFBDev"              # []
        #Option     "Rotate"                # []
        #Option     "VideoKey"              #
        #Option     "FlatPanel"             # []
        #Option     "FPDither"              # []
        #Option     "CrtcNumber"            #
        #Option     "FPScale"               # []
        #Option     "FPTweak"               #
        #Option     "DualHead"              # []
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    BoardName      "G70 [GeForce 7300 GT]"
EndSection

Section "Screen"

#   SubSection "Display"
#      Viewport   0 0
#      Depth     1
#   EndSubSection
#   SubSection "Display"
#      Viewport   0 0
#      Depth     4
#   EndSubSection
#   SubSection "Display"
#      Viewport   0 0
#      Depth     8
#   EndSubSection
#   SubSection "Display"
#      Viewport   0 0
#      Depth     15
#   EndSubSection
#   SubSection "Display"
#      Viewport   0 0
#      Depth     16
#   EndSubSection
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    SubSection     "Display"
        Viewport    0 0
        Modes      "1280x800"
    EndSubSection
EndSection
I tried to add BusID "PCI:2:0:0" in Section "Device" and recompiled kernel without AGP support. Still no good.

I was little confused by this:

Code:
(WW)OS did not count PCI devices, guessing wildly

and launched

Code:
% sudo lspci
00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2)
00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
00:08.1 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0b.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0c.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
02:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7300 GT] (rev a1)
and this:

Code:
% dmesg | grep pci
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> port 0x900-0x9ff at device 1.0 on pci0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
pci0: <memory, RAM> at device 1.2 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xddeff000-0xddefffff irq 5 at device 2.0 on pci0
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xddefec00-0xddefecff irq 11 at device 2.1 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcm0: <NVidia MCP61 High Definition Audio Controller> mem 0xddef8000-0xddefbfff irq 10 at device 5.0 on pci0
atapci0: <nVidia nForce MCP61 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 6.0 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
nfe0: <NVIDIA nForce MCP61 Networking Adapter> port 0xd480-0xd487 mem 0xddefd000-0xddefdfff irq 5 at device 7.0 on pci0
atapci1: <nVidia nForce MCP61 SATA300 controller> port 0xd400-0xd407,0xd080-0xd083,0xd000-0xd007,0xcc00-0xcc03,0xc880-0xc88f mem 0xddefc000-0xddefcfff irq 11 at device 8.0 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
atapci2: <nVidia nForce MCP61 SATA300 controller> port 0xc800-0xc807,0xc480-0xc483,0xc400-0xc407,0xc080-0xc083,0xc000-0xc00f mem 0xddeef000-0xddeeffff irq 11 at device 8.1 on pci0
atapci2: [ITHREAD]
ata4: <ATA channel 0> on atapci2
ata5: <ATA channel 1> on atapci2
pcib2: <MPTable PCI-PCI bridge> at device 9.0 on pci0
pci2: <PCI bus> on pcib2
nvidia0: <GeForce 7300 GT> port 0xec00-0xec7f mem 0xdf000000-0xdfffffff,0xc0000000-0xcfffffff,0xde000000-0xdeffffff irq 11 at device 0.0 on pci2
pcib3: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 12.0 on pci0
pci4: <ACPI PCI bus> on pcib4
Any ideas?

P.S. Sorry for such a large post, but I got really desperate.
Reply With Quote
  #2   (View Single Post)  
Old 20th May 2008
tuck's Avatar
tuck tuck is offline
Shell Scout
 
Join Date: May 2008
Posts: 99
Thanked 14 Times in 6 Posts
Default

Just guessing: You have more than 3GB RAM?
Reply With Quote
  #3   (View Single Post)  
Old 20th May 2008
greencross's Avatar
greencross greencross is offline
Real Name: David Gevorgyan
Fdisk Soldier
 
Join Date: May 2008
Location: Yerevan, Armenia
Posts: 58
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by tuck View Post
Just guessing: You have more than 3GB RAM?
nope, just 1G
Reply With Quote
  #4   (View Single Post)  
Old 20th May 2008
roddierod's Avatar
roddierod roddierod is online now
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 383
Thanked 13 Times in 13 Posts
Default

Did you reboot after installing? Does /dev/nvidiactl exist?
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #5   (View Single Post)  
Old 20th May 2008
davidgurvich davidgurvich is offline
Fdisk Soldier
 
Join Date: May 2008
Location: NYC
Posts: 57
Thanked 3 Times in 3 Posts
Default

I believe that the nvidia driver will not work with 7.0 unless loaded on first boot by adding 'nvidia_load="YES"' to /boot/loader.conf. You may also need to disable loading of the freebsd agp module by adding 'hint.agp.0.disabled="1"' to /boot/device.hints. On my system loading the nvidia module during boot causes constant reboots so I am using 6.3 and loading nvidia after the loader finishes. With 6.3 the nvidia driver can be loaded after boot. You may also need to add 'Option "NvAGP" "3"' to /etc/X11/xorg.conf.
Reply With Quote
  #6   (View Single Post)  
Old 20th May 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

Quote:
Originally Posted by tuck View Post
Just guessing: You have more than 3GB RAM?
The symptoms for that case are different (assuming you can't cancel memory remapping). In that case the X server locks solid when you enter it, though the system is still alive (by ssh, for example).

I thought the OP might have that problem, but it is just different.
Reply With Quote
  #7   (View Single Post)  
Old 20th May 2008
greencross's Avatar
greencross greencross is offline
Real Name: David Gevorgyan
Fdisk Soldier
 
Join Date: May 2008
Location: Yerevan, Armenia
Posts: 58
Thanked 4 Times in 4 Posts
Default

Quote:
Did you reboot after installing? Does /dev/nvidiactl exist?
I did. And /dev/nvidiactl is on its place.

Quote:
I believe that the nvidia driver will not work with 7.0 unless loaded on first boot by adding 'nvidia_load="YES"' to /boot/loader.conf...
I added nvidia_load="YES" in loader.conf. I also recompiled kernel with AGP support turned off. Isn't it similar to disabling it by device.hints?
Here:
Code:
localhost% kldstat -v | grep "agp"
localhost%
Quote:
You may also need to add 'Option "NvAGP" "3"' to /etc/X11/xorg.conf.
Should I add this in Section "Device" ?
Reply With Quote
  #8   (View Single Post)  
Old 20th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

You might have more luck asking on the nvnews.net freebsd forum: http://nvnews.net/vbulletin/forumdisplay.php?f=47

One of the nvidia developers actually monitors that forum, and since I'm guessing this isn't a configuration problem but, instead, a incompatibility with your system, it may be that only nvidia can help.

Adam
Reply With Quote
  #9   (View Single Post)  
Old 21st May 2008
greencross's Avatar
greencross greencross is offline
Real Name: David Gevorgyan
Fdisk Soldier
 
Join Date: May 2008
Location: Yerevan, Armenia
Posts: 58
Thanked 4 Times in 4 Posts
Default

Solved by turning on APIC support in BIOS.
Thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is nVidia driver stable? rex FreeBSD General 14 31st October 2008 06:40 PM
NVIDIA driver fails to load, freebsd 7.0 mc_i2020 FreeBSD General 18 18th July 2008 01:12 PM
FreeBSD NVidia driver installation maxrussell FreeBSD Ports and Packages 44 15th July 2008 10:39 PM
Image artifacts with nvidia-driver KernelPanic FreeBSD Ports and Packages 1 10th July 2008 09:56 PM


All times are GMT. The time now is 04:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick