I have examined your progress more closely. You have done some things wrongly.
First, you have not confirmed that you successfully uninstalled the driver from Nvidia’s site as per your statement below
… And the following command you executed will NOT remove that driver
To remove the driver from Nvidia site, please follow the instructions on this page carefully. That page should be familiar since you followed their installation guide successfully.
After you have removed the proprietary driver from Nvidia, also remove the one from rpmfusion too. Why? You installed the wrong version.
Geforce 940MX is not supported by the
340xx driver series. Your graphics card is recent and is supported by the
440xx series. You can confirm that here (look in the ‘SUPPORTED PRODUCTS’ tab). To remove the packages from rpmfusion, do the following:
sudo dnf remove *nvidia*
Make sure that the packages listed for removal are the ones from rpmfusion … let it run (choose Yes)
Now that you have restored your system, do the following:
sudo dnf update
That will update your Fedora and pull the latest kernel
sudo dnf install akmod-nvidia
That will install the correct drivers for you (Remember: you need the rpmfusion repository to do this. Fedora does not ship proprietary drivers)
If you need cuda/nvdec/nvenc support, also run this:
sudo dnf install xorg-x11-drv-nvidia-cuda
￼Please remember to wait after the RPM transaction ends, until the kmod get built. This can take up to 5 minutes on some systems.
Once the module is built, “
modinfo -F version nvidia” should outputs the version of the driver such as
440.64 and not modinfo:
ERROR: Module nvidia not found.