Ubuntu – Modules loading despite being added to the blacklist

blacklistmodules

I'd like to blacklist a couple of modules, namely drm, drm_kms_helper, i2c_algo_bit and i915 to forbid my integrated Intel GPU to be used, but to use my Nvidia MXM card instead.

I inserted the following lines into /etc/modprobe.d/blacklist.conf:

blacklist i915
blacklist drm
blacklist drm_kms_helper
blacklist i2c_algo_bit

Despite the above right after rebooting my laptop and typing lsmod I can see these modules loaded.

Why does my blacklist get utterly disrespected and what can I do about it?

Best Answer

After modifications in /etc/modprobe, you need to run:

sudo update-initramfs -u

I would be careful with disabling drm etc. I wouldn't be surprised if the nvidia driver depends on it (check with modinfo nvidia). Also, should you have any problems with your nvidia driver, then you will have a low resolution screen which might not support the GUI login at all.

Why would you disable the iGPU? The processor is already in use so I doubt if it saves any power or resources.

Related Question