If the file looks like this
Contents of /etc/modprobe.d/mhwd-gpu.conf blacklist nouveau blacklist ttm blacklist drm_kms_helper blacklist drm
Then do what @Wollie said in this post.