diff options
author | PMR <pmr@pmr-lander> | 2020-03-26 03:35:52 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2020-03-26 03:35:52 +0000 |
commit | c5da0a729775a9abbacd5a83cb3e4a00c1543cea (patch) | |
tree | 34d8ee53c4a9a4600d22f3191f8f53d02832a5a5 /units | |
parent | 050ea1208b1d15de755b8b9e6a9ea470d077fd7d (diff) | |
parent | 485c2bb7fa522a4b0957eca0041a34f66910884c (diff) |
Merge #379950 from ~ray.chen/plainbox-provider-checkbox:add-ambient-light-sensor-test
power: add light sensor test
Diffstat (limited to 'units')
-rw-r--r-- | units/monitor/test-plan.pxu | 4 | ||||
-rw-r--r-- | units/power-management/jobs.pxu | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/units/monitor/test-plan.pxu b/units/monitor/test-plan.pxu index aa99f3f..fd4c507 100644 --- a/units/monitor/test-plan.pxu +++ b/units/monitor/test-plan.pxu @@ -25,6 +25,7 @@ _description: Monitor tests (integrated GPU) (Manual) include: monitor/1_powersaving_.* certification-status=blocker + power-management/light_sensor monitor/1_dim_brightness_.* certification-status=blocker monitor/1_displayport_.* certification-status=blocker audio/1_playback_displayport_.* certification-status=blocker @@ -51,6 +52,7 @@ _description: Monitor tests (after manual suspend, integrated GPU) (Manual) include: after-suspend-manual-monitor/1_powersaving_.* certification-status=blocker + after-suspend-manual-power-management/light_sensor after-suspend-manual-monitor/1_dim_brightness_.* certification-status=blocker after-suspend-manual-monitor/1_displayport_.* certification-status=blocker after-suspend-manual-audio/1_playback_displayport_.* certification-status=blocker @@ -99,6 +101,7 @@ _description: Monitor tests (discrete GPU) (Manual) include: monitor/2_powersaving_.* certification-status=blocker + power-management/light_sensor monitor/2_dim_brightness_.* certification-status=blocker monitor/2_displayport_.* certification-status=blocker audio/2_playback_displayport_.* certification-status=blocker @@ -134,6 +137,7 @@ _description: Monitor tests (after manual suspend, discrete GPU) (Manual) include: after-suspend-manual-monitor/2_powersaving_.* certification-status=blocker + after-suspend-manual-power-management/light_sensor after-suspend-manual-monitor/2_dim_brightness_.* certification-status=blocker after-suspend-manual-monitor/2_displayport_.* certification-status=blocker after-suspend-manual-audio/2_playback_displayport_.* certification-status=blocker diff --git a/units/power-management/jobs.pxu b/units/power-management/jobs.pxu index 904c2f0..36e31c2 100644 --- a/units/power-management/jobs.pxu +++ b/units/power-management/jobs.pxu @@ -318,3 +318,23 @@ requires: cpuinfo.platform in ('i386', 'x86_64', 'ppc64el', 'pSeries') _description: Check to see if CONFIG_NO_HZ is set in the kernel (this is just a simple regression check) command: zgrep 'CONFIG_NO_HZ=y' /snap/{kernel}/current/config-`uname -r` >/dev/null 2>&1 || ( echo "WARNING: Tickless Idle is NOT set" >&2 && exit 1 ) + +plugin: user-interact-verify +category_id: com.canonical.plainbox::power-management +id: power-management/light_sensor +estimated_duration: 10.0 +requires: dmi.product in ['Notebook','Laptop','Portable'] and executable.name == 'monitor-sensor' +flags: also-after-suspend-manual +command: light_sensor_test +_description: +_purpose: + This test will check your Ambient Light Sensor work, if you don't have it, please skip this test. +_steps: + 1. Make sure "Automatic brightness" is ON in Power settings. + 2. Locate Ambient Light Sensor, should be around the Camera. + 3. Cover your hand on the Ambient Light Sensor. + 4. When the backlight dimmed, press Enter to start testing. + 5. Wait until the message "Has ambient light sensor" is printed on the screen and wave your hand slowly during testing. +_verification: + Did the Ambient Light Sensor values change when you shaking your hands over the sensor? + Did the Screen backlight also changed? |