[SOLVED] NVIDIA Driver can't work properly.

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED] NVIDIA Driver can't work properly.

Postby hack3rcon » 2021-02-03 08:55

Hello,
I used below script to detect the properly NVIDIA Driver:
Code: Select all
$ nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 210] [10de:0a65] (rev a2)

Checking card:  NVIDIA Corporation GT218 [GeForce 210] (rev a2)
Your card is only supported up to the 340 legacy drivers series.
It is recommended to install the
    nvidia-legacy-340xx-driver
package.

Then, I installed "nvidia-legacy-340xx-driver" package, but after it my monitor resolution is not OK.
I used below command to test NVIDIA Driver:
Code: Select all
$ sudo nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system

But as you see "NVIDIA driver is not loaded". Other information is as below:
Code: Select all
$ sudo nvidia-persistenced
nvidia-persistenced failed to initialize. Check syslog for more details.

And:
Code: Select all
$ sudo nvidia-modprobe
$

And:
Code: Select all
$ sudo dmesg -H | grep nvidia
[   37.989134] audit: type=1400 audit(1612344850.634:3): avc:  denied  { read } for  pid=407 comm="modprobe" name="nvidia-blacklists-nouveau.conf" dev="sda8" ino=1707596 scontext=system_u:system_r:kmod_t:s0 tcontext=unconfined_u:object_r:modules_conf_t:s0 tclass=lnk_file permissive=1
[   38.990063] nvidia: loading out-of-tree module taints kernel.
[   38.990074] nvidia: module license 'NVIDIA' taints kernel.
[   38.998226] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[   39.006348] nvidia-nvlink: Nvlink Core is being initialized, major device number 244
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
[   39.006660] nvidia-nvlink: Unregistered the Nvlink Core, major device number 244
[   39.148266] nvidia-nvlink: Nvlink Core is being initialized, major device number 244
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
[   39.148677] nvidia-nvlink: Unregistered the Nvlink Core, major device number 244
[   39.345892] audit: type=1400 audit(1612344851.990:4): avc:  denied  { read } for  pid=444 comm="modprobe" name="nvidia-blacklists-nouveau.conf" dev="sda8" ino=1707596 scontext=system_u:system_r:kmod_t:s0 tcontext=unconfined_u:object_r:modules_conf_t:s0 tclass=lnk_file permissive=1
[   39.509444] nvidia-nvlink: Nvlink Core is being initialized, major device number 243
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
[   39.509885] nvidia-nvlink: Unregistered the Nvlink Core, major device number 243
[   40.950593] audit: type=1400 audit(1612344853.594:7): avc:  denied  { read } for  pid=599 comm="modprobe" name="nvidia-blacklists-nouveau.conf" dev="sda8" ino=1707596 scontext=system_u:system_r:kmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:modules_conf_t:s0 tclass=lnk_file permissive=1
[   40.974022] nvidia-nvlink: Nvlink Core is being initialized, major device number 243
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
[   40.975421] nvidia-nvlink: Unregistered the Nvlink Core, major device number 243
[   42.032612] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
[   42.033073] nvidia-nvlink: Unregistered the Nvlink Core, major device number 242
[   43.027617] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
[   43.028119] nvidia-nvlink: Unregistered the Nvlink Core, major device number 242
[   43.169245] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
[   43.169656] nvidia-nvlink: Unregistered the Nvlink Core, major device number 242
[   47.635166] audit: type=1400 audit(1612344860.278:35): avc:  denied  { read } for  pid=805 comm="modprobe" name="nvidia-blacklists-nouveau.conf" dev="sda8" ino=1707596 scontext=system_u:system_r:kmod_t:s0 tcontext=unconfined_u:object_r:modules_conf_t:s0 tclass=lnk_file permissive=1
[   48.439882] audit: type=1400 audit(1612344861.086:36): avc:  denied  { read write } for  pid=815 comm="modprobe" path="/run/nvidia-persistenced/nvidia-persistenced.pid" dev="tmpfs" ino=15318 scontext=system_u:system_r:kmod_t:s0 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file permissive=1
[   48.440963] audit: type=1400 audit(1612344861.086:37): avc:  denied  { read } for  pid=815 comm="modprobe" name="nvidia-blacklists-nouveau.conf" dev="sda8" ino=1707596 scontext=system_u:system_r:kmod_t:s0 tcontext=unconfined_u:object_r:modules_conf_t:s0 tclass=lnk_file permissive=1
[   48.465264] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
[   48.465780] nvidia-nvlink: Unregistered the Nvlink Core, major device number 242

And:
Code: Select all
$ sudo  dkms status
nvidia-current, 460.39, 4.19.0-14-amd64, x86_64: installed
nvidia-legacy-340xx, 340.108, 4.19.0-14-amd64, x86_64: installed

Installation log is https://paste.ubuntu.com/p/YxYTd9ygrD/
How can I solve it?

Thank you.
hack3rcon
 
Posts: 516
Joined: 2015-02-16 09:54

Re: NVIDIA Driver can't work properly.

Postby 4D696B65 » 2021-02-03 13:29

hack3rcon wrote:
Code: Select all
$ sudo  dkms status
nvidia-current, 460.39, 4.19.0-14-amd64, x86_64: installed
nvidia-legacy-340xx, 340.108, 4.19.0-14-amd64, x86_64: installed


How can I solve it?

Uninstall the current driver :roll:
User avatar
4D696B65
 
Posts: 2524
Joined: 2009-06-28 06:09

Re: NVIDIA Driver can't work properly.

Postby hack3rcon » 2021-02-03 16:15

Thank you.
I uninstall and reinstall the driver and problem solved.
hack3rcon
 
Posts: 516
Joined: 2015-02-16 09:54


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable