Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document open kernel support with %_with_kmod_nvidia_open 1 #14

Open
MateusRodCosta opened this issue Nov 9, 2024 · 0 comments
Open

Comments

@MateusRodCosta
Copy link

MateusRodCosta commented Nov 9, 2024

There are two options for the kernel driver right now: Proprietary (same as before) and open source (if you device supports the GSP and its firmware).

If you are installing from RPMFusion, using akmod-nvidia will get you the proprietary driver by default unless you set %_with_kmod_nvidia_open 1, which will bring the open kernel driver version Nvidia ships pre-compiled on their installer.
There's the option of akmod-nvidia-open instead of akmod-nvidia, however last time I tried it still resulted in the proprietary driver being installed (apparently it also brought akmod-nvidia as dependency somehow)

See https://rpmfusion.org/Howto/NVIDIA#Kernel_Open for reference

According to https://discussion.fedoraproject.org/t/nvidia-how-to-switch-to-the-open-source-kernel-module/126362/13 it's possible to use silverblue-akmods-keys to set the required macro (echo "%_with_kmod_nvidia_open 1" >> macros.kmodtool) to have the open kernel driver on Silverblue systems.

I tested it on my system and it seems to be working properly:

$ cat /etc/rpm/macros.kmodtool 
%_kmodtool_signmodules_pubkey /etc/pki/akmods-keys/certs/public_key.der
%_kmodtool_signmodules_privkey /etc/pki/akmods-keys/private/private_key.priv
%_with_kmod_nvidia_open 1
$ modinfo -l nvidia
Dual MIT/GPL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant