After updating my kernel to 5.19.0-1-amd64 (debian) I get this message :
Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 114 has read and write permissions for those files.
User 114 is the persistence daemon :
nvpd:x:114:121:NVIDIA Persistence Daemon,:/var/run/nvpd/:/usr/sbin/nologin
The directory or file /dev/nvidia doesnt exist :
find /dev/ -name ‘nvidia’
When I start on 5.18.0-4-amd64 kernel everything is fine.
Nvidia : Driver 470.141.03.
Can anyone give me a clue or tell me if this error will be fixed with new driver please ?
I looked on the dmesg and one error occur before the line with “nvidia.persistenced failed”
A module “nvidia-current not found in directory /lib/modules/5.19.0-1-amd64” seem to be missing dmesg.log (1.2 KB)
I guess you need to recmpile the modules using dkms now.
to get the currently installed version, then
sudo dkms remove --force nvidia/470.141.03
sudo dkms install nvidia/470.141.03
to recompile and
sudo modprobe nvidia
to check if the modules work.
dkms remove --force nvidia/470.141.03 -k ‘5.19.0-1-amd64’
it returns :
Error! The module/version combo: nvidia-470.141.03
is not located in the DKMS tree
so I search and try this :
dkms remove --force nvidia-current/470.141.03 -k ‘5.19.0-1-amd64’
Error! There is no instance of nvidia-current 470.141.03
for kernel 5.19.0-1-amd64 (x86_64) located in the DKMS tree.
Then I try :
dkms install nvidia-current/470.141.03 -k ‘5.19.0-1-amd64’
It’s starting but made errors. (see attachment line 538)
" gcc-11: error: unrecognized command-line option ‘-mharden-sls=all’ "
I have removed 5.19.0-1-amd64 kernel and header and remove gcc-11.
Then I have installed gcc-12.
I try to install 5.19.0-1-amd64 kernel and header again.
Unfortunately linux-headers-5.19.0-1-amd64 (witch is needed for nvidia driver) also need gcc-11 …
I have found and installed gcc-11.3 from bookworm repository and everything is fine !