22c0e
![]() |
|
|
|
|
|||||||
| Howtos & FAQs (Moderated) Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. All new topics are automatically moderated. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
FreeBSD's Ports collection contains the official NVIDIA binary drivers for hardware OpenGL rendering in X, using the GLX extensions.The x11/nvidia-driver points to NVIDIA's latest stable driver set.
If you are using a legacy card check NVIDIA's site to see which driver set supports your card and browse the Ports tree for the suitable driver version and install that instead. Do notice that there aren't any 64bit NVIDIA drivers for FreeBSD. Bellow are the steps needed to install NVIDIA drivers on i386 FreeBSD: Code:
% su # portsnap fetch update # cd /usr/ports/x11/nvidia-drivers # make config # make install clean # echo 'nvidia_load="YES"' >> /boot/loader.conf # echo 'linux_enable="YES"' >> /etc/rc.conf # echo 'hint.agp.0.disabled="1"' >> /boot/device.hints Now let's proceed by editing /etc/X11/xorg.conf to have it use the NVIDIA driver and add some options to increase performance. Edit /etc/X11/xorg.conf and change the driver value from "nv" to "nvidia": Code:
Driver "nvidia" Code:
# echo "hw.nvidia.registry.EnableAGPSBA=1" >> /etc/sysctl.conf # echo "hw.nvidia.registry.EnableAGPFW=1" >> /etc/sysctl.conf Code:
# reboot Code:
x11/nvidia-settings x11/nvidia-xconfig Code:
# echo 'machdep.disable_mtrrs="1"' >> /boot/loader.conf http://www.freebsd.org/doc/en/books/handbook/x11.html /usr/local/share/doc/NVDIA_GLX-1.0/ Last edited by tangram; July 6th, 2009 at 09:21. Reason: Fixed loader.conf. |
| The Following User Says Thank You to tangram For This Useful Post: | ||
douglasfim (February 5th, 2010) | ||
|
#2
|
||||
|
||||
|
If you don't use any linux programs you can compile the driver without linux support. Then you also don't need to add the linuxilator.
|
|
#3
|
||||
|
||||
|
Yup.
The port's default option is off to LINUX. However gamers running stuff like Enemy Territory, RTCW and UT will appreciate the option and should enable it. Last edited by tangram; March 26th, 2009 at 15:14. Reason: Fixed typo. |
|
#4
|
||||
|
||||
|
Absolutely.. Also the linux-flashplugin needs it (which is currently the only reason why I have linux enabled).
|
|
#5
|
||||
|
||||
|
Don't forget these very helpful ports:
Code:
x11/nvidia-settings Display Control Panel for X NVidia driver x11/nvidia-xconfig Tool to manipulate X configuration files for the NVidia driver
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Administrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
well, using NVIDIA I always got "agp detected, aborting setup!"
........... Unfortunately, using the guide above (I think), a blank screen, sometimes with a cursor. one cntl-alt-del and other numerous keys-- to reboot and copy the old xorg.conf back and comment device.hints, another cntl-alt-del to reboot after the latter caused the blank screen to recur. Now back the way it was. (3 ideas of what is wrong here but I can only guess) ........... 4 permutations of ways to install nvidia-drivers and 100 permutations of ways to tweak xorg.conf, maybe in a decade there will be a way to set it up in 20 minutes or so. Happy as long as I have the browser, cursor, and window manager running... |
|
#8
|
||||
|
||||
|
You can try removing device agp from your kernel config or add hint.agp.0.disabled="1" to /boot/device.hints.
|
|
#9
|
|||
|
|||
|
Quote:
than my post, which when all are implemented, crash X on this setup. Even if it is not nvidia-driver, the xorg.conf, or the .hints, (guessing!) it may be an unknown overclock of the video card, or CRT rather than LCD, or... |
|
#10
|
||||
|
||||
|
To be honest, I can't make heads or tails of your posts.
|
|
#11
|
||||
|
||||
|
Quote:
You need to be more verbose on what is the problem, the steps you've taken so far and post helpful stuff like error messages, logs and configuration files. |
|
#12
|
|||
|
|||
|
Sorry. If you reread my post earlier, you can read
that I *maybe* could solve it, but am happy the way things are... lack of time as always. |
|
#13
|
|||||
|
|||||
|
Copy of my post at DF:
I checked what your configuration tweaks do, and they don't seem to be very useful: Quote:
Code:
Option "RenderAccel" "boolean"
Enable or disable hardware acceleration of the RENDER extension. Default:
hardware acceleration of the RENDER extension is enabled.
Quote:
Code:
Option "NoRenderExtension" "boolean"
Disable the RENDER extension. Other than recompiling it, the X server does
not seem to have another way of disabling this. Fortunately, we can
control this from the driver so we export this option. This is useful in
depth 8 where RENDER would normally steal most of the default colormap.
Default: RENDER is offered when possible.
Quote:
Code:
Option "NoFlip" "boolean"
Disable OpenGL flipping; see Chapter 17 for a description. Default: OpenGL
will swap by flipping when possible.
[...]
o Flipping: When OpenGL flipping is enabled, OpenGL can perform buffer
swaps by changing which buffer the DAC scans out rather than copying the
back buffer contents to the front buffer; this is generally a much higher
performance mechanism and allows tearless swapping during the vertical
retrace (when __GL_SYNC_TO_VBLANK is set). The conditions under which
OpenGL can flip are slightly complicated, but in general: on GeForce or
newer hardware, OpenGL can flip when a single full screen unobscured
OpenGL application is running, and __GL_SYNC_TO_VBLANK is enabled.
Additionally, OpenGL can flip on Quadro hardware even when an OpenGL
window is partially obscured or not full screen or __GL_SYNC_TO_VBLANK is
not enabled.
Quote:
Code:
Option "UseEDID" "boolean"
By default, the NVIDIA X driver makes use of a display device's EDID, when
available, during construction of its mode pool. The EDID is used as a
source for possible modes, for valid frequency ranges, and for collecting
data on the physical dimensions of the display device for computing the
DPI (see Appendix I). However, if you wish to disable the driver's use of
the EDID, you can set this option to False:
Option "UseEDID" "FALSE"
Note that, rather than globally disable all uses of the EDID, you can
individually disable each particular use of the EDID; e.g.,
Option "UseEDIDFreqs" "FALSE"
Option "UseEDIDDpi" "FALSE"
Option "ModeValidation" "NoEdidModes"
Default: True (use EDID).
Quote:
Code:
When built with support for the FreeBSD AGP driver, 'nvidia.ko' will fall back to using NvAGP when it doesn't detect 'agp.ko' (this will be the case when 'agp.ko' does not support your AGP chipset or was explicitly disabled with device hints).
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
#14
|
|||
|
|||
|
If anyone is having problems with a blank screen and computer hanging on startup, check this thread.
http://forums.freebsd.org/showthread.php?t=3065 |
|
#15
|
||||
|
||||
|
Quote:
|
|
#16
|
||||
|
||||
|
@ Carpetsmoker, thanks for the input.
Yeah those are default settings. I just figured they were important enough to have on xorg.conf as remainder not to change them. |
|
#17
|
||||
|
||||
|
Quote:
Code:
# echo 'machdep.disable_mtrrs=1' >> /etc/boot/loader.conf Didn't work for me until I removed them. Just in case anyone else is still getting those mtrr errors
__________________
"Do or Do Not.... there is no try." |
|
#18
|
||||
|
||||
|
If you want your loader.conf to contain
Code:
machdep.disable_mtrrx="1" # echo 'machdep.disable_mtrrs="1"' >> /boot/loader.conf.If you # echo 'machdep.disable_mtrrs=1' >> /boot/loader.conf then your /boot/loader.conf will contain:Code:
machdep.disable_mtrrs=1 Last edited by tangram; July 6th, 2009 at 09:20. Reason: tags... |
|
#19
|
|||
|
|||
|
Shouldn't it be /boot/loader.conf?
|
|
#20
|
||||
|
||||
|
Yup. Fixed it.
|
|
#21
|
||||
|
||||
|
For nvidia-driver users who want to play linux-games with a linux_base > fc4, the solution is in this post.
The solution should be temporary as nvidia is aware of the problem and it should be fixed in future releases of the driver. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Minimal install of Xorg - howto? | cpcnw | X.Org | 26 | April 22nd, 2012 06:23 |
| KDE4.1.4 Install/Configure Question | Trebuchet | KDE | 16 | February 4th, 2009 02:21 |
| How to configure pf for three ISPs? | wellwet | Firewalls | 2 | January 5th, 2009 14:17 |
| video drivers | hirohitosan | Installing & Upgrading | 2 | December 9th, 2008 15:16 |
| HOWTO: Install and setup MLDonkey on FreeBSD | tangram | Howtos & FAQs (Moderated) | 0 | November 17th, 2008 11:30 |