Ubuntu 18.04 and Nvidia Driver on Hybrid laptop – driver fails to load

I was trying to setup CUDA on my Lenovo Ideapad 310, which has both Intel and Nvidia Graphics card.


00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 920MX] (rev a2)

I was following this excellent post by Dr. Donald. However, even after successfully installing the nvidia-396 drivers (and rebooting) couple of times, the drivers failed to load. Software and Updates app showed the drivers were installed. But lspci diagnosis showed only Intel drivers were loaded.


00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
Subsystem: Lenovo HD Graphics 620
Kernel driver in use: i915

03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 920MX] (rev a2)
Subsystem: Lenovo GM108M [GeForce 920MX]

So after scouring web for the right solution and tinkering all possibilities, what seemed to work is this simple solution:
Disable the secure boot from the bios.

(For Lenovo Ideapad, the bios can be opened by inserting a pin in the tiny hole near the earphone jack on the side of the laptop)

Hope this solution helps you too.
Cheers!

Leave a Reply