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 29th September 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default direct rendering with nvidia card

Good morning, I just installed my new desktop pc. Bought a new graphics card along as my old hardware was not compatible. I chose a plain cheap MSI NX8400GS card.

So installed a fresh PCBSD 7, which works just fine, except for the graphics output. When I move a window around at the desktop, it seems to "drag" a lot after the mouse cursor, very bumpy indeed. glxgears works but with an average of 80fpm. this is the ouput of glxinfo:

Code:
name of display: :0.0                                                
display: :0  screen: 0                                               
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI                                                      
server glx version string: 1.2                                                     
server glx extensions:                                                             
...
And here comes my xorg.conf:
Code:
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/" 
EndSection                                             

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

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"      
        Option "XkbLayout" "de"
EndSection                     

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

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model" 
EndSection                           

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     "FPScale"                   # [<bool>]
        #Option     "FPTweak"                   # <i>
        #Option     "DualHead"                  # [<bool>]
        Identifier  "Card0"
        Driver      "nv"
        VendorName  "nVidia Corporation"
        BoardName   "Unknown Board"
        BusID       "PCI:6:0:0"
        Option "AddARGBGLXVisuals" "True"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        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
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "DRI"
        Mode    0666
    EndSection
If somebody knows why I can't use direct rendering, I'd honestly appreciate it
Reply With Quote
  #2   (View Single Post)  
Old 29th September 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

You are using the "nv" driver and software DRI. What you have seen is about as well as it does. If you want it in hardware, use the "nvidia" driver.
Reply With Quote
  #3   (View Single Post)  
Old 29th September 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

To elaborate, there is no open source 3D drivers for NVidia, they are an uncooperative company.. no documentation for others to develop drivers either.

@DrJ, the opposite of direct rendering is "indirect" rendering... all 3D (i.e OpenGL) is unaccelerated.

I recommend using ATI/AMD cards, they have documentation available.. but don't get the newest one out there.. takes time to write drivers.

Another option is getting the proprietary blob driver from NVidia, but this is not recommended.. go get a refund.
Reply With Quote
  #4   (View Single Post)  
Old 29th September 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

I don't really know what you nit-pick at everything that is written here. Even if the rendering is indirect, you still access it through the DRI interface. The nvidia driver is fine as long as you run the 32-bit version of FreeBSD and use less than 3GB memory. I've used it for years with no issues at all.
Reply With Quote
  #5   (View Single Post)  
Old 29th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 337
Thanked 32 Times in 30 Posts
Default

Well, not entirely uncooperative. At least they have specific drivers for FreeBSD.

http://www.nvidia.com/Download/index.aspx?lang=en-us
http://www.nvidia.com/object/unix.html

Those work fine for my Quadro laptop card, Twin Screen and all.

Last edited by DutchDaemon; 29th September 2008 at 03:26 PM.
Reply With Quote
  #6   (View Single Post)  
Old 29th September 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

@DutchDaemon, Binary blob drivers are not being cooperative at all, perhaps in the freedom sacrificing FreeBSD community..

@DrJ, no, the DRI module isn't even loaded... DRI/DRM are components of 3D acceleration, drivers do not make use of them if no support is available.. and AFAIK, the blob from NVidia doesn't use that infrastructure, it replaces the distributed Mesa OpenGL libraries with it's own special variants. (And loads a kernel module..).
Reply With Quote
  #7   (View Single Post)  
Old 29th September 2008
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 381
Thanked 13 Times in 13 Posts
Default

It's not very free to not use something because Theo said it is evil and you can't use it...
__________________
"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
  #8   (View Single Post)  
Old 29th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 337
Thanked 32 Times in 30 Posts
Default

Popcorn anyone?
Reply With Quote
  #9   (View Single Post)  
Old 29th September 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
To elaborate, there is no open source 3D drivers for NVidia, they are an uncooperative company..
Actually, there are open source 3D drivers... nouveau... At one point, it even worked under FreeBSD, but I haven't tried it since shortly after the project started, so I can't say if it's still possible to use them in FreeBSD.

Otherwise, your dead on. nVidia is very uncooperative, and deserves all the scorn we can heap upon them :-)

Adam
Reply With Quote
Old 29th September 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default

Excuse me folks, but before I bring the root beer, may I ask a little on-topic question?

I use PCBSD because I am fed with configuring the genuine FreeBSD as a desktop machine. Put in DVD, press on, install, happiness, rejoice.

So what do you recommend? Is there a plain simple, don't care about philosophy, solution? Or should I just return the card to the store and get an ATI chipset?
Reply With Quote
Old 29th September 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

If you don't care about philosophy, and you're running the x86 version with less than 3GB of RAM, just install the nvidia drivers.

Adam
Reply With Quote
Old 30th September 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Nvidia needs to be beaten about the head with a cluebat, yes, but I use the nvidia blobs. They seem to have average stability.

That said, any new purchases are going to be of ATI equipment, until we have documentation and vendor-supported open-source Nvidia drivers. Then it will be the ones who get nearest to 0-day Open-source support for new products.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 1st October 2008
tano tano is offline
Port Guard
 
Join Date: Jul 2008
Posts: 16
Thanked 1 Time in 1 Post
Default

When you start PCBSD 7, choose option 6 (graphical configuration).

Once you are in, choose NVIDIA 177.70 (latest than latest available in ports!)

Presto!

Once logged in, you can do

kdesu nvidia-settings

and tweak at will.
Reply With Quote
Old 2nd October 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default

That failed to start? Hmmmm

Anyway, the drivers seem to work fine, so that's enough for me
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
HEADS UP: xorg 7.4, nvidia, and KDE 4.x BSDKaffee FreeBSD Ports and Packages 3 6th February 2009 10:09 AM
Is nVidia driver stable? rex FreeBSD General 14 31st October 2008 06:40 PM
NetBSD amd64 NVidia Quadro NVS 285 video card morten42 NetBSD General 5 30th July 2008 03:49 PM
NVidia 8600 maxrussell FreeBSD Installation and Upgrading 8 28th May 2008 07:57 AM
problems with nvidia-driver-169.12 greencross FreeBSD General 8 21st May 2008 01:41 PM


All times are GMT. The time now is 08:45 AM.


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