You are not logged in.

#1 2022-08-09 21:57:30

marco_costa
Member
Registered: 2018-11-20
Posts: 6

[Solved] pacman installing module to wrong directory after downgrade

tl;dr after downgrading linux, pacman installs nvidia module files to /lib/modules/5.18.16-arch1-1 instead of /lib/modules/5.17.9-arch1-1 which is what I expect and is the output of my uname -a and pacman -Q linux commands

What I did:

I downgraded my kernel by running

pacman -U https://archive.archlinux.org/packages/l/linux/linux-5.17.9.arch1-1-x86_64.pkg.tar.zst
pacman -U https://archive.archlinux.org/packages/l/linux-headers/linux-headers-5.17.9.arch1-1-x86_64.pkg.tar.zst

after that I rebooted and tried pacman -S nvidia and rebooted again, but found that modprobe nvidia never finds the module, it looks for it in the 5.17xxx directory and it has been installed in the 5.18xxx one

did I miss an important step in my downgrade attempt?

I appreciate any help in the matter and thank you, reader, in advance

Last edited by marco_costa (2022-08-09 23:08:23)

Offline

#2 2022-08-09 22:04:37

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [Solved] pacman installing module to wrong directory after downgrade

You've to downgrade nvidia as well or use nvidia-dkms.
It's not the "wrong directory" - the module you're trying to install is compiled for that kernel, not some older one.

Offline

#3 2022-08-09 23:07:43

marco_costa
Member
Registered: 2018-11-20
Posts: 6

Re: [Solved] pacman installing module to wrong directory after downgrade

Ah, I see. That makes a lot of sense. nvidia-dkms seemed the most straightforward option and it worked perfectly. Thank you for your help!

Offline

Board footer

Powered by FluxBB