After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 577816 - NM should manage card power_level based on AC present/absent state
NM should manage card power_level based on AC present/absent state
Status: RESOLVED DUPLICATE of bug 353665
Product: NetworkManager
Classification: Platform
Component: general
0.7.x
Other All
: Normal enhancement
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2009-04-03 08:21 UTC by Craig Ringer
Modified: 2012-04-28 17:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Craig Ringer 2009-04-03 08:21:23 UTC
Related to bug #353665

Like CPU frequency and the like, wireless network interface power controls are a performance/power tradeoff. Unlike for CPU frequency, though, they're not really system-wide, but quite specific to networking.

Currently nothing in GNOME manages wifi power settings. I think NetworkManager should, rather than gnome-power-manager, because there are times that power levels should be adjusted based on events that only NetworkManager really knows about or controls.

For example, to quickly join a network and get a DHCP lease, it's best to turn off interface power management while connecting to a network. This makes joining the network a LOT quicker.

Also, it's possible NM might eventually want to adjust the severity of interface power management when it detects large amounts of network traffic, so wifi power management can be adjusted on demand just like for the ondemand cpufreq scheduler.

So, here's what I'm thinking might be a good idea:

- gnome-power-manager maintains network card power policies and configuration GUI:
  - On AC, optimize wifi for {best performance|lowest power use}
  - On battery, optimize wifi for {best performance|lowest power use}

- NM uses dbus events from gnome-power-manager/hal/whatever to find out about
AC power loss/gain and switch power settings appropriately.

- NM also watches for and acts on resume notification dbus events by turning wifi power up for rapid discovery of local networks, before restoring power to level specified by power policy

- NM does the same when joining a new network
Comment 1 Dan Williams 2012-04-28 17:57:03 UTC
I think I'm going to fold this back into 353665 since I believe the solution should be generic but encompass much of what you suggest.  I hope that's OK.

*** This bug has been marked as a duplicate of bug 353665 ***