Fedora 41 not using Nvidia GPU after installation

Good morning.

On a laptop Acer Nitro 5 with Nvidia GeForce GTX 1650, I’ve updated to Fedora 41 and followed these instructions here:
https://rpmfusion.org/Howto/NVIDIA

All went fine but after reboot it still uses Mesa Driver on Wayland .
Can someone give me a step by step guide?

Secure boot enqvled or disabled

Enabled

Did you do this before installing drivers?

https://rpmfusion.org/Howto/Secure%20Boot

Yes. The key was generated and enrolled. But the graphic is still “Intel® UHD Graphics 630 (CFL GT2)”

sudo akmods --force --rebuild

Does this work after it runs wait some minutes and reboot

Added nvidia

The driver really has nothing to do with whether the iGPU or dGPU is chosen for use. The driver determines if the card is properly functioning.

Usage default for the DE is to use the iGPU unless the app is highly graphics demanding.

If you wish the dGPU to be used full time I understand that adding a line into /etc/environment that reads DRI_PRIME=1 then rebooting (or at least log out then back in) should cause the system to use the dGPU exclusively on wayland DE. It works for me on my laptop.

I will try this

Oh my bad misreading The OP post and misunderstood the question

NP
Post 5 seems to have clarified the actual problem for me as whether the iGPU or the dGPU was being used. The title and post 1 seemed related to driver when the topic was actually GPU usage.
Very much an X - Y issue.

I will update the title once we know if the suggested fix actually works.

1 Like

The command “modinfo -F version nvidia” returns “560.35.03”

In my case /etc/environment is a file with zero byte. Can I safely add this line? Thanks.

Certainly, the default is empty but the file is available for users to add items which are needed in the users environment.

System Details Report


Report details

  • Date generated: 2024-11-05 04:55:13

Hardware Information:

  • Hardware Model: Acer Nitro AN517-51
  • Memory: 24.0 GiB
  • Processor: Intel® Core™ i5-9300H × 8
  • Graphics: Intel® UHD Graphics 630 (CFL GT2)
  • Disk Capacity: 1.1 TB

Software Information:

  • Firmware Version: V1.33
  • OS Name: Fedora Linux 41 (Workstation Edition)
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 47
  • Windowing System: Wayland
  • Kernel Version: Linux 6.11.5-300.fc41.x86_64

Even after adding the line DRI_PRIME=1 into /etc/environment and rebooting.

are you trying to use only NVIDIA always?

on optimus systems default is intel or amd and it will switch to nvidia when needed

Yeah this didn’t work for me either…but I think it is because even though my laptop has AMD CPU with integrated GPU, I also have NVIDIA 4090, the only one it recognizes when doing

lspci | grep VGA

is the integrated AMD GPU. Any thoughts on how to get Fedora to recognize my NVIDIA GPU as well?

So lspci and look through the listing. The nvidia gpu may not show vga in its output there but should be listed.

The internal GPU can be turned off in the bios settings. So the external nvidia GPU will work without the need for optimus