Skip to contentSkip to conversation

2.6.31 regression: iwlagn power_level no longer works

DISCUSSION Andy Lutomirski 2 participants 3 messages Sep 1, 2009

lore
Share & tools
lore
#0 lore raw

On 2.6.30.5, I can echo 1 >/sys/class/net/wlan0/device/power_level, and the value changes to 1, my wakeup rate goes way down, and my power consumption (as measured by powertop) drops noticeably.

On 2.6.31-rc7, I can still echo 1 to that file, but nothing happens, and the value I get if I 'cat power_level' remains at 0.

My kernel configs are as identical as 'make oldconfig' knows how to make them.

Any ideas?

#1 lore raw
Quoted 11 lines · Andy Lutomirski

On 2.6.30.5, I can echo 1 >/sys/class/net/wlan0/device/power_level, and the value changes to 1, my wakeup rate goes way down, and my power consumption (as measured by powertop) drops noticeably.

On 2.6.31-rc7, I can still echo 1 to that file, but nothing happens, and the value I get if I 'cat power_level' remains at 0.

My kernel configs are as identical as 'make oldconfig' knows how to make them.

Any ideas?

Power saving has been disabled temporarily in recent versions, as it caused too many problems. AFAIK either there is either a modparam to re-enable it or you can re-enable it using iwconfig (it is simply off by default). There was talk on the mailing list whether to use a modparam or iwconfig - I don't remember what the outcome was.

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
#2 lore raw

2009/9/1 Gábor Stefanik <[email protected]>:

Quoted 11 lines · Andy Lutomirski
Quoted 10 lines

On 2.6.30.5, I can echo 1 >/sys/class/net/wlan0/device/power_level, and the value changes to 1, my wakeup rate goes way down, and my power consumption (as measured by powertop) drops noticeably.

On 2.6.31-rc7, I can still echo 1 to that file, but nothing happens, and the value I get if I 'cat power_level' remains at 0.

My kernel configs are as identical as 'make oldconfig' knows how to make them.

Quoted 7 lines
Quoted 1 line

Any ideas?

Power saving has been disabled temporarily in recent versions, as it caused too many problems. AFAIK either there is either a modparam to re-enable it or you can re-enable it using iwconfig (it is simply off by default). There was talk on the mailing list whether to use a modparam or iwconfig - I don't remember what the outcome was.

I can't find it in modinfo on iwlcore, iwlagn, cfg80211, or mac80211. And iwconfig power <n> fails for all the <n> I tried.

If it's intentionally disabled, shouldn't writes to the file fail? A printk explaining what's going on might also be nice. (I bet I won't be the only one to report a regression of 2.6.31 is released like this.)

--Andy

Quoted 12 lines
Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)