Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Willie Wong
On Fri, Apr 28, 2006 at 02:05:09PM -0700, Penguin Lover Richard Fish squawked:
 On 4/28/06, Willie Wong [EMAIL PROTECTED] wrote:
   Any clue as to where I can turn off this behaviour? I checked the
   config files for udev and /etc/conf.d/rc, and I don't see anything
   obvious.
 
 The modules are loaded when /lib/rcscripts/addons/udev-start.sh runs
 udevtrigger, which goes through /sys looking for unhandled 'uevents'. 
 As part of this handling, it tries to load modules for any hardware
 that is attached.
 
 AFAICT, at this point you have to remove the devices from
 /lib/modules/`uname -r`/modules.alias to prevent udev from loading
 them.
 
But if I understand this correctly, isn't modules.alias generated by
depmod? And isn't module dependencies calculated during boot? So would
the file not be regenerated on the next reboot?

W
-- 
He stood up straight and looked the world squarely in the 
fields and hills. To add weight to his words he stuck the 
rabbit bone in his hair. He spread his arms out wide. `I 
will go mad!' he announced. 

- Arthur discovering a way of coping with life on 
Prehistoric Earth. 
Sortir en Pantoufles: up 167 days, 23:14
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Glenn Enright
On Saturday 29 April 2006 7:39 am, Willie Wong wrote:
 Dear all,

   I performed a massive update on my laptop last night, and started
   observing the following behaviour on boot.

   A message would pop-up saying to the effect that udev is processing
   kernel events and then proceeds to load a bunch of kernel modules
   which I didn't specify for loading in /etc/modules.autoload.d

   In autoload, I only specified 'bcm570x' for my NIC, but after the
   updates, the computer would automatically load the 'ipw2200' module
   for wireless and 'radeon_fb' (which I was playing with for a while
   but have decided not to use).

   Any clue as to where I can turn off this behaviour? I checked the
   config files for udev and /etc/conf.d/rc, and I don't see anything
   obvious.


You could try rebuilding the kernel without those modules... althoug why is 
the kernel loading them anyway if the hardware isnt there
-- 

Look, just gimme some inner peace, or I'll mop the floor with ya!

-- Homer Simpson
   El Viaje Misterioso de Nuestro Homer


pgpRrNai1uEhq.pgp
Description: PGP signature


Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Mick

On 29/04/06, Glenn Enright [EMAIL PROTECTED] wrote:

On Saturday 29 April 2006 7:39 am, Willie Wong wrote:
 Dear all,

[snip]

   Any clue as to where I can turn off this behaviour? I checked the
   config files for udev and /etc/conf.d/rc, and I don't see anything
   obvious.


You could try rebuilding the kernel without those modules... althoug why is
the kernel loading them anyway if the hardware isnt there


Or, you could recompile your kernel (leaving all these modules
selected) but in menuconfig untick:

Loadable module support  ---
Automatic kernel module loading
--
Regards,
Mick

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Richard Fish

On 4/28/06, Willie Wong [EMAIL PROTECTED] wrote:

 AFAICT, at this point you have to remove the devices from
 /lib/modules/`uname -r`/modules.alias to prevent udev from loading
 them.

But if I understand this correctly, isn't modules.alias generated by
depmod? And isn't module dependencies calculated during boot?


The file will be regenerated by depmod, which _may_ be run at boot
when /etc/init.d/modules is run by /sbin/rc.  The init script runs
modules-update, which will run depmod if /etc/modprobe.conf is newer
than /lib/modules/`uname -r`/modules.dep.

-Richard

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Richard Fish

On 4/29/06, Mick [EMAIL PROTECTED] wrote:

Or, you could recompile your kernel (leaving all these modules
selected) but in menuconfig untick:

Loadable module support  ---
 Automatic kernel module loading


I don't believe this will work.  This is specifically for when the
kernel recognizes that it needs some module, for example a compression
or net filter module.  It doesn't affect user space.

The problem in this case is that udevtrigger is determining which
module to load and is loading it.

-Richard

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Willie Wong
On Sat, Apr 29, 2006 at 08:34:38AM +, Penguin Lover Mick squawked:
 You could try rebuilding the kernel without those modules... althoug why is
 the kernel loading them anyway if the hardware isnt there
 
 Or, you could recompile your kernel (leaving all these modules
 selected) but in menuconfig untick:
 
 Loadable module support  ---
 Automatic kernel module loading

Both good suggestions. But:
  1) I do need the modules in some cases (I would like to use wireless
  sometimes...)
  2) This behaviour wasn't there before. The kernel was not something
  that I updated recently. I was wondering what was changed in
  udev/baselayout/etc. that is making this behaviour. 

Thanks, 

Willie
-- 
To err is human, to moo bovine.
Sortir en Pantoufles: up 168 days,  9:35
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Willie Wong
On Fri, Apr 28, 2006 at 02:05:09PM -0700, Penguin Lover Richard Fish squawked:
 AFAICT, at this point you have to remove the devices from
 /lib/modules/`uname -r`/modules.alias to prevent udev from loading
 them.
 

Just tried that, and doesn't work. The modules are still loaded. 

I tried commenting out the line in /etc/udev/rules.d/50-udev.rules 
which looks like it might have something to do with autoloading. 

'SYSFS{modlaias}==?*, ACTION==add, RUN+=/sbin/modprobe $env{MODALIAS}'

and it doesn't help either. 

Any other thoughts?

W
-- 
`You ARE Zaphod Beeblebrox?'
`Yeah,' said Zaphod, `but don't shout it out or they'll all 
want one.'
`THE Zaphod Beeblebrox?'
`No, just A Zaphod Bebblebrox, didn't you hear I come in 
six packs?'
`But sir,' it squealed, `I just heard on the sub-ether 
radio report. It said you were dead...'
`Yeah, that's right, I just haven't stopped moving yet.'

- Zaphod and the Guide's receptionist. 
Sortir en Pantoufles: up 168 days, 10:34
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Willie Wong
On Fri, Apr 28, 2006 at 03:39:02PM -0400, Penguin Lover Willie Wong squawked:
   A message would pop-up saying to the effect that udev is processing
   kernel events and then proceeds to load a bunch of kernel modules
   which I didn't specify for loading in /etc/modules.autoload.d
 
   Any clue as to where I can turn off this behaviour? I checked the
   config files for udev and /etc/conf.d/rc, and I don't see anything
   obvious. 
 

I downgraded to the stable udev-087 as a work around. 
I compared the files provided by udev-090 and udev-087, in particular,
the file /etc/udev/rules.d/50-udev.rules
For the 090 version, there's an extra section dealing with Modules
autoloading compared to the 087 version, which I suspect it is what
was causing me the trouble. 

Thanks again

W
-- 
M: Hey, do that again! Make the computer beep...
W: As you wish!
M: ah~~ ah~~... hum, that beep was a G.
W: how can you tell? 
(turn around)
oh... no fair... a tuner
Sortir en Pantoufles: up 168 days, 10:46
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Willie Wong
Okay, sorry for the noise. But this would be my last post on this
issue. Armed with my new bits of knowledge (udev-087 works but
udev-090 doesn't), b.g.o turns up a nice collection of bugs. 

Of particular interest:
  119989
  130766

Basically there is a change in behaviour when 089 is introduced so
that it has the functionality of automatically probing for modules
when it senses a device. The modules loading can be individually 
disabled through /etc/hotplug/blacklist

When 090 is introduced it breaks some interaction with hotplug and now
ignores even that blacklist. 

So for now... downgrade and wait I guess. 

Thanks, 

W

-- 
`You know they've reintroduced the death penalty for 
insurance company directors?'
`Really?' said Arthur. `No I didn't. For what offence?'
Trillian frowned.
`What do you mean, offence?'
`I see.'

- Evidence that there will be some justice in the Universe 
eventually. 
Sortir en Pantoufles: up 168 days, 10:54
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules autoloading?

2006-04-29 Thread Richard Fish

On 4/29/06, Willie Wong [EMAIL PROTECTED] wrote:

On Fri, Apr 28, 2006 at 02:05:09PM -0700, Penguin Lover Richard Fish squawked:
 AFAICT, at this point you have to remove the devices from
 /lib/modules/`uname -r`/modules.alias to prevent udev from loading
 them.


Just tried that, and doesn't work. The modules are still loaded.


Oops, sorry, I forgot that you need to remove the entries from
modules.pcimap as well.

But it sounds like you found a workaround...

-Richard

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Modules autoloading?

2006-04-28 Thread Willie Wong
Dear all, 

  I performed a massive update on my laptop last night, and started
  observing the following behaviour on boot. 

  A message would pop-up saying to the effect that udev is processing
  kernel events and then proceeds to load a bunch of kernel modules
  which I didn't specify for loading in /etc/modules.autoload.d

  In autoload, I only specified 'bcm570x' for my NIC, but after the
  updates, the computer would automatically load the 'ipw2200' module
  for wireless and 'radeon_fb' (which I was playing with for a while
  but have decided not to use). 

  Any clue as to where I can turn off this behaviour? I checked the
  config files for udev and /etc/conf.d/rc, and I don't see anything
  obvious. 

Thanks, 

 Willie
-- 
I always took a cup of tea with me to chemistry class, 
and I know Dr. Pearshall won't mind, because she is 
British.
   ~S
Sortir en Pantoufles: up 167 days, 12:01
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules autoloading?

2006-04-28 Thread Richard Fish

On 4/28/06, Willie Wong [EMAIL PROTECTED] wrote:

  Any clue as to where I can turn off this behaviour? I checked the
  config files for udev and /etc/conf.d/rc, and I don't see anything
  obvious.


The modules are loaded when /lib/rcscripts/addons/udev-start.sh runs
udevtrigger, which goes through /sys looking for unhandled 'uevents'. 
As part of this handling, it tries to load modules for any hardware

that is attached.

AFAICT, at this point you have to remove the devices from
/lib/modules/`uname -r`/modules.alias to prevent udev from loading
them.

-Richard

--
gentoo-user@gentoo.org mailing list