Silverblue 30 and nVidia drivers. Everything is very bad

Hi, all :slightly_smiling_face:

I add nvidia repo to system (/etc/yum.repos.d/rpmfusion-nvidia-driver.repo):

[rpmfusion-nvidia-driver]
name=RPMFusion nVidia Driver
baseurl=https://download1.rpmfusion.org/nonfree/fedora/nvidia-driver/$releasever/$basearch/
gpgcheck=0
enabled=1

Next, install it:

rpm-ostree install xorg-x11-drv-nvidia akmod-nvidia

Reboot and check (rpm-ostree status):

ostree://fedora:fedora/30/x86_64/silverblue
Version: 30.20190427.n.0 (2019-04-27T08:57:18Z)
BaseCommit: a602958b1097d0790361a8b907f6f6ecbb62b7bbf826b086401eafb4ffcb845d
GPGSignature: Valid signature by F1D8EC98F241AAF20DF69420EF3C111FCFC659B9
LayeredPackages: akmod-nvidia gnome-tweaks xorg-x11-drv-nvidia

Now the most interesting:

lspci -k | grep nou
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidia_drm, nvidia

I tried blocking nouveau driver, but it didn’t help:
I add rd.driver.blacklist=nouveau to grub config and run grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Maybe somebody is working fine?

sudo rpm-ostree kargs --append=modprobe.blacklist=nouveau

lspci -k | grep nvidia:

Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia

Now all works!

1 Like

FWIW here is the original article saying how to install the driver, which mentions using kargs.

1 Like

First, thanks for Silverblue! I’ve been using Fedora ever since it was born (as a user, not a developer), and tried Silverblue a couple of days ago. Once I figure out how to get

  • nVidia drivers working
  • Netflix working in Firefox (h254 compat 28)
  • Dropbox working (move from /home to /var/home)

I’ve now forgotten that I’m using Silverblue and not Fedora Desktop. It’s really cool, so thanks!

But I’ve always wondered why installing nVidia drivers on Linux is such a pain.

Is there any reason why the install script would not add the kernel arguments, rather than relying on the user to (a) notice the problem; (b) curse; and finally © Google for a solution?

Peace,

John

On mainline Fedora, when you first open Software it’ll prompt you to add the proprietary repos with the driver FYI.

Is there any reason why the install script would not add the kernel arguments, rather than relying on the user to (a) notice the problem; (b) curse; and finally © Google for a solution?

You can’t do that automatically on Silverblue just yet, but it will probably be added at some point.