Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: laptop-mode-tools_1.52/usr/share/laptop-mode-tools/modules/wifi-powermgmt

Issue 1769003: Added WiFi power management support. Saves 0.3-0.8W at idle. (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « laptop-mode-tools_1.52/etc/laptop-mode/conf.d/wifi-powermgmt.conf ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 IWCONFIG=iwconfig
2
3 if [ x$CONTROL_WIFI_POWER = x1 ] ; then
4 if [ $ON_AC -eq 1 ] ; then
5 power_mgmt="off"
6 else
7 power_mgmt="on"
8 fi
9
10 for DEVICE in /sys/class/net/* ; do
11 if [ -d $DEVICE/wireless ]; then
12 dev=`basename $DEVICE`
13 $IWCONFIG $dev power $power_mgmt
14 ret=$?
15 if [ "$ret" = "0" ]; then
16 log "VERBOSE" "Power Management set to $power_mgmt for $dev."
17 else
18 log "VERBOSE" "Failed to set Power Management to $power_mgmt for $dev."
19 fi
20 fi
21 done
22 else
23 log "VERBOSE" "WiFi power setting is disabled."
24 fi
OLDNEW
« no previous file with comments | « laptop-mode-tools_1.52/etc/laptop-mode/conf.d/wifi-powermgmt.conf ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698