Hello,
I have read part of the https://rpmfusion.org/Howto/NVIDIA guide to know how to install proprietary drivers for my Nvidia card. My laptop comes with a regular Intel Graphics card alongside an Nvidia Geforce GTX 960M card. I am on Fedora 36, Gnome (Wayland). I don't want to mess up my system, so I just want to ask; what is the simplest procedure install drivers for this card on my system?
When these drivers are installed, will I still be able to do regular work with my Intel card and launch specific applications (games) with the Nvidia card? My card supports CUDA and Optimus.
Do I need to disable Secure Boot?
Note: I have already enabled the free and non-free RPM fusion repositores. I know there is a specific rpmfusion Nvidia driver repository, do I need that also?
On Fri, Jun 17, 2022 at 8:00 AM Anil F Duggirala anilduggirala@fastmail.fm wrote:
Hello,
I have read part of the https://rpmfusion.org/Howto/NVIDIA guide to know how to install proprietary drivers for my Nvidia card. My laptop comes with a regular Intel Graphics card alongside an Nvidia Geforce GTX 960M card. I am on Fedora 36, Gnome (Wayland). I don't want to mess up my system, so I just want to ask; what is the simplest procedure install drivers for this card on my system?
When these drivers are installed, will I still be able to do regular work with my Intel card and launch specific applications (games) with the Nvidia card? My card supports CUDA and Optimus.
Do I need to disable Secure Boot?
Note: I have already enabled the free and non-free RPM fusion repositores. I know there is a specific rpmfusion Nvidia driver repository, do I need that also?
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
This should work: http://rpmfusion.org/Howto/NVIDIA
On 6/17/22 06:59, Anil F Duggirala wrote:
Hello,
I have read part of the https://rpmfusion.org/Howto/NVIDIA guide to know how to install proprietary drivers for my Nvidia card. My laptop comes with a regular Intel Graphics card alongside an Nvidia Geforce GTX 960M card. I am on Fedora 36, Gnome (Wayland). I don't want to mess up my system, so I just want to ask; what is the simplest procedure install drivers for this card on my system?
When these drivers are installed, will I still be able to do regular work with my Intel card and launch specific applications (games) with the Nvidia card? My card supports CUDA and Optimus.
Do I need to disable Secure Boot?
Note: I have already enabled the free and non-free RPM fusion repositores. I know there is a specific rpmfusion Nvidia driver repository, do I need that also?
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
akmod-nvidia and xorg-x11-drv-nvidia-cuda should be all you need:
sudo dnf update -y # and reboot if you are not on the latest kernel sudo dnf install akmod-nvidia # rhel/centos users can use kmod-nvidia instead sudo dnf install xorg-x11-drv-nvidia-cuda #optional for cuda/nvdec/nvenc support
Thomas
On Fri, 2022-06-17 at 09:15 -0500, Thomas Cameron wrote:
On 6/17/22 06:59, Anil F Duggirala wrote:
Hello,
I have read part of the https://rpmfusion.org/Howto/NVIDIA%C2%A0guide to know how to install proprietary drivers for my Nvidia card. My laptop comes with a regular Intel Graphics card alongside an Nvidia Geforce GTX 960M card. I am on Fedora 36, Gnome (Wayland). I don't want to mess up my system, so I just want to ask; what is the simplest procedure install drivers for this card on my system?
When these drivers are installed, will I still be able to do regular work with my Intel card and launch specific applications (games) with the Nvidia card? My card supports CUDA and Optimus.
Do I need to disable Secure Boot?
Note: I have already enabled the free and non-free RPM fusion repositores. I know there is a specific rpmfusion Nvidia driver repository, do I need that also?
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
akmod-nvidia and xorg-x11-drv-nvidia-cuda should be all you need:
sudo dnf update -y # and reboot if you are not on the latest kernel sudo dnf install akmod-nvidia # rhel/centos users can use kmod-nvidia instead sudo dnf install xorg-x11-drv-nvidia-cuda #optional for cuda/nvdec/nvenc support
IIRC I also had to blacklist the Nouveau driver. Don't know if that's still necessary.
poc
On Fri, 2022-06-17 at 09:15 -0500, Thomas Cameron wrote:
sudo dnf update -y # and reboot if you are not on the latest kernel sudo dnf install akmod-nvidia # rhel/centos users can use kmod-nvidia instead sudo dnf install xorg-x11-drv-nvidia-cuda #optional for cuda/nvdec/nvenc support
I have done this, I installed both packages above. Now, at bootup I am getting some errors (still, these were present before installing the new drivers, less I think) related to nouveau: https://pastebin.com/VFwQBbEq I also think I saw some other message regarding power management at bootup but it is not contained in the above paste from dmesg. Is there a way for me to test if my card has been properly installed and the driver is in use? How do I know which card is used for normal computing and what card is used for specific applications? Note: Gnome has an option to "Launch using discrete graphics card" when right clicking on any app installed.
thanks for your help.
On 6/17/22 13:55, Anil F Duggirala wrote:
I have done this, I installed both packages above. Now, at bootup I am getting some errors (still, these were present before installing the new drivers, less I think) related to nouveau: https://pastebin.com/VFwQBbEq I also think I saw some other message regarding power management at bootup but it is not contained in the above paste from dmesg. Is there a way for me to test if my card has been properly installed and the driver is in use? How do I know which card is used for normal computing and what card is used for specific applications? Note: Gnome has an option to "Launch using discrete graphics card" when right clicking on any app installed.
thanks for your help.
Do the graphics work? In other words, are you using the NVidia card to run X? If you attach an external monitor does it come up?
You might need to blacklist nouveau (although I am relatively certain you shouldn't have to, the RPMFusion packages should do that automatically.
Thomas
So now I have noticed at boot time I am getting a message about "NVIDIA kernel module missing, falling back to Nouveau". I think I have Secure Boot enabled, could this be why it didn't work? I have now followed the instructions in: https://rpmfusion.org/Howto/Secure%20Boot And I think I went through the whole process of importing the key (Im not sure I did everything right). If I have now imported the key correctly, do I need to reinstall those packages to get the driver to work? What do I need to do now to get the driver to load?
thanks for your help,
On 6/17/22 14:16, Anil F Duggirala wrote:
So now I have noticed at boot time I am getting a message about "NVIDIA kernel module missing, falling back to Nouveau". I think I have Secure Boot enabled, could this be why it didn't work? I have now followed the instructions in: https://rpmfusion.org/Howto/Secure%20Boot And I think I went through the whole process of importing the key (Im not sure I did everything right). If I have now imported the key correctly, do I need to reinstall those packages to get the driver to work? What do I need to do now to get the driver to load?
thanks for your help,
I don't really know, I didn't have to mess with secure boot on my systems.
Anyone?
Thomas
On 17 Jun 2022, at 20:16, Anil F Duggirala anilduggirala@fastmail.fm wrote:
So now I have noticed at boot time I am getting a message about "NVIDIA kernel module missing, falling back to Nouveau". I think I have Secure Boot enabled, could this be why it didn't work? I have now followed the instructions in: https://rpmfusion.org/Howto/Secure%20Boot And I think I went through the whole process of importing the key (Im not sure I did everything right). If I have now imported the key correctly, do I need to reinstall those packages to get the driver to work? What do I need to do now to get the driver to load?
Two things. The people working on this are on the rpmfusion lists you might want to ask for information there.
My guess is that your system has not built new nvidia Kmods since you added the signing key.
You will need to force the mod to be rebuilt so that is signed. I do not know what the reliable way to do the rebuild is. I do know that uninstall and install of nvidia rpms does not help as the kmod Is left after the uninstall and its presence prevents a rebuild.
Once you update and get a new kernel it will rebuid.
Barry
thanks for your help,
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Sat, 2022-06-18 at 08:07 +0100, Barry wrote:
Two things. The people working on this are on the rpmfusion lists you might want to ask for information there.
Thanks for your response Barry. I just sent an email to rpmfusion-users@lists.rpmfusion.org , but it seems like that list is dead.
My guess is that your system has not built new nvidia Kmods since you added the signing key.
You will need to force the mod to be rebuilt so that is signed. I do not know what the reliable way to do the rebuild is.
Does anyone know how to do this? I already tried sudo depmod -ae, didn't work.
I do know that uninstall and install of nvidia rpms does not help as the kmod Is left after the uninstall and its presence prevents a rebuild.
Once you update and get a new kernel it will rebuid.
ok, thats cool, this happens relatively often, I think I can wait,
thanks a lot Barry.
Hi.
On Sat, 18 Jun 2022 06:39:14 -0500 Anil F Duggirala wrote:
My guess is that your system has not built new nvidia Kmods since you added the signing key.
You will need to force the mod to be rebuilt so that is signed. I do not know what the reliable way to do the rebuild is.
Does anyone know how to do this?
Try that (for the running kernel):
dnf remove kmod-nvidia-$(uname -r) akmods --akmod nvidia
You may want to do that for all the installed kernels. See akmods -h
You can also use akmods-shutdown that rebuild for all the installed kernels, and is done at shutdown by the akmods-shutdown service (if enabled).
On 18 Jun 2022, at 15:13, Francis.Montagnac@inria.fr wrote:
Hi.
On Sat, 18 Jun 2022 06:39:14 -0500 Anil F Duggirala wrote:
My guess is that your system has not built new nvidia Kmods since you added the signing key.
You will need to force the mod to be rebuilt so that is signed. I do not know what the reliable way to do the rebuild is.
Does anyone know how to do this?
Try that (for the running kernel):
dnf remove kmod-nvidia-$(uname -r) akmods --akmod nvidia
As I said that does not work because the already built modules are not Deleted. It’s the absence of the module that triggers the build. It may be you can rm the nvidia module and that may good enough to trigger the build.
You may want to do that for all the installed kernels. See akmods -h
You can also use akmods-shutdown that rebuild for all the installed kernels, and is done at shutdown by the akmods-shutdown service (if enabled).
-- francis _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Sat, 18 Jun 2022 23:31:48 +0100 Barry wrote:
Try that (for the running kernel):
dnf remove kmod-nvidia-$(uname -r) akmods --akmod nvidia
As I said that does not work because the already built modules are not Deleted.
They are since akmod packages the modules in the kmod-nvidia-$(uname -r) RPM.
Thus "dnf remove kmod-nvidia-$(uname -r)" properly removes the kernel modules.
It may be you can rm the nvidia module and that may good enough to trigger the build.
No trigger in this case IMO, you should call akmods to build them.
On 19/06/2022 06:09, Francis.Montagnac@inria.fr wrote:
On Sat, 18 Jun 2022 23:31:48 +0100 Barry wrote:
Try that (for the running kernel): dnf remove kmod-nvidia-$(uname -r) akmods --akmod nvidia
As I said that does not work because the already built modules are not Deleted.
They are since akmod packages the modules in the kmod-nvidia-$(uname -r) RPM.
Thus "dnf remove kmod-nvidia-$(uname -r)" properly removes the kernel modules.
The step I had not known about is that the kmod-nvidia is the output of akmods comilation of the code in akmod-nvidia.
So as you say if that is dnf remove kmod-nvidia then akmods will build a new one.
What I have tried that fails is to dnf reinstall akmod-nvidia.
The use of akmods --force is only useful if there has been a failed compilation. It will build again after a sucessfule compilation.
Thanks you for clearing that up!
Barry
It may be you can rm the nvidia module and that may good enough to trigger the build.
No trigger in this case IMO, you should call akmods to build them.
Hi.
On Sun, 19 Jun 2022 22:57:58 +0100 Barry Scott wrote:
Thus "dnf remove kmod-nvidia-$(uname -r)" properly removes the kernel modules.
The step I had not known about is that the kmod-nvidia is the output of akmods comilation of the code in akmod-nvidia.
Beware, the name of the generated RPM from compiling akmod-nvidia is kmod-nvidia-KERNEL_VERSION. kmod-nvidia is the RPM provided by rpmfusion: it is useless to suppress it.
See for example:
dnf --color=never list installed *nvidia* Installed Packages akmod-nvidia.x86_64 3:510.68.02-2.fc36 @so-rpmfusion-nonfree-updates kmod-nvidia.x86_64 3:510.68.02-2.fc36 @so-rpmfusion-nonfree-updates kmod-nvidia-5.17.13-300.fc36.x86_64.x86_64 3:510.68.02-2.fc36 @@commandline kmod-nvidia-5.17.8-300.fc36.x86_64.x86_64 3:510.68.02-2.fc36 @@commandline nvidia-settings.x86_64 3:510.68.02-1.fc36 @so-rpmfusion-nonfree xorg-x11-drv-nvidia.x86_64 3:510.68.02-2.fc36 @so-rpmfusion-nonfree-updates xorg-x11-drv-nvidia-cuda-libs.x86_64 3:510.68.02-2.fc36 @so-rpmfusion-nonfree-updates xorg-x11-drv-nvidia-kmodsrc.x86_64 3:510.68.02-2.fc36 @so-rpmfusion-nonfree-updates xorg-x11-drv-nvidia-libs.x86_64 3:510.68.02-2.fc36 @so-rpmfusion-nonfree-updates xorg-x11-drv-nvidia-power.x86_64 3:510.68.02-2.fc36 @so-rpmfusion-nonfree-updates
rpm -qi kmod-nvidia-5.17.13-300.fc36.x86_64.x86_64 Name : kmod-nvidia-5.17.13-300.fc36.x86_64 Epoch : 3 Version : 510.68.02 Release : 2.fc36 Architecture: x86_64 Install Date: Mon 13 Jun 2022 07:16:49 PM CEST Group : Unspecified Size : 37073429 License : Redistributable, no modification permitted Signature : (none) Source RPM : nvidia-kmod-510.68.02-2.fc36.src.rpm Build Date : Mon 13 Jun 2022 07:15:47 PM CEST Build Host : gin URL : http://www.nvidia.com/ Summary : nvidia kernel module(s) for 5.17.13-300.fc36.x86_64 Description : This package provides the nvidia kernel modules built for the Linux kernel 5.17.13-300.fc36.x86_64 for the x86_64 family of processors.
On 18 Jun 2022, at 12:39, Anil F Duggirala anilduggirala@fastmail.fm wrote:
On Sat, 2022-06-18 at 08:07 +0100, Barry wrote:
Two things. The people working on this are on the rpmfusion lists you might want to ask for information there.
It’s alive, but the people you need to respond are busy.
Thanks for your response Barry. I just sent an email to rpmfusion-users@lists.rpmfusion.org , but it seems like that list is dead.
My guess is that your system has not built new nvidia Kmods since you added the signing key.
You will need to force the mod to be rebuilt so that is signed. I do not know what the reliable way to do the rebuild is.
Does anyone know how to do this? I already tried sudo depmod -ae, didn't work.
Depmod adds already built modules to the set known the kernel. It does not build modules.
I do know that uninstall and install of nvidia rpms does not help as the kmod Is left after the uninstall and its presence prevents a rebuild.
Once you update and get a new kernel it will rebuid.
ok, thats cool, this happens relatively often, I think I can wait,
thanks a lot Barry.
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure