View Full Version : FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.
roddierod
01-04-07, 07:03 PM
I have 7-Current running xorg modular. I've switched the X11BASE variable to /usr/local/, since in the future this is the plan for the release of xorg 7 with FreeBSD.
I've built and installed the nvidia driver and applies the patch. Now, I did have to move somethings to /usr/local/lib/xorg/modules manually.
Anyway, the NVIDIA spalsh screen starts then it core dumps. I see no errors in the log but here it is....
clash rocker
01-04-07, 07:38 PM
Why don't you fix up those warnings (search for WW in your log) relating to those incorrect font paths. Don't know if that will solve the problem thou.
adamk75
01-04-07, 08:51 PM
You say that you've set X11BASE to /usr/local yet your logfile shows the server loading modules from /usr/X11R6/lib/xorg/modules... In fact, nothing is loaded from your /usr/local hierarchy. It seems to me that your xorg is not built the way you think it is :-)
Perhaps deinstalling those ports and reinstalling them (without setting X11BASE), and then reinstalling the nvidia driver, might be your best bet.
FWIW, I'm running the exact same setup (7.2.0 RC3 on -CURRENT), but I'm using 9746 instead of 9631. You could also try upgrading the driver.
Adam
roddierod
01-05-07, 08:39 AM
Thanks for the replies.
@adamk75 the only problem with is that /usr/X11R6/lib doesn't is a symlink to /usr/local/lib. I did that because I could get certain things to re-install after changing the X11 base. I have been rebuilding everything since Xmas :(
I tried the 9746 driver also and got the same results, I switched to 9631 that was the one in the ports.
I'll remove the symlinks latter today and see what happens next...
SirDice
01-05-07, 11:40 PM
Setting your ModulePath (Files section) to /usr/local/lib/xorg/modules will load everything from the correct place. Don't forget to correct the fontpaths too.. The NVidia drivers still install into /usr/local/lib/modules/drivers and /usr/local/lib/modules/extensions though. You can move these by hand or add a ModulePath /usr/local/lib/modules..
Try to get a basic setup working with the Xorg nv driver then switch to the nvidia driver.
roddierod
02-07-07, 09:25 PM
OK, I finally got the 9746 version of the driver to work on current with modular xorg. With the patch from Zanders post.
I have to modify a few of the make files to place the extensions and drivers in /usr/local/lib/xorg/modules/drivers and /usr/local/lib/xorg/modules/extensions.
The only problem I have now is the GLX module doesn't seem to load, but I'm not sure what the problem is. According to the log it look to me like if fails but then is loaded, not sure.
The card is an XFX GeForce 7800GTX with two displays using TwinView.
One Display is an LG 20" widescreen and the other is a Viewsonic 19", both LCD screens.
Here is the portion of the xorg.o.log.
(II) Setting vga for screen 0.
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NvAGP" "2"
(**) NVIDIA(0): Option "RenderAccel" "True"
(**) NVIDIA(0): Option "TwinView" "1"
(**) NVIDIA(0): Option "MetaModes" "CRT: nvidia-auto-select +1680+0, DFP: 1680x1050 +0+0"
(**) NVIDIA(0): Option "AllowGLXWithComposite" "True"
(**) NVIDIA(0): Option "TripleBuffer" "True"
(**) NVIDIA(0): Enabling RENDER acceleration
(**) NVIDIA(0): TwinView enabled
(**) NVIDIA(0): Use of AGPGART requested
(EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
(EE) NVIDIA(0): log file that the GLX module has been loaded in your X
(EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
(EE) NVIDIA(0): you continue to encounter problems, Please try
(EE) NVIDIA(0): reinstalling the NVIDIA driver.
(II) NVIDIA(0): NVIDIA GPU GeForce 7800 GTX at PCI:2:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 262144 kBytes
(--) NVIDIA(0): VideoBIOS: 05.70.02.11.18
(II) NVIDIA(0): Detected PCI Express Link width: 16X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce 7800 GTX at PCI:2:0:0:
(--) NVIDIA(0): ViewSonic VA902b (CRT-0)
(--) NVIDIA(0): LG L203WTX (DFP-1)
(--) NVIDIA(0): ViewSonic VA902b (CRT-0): 400.0 MHz maximum pixel clock
(--) NVIDIA(0): LG L203WTX (DFP-1): 155.0 MHz maximum pixel clock
(--) NVIDIA(0): LG L203WTX (DFP-1): Internal Single Link TMDS
(II) NVIDIA(0): Display Devices found referenced in MetaMode: CRT-0, DFP-1
(II) NVIDIA(0): Assigned Display Devices: CRT-0, DFP-1
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0): "CRT:nvidia-auto-select+1680+0,DFP:1680x1050+0+0"
(II) NVIDIA(0): Virtual screen size determined to be 2960 x 1050
(--) NVIDIA(0): DPI set to (85, 86); computed from "UseEdidDpi" X config
(--) NVIDIA(0): option
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC? No, I don't.
(II) resource ranges after preInit:
[0] 0 0 0xb1000000 - 0xb1ffffff (0x1000000) MX[B]
[1] 0 0 0xc0000000 - 0xcfffffff (0x10000000) MX[B]
[2] 0 0 0xb2000000 - 0xb2ffffff (0x1000000) MX[B]
[3] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
[4] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[5] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[6] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[7] -1 0 0xd0700000 - 0xd07fffff (0x100000) MX[B]E
[8] -1 0 0xd0300000 - 0xd03fffff (0x100000) MX[B]E
[9] -1 0 0xd0400000 - 0xd05fffff (0x200000) MX[B]E
[10] -1 0 0xd0100000 - 0xd01fffff (0x100000) MX[B]E
[11] -1 0 0xd0200000 - 0xd02fffff (0x100000) MX[B]E
[12] -1 0 0xd0001000 - 0xd0001fff (0x1000) MX[B]E
[13] -1 0 0xd0000000 - 0xd0000fff (0x1000) MX[B]E
[14] -1 0 0xb0100000 - 0xb0103fff (0x4000) MX[B]E
[15] -1 0 0xb0104000 - 0xb0107fff (0x4000) MX[B]E
[16] -1 0 0xb0005000 - 0xb0005fff (0x1000) MX[B]E
[17] -1 0 0xb0004000 - 0xb0004fff (0x1000) MX[B]E
[18] -1 0 0xb0003000 - 0xb0003fff (0x1000) MX[B]E
[19] -1 0 0xb0002000 - 0xb0002fff (0x1000) MX[B]E
[20] -1 0 0xb0001000 - 0xb0001fff (0x1000) MX[B]E
[21] -1 0 0xb0000000 - 0xb0000fff (0x1000) MX[B]E
[22] -1 0 0xb1000000 - 0xb1ffffff (0x1000000) MX[B](B)
[23] -1 0 0xc0000000 - 0xcfffffff (0x10000000) MX[B](B)
[24] -1 0 0xb2000000 - 0xb2ffffff (0x1000000) MX[B](B)
[25] 0 0 0x000a0000 - 0x000affff (0x10000) MS[B](OprD)
[26] 0 0 0x000b0000 - 0x000b7fff (0x8000) MS[B](OprD)
[27] 0 0 0x000b8000 - 0x000bffff (0x8000) MS[B](OprD)
[28] 0 0 0x00002000 - 0x0000207f (0x80) IX[B]
[29] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[30] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
[31] -1 0 0x00003400 - 0x000034ff (0x100) IX[B]E
[32] -1 0 0x00003000 - 0x000030ff (0x100) IX[B]E
[33] -1 0 0x00001c60 - 0x00001c7f (0x20) IX[B]E
[34] -1 0 0x00001c20 - 0x00001c2f (0x10) IX[B]E
[35] -1 0 0x00001c48 - 0x00001c4b (0x4) IX[B]E
[36] -1 0 0x00001c50 - 0x00001c57 (0x8) IX[B]E
[37] -1 0 0x00001c4c - 0x00001c4f (0x4) IX[B]E
[38] -1 0 0x00001c58 - 0x00001c5f (0x8) IX[B]E
[39] -1 0 0x00001c10 - 0x00001c1f (0x10) IX[B]E
[40] -1 0 0x00001c30 - 0x00001c33 (0x4) IX[B]E
[41] -1 0 0x00001c38 - 0x00001c3f (0x8) IX[B]E
[42] -1 0 0x00001c34 - 0x00001c37 (0x4) IX[B]E
[43] -1 0 0x00001c40 - 0x00001c47 (0x8) IX[B]E
[44] -1 0 0x00001c00 - 0x00001c0f (0x10) IX[B]E
[45] -1 0 0x00001400 - 0x000014ff (0x100) IX[B]E
[46] -1 0 0x00001800 - 0x000018ff (0x100) IX[B]E
[47] -1 0 0x0000a040 - 0x0000a07f (0x40) IX[B]E
[48] -1 0 0x0000a000 - 0x0000a03f (0x40) IX[B]E
[49] -1 0 0x00008c00 - 0x00008cff (0x100) IX[B]E
[50] -1 0 0x00002000 - 0x0000207f (0x80) IX[B](B)
[51] 0 0 0x000003b0 - 0x000003bb (0xc) IS[B](OprU)
[52] 0 0 0x000003c0 - 0x000003df (0x20) IS[B](OprU)
(II) NVIDIA(0): Setting mode
(II) NVIDIA(0): "CRT:nvidia-auto-select+1680+0,DFP:1680x1050+0+0"
(II) Loading extension NV-GLX
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) Option "dpms"
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(WW) NVIDIA(0): Option "AddRGBGLXVisuals" is not used
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension XAccessControlExtension
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(II) Loading local sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/local/lib/xorg/modules/extensions//libGLcore.so
(II) Module GLcore: vendor="X.Org Foundation"
compiled for 7.2.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.3
(II) GLX: Initialized MESA-PROXY GL provider for screen 0
(**) Option "CoreKeyboard"
(**) Keyboard0: Core Keyboard
(**) Option "Protocol" "standard"
(**) Keyboard0: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Keyboard0: XkbRules: "xorg"
(**) Option "XkbModel" "pc105"
(**) Keyboard0: XkbModel: "pc105"
(**) Option "XkbLayout" "us"
(**) Keyboard0: XkbLayout: "us"
(**) Option "CustomKeycodes" "off"
(**) Keyboard0: CustomKeycodes disabled
(**) Option "Protocol" "auto"
(**) Mouse0: Device: "/dev/sysmouse"
(**) Mouse0: Protocol: "auto"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/sysmouse"
(**) Option "Emulate3Buttons" "no"
(**) Option "ZAxisMapping" "4 5"
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(**) Mouse0: Buttons: 9
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(II) Mouse0: SetupAuto: hw.iftype is 4, hw.model is 0
(II) Mouse0: SetupAuto: protocol is SysMouse
SirDice
02-08-07, 05:39 AM
It's loading the wrong GLcore:
(II) Module GLcore: vendor="X.Org Foundation"
compiled for 7.2.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.3
FWIW my system runs Xorg-7.2r3_4 with X11BASE set to /usr/local/
Didn't change anything in the makefiles.. Xorg 7 should install into $X11BASE/lib/xorg/modules/.
The nvidia-driver installs in $X11BASE/lib/modules to solve that I have 2 modulepaths in the files section..
ModulePath "/usr/local/lib/xorg/modules"
ModulePath "/usr/local/lib/modules"
My modules section looks like this:
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
roddierod
02-08-07, 10:36 AM
It's loading the wrong GLcore:
Ok, I agree with that but how do I get it to load nividia's my Module section is exactly like yours.
FWIW my system runs Xorg-7.2r3_4 with X11BASE set to /usr/local/
Didn't change anything in the makefiles.. Xorg 7 should install into $X11BASE/lib/xorg/modules/.
The nvidia-driver installs in $X11BASE/lib/modules to solve that I have 2 modulepaths in the files section..
I also have had the two module line. But that has no effect on the building of the nvidia-driver only the loading of the modules after they are built and installed.
So, to get the nvidia-driver to install nividia_drv.so into /usr/local/lib/xorg/modules/drivers I had to edit the Makefile found in the /Nvidia-FreeBSD-x86-1.0-9746/x11/driver. I had to change the line
DRIVERDIR= ${X11BASE}/lib/modules/drivers
to
DRIVERDIR= ${x11BASE}/lib/xorg/modules/drivers
to get the nvidia driver to build and install otherwise it just errored on the install.
/usr/local/lib/modules/drivers is not a directory with my Xorg build it's some type of library. Same for /usr/local/lib/modules/extensions.
SirDice
02-08-07, 11:43 AM
So, to get the nvidia-driver to install nividia_drv.so into /usr/local/lib/xorg/modules/drivers I had to edit the Makefile found in the /Nvidia-FreeBSD-x86-1.0-9746/x11/driver. I had to change the line
DRIVERDIR= ${X11BASE}/lib/modules/drivers
to
DRIVERDIR= ${x11BASE}/lib/xorg/modules/drivers
to get the nvidia driver to build and install otherwise it just errored on the install.
mkdir -p /usr/lib/modules/drivers fixes the error. It shouldn't matter where the drivers get installed. As long as the modulepaths are set correctly.
Deinstall the driver.. Make sure there are no XXX-* and nvidia related files left behind in $X11BASE/lib/modules/* and/or $X11BASE/lib/xorg/modules/*.
Add X11BASE=/usr/local to /etc/make.conf (this is to make sure all applications that use X11BASE will install in /usr/local). Use the freebsd port.. cd /usr/ports/x11/nvidia-driver && make all install clean Make sure your portstree is up2date though..
roddierod
02-08-07, 02:24 PM
so in other words - for some reason on my system:
/usr/local/lib/modules/drivers is a file with a size of 1561700
/usr/local/lib/modules/extensions is a file with the size of 732876
Your saying that they should not be there. Although, it seems to me they have something to do with the actual file that are in /usr/local/lib/xorg/modules/drivers and /usr/local/lib/xorg/modules/extensions which are directories.
I just want to be sure of this, because every else seems to be the same with our setups, except that somehow I'm get those two files.
SirDice
02-08-07, 04:01 PM
/usr/local/lib/modules/drivers is a file with a size of 1561700
/usr/local/lib/modules/extensions is a file with the size of 732876
These shouldn't be files but directories. Because the directories don't exist it'll copy it as a file
Here's my layout:
/usr/local/lib/modules/
libnvidia-wfb.so.1
libwfb.so.1
drivers/
nvidia_drv.so
extensions/
XXX-libglx.so.1.%%.orig-20070201
libglx.so
libglx.so.1
roddierod
02-10-07, 02:26 PM
I did everything you suggest SirDice and it's still loading the GLcore from XORG.... :(
SirDice
02-11-07, 10:44 AM
Do you have libGL installed? If so deinstall that port. LibGL and the nvidia-driver are mutually exclusive. They both do the same thing, X might be picking the libGL one instead of the nvidia one. Look at the logfile. I've attached mine so you can compare. GLcore should not be loaded. Only libglx and nvidia_drv should be loaded.
How did you install Xorg 7 btw? Did you use the instructions at http://wiki.freebsd.org/ModularXorg or did you do it by hand?
roddierod
02-11-07, 11:03 AM
libGL isn't installed I had to deinstall it to install nvidia although it doesn't look as if it was deinstall :) I do have a libGLu installed - not sure if that should be there.
Yes I followed the instruction from the wiki to install Xorg 7.
I'm going to triple check the libGL to see if it just unregistered the installation but not actually removed anything.
On a side note, it seems as though there are some issues with the patch and dual monitor usage, but I'll report those after I figure this one out to see if it stops those issues.
roddierod
02-11-07, 01:21 PM
Well, I guess I'm just going to give up on GL.
I've removed libGLU and libGLw. Reinstalled the drive 3 or 4 times today and no matter what the nividia GL extension refuses to load.
It seemed to have loaded once according to the log, but then the X server just kept respawning...
Oh well maybe it will start working later.
Thanks for all the help...
SirDice
02-11-07, 02:03 PM
If your portstree is up2date you'll see that the port is at version 1.0.9741_1 and it includes zander's patch. So you don't need to patch it by hand.
- Add a patch by Christian Zander from nVidia that fixes crashes reported by
users on recent 6.X and -CURRENT systems. This applies to both versions,
9631 and 9746
http://www.freshports.org/x11/nvidia-driver/
LibGLU should be there btw. It's installed on my system.
roddierod
02-11-07, 06:47 PM
well...good news and bad news....
I got the nvidia GL to load. But, it causes my X server to respawn so I can't use it. The re-spawning does not leave any errors anywhere so trying to figure this out seems tough.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.