- nvidia-driver-304 NVidia graphics card binary drivers for hardware OpenGL rendering
- 304.137_9 x11 =3 304.137_9Version of this port present on the latest quarterly branch. NOTE: Slave port - quarterly revision is most likely wrong.
- Maintainer: danfe@FreeBSD.org
- Port Added: 2013-02-16 14:09:33
- Last Update: 2021-06-22 18:53:08
- Commit Hash: da3162c
- People watching this port, also watch:: ca_root_nss, lsof, pcre
- Also Listed In: kld
- License: NVIDIA
- These are the official NVidia binary drivers for hardware OpenGL rendering
in X11, using the GLX extensions.
- SVNWeb : git : Homepage
- pkg-plist: as obtained via:
- Dependency lines:
- For RUN/BUILD depends:
- For LIB depends:
- Conflicts Matches:
There are no Conflicts Matches for this port. This is usually an error.
- To install the port:
- cd /usr/ports/x11/nvidia-driver-304/ && make install clean
- To add the package, run one of these commands:
- pkg install x11/nvidia-driver-304
- pkg install nvidia-driver-304
- PKGNAME: nvidia-driver-304
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: i386 amd64
- TIMESTAMP = 1628632441
SHA256 (NVIDIA-FreeBSD-x86_64-470.63.01.tar.xz) = cb0c223577738eb9e09108af9cd728d7453be8e544b0bf96754e3259ee7c4438
SIZE (NVIDIA-FreeBSD-x86_64-470.63.01.tar.xz) = 98994888
- Packages (timestamps in pop-ups are UTC):
- Master port: x11/nvidia-driver
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
- x11.pc : x11/libX11
- xorg-server.pc : x11-servers/xorg-server
- xext.pc : x11/libXext
- Runtime dependencies:
- x11.pc : x11/libX11
- xorg-server.pc : x11-servers/xorg-server
- xext.pc : x11/libXext
- There are no ports dependent upon this port
- Configuration Options:
- ===> The following configuration options are available for nvidia-driver-304-304.137_9:
ACPI_PM=off: ACPI Power Management support
DOCS=on: Build and/or install documentation
FREEBSD_AGP=off: Use FreeBSD AGP GART driver
LINUX=on: Linux compatibility support
WBINVD=off: Flush CPU caches directly with WBINVD
===> Use 'make config' to modify these settings
- Options name:
- kmod uidfix xorg
- For install:
- To use these drivers, make sure that you have loaded the NVidia kernel
module, by running
# kldload nvidia (or nvidia-modeset, see below)
on the command line, or by putting ``nvidia'' (or ``nvidia-modeset'',
see below again) on ``kld_list'' variable in /etc/rc.conf, either manually
or by running
# sysrc kld_list+=nvidia (or nvidia-modeset, see below)
If you build this port with FreeBSD AGP GART driver, make sure you have
agp.ko kernel module installed and loaded, since nvidia.ko will depend
on it, or have your kernel compiled with "device agp". Otherwise, the
NVidia kernel module will not load. Also, please set correct value for
``Option "NvAGP"'' in ``Device'' section of your X11 configuration file.
When building with Linux compatibility support, make sure that linux.ko
module is available as well (or have it compiled in kernel). It can be
loaded via /boot/loader.conf, or later in the boot process if you add
to your /etc/rc.conf.
If X.org cannot start and reports
(EE) NVIDIA(0): Failed to obtain a shared memory identifier.
in /var/log/Xorg.0.log while actually you have ``options SYSVSHM''
enabled in kernel, the sysctl ``kern.ipc.shmall'' should be increased.
Starting with version 358.09, some important functionality of the driver
has been broken out into a separate kernel module, nvidia-modeset.ko.
Users that experience hangs when starting X11 server, or observe
(II) NVIDIA(0): Validated MetaModes:
(II) NVIDIA(0): "NULL"
in /var/log/Xorg.0.log should replace ``nvidia'' with ``nvidia-modeset''
in their /boot/loader.conf or /etc/rc.conf configuration files, depending
on how they prefer to load NVidia driver kernel module.
See /usr/local/share/doc/NVIDIA_GLX-1.0/README for more information.
- Master Sites:
|Commit History - (may be incomplete: see SVNWeb link above for full details)
|This is a slave port. You may also want to view the commits to the master port: x11/nvidia-driver|
|22 Jun 2021 18:53:08
|Kevin Bowling (kbowling)
graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.
Reviewed by: manu, bapt
Approved by: x11
Differential Revision: https://reviews.freebsd.org/D30824
|06 Apr 2021 14:31:07
|Mathieu Arnold (mat)
Remove # $FreeBSD$ from Makefiles.
|21 Sep 2020 09:05:04
Fix nvidia-driver* after r548950
Now that mesa include glesv1 lib, remove the nvidia generic named lib
and add more entries in libmap.conf so the nvidia ones are used.
Reported by: VVD <email@example.com>
|30 Jun 2020 07:42:02
Do not mention loading modules via loader.conf
It is generally discouraged to load graphics kernel modules via
loader.conf(5). According to kevans@, loading Nvidia modules like this is
fragile for UEFI on FreeBSD <= 12.1. It might work, but those modules are
large and the loader's staging area is insufficient to contain kernel,
Nvidia modules, and much of anything else at the same time.
Also, while here, encourage people to use sysrc to modify the contents of
Reviewed by: danfe
Approved by: maintainer (danfe)
Differential Revision: https://reviews.freebsd.org/D25506
|20 Feb 2020 21:15:45
Update xorg x11 servers to 1.20.7
Update xorg x11 servers to 1.20.7. This updates x11-servers/xorg-server,
xephyr, xorg-dmx, xorg-nestserver, xorg-vbserver and xwayland.
Enable the UDEV backend by default, instead of the DEVD backend, for
autoconfiguration of input devices on FreeBSD 12 and later.
FreeBSD 11 lacks the needed support in base and will keep on using the DEVD
Support for the HAL backend is dropped completely, it has been deprecated
for a long time.
Update and improve the DEVD backend.
Add a pkg message about sysctl configuration that might be needed when using
(Only the first 15 lines of the commit message are shown above )
|25 Oct 2019 08:00:21
Move Linux versions of NVidia graphics libraries (OpenGL/GLX/EGL/GLES/GLVND)
to its own ports instead of abusing the driver ports and making maintenance
thereof a nightmare. This is also what most, if not all, GNU/Linux distros
do, allows to properly annotate ports with correct CATETORIES, USES, macros
like NO_BUILD etc., and greatly simplify Makefiles and distinfo files.
|08 Jun 2019 12:13:47
Update CentOS 7 ports to 7.6.1810.
This adds some new ports:
converters/linux-c7-fribidi required by x11-toolkits/linux-c7-pango.
graphics/linux-c7-libglvnd required by graphics/linux-c7-dri.
graphics/linux-c7-wayland required by graphics/linux-c7-dri.
print/linux-c7-freetype unbundled from emulators/linux_base-c7 because it
depends on graphics/linux-c7-png now.
Mesa OpenGL libraries in graphics/linux-c7-dri now support libglvnd (GL
Vendor-Neutral Dispatch library) which allows some applications to use
Mesa while others use Nvidia OpenGL. The x11/nvidia-driver* ports have
been changed so versions above 390.42 now use CentOS libglvnd and no longer
install a bundled copy.
Submitted by: pkubaj (partly)
|18 Jan 2019 17:52:59
Recreate symlinks instead of renaming them, so they point to the right
Submitted by: Tatu Kilappa <firstname.lastname@example.org>
Approved by: maintainer timeout (10 months)
|14 Dec 2018 16:24:02
Install both 32 bit and 64 bit Linux libraries from the official Linux
driver distribution instead of the ones bundled with the FreeBSD driver
which are incomplete and 32 bit only. This makes amd64 Linux OpenGL
programs work on FreeBSD 12.0 and recent 11-STABLE. This does not enable
- Initialise DISTFILES so a file can be added by the LINUX option.
- Set EXTRACT_ONLY because the file added by the LINUX option is a
self-extracting archive handled in post-extract.
- The patches for <355.06 and >=355.06 are identical except for the path.
Keep only one set (listed in SUB_PATCHES) because more patches have been
added. Modify their path in pre-patch. The patches have been renamed
from extra-patch-* to extra-patch-*.in.
- Set OPTIONS_SUB and use option helpers for the LINUX option.
- Define LINUX_ARCH_SUFX like ARCH_SUFX because LINUX_ARCH can be i386 on(Only the first 15 lines of the commit message are shown above )
|11 Sep 2018 18:34:28
Change x11/xorgproto to become a build dep
Change x11/xorgproto to become a build time dependency when added to
USE_XORG. Change the dependency to be on the port, rather than a file the
Bump portrevision on depending ports.
Reviewed by: eadler
Approved by: portmgr (antoine)
Differential Revision: https://reviews.freebsd.org/D16906
|26 Dec 2017 18:55:18
Update nVidia driver ports to their most recent versions, bringing assorted
bugfixes and support for X.Org xserver ABI 23 (xorg-server version 1.19).
|03 Apr 2017 12:08:32
Update nVidia drivers to their most recent versions: 375.39 (long lived
branch); legacy versions: 340.102 and 304.135.
PR: 216574, 217341
|11 Feb 2017 16:43:11
Now that all supported FreeBSD versions support libmap.conf files installed
from ports, remove the symlink dance with libGL/libEGL/libgles and the
* Revert libGL/libEGL/libglesv2 ports to normal.
* Rename the conflicting libraries from the nvidia-driver ports with a
-NVIDIA prefix and install a libmap.conf file to map to these versions.
* Remove the special case from Mk/Scripts/qa.sh for libGL and libEGL.
* Sadly the symlink dance between nvidia-driver and xorg-server for glx.so
need to stay, due to xorg-server opening that file with dlopen(3).
Approved by: portmgr@ (mat@ (prio version))
Differential Revision: https://reviews.freebsd.org/D7848
|13 Jan 2017 12:02:49
Update nvidia driver to 375.26 and legacy drivers to 340.101 and 304.134.
This brings official support for FreeBSD 11 and Xorg server 1.19.
Submitted by: kbowling
Approved by: danfe (maintainer)
|19 Dec 2016 21:13:03
Add build dependency on linux_base so the build process can run tls_test.
This affects which copy of Linux libnvidia-tls gets installed.
Also add a run dependency on Linux Xorg libraries needed by some of the
|05 Nov 2016 12:57:38
Add libEGL to linux-c7-dri, needed by linux-c7-cairo.
|03 Nov 2016 19:46:18
Allow linux-*-dri and nvidia-driver to coexist.
|30 Aug 2016 16:51:21
Fix damage done in r421117: UPDATING entries do not make good `pkg-message'
files, especially when there already is existing `files/pkg-message.in'.
Unfortunately, this now requires port revision bump in all three ports.
Pointy hat to: cem
|02 Jul 2016 06:42:22
Update nVidia legacy driver versions to 304.131 and 340.96, respectively,
to gain advantage of added support for X.Org X server ABI 20 (xorg-server
1.18). They also fixed a bug that could cause texture corruption in some
OpenGL applications when video memory is exhausted by a combination of
simultaneously running graphical and compute workloads.
|24 Sep 2015 22:09:55
- Update x11/nvidia-driver to 346.96.
- Update x11/nvidia-driver-340 to 340.93.
- Update x11/nvidia-driver-304 to 304.128.
Approved by: danfe (maintainer)
|14 Dec 2014 09:51:11
Update NVidia drivers (long lived branch and legacy 304.xx branch) to their
most recent versions that have CVE-2014-8298 vulnerability fixed.
|05 Nov 2014 17:00:30
Update two most recent branches of nVidia drivers to versions 340.46
|10 Sep 2014 20:50:37
Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.
Part II, Bump PORTREVISIONs.
Tested by: antoine (-exp runs)
Approved by: portmgr (implicit)
|23 Oct 2013 03:15:22
Convert deprecated NO_LATEST_LINK to PKGNAMESUFFIX (this makes PKGNAME ugly,
I know; sorry about that, but I did not find a better way).
Reminded by: bapt
|20 Sep 2013 23:43:20
Add NO_STAGE all over the place in preparation for the staging support (cat:
|25 Apr 2013 02:52:29
- Fix stack buffer overflow in nvidia_sysctl_bus_type()
- While here, install nvidia-bug-report.sh per popular demand and assume
that everyone now has sed(1) that supports "addr1,+N" range syntax
- Spell X as X11 in port description
Submitted by: glebius
|08 Apr 2013 13:41:58
Update NVidia drivers vulnerable to GPU driver ARGB cursor buffer overflow
in "NoScanout" mode.
Approved by: portmgr (bapt)
|16 Feb 2013 14:09:18
- Update mainstream driver version to 310.32, the latest to date
- Unbreak the build on recent -CURRENT (after SVN r246085) [*]
- Move 304.xx driver version to yet another legacy port
PR: ports/176146 [*]
Submitted by: bf