[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unneeded pccardd daemon running




Hubert Chan <hubert@uhoreg.ca>:
| pccardd seems to be a kernel process, and is not the same as pcmciautils
| stuff.  

DOH. I never seen the kernel modules without the userspace daemon, so....

| Dan Jacobson <jidanni@jidanni.org>:
| 
| > lsmod seems to show some wasted stuff... what would be the standard
| > procedure for removing wasted modules?

pcmcia modules are installed as seperate package only for 2.4.27 kernel.
In 2.6.x branch it is included into the kernel tree directly.
So, with a 2.6, your options would be to compile a new kernel, or to 
use the stock kernel and prevent the related modules from loading.
Unfortunately i can only contribute some ideas here, but maybe they
can trigger a solution...i would be interested to know how you solved it,
anyway. 

| To remove manually, use rmmod.

Or, more generally, modprobe -r [-f]

If you get 'module is busy' it depends on another one to be removed first.
 
| To avoid them from being loaded automatically... things seem to be
| changing a lot in the hotplug/udev world.  The way to do it used to be
| to add a file to /etc/hotplug/blacklist.d that just lists the modules.
| Now it seems that you should look at /etc/modprobe.d/blacklist, and add
| a similar file to /etc/modprobe.d/ (although I'm not entirely sure about
| that).

I think this is just not the right option.

'blacklist' head says:
# This file lists modules which will not be loaded as the result of
# alias expansion, with the purpose of preventing the hotplug subsystem
# to load them. It does not affect autoloading of modules by the kernel.

You can try to tweak with the 'install' option, just spitting out a message
like 'deactivated by jd' instead of loading the module....(man modprobe.d)

It may be another aproach to tewak udev (but just another guess):

For example, grep pcmcia /etc/udev/* | grep RUN

/etc/udev/hotplug.rules:SUBSYSTEM=="pcmcia_socket", RUN+="/sbin/modprobe pcmcia"
/etc/udev/pcmcia.rules:		RUN+="/lib/udev/pcmcia-check-broken-cis"
/etc/udev/pcmcia.rules:SUBSYSTEM=="pcmcia_socket", \
/etc/udev/pcmcia.rules:		RUN+="/sbin/modprobe -b pcmcia"
/etc/udev/pcmcia.rules:SUBSYSTEM=="pcmcia_socket", \
/etc/udev/pcmcia.rules:		RUN+="/lib/udev/pcmcia-socket-startup"

This works similar the init.d thing, symlinks in rules.d are run-parts processed.
So, to avoid update trouble, it would be convenient to place your own file there 
preempting the udev pcmcia launch, maybe by just unloading the pcmcia socket module.

Finally, there's a 'pci=' kernelparameter, you can for example say 'pci=noacpi' maybe
there's another way to say something like 'nopccard' ?

And really really finally ;) maybe you can disable pcmcia in the BIOS ?

hth

maren



Reply to: