I’ve installed Fedora 40 today again in order to try to solve Nvidia driver problem I’ve been dealing for 3 days. I installed every package related with Nvidia drivers (I’ve disabled Secure Boot before installing or configurating anything and my RPM Fusion option for Nvidia is open). I followed the steps from this guide and did every step with caution (I waited 10-15 minutes for the steps which includes kernel operations). After those steps, I edited my X11 configuration as told at step 8 at the guide. However;
glxinfo | egrep "OpenGL vendor|OpenGL renderer"
this command should give me an output that includes Nvidia GPU but instead, it outputs the Intel’s integrated GPU:
Since my laptop has both Intel integrated GPU and Nvidia’s dedicated GPU the guide from docs of Fedora should have worked. Another issue is that X Server Settings has few options to configure as like in this picture:
I thought that maybe because I use my external monitor and not my internal monitor on my laptop the Nvidia driver doesn’t recognize it. But my external monitor (which I’m using with HDMI connection) has been already giving output without any problems even before installing any drivers or updates. And integrated GPU doesn’t works on my laptops internal monitor too, doesn’t matter if I plug out the external monitor or not. I couldn’t find where did I make a mistake while installing Nvidia drivers or while making any kind of configuration.
I will put some outputs here that could help you gather more information about this situation I’m dealing with. I really don’t want to return to other distros and Windows of course. And excuse me if I’ve written this topic with lots of spelling and grammar mistakes.
nvidia-smi output:
$ nvidia-smi
Tue May 21 15:24:37 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.78 Driver Version: 550.78 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4050 ... Off | 00000000:01:00.0 On | N/A |
| N/A 39C P8 3W / 60W | 53MiB / 6141MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 2370 G /usr/bin/gnome-shell 41MiB |
+-----------------------------------------------------------------------------------------+
for the screenshots it shows nvidia drives are installed, but if you trying to make dedicated as on boot there is other way to do it, but i recommend to use build in automatic hybrid system where fedora uses igpu as default and then switch to dgpu when needed
power mode is automatically set as balanced using performance mode should force dgpu to be enabled all the time
I’ve deleted everything that I installed with the outdated guide and I’m doing the instructions from RPM Fusion guide. I’ll keep writing here after the setting up everything. I hope I don’t have to install Fedora again in order to make clean install with Nvidia drivers.
Thanks for the reply.
Update: I’ve installed the drivers with the updated guide and waited for kernel to build up after the installation (before that, I enrolled MOK keys as the guide says). I rebooted and tested to see if drivers are installed. The drivers are installed but still, the issues I’ve wrote are still there:
Nvidia X Server Settings application still doesn’t show much of a configuration (which normally there should lots of options to configure but there seems to be no change after the re-install).
My both screens (one external and internal) are still handled with Intel’s integrated GPU:
You may ask why I don’t want my monitor to be handled by Intel’s GPU, the thing is integrated GPU handles Gnome awfully. And it is not something strictly related with Gnome itself. I’ve tried other desktops and they weren’t smooth just like Gnome. But I could somewhat solve that with using Nvidia GPU all the time so that I can get 144fps on my 144hz monitor. But on Fedora, I haven’t acquired that solution yet.
This solution didn’t work unfortunately. I think I messed fatally somewhere but I can’t find it.
True that the guide is dated. However, those procedures have not changed in years.
Also true that the result is only seen when using xorg.
The only thing missing from the guide used by @orcungln is the reminder that it only works when using xorg as the DE. (I believe that guide was created before wayland was made default by fedora)
@orcungln
removing and reinstalling things does not provide any benefit since the latest driver is already functional. The steps in the link provided by @phatle omits the part about making the nvidia gpu primary which was in the guide you followed.
I would caution you that you should run the command dnf list installed \*nvidia\* and verify that the nvidia-gpu-firmware package is still shown in that list. If not then you will need to reinstall it using dnf.
EDIT
I just saw your last update.
You do have to do the last step (step 8) in the guide you initially followed to make the nvidia driver primary, then you also have to log in using xorg in order to force the nvidia gpu to be used as primary and to give it access to both the laptop screen and the external screen.
The nvidia driver should allow the 144 Hz refresh with using either xorg or wayland but there are other benefits when using xorg and having the nvidia gpu as primary. The only drawback I encounter is a (slight) impact on the battery life of the laptop (10% or so less time).
If you meant “nvidia-gpu-firmware.noarch” package as you wrote, it’s showed as installed. I wanted to re-install Fedora 40 again to do the steps again but since you said it’s not going to make any difference I gave up on that idea.
Edit: I saw your update, now I’ll do the step 8 and I’ll keep you updated afterwards.
I just noted that you said server in the tags.
Please post the output of inxi -Fzxx so we may see the entire system config and cat /etc/fedora-release so we can see the spin installed.
What you just posted shows that everything needed appears to be installed.
I’m very sorry for that misunderstood. I didn’t setup the tags, it seems they have been automatically set up when I opened this topic. Now I updated the tags and revert back to workstation.
@computersavvy Thank you for sharing your knowledge. It seems that I’ve had lots of confusions while installing Nvidia drivers. After booted up, I changed Wayland to XOrg and it runs smooth without any flicker; tearing, sloppy effect, frame loss. And my laptops fans are now running a little bit quieter than it was. Here are some other changes;
Nvidia X Server Settings now showing up much more options to configure. Which is meaning that Nvidia GPU is working like a charm.
Now, my both external and internal monitors are handled by Nvidia GPU and not Intel’s integrated GPU. And this leads to Gnome working and running smoothly without interruption. Screen is outputting with 144hz now.
Thanks again for helping me finally be able to configure the Nvidia drivers. I thought I couldn’t solve this issue forever to be honest (Because last time I used Fedora, my laptop and it’s specs were different and I didn’t had to install Nvidia drivers to solve any issue since there were none). But I have one more question if you excuse: Do I need to do any necessary or “would be good if it were done” configuration from X Server Settings itself?
It appears you are logged in with wayland so it cannot put the nvidia GPU as primary and thus the glxinfo is correct.
To make the nvidia gpu primary you must log out then log back in and on the screen where you enter your password select ‘gnome on xorg’ with the gear at the lower right corner. It should then use only the nvidia gpu and should change the glxinfo output.
Changes there are totally up to you. I don’t make changes since I believe everything is already properly configured but may be slightly tweaked for your individual use case.
Note that nvidia has only recently began supporting wayland and their apps (nvidia-settings specifically among others) do not function the same in wayland as they do in X11. That is shown with the differences you have already noted.
So let’s help, or find the maintainer of the Guide and get it updated. This is maybe the 5th time in 30-45 days we get the same interactions with the documentation being outdated. Not counting the amount of people in side conversations who bring it up or are generally confused about how it works.
I only bring it up because @computersavvy is an Nvidia User and answers a majority of the Nvidia issues with reference to the guide and procedures supported by the Forum, community.
@phatle Also being an Nvidia and recently helping out a lot with Nvidia, DaVinci, Blender related issues.
That guide might be from Fedora 32 release period, as I recall that’s around when the Docs were moved to this format.
But the issue was not that the driver was mis-configured, but ultimately the OP did not use a Desktop with Xorg in the explicit scenario of making the Nvidia GPU a Primary GPU. This does not currently work on Wayland without other configurations.
The OP followed the Documentation, that has not been updated since Fedora 32, well before the time Fedora went Wayland first.
I forked the document, just wanted to see if you agreed with the minor changes. I don’t know how far it will go, but if it’s ignored then there’s a bigger problem here.