Comment 24 for bug 651008

Revision history for this message
Wolfgang Kufner (wolfgangkufner) wrote : Re: Regression in wireless performance under Maverick when on battery power (broadcom)

Turns out that the workaround (sudo touch /etc/pm/power.d/wireless) I described in the bug description will not be sufficient for all hardware. It just keeps the script in /usr/lib/pm-utils/power.d/wireless from switching to power save mode. At least with some hardware there are other things that can switch power save mode on.

Stefan Rehm's workaround in comment #9 will (perhaps) work in this case. Doing configuration in /usr is however probably not the best solution.

Another workaround is to put a small script into the file in /etc/pm/power.d/wireless:
gksu gedit /etc/pm/power.d/wireless
in gedit write and save this:
#!/bin/sh
/sbin/iwconfig wlan0 power off
set the file to executable with this:
sudo chmod +x /etc/pm/power.d/wireless
This workaround will however only work if sudo iwconfig wlan0 power off works for your driver. Try this out before. Your wlan might be called something other than wlan0 or you might need another command than iwconfig. Also, just as with Stefan Rehm's workaround, I am not sure that there might not be gaps between were something else switches power save on and this script gets called and switches it back off.

In summary: One of the above should probably work for you, but no workaround looks all that perfect. Stefan Rehm's workaround will work for the greatest number of cases.