I am running an Nvidia Optimus Dell XPS laptop and recently updated to F35, but, whatever I try, I can’t get the nvidia drivers to install and be used by the system. During startup I get the message:
NVIDIA kernel module missing. Falling back to nouveau
I am trying to get things working under Plasma/KDE with X11 for now. I do not have the option of “Run with discrete GPU” when trying to right-click application, nor do I see my NVIDIA device listed under system information or from using screenfetch
.
I have secureboot disabled from within my Dell settings:
[jdl@astro ~]$ mokutil --sb-state
SecureBoot disabled
I don’t really know at all how Secure Boot plays with BIOS/UEFI, so maybe this is useless information: I am booting into UEFI, and not “Legacy” mode. This seems to suggest the “Legacy” option is needed to disable secure boot, but I cannotuse this option owing to this issue. Although it does seem I am booting without secure boot enabled from every check I can find to do within the OS, and I found this comment suggesting it is doable
To install the drivers I have followed the instructions here, namely:
sudo dnf remove '*nvidia*'
sudo dnf update --all
sudo dnf install gcc kernel-headers kernel-devel akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs xorg-x11-drv-nvidia-libs.i686
# wait 10 minutes
sudo akmods --force && sudo dracut --force
# wait 5 minutes
reboot
As well as some others in the past, the details of which I don’t recall fully.
If anyone can spot something I am doing wrong, or other things to check, please let me know. Most solutions on similar threads I think are covered above with no luck, or not relevant (e.g. old card model).
Many thanks.
System/start-up details:
[jdl@astro ~]$ uname -a
Linux astro 5.16.18-200.fc35.x86_64 #1 SMP PREEMPT Mon Mar 28 14:10:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[jdl@astro ~]$ lspci | grep -E 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
[jdl@astro ~]$ lsmod | grep nvidia
[jdl@astro ~]$ lsmod | grep nouveau
nouveau 2387968 1
drm_ttm_helper 16384 1 nouveau
i2c_algo_bit 16384 2 i915,nouveau
ttm 81920 3 drm_ttm_helper,i915,nouveau
drm_kms_helper 315392 2 i915,nouveau
mxm_wmi 16384 1 nouveau
drm 634880 25 drm_kms_helper,drm_ttm_helper,i915,ttm,nouveau
wmi 32768 7 intel_wmi_thunderbolt,dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor,mxm_wmi,nouveau
video 57344 4 dell_wmi,dell_laptop,i915,nouveau
[jdl@astro ~]$ sudo dmidecode | grep -A3 '^System Information'
System Information
Manufacturer: Dell Inc.
Product Name: XPS 15 9560
Version: Not Specified
[jdl@astro ~]$ sudo grubby --default-kernel
/boot/vmlinuz-5.16.18-200.fc35.x86_64
[jdl@astro ~]$ sudo grubby --info /boot/vmlinuz-5.16.18-200.fc35.x86_64
index=0
kernel="/boot/vmlinuz-5.16.18-200.fc35.x86_64"
args="ro rootflags=subvol=root rd.luks.uuid=luks-42e228ff-8482-46d5-b60f-f55afa846c7d rd.luks.uuid=luks-5a932c1f-1c15-45ed-baad-77a129f4e71e rhgb quiet systemd.unified_cgroup_hierarchy=0 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1"
root="UUID=6c7fe6fa-3e21-4d51-b577-3d6bbc93726f"
initrd="/boot/initramfs-5.16.18-200.fc35.x86_64.img"
title="Fedora Linux (5.16.18-200.fc35.x86_64) 35 (Workstation Edition)"
id="62e0823cb3ef4d2d9aab4ed2453606d2-5.16.18-200.fc35.x86_64"
I have tried it with both nvidia-drm.modeset=1
and nvidia-drm.modeset=0
in the start up args
.