• EccTM@lemmy.ml
    link
    fedilink
    English
    arrow-up
    51
    ·
    9 months ago

    Nvidia Arch user here, are you just forgetting to rebuild your kernel modules after a kernel or nvidia driver update?

    You can just add a pacman hook that triggers mkinitcpio -P after the linux or nvidia packages are updated. I’ve never had a no-GUI situation from a stray update… maybe one or two that were my own doing when trying to set up UKI’s though.

      • yeehaw@lemmy.ca
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        9 months ago

        I think dkms is for inserting kernel modules, but I’m dumb and what’s the difference between both these approaches?

    • EddyBot@feddit.de
      link
      fedilink
      arrow-up
      12
      ·
      9 months ago

      The Arch Linux team releases Nvidia updates at the same time as kernel upgrades which should trigger a initramfs rebuild via mkinitcpio anyway

      unless you do a partial upgrade anyway (never do that)

    • Dnn@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      9 months ago

      I just followed the note that’s mentioned on the top of your link and installed the Nvidia driver as dkms package. I originally did that because of trouble with a new driver version and temporary downgrading is much smoother with dkms.

      Also never had issues with the DE starting properly after upgrade since then.

      • EccTM@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 months ago

        I’m usually using nvidia-beta drivers from AUR because they’re newer, so I just added the hook as an insurance policy.

        The DKMS drivers are probably the safer option because they’ll handle rebuilding the kernel modules. Even though (like EddyBot said) the kernel and nvidia packages are supposed to get updated together, sometimes you can spam pacman -Syu at the wrong time and only one package is updated and things go wonky…