Edit: “Updating to the legacy 580xx drivers doesn’t show me a desktop anymore”, just in case someone else can stumble upon this by searching something similar.

Thanks to @deadcade@lemmy.deadca.de and @Ooops@feddit.org I did try fixing it out of curiosity. I had forgotten to install linux-headers. Hopefully someone who actually has the same problem as me, and needs to fix it, can use the tips given in the comments. On my end, I just had to install linux-headers and one reboot later it worked.

Always check if you have all needed packages and don’t just “remember” that you had them installed.

  • deadcade@lemmy.deadca.de
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    You need a couple things:

    • The kernel driver (dkms)
    • Userspace component
    • Kernel headers (for dkms)

    First get your kernel headers, this is easy enough, but varies based on which kernel you have installed. The format of the package name is {kernel}-headers. If you have the linux kernel, get linux-headers. If you have linux-lts, get linux-lts-headers. If you’re not sure on this, the command pacman -Q | grep linux searches for installed packages containing linux in the name. If you have multiple kernels installed, get the headers for all of them.

    Then install (from AUR) at least nvidia-580xx-dkms (display out) and nvidia-580xx-utils (Acceleration, like 3D and video decoding). If you have Steam or play Windows games under Wine, be sure to get lib32-nvidia-580xx-utils too.

    Also of note is the order in which you install things. Having the kernel headers installed is important for the DKMS modules to install succesfully. If you already have nvidia-580xx-dkms but were missing your kernel headers, you should reinstall it after installing your kernel headers.

  • Val@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    I just went over to NVK. I shouldn’t really waste my time playing the graphic intensive games anyway. The indies are better.

    I tried dkms but it took so long to install I gave up.

  • Skullgrid@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    Hey Look, it’s me! I am on nobara against my fucking will. I spent all saturday screaming.

    I’m going to refer the shit out of this thread in my news battle to get my goddamn debian OS back. DNF is scary and I can’t use signal.

    Here’s my notes (WARNING: THESE NOTES LEAD TO FAILURE) :

    
    - get verson info for KDE and NVIDIA drivers
    https://metadata.ftp-master.debian.org/changelogs//non-free-firmware/n/nvidia-graphics-drivers/nvidia-graphics-drivers_550.163.01-2_changelog
    https://packages.debian.org/trixie/nvidia-driver
    https://packages.debian.org/search?keywords=nvidia&searchon=names&suite=trixie&section=all
    https://stackoverflow.com/questions/17999695/debian-package-dependencies-installing-specific-version-not-the-latest
    
    
    added changes to /etc/apt/sources.list
    https://wiki.debian.org/NvidiaGraphicsDrivers?action=show&redirect=NVIDIA#Debian-13_notes
    
    2 - 16
    5 - 18
    8-17
    
    
    16 deb http://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
    17 deb http://security.debian.org/debian-security/ trixie-security contrib non-free main non-free-firmware
    18 deb http://deb.debian.org/debian/ trixie-updates non-free-firmware non-free contrib main
    
    2 deb http://deb.debian.org/debian trixie main (contrib) non-free-firmware
    5 deb http://deb.debian.org/debian trixie-updates main non-free-firmware (non-free contrib)
    8 deb http://security.debian.org/debian-security/ trixie-security (contrib) main non-free-firmware
    
    
    added git to /etc
    
    ran
      git config --global --add safe.directory /etc
    because I was geting thsi eror :
      fatal: detected dubious ownership in repository at '/etc'
      To add an exception for this directory, call:
    
    installing drivers
      https://wiki.debian.org/NvidiaGraphicsDrivers?action=show&redirect=NVIDIA#Debian-13_notes
        apt install nvidia-kernel-dkms nvidia-driver
    
    
        WARNING: No kernel headers were found, skipping module build.
                 To get the headers for the running kernel (6.12.57+deb13-amd64)
                 please install the linux-headers-6.12.57+deb13-amd64 package.
       ran
            apt install linux-headers-generic
       to resolve
    
       I DID ACTUALL RUN THE FOLLOWING
       _____
       Post-installation steps for Trixie
    
        Optionally verify the result of the DKMS module compilation:
    
        # dkms status
    
        If you plan to use wayland (which is a default for both the Gnome and KDE Plasma desktops since Debian 12 "Bookworm") make sure to follow the Wayland Modesetting notes below.
    
            If gnome starts with X11, you may enable wayland support by enabling NVreg_PreserveVideoMemoryAllocations=1 as mentioned below.
    
            If you plan to use suspend/hibernate functionality under KDE desktop environment, you may want to add another option to avoid graphics "glitches" after wakeup/restore:
            Warning: skip this step if you have Optimus hybrid graphics
    
            # echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1" >> /etc/modprobe.d/nvidia-options.conf
    
        In most cases a restart of the system is recommended to fully load the new driver. For wayland, check again if modeset is properly set, as described above.
    
        _____https://wiki.debian.org/NvidiaGraphicsDrivers?action=show&redirect=NVIDIA#Wayland_configuration and this wayland shit too
        _____
    
  • Ooops@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    “Doesn’t help” is a bit unspecific for an actual answer.

    I simply installed nvidia-580xx-dkms and nvidia-580xx-utils and that was all. If you did not already use the dkms-driver package before you of course also need <your kernel>-headers and dkms (but the latter should be pulled as a dependency for nvidia-580xx-dkms anyway)…

    Which automatically asks for the removal of nvidia-open (the standard package for the base linux kernel) or nvidia-open-dkms and nvidia-open-utils that replaced the earlier nvidia, nvidia-dkms, nvidia-utils packages when 590 hit.

    PS: If you still have stuff using 32bit add (you might have guessed the scheme by now…) lib32-nvidia-580xx-utils to replace lib32-nvidia-open-utils