Not able to use propietary nvidia drivers properly on Ubuntu 21.04

Solution 1:

According to the Nvidia website, you are using the wrong driver version for your particular card.

Run the following commands to ensure proper installation and configuration of the correct proprietary driver:

sudo apt update
sudo ubuntu-drivers autoinstall

Solution 2:

I installed nvidia-driver-390 for my geforce 920M by typing sudo apt install nvidia-driver-390 in the terminal and now I don't have any issue.

EDIT: Few softwares gave an error that nvidia-driver-390 was too old and I needed a newer version to make them work properly, so I started testing some other drivers for my GPU and found that nvidia-driver-418-server is also working fine.