diff --git a/nvidia-install.sh b/nvidia-install.sh index 0530836..3b1e6c2 100755 --- a/nvidia-install.sh +++ b/nvidia-install.sh @@ -60,7 +60,13 @@ semodule --verbose --install /usr/share/selinux/packages/nvidia-container.pp # Universal Blue specific Initramfs fixes echo "options nvidia NVreg_TemporaryFilePath=/var/tmp" >> /usr/lib/modprobe.d/nvidia-atomic.conf cp /etc/modprobe.d/nvidia-modeset.conf /usr/lib/modprobe.d/nvidia-modeset.conf +# we must force driver load to fix black screen on boot for nvidia desktops sed -i 's@omit_drivers@force_drivers@g' /usr/lib/dracut/dracut.conf.d/99-nvidia.conf +# as we need forced load, also mustpre-load intel/amd iGPU else chromium web browsers fail to use hardware acceleration +sed -i 's@ nvidia @ i915 amdgpu nvidia @g' /usr/lib/dracut/dracut.conf.d/99-nvidia.conf + +# delete forced power managemant to instead allow driver default (fixes ampere+ optimus D3cold state) +sed '/^.*NVreg_DynamicPowerManagement.*/d' /usr/lib/modprobe.d/nvidia.conf if [[ "${IMAGE_NAME}" == "sericea" ]]; then mv /etc/sway/environment{,.orig}