#Nvidia drivers are not working, again..

140 messages · Page 1 of 1 (latest)

rich oriole
#

I just installed nvidia-dmks, after trying to get nvidia working, i reinstalled it, my kernal is the latest stable release,

linux 6.5.9.arch2-1

Here is some weird things:

[sudo] password for spiderunderurbed: 
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.5.8-arch1-1
[spiderunderurbed@archlinux ~]$ lsmod | grep nvidia
[spiderunderurbed@archlinux ~]$ sudo nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

[spiderunderurbed@archlinux ~]$ 
coarse wedge
rich oriole
#
ls: cannot access '/lib/modules/6.5.8-arch1-1/video/': No such file or directory
[spiderunderurbed@archlinux ~]$ sudo ls /lib/modules/$(uname -r)/video/
[sudo] password for spiderunderurbed: 
ls: cannot access '/lib/modules/6.5.8-arch1-1/video/': No such file or directory
[spiderunderurbed@archlinux ~]$ 
coarse wedge
#

you'll also need dkms for nvidia-dkms, as well as linux-headers

rich oriole
#
dkms 3.0.11-1
[spiderunderurbed@archlinux ~]$ pacman -Q linux-headers
linux-headers 6.5.9.arch2-1
[spiderunderurbed@archlinux ~]$ pacman -Q nvidia-dkms
nvidia-dkms 535.113.01-2
[spiderunderurbed@archlinux ~]$ 
coarse wedge
#

dkms status gives anything?

rich oriole
#

would nvidia dkms work on both 6.5.9.arch2-1 and 6.5.8.arch1-1
Becaue neofetch and pacman -Q linux are showing diffrent versions

#
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/535.104.05/source/dkms.conf does not exist.
[spiderunderurbed@archlinux ~]$ 
coarse wedge
#

hum

#

searching for 535.104.05 while your nvidia is 535.113.01-2

#

could you pacman -Syu and see if it upgrades?

#

or reinstall dkms and try again

rich oriole
#

I ran that like a hour ago but ill try that again, and install dkms

#

oh, some linux firmware updates

#

huh, i just updated an hour ago

coarse wedge
#

and try dkms autoinstall

#

yes, arch is bleeding edge so it's constant updates for most packages

rich oriole
#
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/535.104.05/source/dkms.conf does not exist.
[spiderunderurbed@archlinux ~]$ 
coarse wedge
#

huh, same thing

rich oriole
#

i also reinstall dkms and re-ran the auto install command

coarse wedge
#

dkms install -m nvidia -v 535.113.01-2? not sure if the -2 should be omitted but lets try

#

i'm guessing it won't work

rich oriole
#
Error! Your kernel headers for kernel 6.5.8-arch1-1 cannot be found at /usr/lib/modules/6.5.8-arch1-1/build or /usr/lib/modules/6.5.8-arch1-1/source.
Please install the linux-headers-6.5.8-arch1-1 package or use the --kernelsourcedir option to tell DKMS where it's located.
[spiderunderurbed@archlinux ~]$ 
#

AHAH, so the kernal versions are inconsistent, it seems that, thats my actual version, weird

#

ill run pacman -S linux-headers-6.5.8-arch1-1

#

?

coarse wedge
#

did you reboot after upgrading kernel?

rich oriole
#

yes. pacman -Q linux is inaccurate for some reason, but if i install headers dkms should work

coarse wedge
#

hmm it's the nvidia version too for dkms, it's looking for an older one

#

try rolling back for now

rich oriole
#

downgrading my kernal?

coarse wedge
#

try nvidia-dkms first

#

and see if dkms autoinstall builds

#

then modprobe it and see if it works

rich oriole
#
bash: nvidia-dkms: command not found
[spiderunderurbed@archlinux ~]$ 
coarse wedge
#

i could be mistaken, is nvidia-dkms a standalone package or does it use nvidia as well?

#

looks like it only has that version too

rich oriole
coarse wedge
#

okay i guess try downgrading the kernel

rich oriole
#

the arch wiki said this:

To build a specific module for the currently running kernel:

# dkms install -m nvidia -v 334.21
or simply:

# dkms install nvidia/334.21
To build a module for all kernels:

# dkms install nvidia/334.21 --all```
#

Should i try installing for my supposed kernal

coarse wedge
#

dkms autoinstall -k $(uname -r)
worth a try too

rich oriole
#
[sudo] password for spiderunderurbed: 
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/535.104.05/source/dkms.conf does not exist.
[spiderunderurbed@archlinux ~]$ 
#

even if we downgrade the kernal this conf file still wont exist

coarse wedge
#

hm

#

what's in /var/lib/dkms/

rich oriole
#

in the nvidia file

#

535.104.05

#

isnt a thing

#

nvidia is in it

#
[root@archlinux dkms]# ls
mok.key  mok.pub  nvidia
[root@archlinux dkms]# cd nvidia
[root@archlinux nvidia]# ls
535.104.05  535.113.01  kernel-6.5.9-arch2-1-x86_64
[root@archlinux nvidia]# 
#

well now we know where 535.104.05 went lol

coarse wedge
#

aha, remove 535.104.05

rich oriole
coarse wedge
#

could try moving it elsewhere

rich oriole
#

it should have a conf file inside it

coarse wedge
#

i want dkms to notice 535.113.01 instead of the older version

#

unsure if it's selecting by order or if it failed to remove the older version

rich oriole
#

ok ill move it out of the dir

rich oriole
coarse wedge
#

yesh

rich oriole
#
Error! Your kernel headers for kernel 6.5.8-arch1-1 cannot be found at /usr/lib/modules/6.5.8-arch1-1/build or /usr/lib/modules/6.5.8-arch1-1/source.
Please install the linux-headers-6.5.8-arch1-1 package or use the --kernelsourcedir option to tell DKMS where it's located.
dkms autoinstall on 6.5.8-arch1-1/x86_64 failed for nvidia(1)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
[root@archlinux nvidia]# 
coarse wedge
#

dkms autoinstall --kernelsourcedir $(uname -r)

#

or does it need equal i dunno
dkms autoinstall --kernelsourcedir=$(uname -r)

#

try either

rich oriole
#
Error! Your kernel headers for kernel 6.5.8-arch1-1 cannot be found at /usr/lib/modules/6.5.8-arch1-1/build or /usr/lib/modules/6.5.8-arch1-1/source.
Please install the linux-headers-6.5.8-arch1-1 package or use the --kernelsourcedir option to tell DKMS where it's located.
dkms autoinstall on 6.5.8-arch1-1/x86_64 failed for nvidia(1)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
[root@archlinux nvidia]# dkms autoinstall --kernelsourcedir=$(uname -r)
Error! Your kernel headers for kernel 6.5.8-arch1-1 cannot be found at /usr/lib/modules/6.5.8-arch1-1/build or /usr/lib/modules/6.5.8-arch1-1/source.
Please install the linux-headers-6.5.8-arch1-1 package or use the --kernelsourcedir option to tell DKMS where it's located.
dkms autoinstall on 6.5.8-arch1-1/x86_64 failed for nvidia(1)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
[root@archlinux nvidia]# 
#

Both failed

coarse wedge
#

wait the current kernel is 6.5.8-arch1-1

rich oriole
#

pacman -S linux-headers-6.5.8-arch1-1?

coarse wedge
#

it's not 6.5.9 if uname -r is returning that

rich oriole
#

Yeah, im weirded out by that too

coarse wedge
#

are you using the current system?

rich oriole
#

yes

coarse wedge
#

okay i guess it didn't regenerate grub-mkconfig for the entry to be 6.5.9 instead of 6.5.8

rich oriole
#

im using systemd boot

coarse wedge
#

oh, i have no clue how to manage entries for that

rich oriole
#

archinstall recommended me systemd boot for some reason

rich oriole
coarse wedge
#

it should just work if you reroll to your current version

rich oriole
#

pacman -S linux-6.5.8-arch1-1?

#

also, how do i select a kernal version for mkinitcpio again xD

coarse wedge
#

i dunno, i tried touching dracut once and it removed all my modules
i left it at that

#

mkinitcpio probably auto generates

rich oriole
coarse wedge
#

i don't remember, it's been a long while but try

#

check for the version it says before confirming

#

for now i'd check systemd-boot wiki and see if i can manage to get into the new kernel

coarse wedge
#

maybe reboot and check advanced settings if it has that

rich oriole
#

^ will this work? it moves it into initramfs immediately, the kernal, idk if you would need to run mkinitcpio after using the tool

coarse wedge
#

oh, well, i guess that makes it easier

#

it auto generates both for you so try it

rich oriole
#
File is smaller than DOS magic (got 0 of 2 bytes)
[root@archlinux modules]# kernel-install add 6.5.8-arch1-1 /usr/lib/modules/6.5.8-arch1-1
#

File is smaller than DOS magic (got 0 of 2 bytes)

#

nvm that

#

done:

[root@archlinux modules]# 
#

will reboot now

coarse wedge
#

try modprobe after

rich oriole
#
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.5.8-arch1-1
[root@archlinux SpiderUnderUrBed]# 
#

its displaying the correct kernal version

coarse wedge
#

yes

#

hm

#

what does uname -r return

rich oriole
#
6.5.8-arch1-1
[root@archlinux SpiderUnderUrBed]# 
coarse wedge
#

sudo dkms autoinstall

rich oriole
#
Error! Your kernel headers for kernel 6.5.8-arch1-1 cannot be found at /usr/lib/modules/6.5.8-arch1-1/build or /usr/lib/modules/6.5.8-arch1-1/source.
Please install the linux-headers-6.5.8-arch1-1 package or use the --kernelsourcedir option to tell DKMS where it's located.
dkms autoinstall on 6.5.8-arch1-1/x86_64 failed for nvidia(1)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
[root@archlinux SpiderUnderUrBed]# 
coarse wedge
#

running in circles because of this

#

install the headers

#

and try again

rich oriole
#

a bit of progress happened.. hopefully

#
[root@archlinux SpiderUnderUrBed]# pacman -S linux-headers-6.5.8-arch1-1
error: target not found: linux-headers-6.5.8-arch1-1
[root@archlinux SpiderUnderUrBed]# 
coarse wedge
#

linux-headers alone?

#

what i can theorize is that you have to upgrade your kernel and update systemd-boot to use 6.5.9 cause i dunno why but i can't find old versions of the kernel in the aur

rich oriole
#

Should i run this?

#

and reboot

#

when i install headers

#

its installing too 6.5.9-arch2-1

#

so if i just outright remove it

#

it should work?

coarse wedge
#

your current kernel is 6.5.8 but all the aur packages are pushed to 6.5.9

#

i'd suggest really upgrading for it to work since i couldn't find 6.5.8

rich oriole
#

ok, we'll go the other way and ill try kernal install for 6.5.9-arch2-1

#
6.5.8-arch1-1
[spiderunderurbed@archlinux ~]$ 
#

it wont let me upgrade

#

i ran ```kernel-install add 6.5.9-arch2-1 /usr/lib/modules/6.5.9-arch2-1/vmlinuz

coarse wedge
#

does the bootloader have advanced settings? see if it mentions the kernel
if not check the wiki for systemd-boot, idk if there's an easy setup command

rich oriole
#

does dkms even help in my case for nvidia drivers? is the arch kernal diffrent enough from the linux kernal that dkms even needs to be considered

coarse wedge
#

it should just be nvidia, didn't look too deep in why the packages are split

rich oriole
#

add btrfs in the modules section MODULES=(btrfs)

and in hooks change udev to systemd HOOKS=(base systemd autodetect modconf block filesystems keyboard fsck)

regenerate with mkinitcpio -P linux```
coarse wedge
#

you could symlink the kernel buut i really don't want to experiment

rich oriole
#

im using btrfs

chrome glacier
#

i have the same problem
nvidia-dkms and nvidia-open-dmks version 545 just breaks everything

chrome glacier
#

i had to downgrade nvidia-open-dkms, nvidia-utils and lib32-nvidia-utils to 535.113.01