commit: 0f86a0d31b0d811571231fbb283e861992b1eb24 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Thu Jan 30 20:43:23 2025 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Thu Jan 30 20:59:12 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f86a0d3
x11-drivers/nvidia-drivers: override the fbdev=1 default Previous use of fbdev=1 had issues ranging from problems switching between X/wayland and the console, graphical corruption, failing to resume from sleep, and also straight up failure like bug #949097. Some of these issues may be resolved in 570.x, but real status is unknown, and still getting new bug reports about it. This may work properly for some configurations (probably simpledrm + wayland, aka Fedora's case where fbdev=1 is needed), but still seem too volatile to be a default on a wide variety of configurations like with Gentoo. Already had a postinst elog out of worry, but having potentially several users deal with this manually is unwanted. Will likely revisit after issues been ironed out as it is needed if we want to get rid of deprecated efifb in favour of simpledrm on gentoo-kernel's defaults eventually. Closes: https://bugs.gentoo.org/949097 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> x11-drivers/nvidia-drivers/files/nvidia-570.conf | 12 +++++++----- ...s-570.86.16.ebuild => nvidia-drivers-570.86.16-r1.ebuild} | 12 ------------ 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/x11-drivers/nvidia-drivers/files/nvidia-570.conf b/x11-drivers/nvidia-drivers/files/nvidia-570.conf index 4d5f4bfb396c..7ef30c1025d0 100644 --- a/x11-drivers/nvidia-drivers/files/nvidia-570.conf +++ b/x11-drivers/nvidia-drivers/files/nvidia-570.conf @@ -9,11 +9,13 @@ blacklist nouveau # Enabling may possibly cause issues with SLI and Reverse PRIME. #options nvidia-drm modeset=1 -# If modeset=1 ^, NVIDIA will by default handle the console/tty -# display and override DRM devices such as simpledrm. *If* have -# issues switching between X/wayland and the console or resuming -# from sleep, *try* uncommenting this (revert if it did not help). -#options nvidia-drm fbdev=0 +# If modeset=1 ^, NVIDIA will handle the console/tty display and +# allow overriding DRM devices such as simpledrm. This is a default +# since 570.x drivers but has been known to cause a variety of +# problems. Given efifb is more typically used on Gentoo at the moment, +# it is not *required* here and is safer to be disabled for now. +# Comment out the line if you need it. https://bugs.gentoo.org/949097 +options nvidia-drm fbdev=0 # Disable use of the GSP firmware which has newly been enabled by default # for GPUs that support it (Turing/Ampere+ GPUs, aka GTX 1650+). Not diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild similarity index 97% rename from x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16.ebuild rename to x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild index 583064ffbb45..068810f548aa 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild @@ -591,16 +591,4 @@ pkg_postinst() { elog "enables the use of the GSP firmware by default. *If* experience regressions," elog "please see '${EROOT}/etc/modprobe.d/nvidia.conf' to optionally disable." fi - - # not wayland-specific, but modeset=1 (needed by fbdev=1) is only - # a default with USE=wayland (likely to be noise for others) - if use wayland && [[ ${REPLACING_VERSIONS##* } ]] && - ver_test ${REPLACING_VERSIONS##* } -lt 570 - then - elog - elog "This version of ${PN} enables 'fbdev=1' by default, this should" - elog "not be a concern for most users but *if* experience regressions such as" - elog "issues switching between X/wayland and the tty console or resuming from" - elog "sleep, see '${EROOT}/etc/modprobe.d/nvidia.conf' to try disabling it." - fi }
