Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia modules and kernel versions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cmprior
n00b
n00b


Joined: 03 Sep 2011
Posts: 58

PostPosted: Tue Oct 01, 2024 6:58 pm    Post subject: Nvidia modules and kernel versions Reply with quote

Hi
Can anyone tell me if I can uninstall the NVidia module for a specific kernel version whilst retaining it for other kernel versions?
I am having problems using Wayland with the Nvidia drivers (works fine with X11) and want to see if the Nouveau driver can work for Wayland. I'd like to try this without losing a working kernel version if possible. I'm guessing I'll have to play with the blacklist options in modules.conf as well.
I've attempted to follow the wiki for having both drivers installed at the same time and switching between them using grub options but this didn't seem to work - I ended up having Nvidia running in every case, with nouveau as well at times - which caused all sorts of problems.
System is x86_64, nvidia 470. version due to age of graphics card. Have just installed the latest stable kernel.
kde plasma latest stable version

Thanks

Chris
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2853

PostPosted: Wed Oct 02, 2024 12:23 am    Post subject: Reply with quote

By default portage already does not remove modules for old kernel versions (even if you remove nvidia-drivers), albeit if you want your system to work the nvidia user space libraries (also installed by nvidia-drivers) need to be present and their version match the with the modules.

That aside, you don't need to remove nvidia-drivers to try nouveau, just edit /etc/modprobe.d/nvidia.conf and comment out "blacklist nouveau" and the kernel "should" load nouveau first and nvidia will be unable to remove it (or at least, legacy drivers can't, newer ones have an optional way), uncomment if want to go back (possibly from a rescue media if something went badly). A dual kernel route could be to have one kernel with the nouveau modules and one without, optionally builtin if want to ignore blacklist, and the kernel without nouveau would still use nvidia-drivers. I think there is a way to disable or blacklist nouveau from the kernel commandline allowing to share kernels without changing nvidia.conf every time, but I never tried myself. Doing more than edit nvidia.conf feels kind of messy if you just want to try it though...

Note that nouveau typically has poor performance due to being unable to reclock most cards (aka, they're left in low power mode), Vulkan support is also rather early stages. Albeit if all you want is a mostly responsive display (and not intensive games), then it's fine. Right now 470 is still supported by nvidia, so there's no hurry to switch to nouveau though.

On another note, 470 technically has wayland support but is so broken that we removed USE=wayland at this point. 470 notably never supported GBM, and software support for the alternative (EGLStream) is not quite there and has been either bitrotting or removed over the years (xwayland notably dropped support in latest version). So if need to use 470 you'll be with Xorg until you get new hardware, which imo is fine.. Xorg is not going anywhere anytime soon (if ever).
Back to top
View user's profile Send private message
cmprior
n00b
n00b


Joined: 03 Sep 2011
Posts: 58

PostPosted: Wed Oct 02, 2024 11:01 am    Post subject: Reply with quote

Ionen

Thanks for your response. I think I'll stick with X11 for the time being with the nvidia drivers. When I change the video card again, I'll have another go.
I guess it may make sense to remove wayland support as well whilst I have this old graphics card.

Chris
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1331
Location: sweden

PostPosted: Wed Oct 02, 2024 6:10 pm    Post subject: Reply with quote

cmprior

i have been using nouveau for quite some time now but switched to nvidia-drivers because winter is coming and nouveau does not work with vr yet. nouveau works very well . i am running it with a kepler atm and have been using it with turning+ . if you have a turning+ and not using vr or suff like that it will work just fine. with nouveau i am using a modified xorg.conf file from my nvidias conf file, switching to nouveau in make.conf , updating world and compiling a new kernel . if all goes well i will remove the modules from the old kernel to get rid of nvidia-drivers modules and remake the kernel i want to use nouveau. for me with nouveau + gsp the backlight does not work .

regards hedmo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum