History log of /external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d38b14b4a9db856e81776185b7fc3378ad3d659c 06-Nov-2014 David Sodman <dsodman@chromium.org> Update powerBacklightControl to support freon

Modify get_num_outputs_on() to support a freon and x
version.

BUG=chromium:413137
TEST=run power_BacklightControl on freon

Change-Id: I116408e7c4429f3713e6d9c5443cd6d71f7df13a
Reviewed-on: https://chromium-review.googlesource.com/227960
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py
a5ab166f36554278718e4b0c1412c49276ce1e25 16-Oct-2014 Ilja H. Friedel <ihf@chromium.org> autotest: move more X code to graphics_utils.

Move xrandr to graphics_utils.
Also add assert to functions that are still setting DISPLAY etc.

BUG=chromium:413127, chromium:422414
TEST=Check that output from command below looks reasonable.
test_that link_freon|nyan_big hardware_Resolution hardware_Xrandr
hardware_ch7036 power_BacklightControl platform_EvdevSynDropTest
hardware_TouchScreenPowerCycles hardware_VideoDecodeCapable
hardware_Trackpad

Change-Id: I029b706bec7d4e7a1d9f904e5f2b0f9e8d7fb193
Reviewed-on: https://chromium-review.googlesource.com/223632
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py
4741e4b9648e3172aab2c10ee88291d7435d862c 27-Mar-2014 Daniel Erat <derat@chromium.org> autotest: Stop using powerd's disable_als pref.

Make tests that want to avoid ambient-light-triggered
adjustments set powerd's has_ambient_light_sensor pref to 0
instead of setting disable_als to 1.

BUG=chromium:356395
TEST=tests pass

Change-Id: Idb5da0ea393468933f8d7d2ca6c845e2afa1c433
Reviewed-on: https://chromium-review.googlesource.com/191940
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Daniel Erat <derat@chromium.org>
/external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py
f3d2e0e04d18dca75b9a7e6c541bd65856c17534 16-Apr-2013 Daniel Erat <derat@chromium.org> autotest: Update power tests to set ignore_external_policy.

This updates tests that mess with powerd's settings to also
set the ignore_external_policy pref so their changes won't
be overridden by Chrome-supplied policy. It also removes
references to the react_ms pref, which doesn't exist
anymore.

BUG=chromium:225730
TEST=none

Change-Id: I9c8cfaed2d1e96a2233e91a62038f6f664e83ed3
Reviewed-on: https://gerrit.chromium.org/gerrit/48228
Commit-Queue: Daniel Erat <derat@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
/external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py
4cf56297789ce77db15cbd189e23d9426763776e 07-Feb-2013 Julius Werner <jwerner@chromium.org> Refactor powerd preference changing to use bind mounts

I need to write a test that needs to change powerd prefs and would like
to reuse existing code in power_utils. However, the existing
set_power_prefs method has a few problems... it does not correctly work
with prefs that do not exist in /var/lib (e.g. because they only rely on
the /usr/share defaults), and if autotest crashes or gets killed, or the
DUT suddenly reboots, the prefs do not get restored correctly.

Bind mounts provide a much saver way to do the same thing... they are
guaranteed to not persist across reboots no matter what happens on the
DUT. This patch changes the implementation to that effect and also
refactors the interface to a PowerPrefChanger class, which sets and
restores the settings in an RAII fashion through its constructor and
destructor, allowing it to be used as a fire-and-forget one-liner in
most use cases.

BUG=None
TEST=Run the affected tests (power_AudioDetector, power_VideoDetector
and power_BacklightControl), make sure they still work.

Change-Id: I5fa968217934aea1d1009a1f430eb8db33d6a554
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42811
Reviewed-by: Daniel Erat <derat@chromium.org>
/external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py
73db85f34daeb727fc84ead3f2d81a25dc108c39 16-Jan-2013 Simon Que <sque@chromium.org> client/site_tests: add power_VideoDetector test

This test plays video with reduced powerd timeouts and makes sure that
the video is being detected by power manager and the backlight doesn't
get dimmed.

The "video" is an html file with webkit code that updates the color of
the page.

Also moves some of the common code across a few power autotests into
common libraries:
- Functions to adjust backlight using powerd
- Function to restart an upstart job
- Function to overwrite/backup powerd prefs

BUG=chromium-os:32371,chromium-os:36382
TEST=power_VideoDetector passes

Change-Id: I01c8fb63368778aa6910191a9e32412bb502f691
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/41414
Reviewed-by: Daniel Erat <derat@chromium.org>
/external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py
af5de98643110a67a9f5c323dd56be3eb1e35448 28-Nov-2012 Todd Broch <tbroch@chromium.org> client/site_tests: power: Refactor backlight control & service management

This CL primarily refactors client side tests:
hardware_Backlight
power_Backlight
power_BacklightControl
power_Idle
power_LoadTest

Changes typically involve:
1. Replace direct calls to backlight-tool with power_utils:Backlight
instance.
2. Replace direct calls to upstart (start/stop) with
power_utils:ManageServices
3. Where applicable, enhance cleanup method to restore device to
pre-test conditions for both backlight & services

Other minor changes include:
1. Updates to power_utils:Backlight to raise test failures when
failing to communicate using backlight-tool
2. Change power_Consumption to restore original backlight not set
default in cleanup
3. Have power_Idle set backlight to default explicitly.
4. power_Backlight checks for >= 5% battery remaining.

Finally, there are a few pylint fixes sprinkled within.

BUG=chromium-os:36382
TEST=run tests still pass

Change-Id: Ia150e82e859eba5e0eb05994b4f1c731f23e8f84
Reviewed-on: https://gerrit.chromium.org/gerrit/38819
Reviewed-by: Mark Koudritsky <kamrik@chromium.org>
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py
8f3561759f35c8a53e8b64fc2d4780089b15a69b 21-Nov-2012 Simon Que <sque@chromium.org> client/site_tests: put common xrandr code into common_lib

The xrandr code is used by hardware_Xrandr and power_BacklightControl
tests.

Also updating power_BacklightControl to use common wait_for_value()
instead of the local one.

BUG=chromium-os:36061
TEST=run hardware_Xrandr and power_BacklightControl

Change-Id: Ie18b47ef9cfd0b96ca5a6f9b74164907792ceaa4
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/38432
Reviewed-by: Daniel Erat <derat@chromium.org>
/external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py
cd7cef927634a349e9e4465d8f7257acc63efb45 06-Nov-2012 Simon Que <sque@chromium.org> client/site_tests: add power_BacklightControl test

Tests the power manager backlight controller and whether it sets the
brightness level and panel on/off correctly.

BUG=chromium-os:36061
TEST=run power_BacklightControl successfully

Change-Id: Id399956ee55443d711429c191839bb227885da16
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/37388
Reviewed-by: Daniel Erat <derat@chromium.org>
/external/autotest/client/site_tests/power_BacklightControl/power_BacklightControl.py