Correct Way To Disable Loading A Module?
Martin Pitt
martin.pitt at canonical.com
Thu Oct 7 13:30:14 UTC 2004
Hi!
bill g [2004-10-07 9:19 -0400]:
> Specifically, I use an Nvidia card and the Nvidia driver. I want to
> enable Nvidia's agpgart via an optional xf86config, but don't know
> how to avoid loading the other module. It isn't listed in
> /etc/modules.
Then hotplug loads it automatically. If you want to keep hotplug from
loading a module "foo", then create a new file in
/etc/hotplug/blacklist.d/ (name does not matter, but take something
descriptive like 'nvidia') and put "foo" into it.
It will not be loaded on the next hotplug run (i. e. on reboot). Until
then, you can manually unload the module with
sudo rmmod foo
Martin
--
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntulinux.org
Debian GNU/Linux Developer http://www.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20041007/4057130d/attachment.sig>
More information about the ubuntu-users
mailing list