[Feature request] User friendly way of installing propietary Nvidia drivers

Hello,

I don’t know if it’s a pie in the sky, but after seeing many threads (for instance, this one) from people having problems, myself included, installing the NVIDIA proprietary drivers, I was wondering if it would be possible to provide a user-friendly method to install them. For instance, through Plasma Discover or with the Gnome app installer.

Is it feasible?

Regards,
David

1 Like

I dont know what is all about but I did more than 10 installs with nvidia cards and each every one of them went 100% smooth, following these steps:

  1. install repos from rpm fusion: Configuration - RPM Fusion
  2. install the drivers and kernel-devel
sudo dnf update 
sudo dnf install kernel-devel
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
  1. WAIT A FEW MINUTES (or check with ps) for the module to build
  2. reboot
  3. Enable Nvidia power services:
sudo systemctl enable nvidia-hibernate.service nvidia-suspend.service nvidia-resume.service nvidia-powerd.service
  1. reboot
  2. edit grub
sudo gedit /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
  1. update grub:
sudo grub2-mkconfig -o /etc/grub2.cfg
  1. reboot

My proposal is to provide users with a simplified method using the graphical interface to install drivers, possible through Plasma Discover or the Gnome Software center. This is already available in other distros like Pop!_OS.

1 Like

Totally get it and I agree but until then, a few commands will solve the issue very fast!

Unfortunately we can’t make people more intelligent or more interested in following console install methods. Therefore, by simplifying the install process we open the door for more people to enjoy the wonders of Fedora just with a few mouse clicks :slight_smile:

4 Likes

This is probably limited by the fact that fedora is unable to directly provide the nvidia (proprietary) drivers. They are hosted and provided by the 3rd party repo at rpmfusion.

The simplest way is to perform 3 things.

  1. enable the 3rd party repos during first boot on a new installation (or enable the repos as shown at Configuration - RPM Fusion)
  2. OPTIONAL and only required if the user intends to use secure boot.
    a. install the akmods package sudo dnf install akmods
    b. follow the steps shown in the file /usr/share/doc/akmods/README.secureboot or the instructions at Howto/Secure Boot - RPM Fusion
  3. Install the drivers using one simple command
    sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda (Howto/NVIDIA - RPM Fusion)
    This command will pull in all the required dependencies, including the kernel-devel package and will make the expected changes in /boot/default/grub as well as updating the grub.cfg file and other boot related files.
    (Wait at least 5 minutes after that install completes before rebooting)
  4. reboot to load the new drivers

Step 2 is only required as a separate action when using secure boot. It makes certain that the driver is properly signed as well as importing the signing key into bios so the driver loads with the reboot in step 4.

1 Like

That’s interesting. Why is System76 capable of directly providing the drivers on Pop!_OS?

1 Like

Fedora does not provide anything that is restricted by licensing, proprietary, patent encumbered, or otherwise. They only distribute software that is 100% open source.

Some companies, such as microsoft, etc., may be willing to pay the fees for distributing the software. Some companies are outside the US and are able to distribute software that fedora cannot.

Fedora does not need to bundle the drivers directly into the iso, this proposal is about providing a user-friendly way of installing them.

I never heard of any existing fee to distribute Nvidia drivers. Do you have more information about those purported fees?

1 Like

Take Ubuntu for example, everything is under a click.

1 Like

gnome-software already includes helpers to make nvidia secureboot easier when installing nvidia from the fedora-workstation-repositories (it provides rpmfusion-nonfree-nvidia-driver repo)

To legally distribute any proprietary software, arrangements must be made between the developer and distributer. Whether that is fees, licensing agreements, or otherwise is usually not publicly disclosed. However, microsoft does include drivers for nvidia in their software so some arrangement must necessarily exist.

Already done. The 3rd party repos that can be enabled during first boot on a new installation (and the ability to enable the same within gnome software app) provide the rpmfusion-nonfree-nvidia-drivers repo. This means the user can install the driver with a single command on the command line. (step 3 in my post above) It is not gui but is very easy for anyone to do.

Canonical, the provider of ubuntu, is based in the UK

aaaand?
I don’t get it :slight_smile:

As it is based in the UK it falls under UK jurisdiction and not the US jurisdiction.

1 Like

It is possible to install Discord and Zoom (both proprietary software) through Plasma Discover. I don’t know if there is an agreement to do so. Since that is already the case, it should also be possible to install NVIDIA drivers through this method, seeking an arrangement with NVIDIA if necessary. It doesn’t make sense to provide some proprietary software and not others.

There are people who prefer to install software using the terminal, and others who prefer to do so through a GUI. I belong to the second category; for me, it is much more enjoyable to click my way through an installation process, as I am a visual thinker and I feel more relaxed when I don’t have to think, just to observe and click. That doesn’t mean, however, that you shouldn’t be able to install the drivers through the terminal. Adding a graphical method to install the drivers would make my experience much more enjoyable and would increase my freedom, as I wouldn’t be forced to use the terminal, which I do not want to do.

1 Like

if one day would be possible 100% to install anything with a mouse AND from command line, i’l get drunk and celebrate :joy:

that would be amazing.
I don’t care which way although I prefer command line

When using Linux (in any form) there are many times where a command line is required.

If you are only seeing this one sticking point it is hardly worth crying about. It also could be solved by contributing the effort to develop a gui for your enjoyment since linux is FOSS and anyone is invited to contribute toward the betterment of everyone.

1 Like

Hi Leigh,

If I remember correctly, once the repo, RPM Fusion and Fusion non-free, is added to the system the Software manager and dnfdragora have the Nvidia drivers in the list of available drivers. Does the rpm of those packages pick up the dependencies needed to build and install the drivers?

(Might be a dumb question since I haven’t done the RPM Fusion way of installing the Nvidia drivers in years. I do it the hard way by most standards by just going to Nvidia and grabbing/building/installing the drivers … partly because I also do the same for FreeBSD … )