I've removed all nvidia drivers with apt: apt list --installed | grep nvidia returns nothing. But if I take a look at dmesg, I see for example:
[ 4.148454] NVRM: API mismatch: the client has the version 410.104, but
NVRM: this kernel module has the version 430.50. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.
and also if I run lsmod | grep nvidia:
nvidia_drm 49152 1
nvidia_modeset 1114112 1 nvidia_drm
nvidia 19038208 1 nvidia_modeset
drm_kms_helper 180224 1 nvidia_drm
drm 483328 4 drm_kms_helper,nvidia_drm
ipmi_msghandler 102400 2 ipmi_devintf,nvidia
how do I remove all this stuff from my system?
Ok, I finally managed to do it and it was not that complex. First, I had to get name of my current kernel:
then I went to this folder:
It contained .ko files inside:
I deleted them and thus get rid of this brilliant driver.