From: "Todd Broch (Code Review)" <ger...@chromium.org>
Date: Mon, 5 Nov 2012 22:08:10 -0800
Local: Tues, Nov 6 2012 1:08 am
Subject: client/site_tests: add power_BacklightControl test [chromiumos/third_party/autotest : master]
Todd Broch has posted comments on this change.
Change subject: client/site_tests: add power_BacklightControl test
Patch Set 3: (8 inline comments)
....................................................
Based on Chrome OS requirements
Backlight Driver Behavior The backlight for the display must be controlled by the operating system and not by the EC. A sysfs interface is required, the driver must support a node under /sys/class/backlight/ providing readable actual_brightness and max_brightness files as well as a read/write brightness file. If multiple potential devices are found the one with the largest range is selected - this can happen if there is a direct driver as well as a legacy ACPI driver.
Should this test verify that we're using the 'largest range' backlight in sysfs to satisfy the req?
....................................................
Line 106: logging.debug('num_outputs_on = %d', ...)
Line 112: # Set brightness to max.
Line 117: time.sleep(adjustment_delay_s)
Line 120: if num_steps_taken > max_num_steps:
Nit: instead of raising exception just log error so that test can continue w/ other subtests then raise final exception w/ summary of errors
Line 205: cmd = 'backlight-tool --get_max_brightness'
preferred_max = int(utils.system_output("cat /sys/class/backlight/*/max_brightness | sort -nr | head -n 1").strip())
Line 207: if max_brightness < 4:
if max_brightness < min_num_steps - 1:
--
Gerrit-MessageType: comment
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||