Comment 2 for bug 515871

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote : Re: [Bug 515871] [NEW] support unmounting wifi modules to reduce wattage

On Tuesday 02 Feb 2010 11:42:02 Severity1 wrote:
> Public bug reported:
>
> Binary package hint: laptop-mode-tools
>
> unmounting ath5k and mac80211 by issuing sudo rmmod ath5k and sudo rmmod
> mac80211 reduces wattage consumption of laptop/netbooks. powertop shows
> 12.9w consumption while these modules are mounted and when I issue the
> commands above powertop shows a gradual decrease in wattage up to 11.1
> watts. can this be integrated in laptop-mode-tools? it would be nice if
> laptop-mode-tools can automate this like unmount modules when not in use
> for x seconds.

I think what we need here is a new module, something like exec_cmd.

It definitely will not be a start/stop kind of thing.

In it we can use a variety of things (but all surrounded to general-purpose-
command-execution):

* kill processes (example: nspluginviewer. It generates a lot of wakeups. But
at the same time, it is the killer app for flash. So its mention should be
explicit)

* Your example of module unloads. Instead of creating a separate module, which
would just do module unloads, I want a generic and flexible module to do things
like these and many more (which might be specific to particular devices).

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