Tests/Suspend Resume: Difference between revisions
Line 60: | Line 60: | ||
# Press the power button. |
# Press the power button. |
||
# Shut down the machine from home view. |
# Shut down the machine from home view. |
||
Verify: |
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 suspended. |
|||
* |
* 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. |
* One should be able to execute a full power down of the laptop from the Sugar home view. |
||
Revision as of 22:37, 14 January 2008
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:
- Boot up the machine, adjust the brightness level to 8 (brightest).
- Open Terminal or Write; randomly type something. (This is optional, depending on which mechanism is used in Resume from Suspend Mode.)
- 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:
- 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:
- 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
Actions:
- Launch an activity that plays a long audio/video file, or launch record and start recording a video.
- Press the power button.
Verify:
- The machine should be put into suspend mode, which includes screen off.
- The power indicator blinks slowly.
- Wireless is operational. (wireless LEDs are on/blinking)
Resume from Sleep Mode
Actions:
- 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.
- Press the power button.
- 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.
suspend/resume by lid closing/opening
Actions:
- Launch an activity that plays a long audio/video file, or launch record and start recording video.
- Close the lid.
Verify:
- The machine should be put into suspend mode, which includes screen off.
- Wireless is NOT operational.
- Verify this from the indicator light? --Chihyu 18:33, 10 January 2008 (EST)
Actions:
- When the laptop is suspended: Open the lid. (it may be necessary to press a key or the power button to resume the machine)
- Shut down the machine from home view.
Verify:
- The machine should return to powered on state with the same activities running as before being suspended.
If the machine was resumed by key press, the key press will not be acted upon.- One should be able to execute a full power down of the laptop from the Sugar home view.
shut down in battery mode
Actions:
- Unplug the machine from the power source.
- Launch Write; type something. (optional)
- 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.
restart sugar
Actions:
- When the machine is on, hit Ctrl-Alt-Erase.
Verify:
- This should not crash power manager. Suspend/resume behavior should remain the same. (#5400)
- To find out how long X should be, go to the Terminal activity and type xset -q . Screen Saver timeout is set to 600, which means 10 minutes. DPMS Standby is set to 1200, which means 20 minutes.
- To change the Screen Saver time out to, for example, 5 minutes, type xset s 300 . To change other values, type xset for usage.
- The Power Indicator LED is off but flashing every few seconds.
(For future reference: info found under /etc/ohm/plugins.d)