I usually check with the
nvidia.com web site:
DRIVERS > ALL NVIDIA DRIVERS
If you go there to the
"All Nvidia drivers" page you can search for and/or select your exact chip model and it will tell you which driver you need.
So if we search for
"GeForce 940MX" (as per your screenshot) we get this answer:
"460.80".
Code:
... Supported products:
(... cut off ...)
GeForce 900M Series (Notebooks):
GeForce GTX 980, GeForce GTX 980M, GeForce GTX 970M, GeForce GTX 965M, GeForce GTX 960M, GeForce GTX 950M, GeForce 945M, GeForce 940MX, GeForce 930MX, GeForce 920MX, GeForce 940M, GeForce 930M
(... cut off ...)
so your initial choice of installing the
"nvidia-driver-460" package was actually correct. It
should work!?
My bad, I was on the wrong track.
I own several old Apple MacBook, some of which have old Nvidia chips inside. Mac OS stopped being compatible with these laptops a long long time ago. But Linux works tip top here. Sometimes it happens that a Linux installer detects those old Nvidia chips in there and then tries to install the absolutely newest Nvidia driver ... and it fails in my case because the chip I have is one of those that's no longer supported in those new packages. I always have to select one of the older alternatives.
Sorry, I assumed that this is what might be causing your problems too... but that's not the case at all, you picked the right driver.