diff options
Diffstat (limited to 'x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild')
-rw-r--r-- | x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild index 3e93e2f0a367..6ef95b7be24f 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.46-r20.ebuild @@ -255,9 +255,22 @@ src_install() { local DISABLE_AUTOFORMATTING=yes local DOC_CONTENTS="\ Trusted users should be in the 'video' group to use NVIDIA devices. -You can add yourself by using: gpasswd -a my-user video - -See '${EPREFIX}/etc/modprobe.d/nvidia.conf' for modules options.\ +You can add yourself by using: gpasswd -a my-user video\ +$(usex driver " + +Like all out-of-tree kernel modules, it is necessary to rebuild +${PN} after upgrading or rebuilding the Linux kernel +by for example running \`emerge @module-rebuild\`. Alternatively, +if using a distribution kernel (sys-kernel/gentoo-kernel{,-bin}), +this can be automated by setting USE=dist-kernel globally. + +Loaded kernel modules also must not mismatch with the installed +${PN} version (excluding -r revision), meaning should +ensure \`eselect kernel list\` points to the kernel that will be +booted before building and preferably reboot after upgrading +${PN} (the ebuild will emit a warning if mismatching). + +See '${EPREFIX}/etc/modprobe.d/nvidia.conf' for modules options." '')\ $(use amd64 && usex abi_x86_32 '' " Note that without USE=abi_x86_32 on ${PN}, 32bit applications @@ -441,22 +454,6 @@ pkg_postinst() { elog "Of note, may possibly cause issues with SLI and Reverse PRIME." fi - # Try to show this message only to users that may really need it - # given the workaround is discouraged and usage isn't widespread. - if use X && [[ ${REPLACING_VERSIONS} ]] && - ver_test ${REPLACING_VERSIONS} -lt 460.73.01 && - grep -qr Coolbits "${EROOT}"/etc/X11/{xorg.conf,xorg.conf.d/*.conf} 2>/dev/null; then - elog - elog "Coolbits support with ${PN} has been restricted to require Xorg" - elog "with root privilege by NVIDIA (being in video group is not sufficient)." - elog "e.g. attempting to change fan speed with nvidia-settings would fail." - elog - elog "Depending on your display manager (e.g. sddm starts X as root, gdm doesn't)" - elog "or if using startx, it may be necessary to emerge x11-base/xorg-server with" - elog 'USE="suid -elogind -systemd" if wish to keep using this feature.' - elog "Bug: https://bugs.gentoo.org/784248" - fi - ewarn ewarn "This revision of ${PN} is applying a binary patch to prevent heavy" ewarn "dbus spamming while using OpenGL. If you experience issues, please try to" |