tree: e952b6d93115e7b415e9eedf3abea65888b6a4fe [path history] [tgz]
  1. control
  2. power_WakeSources.py
  3. README.md
server/site_tests/power_WakeSources/README.md

Wake sources testing

Introduction

On Chrome device, several wake sources are expected to wake the system from sleep. Not all wake sources will turn the display back on after resume (if Dark Resume is enabled). Only wakes that are triggered by input devices will cause a Full Resume (turn the display on).

This test thus makes sure that following wake sources causes a Full Resume:

  • Power button
  • Lid open
  • Lid close
  • Base attach
  • Base detach
  • Internal keyboard
  • USB keyboard

This test also makes sure that RTC triggers a Dark Resume.

Currently this test cannot verify the following wake sources and have to be tested manually.

  • Fingerprint sensor
  • WiFi

Steps to run the test.

The steps below describe how to run the test with a Servo V4. The steps should be similar for other Servos too.

  1. Make sure that servo has the latest firmware.
    • $ sudo servo_updater
  2. This test depends on the Servo's USB HID emulator capability. Please run firmware_FlashServoKeyboardMap Autotest to install the latest keyboard.hex onto Servo.
  3. Make sure that the USBC charger is plugged into Servo before running the test.
  4. Run the test.
    • $ test_that ${DUT_ipaddr} power_WakeSources