jerky opengl, nvidia drivers

zork atissita at navigator.lv
Tue Jan 11 12:26:06 PST 2005


ok.. even though there wasn't anything useful in the Xorg logfile,
after recompiling the kernel i get:

hw.nvidia.agp.status.status: enabled
hw.nvidia.agp.status.driver: nvidia
hw.nvidia.agp.status.rate: 4x
hw.nvidia.agp.status.fw: disabled
hw.nvidia.agp.status.sba: disabled

Now this almost doubles the frame rates, which is nice to see :)

Alas, the problem still remains :(

Will try upgrading everything tomorrow..

Louis LeBlanc wrote:
> Ok, according to your sysctls, you aren't getting the AGP acceleration
> at all.
> 
> Try adding these lines to your card device section:
>         Option "RenderAccel" "True"
>         Option "NvAGP" "1" # Use NVIDIAs agp
> 
> Then restart X.
> 
> Check your hw.nvidia.agp sysctls, particularly these:
> hw.nvidia.agp.status.status: disabled
> hw.nvidia.agp.status.rate: n/a (disabled)
> 
> You want status to be enabled, and rate to be 2x or 4x.
> 
>>From the sysctls below, it looks like the NvAGP setting is already
> turned on, so that appears to be a default.
> 
> Since it's still not working, I suspect that if you check your
> /var/log/Xorg.0.log file for warnings (WW) or errors (EE) related to AGP
> use, you'll find something about the native FreeBSD AGP.  If you are
> using a GENERIC kernel ("uname -a" will tell you), that's almost
> certainly what's happening.
> 
>>From what I've read, the native FreeBSD AGP doesn't always work with
> NVidia cards.  You'll have to compile a custom kernel with the following
> line removed:
> device          agp
> Check here for details:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
> 
> Also, I'd recommend updating your ports and upgrading Xorg.  You might
> also want to build and install the x11/nvidia-drivers port.
> 
> Lou
> 
> On 01/11/05 08:24 PM, zork sat at the `puter and typed:
> 
>>well, Xorg -version says
>>X Protocol Version 11, Revision 0, Release 6.7
>>
>>I think it was installed by sysinstall as a package.
>>
>>I downloaded the drivers from nvidia.
>>
>>the device section:
>>
>>Section "Device"
>>         Identifier  "MyGeForce"
>>         Driver      "nvidia"
>>         VendorName  "NVIDIA"
>>         BoardName   "GeForce4 MX 440"
>>EndSection
>>
>>the sysctls:
>>
>>hw.nvidia.agp.card.rates: 4x 2x 1x
>>hw.nvidia.agp.card.fw: supported
>>hw.nvidia.agp.card.sba: not supported
>>hw.nvidia.agp.card.registers: 0x1f000017:0x00000000
>>hw.nvidia.agp.status.status: disabled
>>hw.nvidia.agp.status.driver: n/a (unused)
>>hw.nvidia.agp.status.rate: n/a (disabled)
>>hw.nvidia.agp.status.fw: n/a (disabled)
>>hw.nvidia.agp.status.sba: n/a (disabled)
>>hw.nvidia.version: NVIDIA FreeBSD x86 NVIDIA Kernel Module  1.0-6113 
>>Mon Aug  2 16:08:32 PDT 2004
>>hw.nvidia.registry.EnableVia4x: 0
>>hw.nvidia.registry.EnableALiAGP: 0
>>hw.nvidia.registry.NvAGP: 1
>>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.cards.0.model: GeForce4 MX 440
>>hw.nvidia.cards.0.irq: 16
>>hw.nvidia.cards.0.vbios: 04.17.00.24.00
>>hw.nvidia.cards.0.type: AGP
>>
>>kernel is basically the default one, built with agp device.
>>
>>I *am* getting the acceleration, however, something is not quite right.
>>
>>As i said, tuxracer runs just fine, so maybe it's some OpenGL feature
>>which most of the apps use, but tuxracer doesn't?
>>
>>Anyway, i should probably try updating everything to the latest
>>versions and see what happens then.
>>Not so sure that it would help though :(
>>
>>One more thing, I can't find any line in Xorg config relating
>>to agp. How is it enabled?
>>
>>Louis LeBlanc wrote:
>>
>>><Top Posting to try keeping this readable>
>>>
>>>Next set of questions:
>>>Are you running Xorg?  What version?  Did you install it from ports or
>>>as a package?
>>>
>>>Did you install the binaries from nvidia or did you install them from
>>>ports?  If installed from ports, how did you build?
>>>
>>>What is the card def block in your X config?
>>>
>>>What are your hw.nvidia sysctls (command: "sysctl hw.nvidia" just in
>>>case)?
>>>
>>>Caveat:  Nvidia driver problems have come up twice already in the last
>>>week, and several times in the last month or two.  Every time it seems
>>>there is a magic sword hiding there that causes some poor guy to just
>>>not be able to get it working.
>>>
>>>My setup:  FreeBSD 5.3 RELEASE.
>>>             My kernel is build WITHOUT the agp device.
>>>           NVidia GeForce FX5200.
>>>           Drivers built from ports with Linux and ACPI support.
>>>           Xorg 6.8.1 built from ports
>>>           Xorg config enables the NVidia AGP.
>>>
>>>I am getting OpenGL acceleration, 8X AGP, and have two monitors
>>>presenting an extended desktop.  I still haven't figured out the tiny
>>>ingredient that makes it all work for me, but keeps it eluding others.
>>>That's kinda bugging me - and, I'm sure, those others that can't get it
>>>working.
>>>
>>>Present the info requested above; if I see anything that looks off, you
>>>can try it.  Maybe we'll finally find the missing link.
>>>
>>>Good luck.
>>>Lou
>>>
>>>On 01/11/05 06:59 PM, zork sat at the `puter and typed:
>>>
>>>
>>>>well, yes. the module section looks like this:
>>>>
>>>>Section "Module"
>>>>        Load  "freetype"
>>>>        # Load "xtt"
>>>>        Load  "extmod"
>>>>        Load  "glx"
>>>>        Load  "dri"
>>>>        Load  "dbe"
>>>>        Load  "record"
>>>>        Load  "xtrap"
>>>>        Load  "type1"
>>>>        Load  "speedo"
>>>>EndSection
>>>>
>>>>Louis LeBlanc wrote:
>>>>
>>>>
>>>>>On 01/11/05 06:01 PM, zork sat at the `puter and typed:
>>>>>
>>>>>
>>>>>
>>>>>>To get accelerated OpenGL, i installed Nvidia's drivers
>>>>>>for my Geforce4 MX 440 on a FreeBSD 5.3-release machine.
>>>>>>
>>>>>>The problem is, most of the games and apps that use OpenGL
>>>>>>do not run smoothly - every second or so they would freeze
>>>>>>for a little while which makes it impossible to enjoy them.
>>>>>>
>>>>>>At first I thought my system could be too slow or something,
>>>>>>however, this also happens with simple apps, even screensavers.
>>>>>>
>>>>>>What's more, the game Tuxracer runs smoothly without any problems,
>>>>>>and since it's a pretty fancy one, i guess that rules
>>>>>>out system performance.
>>>>>>
>>>>>>Does anybody have a clue as to what could be causing this?
>>>>>
>>>>>
>>>>>
>>>>>Are you loading the glx module in your Xorg config?
>>>>>
>>>>>Lou
>>>>
>>>>_______________________________________________
>>>>freebsd-questions at freebsd.org mailing list
>>>>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>>>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>>>>
>>>
>>>
>>_______________________________________________
>>freebsd-questions at freebsd.org mailing list
>>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>>
> 
> 


More information about the freebsd-questions mailing list