Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jan 2005 12:36:39 -0500
From:      Louis LeBlanc <FreeBSD@keyslapper.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: nvidia driver problem
Message-ID:  <20050110173638.GB7456@keyslapper.org>
In-Reply-To: <41E261E9.5040800@online.de>
References:  <41E261E9.5040800@online.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/10/05 12:07 PM, craig sat at the `puter and typed:
> hi all,
> 
> i am having a problem getting the nvidia-provided freebsd drivers to
> work correctly.
> specifically, although the bsd-provided nv drivers work (albeit without
> any accel), when i switch to the nvidia-provided nvidia drivers, xorg
> loads into 8bit colour mode - which looks terrible!
> 
> looking in /var/log/Xorg.0.log doesnt provide any clues (to me, at
> least!). there are no terrible errors or dire warnings that seem related.
> (find attached)
> 
> and, as best as i can tell, my /etc/X11/xorg.conf seems just fine.
> (also find attached)
> 
> what else would be useful to tell...
> i have an Intel 2.4Ghz on a Gigabyte GT motherboard, with 1GB ram.
> the card is an nVidia GeForce4Ti with 128MB
> 
> also, i have removed agp from my kernel.
> and i have also attached sysctl -a hw.nvidia output
> 
> any help would be greatly appreciated!
> 
> much ta,


A few things:

> (WW) `fonts.dir' not found (or not valid) in "/usr/X11R6/lib/X11/fonts/Speedo/".
> 	Entry deleted from font path.
> 	(Run 'mkfontdir' on "/usr/X11R6/lib/X11/fonts/Speedo/").
> (WW) `fonts.dir' not found (or not valid) in "/usr/X11R6/lib/X11/fonts/CID/".
> 	Entry deleted from font path.
> 	(Run 'mkfontdir' on "/usr/X11R6/lib/X11/fonts/CID/").

These are worth fixing, though minor - the entries tell you how.

> (--) NVIDIA(0): VideoRAM: 131072 kBytes
> (II) NVIDIA(0): Connected display device(s): CRT-1, DFP-0
> (WW) NVIDIA(0): Multiple displays connected, but only one display allowed;
> (WW) NVIDIA(0):      using first display
> (--) NVIDIA(0): Display device CRT-1: maximum pixel clock at  8 bpp: 350 MHz
> (--) NVIDIA(0): Display device CRT-1: maximum pixel clock at 16 bpp: 350 MHz
> (--) NVIDIA(0): Display device CRT-1: maximum pixel clock at 32 bpp: 350 MHz

You have 2 monitors?  If so, I recommend the TwinView config.  It's
tricky, but works well.

> Section "Device"
>         ### Available Driver options are:-
>         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
>         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
>         ### [arg]: arg optional
>         #Option     "SWcursor"           	# [<bool>]
>         #Option     "HWcursor"           	# [<bool>]
>         #Option     "NoAccel"            	# [<bool>]
>         #Option     "ShadowFB"           	# [<bool>]
>         #Option     "UseFBDev"           	# [<bool>]
>         #Option     "Rotate"             	# [<str>]
>         #Option     "VideoKey"           	# <i>
>         #Option     "FlatPanel"          	# [<bool>]
>         #Option     "FPDither"           	# [<bool>]
>         #Option     "CrtcNumber"         	# <i>
> 
> #	Option	    "NoLogo"		"True"
> #	Option	    "RenderAccel"	"True"
You might want to uncomment RenderAccel - try it both ways once you get
your color depth right.

> #	Option	    "HWCursor"		"1"
> #	Option	    "CursorShadow"	"True"	
> 
> 	Option      "NvAGP"		"1"
> 	Identifier  "Card0"
> 	Driver      "nvidia"
> 	VendorName  "nVidia Corporation"
> 	BoardName   "NV28 [GeForce4 Ti 4200 AGP 8x]"
> 	BusID       "PCI:1:0:0"
> EndSection
> 
> Section "Screen"
> 	Identifier "Screen0"
> 	Device     "Card0"
> 	Monitor    "Monitor0"
> 	SubSection "Display"
> 		Viewport   0 0
> 		Depth     24
> 		Modes     "1600x1200"
> 	EndSubSection
> EndSection

As mentioned by the other posters, put the default depth speck in your
screen section.

> hw.nvidia.agp.card.rates: 8x 4x 
> hw.nvidia.agp.card.fw: supported
> hw.nvidia.agp.card.sba: supported
> hw.nvidia.agp.card.registers: 0x1f000e1b:0x1f004302
> hw.nvidia.agp.status.status: enabled
> hw.nvidia.agp.status.driver: nvidia
> hw.nvidia.agp.status.rate: 8x
> hw.nvidia.agp.status.fw: disabled
> hw.nvidia.agp.status.sba: enabled
> 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 Ti 4200 with AGP8X
> hw.nvidia.cards.0.irq: 16
> hw.nvidia.cards.0.vbios: 04.28.20.05.00
> hw.nvidia.cards.0.type: AGP


Looks like you've got the NVidia AGP working, can I ask whether you
compiled it with Linux support?  Did you get it from the ports or as a
package from NVidia?

And I assume you have Xorg installed from the ports?

The AGP feature has been an issue for several people, and it's been
tricky nailing down the tipping point that will make it work for some
and not others.  I've got it working (very nicely with two monitors) and
it's bugging me that another person with the same card and FreeBSD
version can't get it working.

Lou
-- 
Louis LeBlanc               FreeBSD@keyslapper.org
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org                     ԿԬ

We have a equal opportunity Calculus class -- it's fully integrated.



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