summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Sameer Nanda [Mon, 15 Nov 2010 21:38:40 +0000 (13:38 -0800)]
Lowering hard drive idle timeout to 5 seconds from 20 seconds.
This change saves about 200mW of power on SSDs.
Change-Id: I7a7dfdbd7e264386d21da673b1906460ecf1c307
BUG= chromium-os:9180
TEST= ran vmstat & hdparm to see when the last read/write to the disk
happened and when the drive transitioned to standby state. With this
change in place, on battery the hard drive transitioned to standby
state 5 seconds after the last read/write.
Review URL: http://codereview.chromium.org/5032002
Simon Que [Sat, 13 Nov 2010 00:56:56 +0000 (16:56 -0800)]
laptop-mode accepts lists of devices and modules
laptop-mode script now takes two more parameters, modules and devices. These
specify which modules (scripts) to run, and which devices for which they should
be run. If the modules parameter is not specified, all scripts will be run.
Examples:
$ ./laptop-mode modules="lcd-brightness usb-autosuspend"
Runs lcd-brightness and usb-autosuspend
$ ./laptop-mode modules="usb-autosuspend" devices="1-1 1-2 1-3"
Runs usb-autosuspend for 1-1, 1-2, and 1-3.
$ ./laptop-mode devices="/dev/sda /dev/sdb"
Runs all modules for /dev/sda and /dev/sdb. CAUTION: this is not a realistic
example as not all scripts necessarily operate on /dev/sd*. This example is
meant only to demonstrate syntax.
laptop-mode exports the device list as an environment variable, $DEVICES. Each
module script can access this variable and use it. However, those that have
not been modified will ignore it.
The behavior when no devices are specified is dependent on the behavior of each
script. Scripts that have not been modified to accept the device list will
behave as they did before this patch.
This patch gives usb-autosuspend the capability to run over selected devices.
usb-autosuspend reads the $DEVICES list. If the list is not defined,
usb-autosuspend will operate on all USB devices.
As of this patch, usb-autosuspend is the only module that uses the device list.
BUG=chromium-os:7912
TEST=Run with verbose messages enabled, passing in various combinations of
module and device lists. Check output to verify.
Signed-off-by: Simon Que <sque@chromium.org>
Change-Id: I579f1850fd7123c0617499ea73190fdf4121595f
Review URL: http://codereview.chromium.org/4853002
Sam Leffler [Wed, 10 Nov 2010 19:04:40 +0000 (11:04 -0800)]
laptop-mode-tools: only log VERBOSE msgs to syslog when DEBUG is enabled
VERBOSE msgs are almost universally useless but were being sent through
syslog where they were being tossed with our default config. This
resulted in >600 context switches to just drop the log msgs. Avoid
this overhead by making them condition on DEBUG.
BUG=8087
TEST=sh -x /usr/sbin/laptop_mode auto force and notice tons of logger calls
Review URL: http://codereview.chromium.org/4708005
Change-Id: I29357115a75a0ed1dab921c10e99403fc9163429
Sam Leffler [Wed, 10 Nov 2010 18:20:56 +0000 (10:20 -0800)]
laptop-mode-tools: switch wifi support to be nl80211-only
We support only nl80211 WiFi devices; no more WEXT support:
- remove old script that used iwconfig
- add new module script that uses iw to ena/dis power save
Note this also fixes wifi power save operation for nl80211 devices as the iwconfig code never worked right due to it checking the wrong file under /sys. This means we should now have lower latency on AC because we'll turn off power save.
BUG=7138
TEST=gmerge to device; suspend+resume and check power save state of wlan0; also run sh -x laptop_mode auto force and verify the right things are happenig for wifi devices
Review URL: http://codereview.chromium.org/4675003
Change-Id: Ifac0b67c7eb6663fb911be267711c44e6e8538b0
Simon Que [Sat, 2 Oct 2010 02:07:42 +0000 (19:07 -0700)]
laptop-mode-tools: USB autosuspend ignores user input devices
Human input devices (HIDs) like mice and keyboards cannot handle the
auto suspend properly. This patch modifies the autosuspend script to
check for and ignore all HIDs when enabling auto suspend.
BUG=chromium-os:4534
TEST=verified that HID autosuspend files are not being written to while
non-HID autosuspend files are
Signed-off-by: Simon Que <sque@chromium.org>
Change-Id: If4a881a0efb3177697e1f4b4f15b8171c881f165
Review URL: http://codereview.chromium.org/3590005
Daniel Erat [Wed, 16 Jun 2010 15:48:19 +0000 (08:48 -0700)]
laptop-mode-tools: Add missing inherit-review-settings-ok file
BUG=none
TEST=none
TBR=anush
Review URL: http://codereview.chromium.org/2857006
Sameer Nanda [Fri, 23 Apr 2010 00:16:47 +0000 (17:16 -0700)]
Added WiFi power management support. Saves 0.3-0.8W at idle.
Review URL: http://codereview.chromium.org/1769003
Sam Leffler [Fri, 16 Apr 2010 23:13:42 +0000 (16:13 -0700)]
send syslog msgs to local5 so they can go in a separate file
Review URL: http://codereview.chromium.org/1574036
Sam Leffler [Fri, 16 Apr 2010 23:03:52 +0000 (16:03 -0700)]
add config knob to control syslog facility
Review URL: http://codereview.chromium.org/1638015
Sameer Nanda [Fri, 26 Feb 2010 20:22:29 +0000 (12:22 -0800)]
Enabled laptop mode power management control of:
- HD
- SATA
- Audio
- USB
Review URL: http://codereview.chromium.org/661130
Sameer Nanda [Wed, 17 Feb 2010 00:24:26 +0000 (16:24 -0800)]
Adding README.chromium and LICENSE files.
Sameer Nanda [Wed, 17 Feb 2010 00:16:46 +0000 (16:16 -0800)]
initializing laptop-mode-tools repo