Explorar el Código

Write nvidia-pm modprobe config

Sergey Ilinykh hace 5 años
padre
commit
a12a70b115
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      sys-apps/nvidia-systemd-pm/nvidia-systemd-pm-440.82.ebuild

+ 5 - 2
sys-apps/nvidia-systemd-pm/nvidia-systemd-pm-440.82.ebuild

@@ -31,12 +31,15 @@ src_install() {
 	doexe nvidia
 	exeinto /usr/bin
 	doexe nvidia-sleep.sh
+	echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1" > nvidia-pm.conf
+	insinto /etc/modprobe.d/
+	doins nvidia-pm.conf
 
 	ewarn "To enable nvidia sleep services execute next commands:"
 	ewarn "    systemctl enable nvidia-suspend.service"
 	ewarn "    systemctl enable nvidia-hibernate.service"
 	ewarn "    systemctl enable nvidia-resume.service"
-	ewarn "Also it's neccesary to add NVreg_PreserveVideoMemoryAllocations=1"
-	ewarn "to options line in /etc/modprobe.d/nvidia.conf and then reboot"
+	ewarn "Note nvidia kernel module reload (or reboot) is required"
+	ewarn "to accept new driver options."
 	ewarn "More details at /usr/share/doc/nvidia-drivers-${PV}/html/powermanagement.html"
 }