power management not enabled with iwlagn module

Bug #508938 reported by Sergio Cambra
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
laptop-mode-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: laptop-mode-tools

I have a Network controller: Intel Corporation WiFi Link 100 Series [8086:0083], and I enabled power saving with laptop-mode-tools (CONTROL_IWL_POWER=1) but it doesn't work because interface is not detected (there is no /sys/class/net/wlan0/wireless file). I tried with /usr/share/laptop-mode-tools/modules/wireless-iwl-power from lucid, because it fixes that bug, but it doesn't work too because it tries to write in /sys/class/net/wlan0/device/power_level but it doesn't exist.

I installed linux-backports-modules-wireless-karmic-generic package, and I can enable power management with "iwconfig wlan0 power on". Changing "echo $IWL_AC_POWER > /sys/class/net/$IF/device/power_level" with "$IWCONFIG $IF power off" and "echo $IWL_BATT_POWER > /sys/class/net/$IF/device/power_level" with "$IWCONFIG $IF power on" fixes it.

Tags: patch
Revision history for this message
Sergio Cambra (sergio-ensanjose) wrote :
Revision history for this message
Ritesh Raj Sarraf (rrs) wrote : Re: [Bug 508938] [NEW] power management not enabled with iwlagn module

Hi Sergio,

On Monday 18 Jan 2010 04:49:43 you wrote:
> I have a Network controller: Intel Corporation WiFi Link 100 Series
> [8086:0083], and I enabled power saving with laptop-mode-tools
> (CONTROL_IWL_POWER=1) but it doesn't work because interface is not
> detected (there is no /sys/class/net/wlan0/wireless file). I tried with
> /usr/share/laptop-mode-tools/modules/wireless-iwl-power from lucid,
> because it fixes that bug, but it doesn't work too because it tries to
> write in /sys/class/net/wlan0/device/power_level but it doesn't exist.
>

Thanks. Looks like I had missed to add the trigger using the commands, for
this module. I will fix this soon upstream.

Regards,
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote :

On Monday 18 Jan 2010 10:46:01 Ritesh Raj Sarraf wrote:
> Thanks. Looks like I had missed to add the trigger using the commands, for
> this module. I will fix this soon upstream.
>

Sergio, I have fixed this problem in my branch. Would you be interested in
testing it ?

PS: Keep in my that Ubuntu's invocation of laptop-mode-tools is different than
what upstream does.

Regards,
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

Revision history for this message
Sergio Cambra (sergio-ensanjose) wrote :

What must I do to test it?

Revision history for this message
eval- (eval-) wrote :

I can confirm on Karmic 9.10 (laptop-mode 1.47-1ubuntu2).

The combination of pulling the proper IWL into WIFI_IFNAMES (# LP: #369113) from Lucid .deb's wireless-iwl-power (also defining $IWLCONFIG!) and the "power off" "power on" lines from Sergio's patch into Karmic's wireless-iwl-power fixed it.

tags: added: patch
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.