Skip to content

Commit b2b656a

Browse files
committed
overlay x11-drivers/old-nvidia-drivers: New package
Gentoo dropped the 550 branch of the drivers, so we fail to build the nvidia-drivers-550 sysexts. For now we temporarily bring it back here while we figure out our policy for deprecating and dropping sysexts.
1 parent 28eb017 commit b2b656a

File tree

11 files changed

+714
-0
lines changed

11 files changed

+714
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
DIST NVIDIA-Linux-aarch64-550.163.01.run 236409124 BLAKE2B 21c79346f6b739f44d7ed2d4955129613f51e1329ff15948ef50a9a06b82975ad890d6142e5dfb163e7b0da19bf5c26029cf507d120037f8a76abc177a286403 SHA512 0ef4ab4aae308ec0cfb5458cef34a1503ac1a85f0e1d0c9f061d8e28f939b15784e3862d96d83e93123d9eb56807a6804318ce230ee68917fb75e363011f8304
2+
DIST NVIDIA-Linux-x86_64-550.163.01.run 307143336 BLAKE2B 256106bcd3bace402289e60aca4cd3b447d0fd8ec3dabd50e2bb303c5e866f8da5c28f9b578d95775bf69158f100d68a91d20d9a91426285a8e799817f21db6b SHA512 676b1de35d21e80091528a49080c114e0870ea90b3f3721265ae8071abbc2183c851e6f11ba96a332c743fedfaf4ec9a014ad6ceed586fdbb03d94d33405e356
3+
DIST NVIDIA-kernel-module-source-550.163.01.tar.xz 13552400 BLAKE2B e1fd753127d10097c5f1d3c90d95c7eb0934c0d5e1df0a371aed2a0d7669960b67c46eed20eec3c42ca41c0f34bf6d7d3d2a77a94308c9f86d4f5d831da19363 SHA512 c9f4ce2890db3fdc66dd080da4d6802a8bc3b18feba96be5d33641b02cca637b1bcd2a3748f36f93a32f26ba57eb352156314f139688b0d3a102efdfde6c32ba
4+
DIST nvidia-installer-550.163.01.tar.bz2 155861 BLAKE2B 662064b3ceb4aadebde419057d85c6b4e28b91944bd5bab241bcba9b3c9a105e507afc7651b17fff01e1cccb78d66fdc6789597ce059f882a6f322b08f28e832 SHA512 f8df7a0eccdecb7d4d4f47d96050cdbefff91289b29550b061358614845648451d4b161d9bdbfbf5a9a87ce650d272cb3b795e6d2ed4d0274844a56db097bd15
5+
DIST nvidia-modprobe-550.163.01.tar.bz2 41448 BLAKE2B 23e567d612e669ec6ae9f389651c9e1cebe7ba59ee95bb5961e5071952697860df77f02026040e29135338eb7cf96bba0015b3d94548297235fb5214f35bec48 SHA512 0f5b59468a6e5e95dcdef1d938ea78f4ce09a0c9784e3c70d83f1c3b1bd52e8055b6b332147316445c3be714abab3629320d6117878d50aa7a2d7d2d9b9b6485
6+
DIST nvidia-persistenced-550.163.01.tar.bz2 61450 BLAKE2B 1a11cb89981b88f8d14558227d9493f1f8a81ccb5502002c436e9311a38c9c8fe0402c65eac1517a2893985eec07699b2e7bc7a81aa14dc0d52198ac85a2cd1b SHA512 f17dbcafa917b5b450f7665f98fd24f06ad99e6bcd1fcf42ef95aa9337b55561b7b16eaad8fa408110d08ee7e6d812444792cccbb9c92865099891832da779ce
7+
DIST nvidia-settings-550.163.01.tar.bz2 1099317 BLAKE2B 25419c1796deeea238b3e44fd8d648a8627272565be40cb0745132cef1c16e0c422242a1e6369745d577e674a68bf9dfc3c009e281a84ba58db5429d97ac9cff SHA512 5306ab05f284ba06852d7c96ff62ded7b8b615d3a002009cd5d781fdad716db37f53d1c8a43337ada60d524b4f7d183d98ad2673f40a5ca1ca4c5112bb913e74
8+
DIST nvidia-xconfig-550.163.01.tar.bz2 111149 BLAKE2B d19ef0427e3432798e674dc66447090e8fb8fcb549ebe27aaee19aa38294cf178e175a067b2da5313342c93ea2aebef35861d05cc4cc0ee2c3eae955b3ddbbb3 SHA512 35f95d85928c82bc5de8e462ca5e90a6d8fe03e5b5367b9cdaadddc1e956f0d26b6dc42e716ae7c88512afdfb98cc841fe9b22846f6d6acc578c5dba4d0a16e1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
/usr/bin/nvidia-settings --load-config-only
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# NVIDIA drivers options
2+
# See /usr/share/doc/nvidia-drivers-*/README.txt* for more information.
3+
4+
# nvidia-drivers and nouveau / nova cannot be used at same time.
5+
# Comment out the following lines if you wish to allow either.
6+
blacklist nouveau
7+
blacklist nova_core
8+
9+
# Kernel Mode Setting (notably needed for fbdev and wayland).
10+
# Enabling may possibly cause issues with SLI and Reverse PRIME.
11+
#options nvidia-drm modeset=1
12+
13+
# Enable experimental framebuffer console support (requires modeset=1 above).
14+
# Replaces efifb, simpledrm, or similar once loaded (emphasis on being
15+
# experimental, "may" cause issues X mode switching, sleep, or more).
16+
#options nvidia-drm fbdev=1
17+
18+
# Suspend options. Note that Allocations=1 requires suspend hooks currently
19+
# only used when either systemd or elogind is used to suspend. If using
20+
# neither or have issues, try Allocations=0 (revert if it does not help
21+
# as =0 is not recommended).
22+
options nvidia \
23+
NVreg_PreserveVideoMemoryAllocations=1 \
24+
NVreg_TemporaryFilePath=/var/tmp
25+
26+
# !!! Security Warning !!!
27+
# Do not change the DeviceFile options unless you know what you are doing.
28+
# Only add trusted users to the 'video' group, these users may be able to
29+
# crash, compromise, or irreparably damage the machine.
30+
options nvidia \
31+
NVreg_DeviceFileGID=@VIDEOGID@ \
32+
NVreg_DeviceFileMode=432 \
33+
NVreg_DeviceFileUID=0 \
34+
NVreg_ModifyDeviceFiles=1
35+
36+
# Should be no need to touch anything below.
37+
alias char-major-195 nvidia
38+
alias /dev/nvidiactl char-major-195
39+
remove nvidia modprobe -r --ignore-remove nvidia-drm nvidia-modeset nvidia-uvm nvidia
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Create /dev/nvidia-uvm* by respecting nvidia.conf's permissions.
2+
--- a/nvidia-modprobe/modprobe-utils/nvidia-modprobe-utils.c
3+
+++ b/nvidia-modprobe/modprobe-utils/nvidia-modprobe-utils.c
4+
@@ -742,6 +742,6 @@
5+
}
6+
7+
- return mknod_helper(major, base_minor, NV_UVM_DEVICE_NAME, NULL) &&
8+
- mknod_helper(major, base_minor + 1, NV_UVM_TOOLS_DEVICE_NAME, NULL);
9+
+ return mknod_helper(major, base_minor, NV_UVM_DEVICE_NAME, NV_PROC_REGISTRY_PATH) &&
10+
+ mknod_helper(major, base_minor + 1, NV_UVM_TOOLS_DEVICE_NAME, NV_PROC_REGISTRY_PATH);
11+
}
12+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# configuration file for /etc/init.d/nvidia-persistenced
2+
3+
# NVPD_USER: user to run as, needs access to /dev/nvidia* (video group)
4+
NVPD_USER="nvpd"
5+
6+
# ARGS: additional arguments, see nvidia-persistenced(1)
7+
ARGS=""
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/sbin/openrc-run
2+
# SPDX-License-Identifier: MIT
3+
4+
description="Maintain persistent software state in the NVIDIA driver"
5+
command="nvidia-persistenced"
6+
command_args="${NVPD_USER:+--user ${NVPD_USER}} ${ARGS}"
7+
pidfile="/var/run/nvidia-persistenced/nvidia-persistenced.pid"
8+
9+
stop_post() {
10+
rmdir "${pidfile%/*}" 2>/dev/null || true
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/sbin/openrc-run
2+
# SPDX-License-Identifier: MIT
3+
4+
description="Support for NVIDIA Dynamic Boost (only for use with specific laptops)"
5+
command="nvidia-powerd"
6+
command_background=true
7+
pidfile="/var/run/nvidia-powerd.pid"
8+
9+
depend() {
10+
need dbus
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
These __PLACEHOLDER__ are replaced by nvidia-installer which we don't use.
2+
--- a/nvidia-settings/doc/nvidia-settings.desktop
3+
+++ b/nvidia-settings/doc/nvidia-settings.desktop
4+
@@ -5,5 +5,5 @@
5+
Comment=Configure NVIDIA X Server Settings
6+
-Exec=__UTILS_PATH__/nvidia-settings
7+
+Exec=nvidia-settings
8+
Icon=nvidia-settings
9+
-Categories=__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__
10+
+Categories=System;HardwareSettings;
11+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
case ${1-} in
3+
pre) nvidia-sleep.sh suspend;;
4+
# run in background given resume is flaky if elogind did not finish
5+
post) nvidia-sleep.sh resume &;;
6+
*) exit 1;;
7+
esac
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="project">
5+
<email>[email protected]</email>
6+
<name>The Flatcar Container Linux Maintainers</name>
7+
</maintainer>
8+
<use>
9+
<flag name="kernel-open">
10+
Use the open source variant of the drivers (only
11+
works for Turing/Ampere or newer GPUs, aka GTX 1650+
12+
-- recommended with >=560.xx drivers if usable and
13+
is *required* for 50xx Blackwell or newer GPUs)
14+
</flag>
15+
<flag name="persistenced">Install the persistence daemon for keeping devices state when unused (e.g. for headless)</flag>
16+
<flag name="powerd">Install the NVIDIA dynamic boost support daemon (only useful with specific laptops, ignore if unsure)</flag>
17+
<flag name="static-libs">Install the XNVCtrl static library for accessing sensors and other features</flag>
18+
<flag name="tools">Install additional tools such as nvidia-settings</flag>
19+
</use>
20+
<upstream>
21+
<remote-id type="cpe">cpe:/a:nvidia:gpu_driver</remote-id>
22+
<remote-id type="github">NVIDIA/nvidia-installer</remote-id>
23+
<remote-id type="github">NVIDIA/nvidia-modprobe</remote-id>
24+
<remote-id type="github">NVIDIA/nvidia-persistenced</remote-id>
25+
<remote-id type="github">NVIDIA/nvidia-settings</remote-id>
26+
<remote-id type="github">NVIDIA/nvidia-xconfig</remote-id>
27+
<remote-id type="github">NVIDIA/open-gpu-kernel-modules</remote-id>
28+
</upstream>
29+
<slots>
30+
<subslots>
31+
Subslot is primarily used to identify branches, at most
32+
rebuilding reverse dependencies on bumps would only be
33+
for the static library (not essential to) given other
34+
headers are provided by nvidia-cuda-toolkit instead.
35+
</subslots>
36+
</slots>
37+
</pkgmetadata>

0 commit comments

Comments
 (0)