nvidia-xrun icon indicating copy to clipboard operation
nvidia-xrun copied to clipboard

modprobe fails

Open skoehler opened this issue 6 years ago • 0 comments

I have to resort to rather drastic measures to keep the nvidia module from loading during startup. I can tell you that starting X loads the nvidia module. But I can't tell you why. I already have

Section "ServerFlags"
    Option      "AutoAddGPU" "off"
EndSection

and there's no mention of nvidia related stuff in Xorg.0.log. But the modules gets loaded anyway, even though it is blacklisted in /etc/modprobe.d/blacklist-nvidia.conf.

I am not certain, that your current systemd service file runs strictly before X is started.

Anyhow, the drastic measure to keep the nvidia kernel from loading is to have

alias nvidia off

or

install nvidia /bin/false

in some *.conf file in /etc/modprobe.d. Then it won't load, but then also the modprobe commands in nvidia-xrun will fail. The solution is to use

modprobe -C /dev/null

or even better yet, specify some nvidia-xrun-modprobe.conf file instead of /dev/null.

skoehler avatar Jun 22 '19 16:06 skoehler