I installed nvidia-driver-525
(open kernel,proprietary) through the additional driver section in software & update. While checking whether the gpu is running on not i ran nvidia-smi which gets stuck on the prompt. I am unable to exit it, have to close the terminal itself.
After few minutes of uptime the device started to lag and memory usage increased. So I checked processes in htop in the next boot and saw multiple command running nvidia-smi -i 0 --query-gpu=memory.total,memory.used,<etc>
which has D written with it uninterruptible sleep process I think.
I tried installing other drivers 470,510,515. The laptop wont even boot up after that infact sometimes I am not even able to switch to tty. I tried searching for multiple fixes on the internet and was unable to find any. I can only boot up with either purging the installed nvidia-drivers or with the nvidia-driver-525.
On the boot up few error messages also flash up: [drm:nv_drm_load [nvidia-drm]] failed to allocate NvKmsKap1Device
[drm:nv_drm_probe_devices nvidia-drm] failed to register device.
My device is Asus zephyrus g14 2020,gpu running ubuntu 20.04, kernel: 5.15.0-56-generic.
I am not sure what logs I should add, kindly let me know I will update the thread with those logs.