Unable to open /nvidiactl

2007-05-30 Thread ml-vic
Dear friends,
I'm still looking for help to solve the problem of my nvidia graphic card. 
nvidia.ko doesn't seem able to create /dev/ndiviactl.

Synthesis 

My system
Intel Centrino Duo T5300 HP Pavillion 6366 notebook 2GB mem
NVIDIA GeForce Go 7400
FreeBSD  6.2-RELEASE-p4  i386
kernel compiled for SMP
Latest snapshot of the ports

1) I installed and compiled the /usr/ports/x11/nvidia-driver with default 
options and  /usr/ports/x11/nvidia-xconfig; because loader.conf was not 
automatically modified I added a nvidia_load=YES to loader.conf and 
rebooted the pc, therefore:

2)  victor$ kldstat
Id Refs Address    Size     Name
 1   36 0xc040 5a1fa0   kernel
 2    1 0xc09a2000 3244     splash_bmp.ko
 3    1 0xc09a6000 5528     vesa.ko
 4    3 0xc0a6c000 1e058    linux.ko
 5    1 0xc0a8b000 435c     acpi_video.ko
 6    3 0xc0a9 61ba0    acpi.ko
 7    1 0xc0af2000 6d4de0   nvidia.ko
 8    2 0xc11c7000 168fc    agp.ko


(agp is not compiled statically in the kernel)

victor$ sysctl -a|grep nvidia
       nvidia    84    37K       -       84  16,32,64,128,256,1024,2048
hw.nvidia.version: NVIDIA UNIX x86 Kernel Module  1.0-9746  Tue Dec 19 
13:20:59 PST 2006
hw.nvidia.registry.EnableVia4x: 0
hw.nvidia.registry.EnableALiAGP: 0
hw.nvidia.registry.NvAGP: 3
hw.nvidia.registry.EnableAGPSBA: 0
hw.nvidia.registry.EnableAGPFW: 0
hw.nvidia.registry.SoftEDIDs: 1
hw.nvidia.registry.Mobile: 4294967295
hw.nvidia.registry.ResmanDebugLevel: 4294967295
hw.nvidia.registry.FlatPanelMode: 0
hw.nvidia.registry.DevicesConnected: 0
hw.nvidia.registry.RmLogonRC: 1
hw.nvidia.registry.DetectPrimaryVga: 1
hw.nvidia.registry.dwords:

3) I generated a basic xorg.conf file running a mere nvidia-xconfig that I 
tailored only tailored for language.

4) startx fails. The system declares 

NVIDIA: could not open the device /dev/nvidiactl 
 
(as a matter of fact there isn't!)

And Xorg.0.log is as follows

X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: FreeBSD 6.2 i386 [ELF] 
Current Operating System: FreeBSD hpbsd.vic 6.2-RELEASE-p4 FreeBSD 
6.2-RELEASE-p4 #0: Mon May 28 11:43:57 UTC 2007     
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/HP01 i386
Build Date: 10 February 2007
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Mon May 28 19:39:50 2007
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout Layout0
(**) |--Screen Screen0 (0)
(**) |   |--Monitor Monitor0
(**) |   |--Device Device0
(**) |--Input Device Keyboard0
(**) Option XkbModel pc105
(**) XKB: model: pc105
(**) Option XkbLayout it
(**) XKB: layout: it
(==) Keyboard: CustomKeycode disabled
(**) |--Input Device Mouse0
(**) FontPath set 
to 
/usr/X11R6/lib/X11/fonts/misc,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi,/usr/X11R6/lib/X11/fonts/bitstream-vera,/usr/local/share/fonts
(**) RgbPath set to /usr/X11R6/lib/X11/rgb
(**) ModulePath set to /usr/X11R6/lib/modules
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.2
X.Org Video Driver: 0.8
X.Org XInput driver : 0.5
X.Org Server Extension : 0.2
X.Org Font Renderer : 0.4
(II) Loader running on freebsd
(II) LoadModule: bitmap
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.so
(II) Module bitmap: vendor=X.Org Foundation
compiled for 6.9.0, module version = 1.0.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: pcidata
(II) Loading /usr/X11R6/lib/modules/libpcidata.so
(II) Module pcidata: vendor=X.Org Foundation
compiled for 6.9.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 0.8
(--) Using syscons driver with X support (version 2.0)
(--) using VT number 5

(II) PCI: Probing config type using method 1
(II) PCI: Config type is 1
(II) PCI: stages = 0x03, oldVal1 = 0x, mode1Res1 = 0x8000
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 8086,27a0 card 103c,30bb rev 03 class 06,00,00 hdr 00
(II) PCI: 00:01:0: chip 8086,27a1 card , rev 03 class 06,04,00 hdr 01
(II) PCI: 00:1b:0: chip 8086,27d8 card 103c,30bb rev 02 class 04,03,00 hdr 00
(II) PCI: 00:1c:0: chip 8086,27d0 card , rev 02 class 06,04,00 hdr 81
(II) PCI: 00:1c:1: chip 8086,27d2 card , rev 02 class 06,04,00 hdr 81
(II) PCI: 00:1c:2: chip 8086,27d4 card , rev 02 class 06,04,00 hdr 81
(II) PCI: 00:1d:0: chip 8086,27c8 card 103c,30bb rev 02 class 0c,03,00 hdr 80
(II) PCI: 00:1d:1: chip 8086,27c9 card 

Re: Unable to open /nvidiactl

2007-05-30 Thread vittorio
Tricky but at last I detected the cause of the problem:

I had a acpi_video_load=YES in loader.conf which loaded the module 
acpi_video.ko. Eliminating this module with kldunload (and then deleting the 
line from loader.conf) *** out of the blue  nvidia  started working 
great.

Ciao
Vittorio


Il Wednesday 30 May 2007 16:57:20 ml-vic ha scritto:
 Dear friends,
 I'm still looking for help to solve the problem of my nvidia graphic card.
 nvidia.ko doesn't seem able to create /dev/ndiviactl.

 Synthesis

 My system
 Intel Centrino Duo T5300 HP Pavillion 6366 notebook 2GB mem
 NVIDIA GeForce Go 7400
 FreeBSD  6.2-RELEASE-p4  i386
 kernel compiled for SMP
 Latest snapshot of the ports

 1) I installed and compiled the /usr/ports/x11/nvidia-driver with default
 options and  /usr/ports/x11/nvidia-xconfig; because loader.conf was not
 automatically modified I added a nvidia_load=YES to loader.conf and
 rebooted the pc, therefore:

 2)  victor$ kldstat
 Id Refs Address    Size     Name
  1   36 0xc040 5a1fa0   kernel
  2    1 0xc09a2000 3244     splash_bmp.ko
  3    1 0xc09a6000 5528     vesa.ko
  4    3 0xc0a6c000 1e058    linux.ko
  5    1 0xc0a8b000 435c     acpi_video.ko
  6    3 0xc0a9 61ba0    acpi.ko
  7    1 0xc0af2000 6d4de0   nvidia.ko
  8    2 0xc11c7000 168fc    agp.ko
 
 
 (agp is not compiled statically in the kernel)

 victor$ sysctl -a|grep nvidia
        nvidia    84    37K       -       84  16,32,64,128,256,1024,2048
 hw.nvidia.version: NVIDIA UNIX x86 Kernel Module  1.0-9746  Tue Dec 19
 13:20:59 PST 2006
 hw.nvidia.registry.EnableVia4x: 0
 hw.nvidia.registry.EnableALiAGP: 0
 hw.nvidia.registry.NvAGP: 3
 hw.nvidia.registry.EnableAGPSBA: 0
 hw.nvidia.registry.EnableAGPFW: 0
 hw.nvidia.registry.SoftEDIDs: 1
 hw.nvidia.registry.Mobile: 4294967295
 hw.nvidia.registry.ResmanDebugLevel: 4294967295
 hw.nvidia.registry.FlatPanelMode: 0
 hw.nvidia.registry.DevicesConnected: 0
 hw.nvidia.registry.RmLogonRC: 1
 hw.nvidia.registry.DetectPrimaryVga: 1
 hw.nvidia.registry.dwords:

 3) I generated a basic xorg.conf file running a mere nvidia-xconfig that I
 tailored only tailored for language.

 4) startx fails. The system declares

 NVIDIA: could not open the device /dev/nvidiactl

 (as a matter of fact there isn't!)

 And Xorg.0.log is as follows

 X Window System Version 6.9.0
 Release Date: 21 December 2005
 X Protocol Version 11, Revision 0, Release 6.9
 Build Operating System: FreeBSD 6.2 i386 [ELF]
 Current Operating System: FreeBSD hpbsd.vic 6.2-RELEASE-p4 FreeBSD
 6.2-RELEASE-p4 #0: Mon May 28 11:43:57 UTC 2007    
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/HP01 i386
 Build Date: 10 February 2007
 Before reporting problems, check http://wiki.X.Org
 to make sure that you have the latest version.
 Module Loader present
 Markers: (--) probed, (**) from config file, (==) default setting,
 (++) from command line, (!!) notice, (II) informational,
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Mon May 28 19:39:50 2007
 (==) Using config file: /etc/X11/xorg.conf
 (==) ServerLayout Layout0
 (**) |--Screen Screen0 (0)
 (**) |   |--Monitor Monitor0
 (**) |   |--Device Device0
 (**) |--Input Device Keyboard0
 (**) Option XkbModel pc105
 (**) XKB: model: pc105
 (**) Option XkbLayout it
 (**) XKB: layout: it
 (==) Keyboard: CustomKeycode disabled
 (**) |--Input Device Mouse0
 (**) FontPath set
 to
 /usr/X11R6/lib/X11/fonts/misc,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/li
b/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi,/usr/X11R6/lib/X11/fonts/b
itstream-vera,/usr/local/share/fonts (**) RgbPath set to
 /usr/X11R6/lib/X11/rgb
 (**) ModulePath set to /usr/X11R6/lib/modules
 (II) Module ABI versions:
 X.Org ANSI C Emulation: 0.2
 X.Org Video Driver: 0.8
 X.Org XInput driver : 0.5
 X.Org Server Extension : 0.2
 X.Org Font Renderer : 0.4
 (II) Loader running on freebsd
 (II) LoadModule: bitmap
 (II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.so
 (II) Module bitmap: vendor=X.Org Foundation
 compiled for 6.9.0, module version = 1.0.0
 Module class: X.Org Font Renderer
 ABI class: X.Org Font Renderer, version 0.4
 (II) Loading font Bitmap
 (II) LoadModule: pcidata
 (II) Loading /usr/X11R6/lib/modules/libpcidata.so
 (II) Module pcidata: vendor=X.Org Foundation
 compiled for 6.9.0, module version = 1.0.0
 ABI class: X.Org Video Driver, version 0.8
 (--) Using syscons driver with X support (version 2.0)
 (--) using VT number 5

 (II) PCI: Probing config type using method 1
 (II) PCI: Config type is 1
 (II) PCI: stages = 0x03, oldVal1 = 0x, mode1Res1 = 0x8000
 (II) PCI: PCI scan (all values are in hex)
 (II) PCI: 00:00:0: chip 8086,27a0 card 103c,30bb rev 03 class 06,00,00 hdr
 00 (II) PCI: 00:01:0: chip 8086,27a1 card , rev 03 class 

Re: Unable to open /nvidiactl

2007-05-30 Thread Sereno Ternullo

ml-vic ha scritto:

(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please ensure
(EE) NVIDIA(0): that there is a supported NVIDIA GPU in this system, and
(EE) NVIDIA(0): that the NVIDIA device files have been created properly. 
(EE) NVIDIA(0): Please consult the NVIDIA README for details.

(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: nvidia
(II) UnloadModule: ramdac
(II) UnloadModule: wfb
(II) UnloadModule: fb
(EE) Screen(s) found, but none have a usable configuration.
  


I had a similar problem installing the nvidia driver by using the port 
provided with FreeBSD.
I used to get a message similar to yours. What kind of nvidia card is in 
your system ?


First of all, delete the packate installed by port.

nvidia provides most of old cards support through the legacy driver, 
and you have

to download the appropriate one by getting it on the nvidia site.

type

$ pciconf -lv

to get the exact name of your card.

So get to http://www.nvidia.com/object/unix.html
and search your legacy package between those listed, for example

http://www.nvidia.com/object/freebsd_1.0-9639.html

at the end of each package page you can find the list of nvidia hardware 
supported

by that package, for example

http://www.nvidia.com/object/IO_32667.html

If your card name is in that list, you have found the right package.
Download, untar, make install and  nvdia-xconfig.

On my system everything worked fine this way,
glxgears run pretty fast.

Hope to be useful,
see you

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]