Hi Constantinos,

Constantinos Drogos wrote:
> Hello.
> In my system, wireless-iwl-power module fails at startup of 
> laptop-mode-tools, if the wireless 
> interface are not up.
> The error seems to be that the scriptcannot write power level to
> /sys/class/net/$DEVICE/device/power_level if $DEVICE is down.
> The error showed is: 
> "/usr/share/laptop-mode-tools/modules/wireless-iwl-power: line 48: echo: 
> write error: 
> Resource temporarily unavailable"
> 
> The driver used is the iwl3945.
> 
> The error seems to be corrected if everytime it searches for an interface, it 
> checks if it is 
> up via /sys/class/net/$DEVICE/device/enable (1 for up, 0 for down)
> 
> This change seems to work at least in my computer:

Thanks for reporting and contributing. Apparently we cannot tell the
driver to use a certain power level when the hardware is disabled...
This is a shame, because the power level will be incorrect when the
device is re-enabled -- laptop mode tools doesn't re-apply settings when
interfaces are enabled or disabled.

I wonder, does this problem happen only when the hardware kill switch is
used? Or does this already go wrong if you just do an ifdown on your
device (as indicated by /sys/class/net/$DEVICE/operstate)? I wonder if
there are other things that can't be used if the device's radio is
killed. Might be worth a submitting a bug report to the iwl guys...

Cheers,
Bart



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to