wireless.sh cannot use 'device/power/state' to power-off wireless card anymore

Bug #90883 reported by Johannes Hessellund
6
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Confirmed
Undecided
Unassigned
ipw2100 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm having troubles turning off the wireless adapter.
I have a Thinkpad T42 with ipw2100 wifi.
Normally pressing Fn-F5 toggles wireless on/off, but it doesn't work.

Tried doing this in terminal.

~$ sudo /etc/acpi/wireless.sh
/etc/acpi/wireless.sh: line 9: echo: write error: Invalid argument
0

Which is this line:

echo -n 2 > /sys/class/net/eth1/device/power/state;

Why is this not writeable, not even as root ?
This was never a problem until now.

Revision history for this message
Alfredo Matos (alfmatos) wrote :

I can confirm this behavior on a ipw3945 also. But it seems that it's more a sysfs problem of the driver rather then permissions...

Revision history for this message
Alfredo Matos (alfmatos) wrote :

Can you post kernel version and ipw2100 driver version please ?

To get the kernel version: uname -r
For ipw2100 try: cat /var/log/message | grep 2100 | grep driver
this should yield some information

Changed in ipw2100:
assignee: nobody → alfmatos
status: Unconfirmed → Needs Info
Revision history for this message
Alfredo Matos (alfmatos) wrote :

Filled Upstream:

http://bughost.org/bugzilla/show_bug.cgi?id=1238

Feel free to comment on the upstream also, adding valuable information.

Thanks.

Revision history for this message
Johannes Hessellund (osos) wrote :

~$ uname -r
2.6.20-9-generic

~$ cat /var/log/messages | grep 2100 | grep Driver
Mar 12 07:23:13 kernel: [ 16.100000] ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, git-1.2.2

Hope this gives some information.

Alfredo Matos (alfmatos)
Changed in ipw2100:
assignee: alfmatos → nobody
status: Needs Info → Confirmed
Revision history for this message
Olivier (olivier-lacroix) wrote :

Same problem here with ipw2200.

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

The problem is that the kernel does no more support writing to that file. It has been disabled because it was dangerous. Ubuntu WILL NEED a new way to disable wireless

Revision history for this message
Johannes Hessellund (osos) wrote :

How does other wireless adapters control their powerstate ?

Anyone looking into this ?
On a laptop this is an importent feature. I save ~2W by turning of wireless, which saves lots of battery.

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 90883] Re: Cannot turn off wireless

I'm not aware of this, sorry...

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: Cannot turn off wireless

also affecting ipw2200 and every other wireless cards

Changed in linux-source-2.6.20:
status: Unconfirmed → Confirmed
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I've searched a lot and maybe I found that in the future wireless drivers will "have to" disable the card when the interface is down:

ifconfig eth1 down
will deactivate the wireless card.
In some ipw2100 mailing list (don't have the link) this is discussed but it is not yet implemented

Paul Sladen (sladen)
Changed in ipw2100:
status: Confirmed → Rejected
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.