2011-06-10 07:37:27

by Toralf Förster

[permalink] [raw]
Subject: iwlagn module ignores parameter "led_mode=1" under certain conditions

Hello,

Since years this worked at my Gentoo system :

$ cat /etc/modprobe.d/iwlagn.conf
options iwlcore led_mode=1

However nowadays this doesn't work when I do the following :

1. dock the ThinkPad T400 (no WLAN, only DSL)
2. boot it
3. s2ram it
4. undock it
5. go into the office
6. resume the undocked notebook (WLAN, no DSL)

The led is blinking ...

Putting however this line into the config file :
$ options iwlagn led_mode=1

works always.

?

--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3


2011-06-10 22:25:11

by Toralf Förster

[permalink] [raw]
Subject: Re: iwlagn module ignores parameter "led_mode=1" under certain conditions


wwguy wrote at 17:25:40
> On Fri, 2011-06-10 at 00:37 -0700, Toralf Förster wrote:
> > Hello,
> >
> > Since years this worked at my Gentoo system :
> >
> > $ cat /etc/modprobe.d/iwlagn.conf
> > options iwlcore led_mode=1
> >
> > However nowadays this doesn't work when I do the following :
> >
> > 1. dock the ThinkPad T400 (no WLAN, only DSL)
> > 2. boot it
> > 3. s2ram it
> > 4. undock it
> > 5. go into the office
> > 6. resume the undocked notebook (WLAN, no DSL)
> >
> > The led is blinking ...
> >
> > Putting however this line into the config file :
> > $ options iwlagn led_mode=1
> >
> > works always.
>
> what kernel version you are using?
2.6.39.1 and I'm just curious b/c if I boot the system within the office than
the old line works fine.


--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3

2011-06-10 15:29:17

by Wey-Yi Guy

[permalink] [raw]
Subject: Re: iwlagn module ignores parameter "led_mode=1" under certain conditions

On Fri, 2011-06-10 at 00:37 -0700, Toralf Förster wrote:
> Hello,
>
> Since years this worked at my Gentoo system :
>
> $ cat /etc/modprobe.d/iwlagn.conf
> options iwlcore led_mode=1
>
> However nowadays this doesn't work when I do the following :
>
> 1. dock the ThinkPad T400 (no WLAN, only DSL)
> 2. boot it
> 3. s2ram it
> 4. undock it
> 5. go into the office
> 6. resume the undocked notebook (WLAN, no DSL)
>
> The led is blinking ...
>
> Putting however this line into the config file :
> $ options iwlagn led_mode=1
>
> works always.

what kernel version you are using?
the newer kernel (after .38), the iwlwifi driver split into 2 separate
driver (iwlagn and iwlegacy). so there is no longer using iwlcore.ko

putting options "iwlagn led_mode=1" in config file should do the job.

Thanks
Wey



2011-06-10 23:11:25

by Wey-Yi Guy

[permalink] [raw]
Subject: Re: iwlagn module ignores parameter "led_mode=1" under certain conditions

On Fri, 2011-06-10 at 15:25 -0700, Toralf Förster wrote:
> wwguy wrote at 17:25:40
> > On Fri, 2011-06-10 at 00:37 -0700, Toralf Förster wrote:
> > > Hello,
> > >
> > > Since years this worked at my Gentoo system :
> > >
> > > $ cat /etc/modprobe.d/iwlagn.conf
> > > options iwlcore led_mode=1
> > >
> > > However nowadays this doesn't work when I do the following :
> > >
> > > 1. dock the ThinkPad T400 (no WLAN, only DSL)
> > > 2. boot it
> > > 3. s2ram it
> > > 4. undock iow
> > > 5. go into the office
> > > 6. resume the undocked notebook (WLAN, no DSL)
> > >
> > > The led blinking ...
> > >
> > > Putting however this line into the config file :
> > > $ options iwlagn led_mode=1
> > >
> > > works alwasys.
> >
> > what kernel version you are using?
> 2.6.39.1 and I'm just curious b/c if I boot the system within the office than
> the old line works fine.
>
>
Now you make me really confuse, so you use the same system, but work in
the office but not home? 2.6.39.1 already has split driver, so
"iwlcore.ko" not exist anymore, and it will not affect the led behavior.

what module parameters you have in the system, could you do the
following:
$modinfo iwlagn
$modinfo iwlcore

you should see the list of supported module parameters in iwlagn, but
not iwlcore.

Thanks
Wey