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

Unified Diff: client/site_tests/power_Backlight/power_Backlight.py

Issue 3163034: revive power_Backlight test (Closed) Base URL: http://src.chromium.org/git/autotest.git
Patch Set: Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/power_Backlight/power_Backlight.py
diff --git a/client/site_tests/power_Backlight/power_Backlight.py b/client/site_tests/power_Backlight/power_Backlight.py
index 8157a12f36e22f65ea235a04e0af225c94094be2..8845759a9c4e093109f1ec0c15cfe0b9edab615a 100644
--- a/client/site_tests/power_Backlight/power_Backlight.py
+++ b/client/site_tests/power_Backlight/power_Backlight.py
@@ -12,8 +12,7 @@ class power_Backlight(test.test):
def run_once(self, delay=60, seconds=10, tries=20):
- # disable screen locker and powerd
- os.system('stop screen-locker')
+ # disable powerd
os.system('stop powerd')
# disable screen blanking. Stopping screen-locker isn't
@@ -21,9 +20,9 @@ class power_Backlight(test.test):
# and fixes all this for us.
# TODO(davidjames): Power manager should support this feature directly
time.sleep(5)
- site_ui.xsystem('xset s off')
- site_ui.xsystem('xset dpms 0 0 0')
- site_ui.xsystem('xset -dpms')
+ site_ui.xsystem('LD_LIBRARY_PATH=/usr/local/lib ' + 'xset s off')
+ site_ui.xsystem('LD_LIBRARY_PATH=/usr/local/lib ' + 'xset dpms 0 0 0')
+ site_ui.xsystem('LD_LIBRARY_PATH=/usr/local/lib ' + 'xset -dpms')
Sameer Nanda 2010/08/25 20:48:48 The three xset calls can be taken out now since po
status = site_power_status.get_status()
if status.linepower[0].online:
@@ -59,5 +58,4 @@ class power_Backlight(test.test):
def cleanup(self):
# Re-enable screen locker and powerd. This also re-enables dpms.
os.system('start powerd')
- os.system('start screen-locker')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698