• nvidia driver not loaded after install

    From Anil F Duggirala@21:1/5 to All on Wed Jan 15 17:50:02 2025
    I am trying to install the Nvidia driver on my Dell XPS 9550 fresh Debian 12 machine.

    I followed all instructions in https://wiki.debian.org/NvidiaGraphicsDrivers#Debian_12_.22Bookworm.22

    including:
    apt install linux-headers-amd64

    Including the extra instructions given here: https://lists.debian.org/debian-user/2025/01/msg00121.html
    To enroll the MOK key.

    Then added the additional source to apt list and did:
    apt install nvidia-driver firmware-misc-nonfree

    After rebooting the nvidia driver is not loaded and some errors are presented by dmesg:

    $ sudo dmesg | grep modul
    [ 4.313816] systemd[1]: Inserted module 'autofs4'
    [ 4.586851] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
    [ 4.590723] loop: module loaded
    [ 5.621417] Loading of module with unavailable key is rejected
    [ 5.646333] Loading of module with unavailable key is rejected
    ...
    [ 6.828071] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
    [ 6.828216] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
    [ 6.828417] systemd[1]: Failed to start systemd-modules-load.service - Load Kernel Modules.
    [ 6.828886] systemd[1]: systemd-modules-load.service: Consumed 2.190s CPU time.
    [ 16.905450] Loading of module with unavailable key is rejected
    ...

    $ sudo modprobe nvidia
    modprobe: ERROR: could not insert 'nvidia_current': Key was rejected by service modprobe: ERROR: ../libkmod/libkmod-module.c:1047 command_do() Error running install command 'modprobe -i nvidia-current ' for module nvidia: retcode 1
    modprobe: ERROR: could not insert 'nvidia': Invalid argument

    Can anyone please help me out. Getting Debian to work in this laptop has been a big challenge.

    thank you,


    Anil F

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to Anil F Duggirala on Wed Jan 15 18:10:01 2025
    On Jan 15, 2025, Anil F Duggirala wrote:
    I am trying to install the Nvidia driver on my Dell XPS 9550 fresh
    Debian 12 machine.

    [ 16.905450] Loading of module with unavailable key is rejected
    ...

    Can anyone please help me out. Getting Debian to work in this laptop
    has been a big challenge.

    Looks like the machine's SecureBoot setup isn't able to verify the
    module, and thus is preventing it from being loaded. Easy "sanity
    check" would be to (temporarily) disable that if possible, and try
    loading the module again. At the very least, you'll be able to prove
    the module itself isn't broken.

    If that works, then either

    a. You missed a compile-time switch to sign the module OR
    b. You missed a post-compile "sign" step OR
    c. SecureBoot cannot validate the signature (e.g. your key isn't
    loaded into its trust-store, you signed with the wrong key, etc.)

    It's not much to go on, but hopefully it helps ...

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmeH6sMACgkQbWVw5Uzn KGA6pQ/+NSmMItus91cO8X2PZ/paGE0tv7kVXFWIjpoARXoR3K0lr1nX2k9xLNc4 r/DS4hnznZH+P6IjiTGSsG6ipNhZ2NDbN2Ximz2TrKLnWt1uobXJqs9u9paaY1N5 cgrho1rutOUGdkhh39dhkO0WWF9QMzNzbL/9GSFsnOSwNRI3xWn6uJkgrnk4Iqlm hjL05waw0zRPyabRDuE/TVKUavftcgP02qaFr2VbiEdfYYUOsnSBCUr6jtlgMw54 tl3JVPGleVzGthJglLGlqj0VFrb55SyEwIeg9y57G3lr2xH7BOEtPD8YplCDrxDm DXvmIvfGK9/NI07p7mY9iHBBvjmZXQD52IMvPeH6qu9TLLaPlibMRK66BC3dmmpn uAqBOlcmnYf07o5pgW66dgMXKOmMYLsBVc2361GOgUUsdSSMp2Ofb7wDtIF7mnE8 YzdezORz4YkILpqNJJN0HFNJJdn7YNVXRu0V6N3IiOrmztsbbXEb/vjvoIpfGw5L s469+In0GZmVkA5q7YtxlCifiG8a1JmxNayyXCDRfSoqCv1EBoV8wofRJFcrNfNX 9iTRb77D5PUK+C/ZVhcZxPKFvChthfjEk+/B4pLw1h5I57qaMwtWuLZy9NhWEtx1 xG8jVMKOG0IZqhptglY6jn+Og2/Axargwvo0tVo8V240LXXhxgw=
    =1brH
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From Anil F Duggirala@21:1/5 to All on Thu Jan 16 17:00:02 2025
    Thanks Dan,

    I disabled Secure Boot and sure enough, the driver was loaded.

    I actually decided to make a clean install of Debian on this machine
    and left Secure boot disabled.

    I tried multiple times and was unable to get the driver to load. This
    is strange however because it did work before.

    I wish I was knowledgeable enough to know what a. b. or c.. actually
    means, as I said before, I just followed the instructions to create the
    MOK and enroll it.
    https://wiki.debian.org/SecureBoot#Virtualbox_Packages
    I did change "-subj "/CN=My Name/" for -subj "/CN=Myself/"
    Could that have created an issue?

    thanks again,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)