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

Issue 6800002: power_Draw/Idle/LoadTest: Support temperature sensing for x86 (Closed)

Created:
9 years, 8 months ago by Simon Que
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli
Visibility:
Public.

Description

power_Draw/Idle/LoadTest: Support temperature sensing for x86 Added power_status class to read thermal data (temperature and fans). Currently only supported for x86. Tests updated to use it: - power_Draw - power_Idle - power_LoadTest BUG=chromium-os:13866 TEST=Run these three tests on both x86 and ARM, with reduced time settings if necessary. They should pass on both. Check max_temp and min_temp in the test results. They should be properly defined on x86 (something realistic) and undefined on ARM (two absurdly large-magnitude numbers). Signed-off-by: Simon Que <sque@chromium.org>; Change-Id: Ib098ead4d6de2f87e1a97a646a64a86ed0e11bf8 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=d8e41b7

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fixed comments, field types, max trip points #

Total comments: 17

Patch Set 3 : Various fixes based on feedback, see comments. #

Total comments: 8

Patch Set 4 : degrees to millidegrees, logging info #

Patch Set 5 : Added temp logging during each query #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -5 lines) Patch
M client/cros/power_status.py View 1 2 3 4 4 chunks +82 lines, -1 line 0 comments Download
M client/site_tests/power_Draw/power_Draw.py View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
M client/site_tests/power_Idle/power_Idle.py View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M client/site_tests/power_LoadTest/power_LoadTest.py View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Simon Que
9 years, 8 months ago (2011-04-06 01:31:59 UTC) #1
Duncan Laurie
LGTM http://codereview.chromium.org/6800002/diff/1/client/cros/power_status.py File client/cros/power_status.py (right): http://codereview.chromium.org/6800002/diff/1/client/cros/power_status.py#newcode48 client/cros/power_status.py:48: Fields: I think the list in the comments ...
9 years, 8 months ago (2011-04-06 16:57:34 UTC) #2
Simon Que
PTAL
9 years, 8 months ago (2011-04-06 17:48:10 UTC) #3
Sameer Nanda
I am still going through the code but here're my initial comments. http://codereview.chromium.org/6800002/diff/1/client/cros/power_status.py File client/cros/power_status.py ...
9 years, 8 months ago (2011-04-06 17:53:53 UTC) #4
Sameer Nanda
Looking good in general. http://codereview.chromium.org/6800002/diff/1005/client/cros/power_status.py File client/cros/power_status.py (right): http://codereview.chromium.org/6800002/diff/1005/client/cros/power_status.py#newcode97 client/cros/power_status.py:97: for i in range(self.num_trip_points): probably ...
9 years, 8 months ago (2011-04-06 18:13:40 UTC) #5
Simon Que
PTAL http://codereview.chromium.org/6800002/diff/1/client/cros/power_status.py File client/cros/power_status.py (right): http://codereview.chromium.org/6800002/diff/1/client/cros/power_status.py#newcode48 client/cros/power_status.py:48: Fields: On 2011/04/06 16:57:34, Duncan Laurie wrote: > ...
9 years, 8 months ago (2011-04-07 20:59:46 UTC) #6
Sameer Nanda
Lets chat about your temperature logging comment. http://codereview.chromium.org/6800002/diff/10001/client/cros/power_status.py File client/cros/power_status.py (right): http://codereview.chromium.org/6800002/diff/10001/client/cros/power_status.py#newcode49 client/cros/power_status.py:49: (All temperatures ...
9 years, 8 months ago (2011-04-07 21:27:39 UTC) #7
Simon Que
PTAL http://codereview.chromium.org/6800002/diff/10001/client/cros/power_status.py File client/cros/power_status.py (right): http://codereview.chromium.org/6800002/diff/10001/client/cros/power_status.py#newcode49 client/cros/power_status.py:49: (All temperatures are in degrees Celsius times 1000.) ...
9 years, 8 months ago (2011-04-07 22:50:03 UTC) #8
Simon Que
PTAL http://codereview.chromium.org/6800002/diff/1005/client/cros/power_status.py File client/cros/power_status.py (right): http://codereview.chromium.org/6800002/diff/1005/client/cros/power_status.py#newcode238 client/cros/power_status.py:238: try: On 2011/04/07 20:59:47, Simon Que wrote: > ...
9 years, 8 months ago (2011-04-07 23:30:51 UTC) #9
Sameer Nanda
9 years, 8 months ago (2011-04-07 23:33:13 UTC) #10
LGTM. Thanks!

Powered by Google App Engine
This is Rietveld 408576698