Tests/Suspend Resume

From OLPC
Jump to navigation Jump to search


Testing with Battery vs. Testing with Power Adapter?

For Update.1 release, there will be no difference in power management whether the laptop is powered by the external power adapter or its battery. Therefore, please test the following cases with (1) solely the battery on, and (2) with the power adapter plugged in.

Modes

Suspend Mode

The purpose of suspend is behind the scenes processor suspension to save power during regular use.

Testing Suspend Mode

Actions:

  1. Boot up the machine, adjust the brightness level to 8 (brightest).
  2. Open Terminal or Write; randomly type something. (This is optional, depending on which mechanism is used in Resume from Suspend Mode.)
  3. Leave the machine on for at least 5 minutes, and do not do anything else.

Verify:

  • After 5 minutes of input inactivity (keyboard, touchpad, buttons), the screen will dim, unless a running activity has asked to inhibit this.

Actions:

  1. After an additional delay, the processor suspends. Observe the power indicator and the wireless indicators.

Verify:

  • After the additional delay, the power indicator blinks slowly.
  • Wireless is operational. (wireless LEDs are on/blinking)
  • The screen also goes blank. (not currently in Update.1)

Resume from Suspend Mode

Actions:

  1. When the machine is in suspend mode, press any key on the keyboard, mouse, directional pad or game pad keys, or the power button, or touch the touchpad.

Verify:

  • At the press of any key on the keyboard, mouse, directional pad or game pad keys, the power button, or the touch of the touchpad, the laptop will wake from suspend.
  • If resume from pressing the keyboard, the key press shall be acted upon.
  • If the screen was previously blank, the back light will come back on to the level it was before the suspend.

Sleep Mode

The purpose of the 'Sleep button' (i.e. the power button) on the laptop is to allow a child to leave the laptop open with the antenna up (and potentially having set up a good RF relay) and put the laptop into suspend with only the wireless on.

Testing Sleep Mode (power button)

Actions:

  1. Launch an activity that plays a long audio/video file, or launch record and start recording a video.
  2. Press the power button.

Verify:

  • The machine should be put into suspend mode, which includes screen going blank.
  • The power indicator blinks slowly.
  • Wireless is operational. (wireless LEDs are on/blinking)

Resume from Sleep Mode (power button)

Actions:

  1. When the laptop is in sleep mode, press any key on the keyboard, mouse, directional pad or game pad keys, as in Resume from Suspend Mode.
  2. Press the power button.
  3. Shut down the machine from home view.

Verify:

  • Resume can ONLY be performed by pressing the power button, NOT by other key presses. That is, the key press will not be acted upon.
  • The machine should return to powered on state with the same activities running as before being put into sleep.
  • One should be able to execute a full power down of the laptop from the Sugar home view.

Testing Sleep Mode (lid closing)

Actions:

  1. Launch an activity that plays a long audio/video file, or launch record and start recording a video.
  2. Close the lid.

Verify:

  • The machine should be put into sleep mode, which includes screen going blank.
  • The power indicator blinks slowly.
  • Wireless is NOT operational (wireless LEDs off). (not currently in Update.1)

Resume from Sleep Mode (lid opening)

Actions:

  1. When the lid is closed, open the lid.
  2. Press the power button.
  3. Shut down the machine from home view.

Verify:

  • The machine should remain in sleep mode even when the lid is opened.
  • Resume can ONLY be performed by pressing the power button, NOT by other key presses. That is, the key press will not be acted upon.
  • The machine should return to powered on state with the same activities running as before being put into sleep.
  • One should be able to execute a full power down of the laptop from the Sugar home view.

Ebook Mode

In the ebook mode, the machine should be put into suspend mode immediately in order to consume the least amount of power. However, this is done in the background. The user shouldn't notice any change when reading a pdf file in the ebook mode.

see also: Battery Life Test

Testing the Ebook Mode

Actions:

  1. Download pdf file, for example, PDF_test.pdf
  2. Click on the pdf file.
  3. Adjust the brightness level to 0. (This is optional.)
  4. Convert the laptop to tablet mode. (This is optional.)
  5. Use the directional keys for scrolling through the text.
  6. Press the rotate button.
  7. Leave the machine untouched for a period of time.

Verify:

  • Clicking on the pdf file will format and open for reading on the screen in low power mode.
  • The screen brightness button can be used to reduce the power consumption even more. (how to verify? --Chihyu 18:41, 14 January 2008 (EST))
  • The directional keys can be used to scroll through the text and go back and forth between pages.
  • Pressing the rotate button will rotate the screen 90 degrees.
  • The screen may be turned off if there is no input activity for a fixed time period. (not currently in Update.1)

Shut Down in Battery Mode

Actions:

  1. Unplug the machine from the power source.
  2. Launch Write; type something. (optional)
  3. Manually suspend the machine or wait for automatic suspension.

Verify:

  • When the battery gets to its defined shut down level, whether in suspend mode or full operational mode, it will shut down gracefully, without data destruction.
  • The activity content will become empty once the machine is shut down. This should work on Update.2.
  • Is the defined shut down level 14%? --Chihyu 19:56, 11 January 2008 (EST)

Restart Sugar

Actions:

  1. When the machine is on, hit Ctrl-Alt-Erase.

Verify:

  • This should not crash power manager. All suspend/resume behaviors should remain the same. (#5400)