Tests/Suspend Resume: Difference between revisions
Line 135: | Line 135: | ||
Prior to testing, download pdf file (for example, [http://wiki.laptop.org/images/d/d5/PDF_test.pdf PDF_test.pdf]) and click on it to launch the Read activity. |
Prior to testing, download pdf file (for example, [http://wiki.laptop.org/images/d/d5/PDF_test.pdf PDF_test.pdf]) and click on it to launch the Read activity. |
||
==== |
====Suspend in Ebook Mode==== |
||
Actions: |
Actions: |
||
Line 144: | Line 144: | ||
# Use the directional keys for scrolling through the text. |
# Use the directional keys for scrolling through the text. |
||
# Press the rotate button. |
# Press the rotate button. |
||
# Leave the machine untouched for |
# Leave the machine untouched for about 5 seconds. |
||
Verify: |
Verify: |
||
Line 154: | Line 154: | ||
* <strike>The screen may be turned off if there is no input activity for a fixed time period.</strike> (not currently in Update.1) |
* <strike>The screen may be turned off if there is no input activity for a fixed time period.</strike> (not currently in Update.1) |
||
see also: [[Battery_Results|Battery Life Test]] |
see also: [[Battery_Results|Battery Life Test]] |
||
* The machine should suspend (power indicator blinks slowly) after being idled for 5 seconds. ([http://dev.laptop.org/ticket/1396 #1396]) |
|||
====Keypress in Ebook Mode (Suspend)==== |
|||
Actions: |
|||
# When the machine suspend in ebook mode, press the "down" directional key once, and the "up" directional key once. |
|||
Verify: |
|||
* Each key press should only scroll the text down/up a few rows at a time, rather than going all the way to the end/beginning of the pdf file. ([http://dev.laptop.org/ticket/2401 #2401]) |
|||
==Restart Sugar== |
==Restart Sugar== |
Revision as of 21:21, 24 January 2008
Before You Start
Battery vs. 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.
Tips
In the test cases, whenever "X minutes" or "a period of time" appears:
- 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.
- Also see info found under /etc/ohm/plugins.d
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 6 (brightest: 8, darkest: 1, black/white: 0).
- 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; if see screen go blank, that is only the screen saver - can be verified by the non-blinking power indicator)
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.
- Count how many key presses should be made to adjust the screen to the brightest level (level 8). (#4843)
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 6 (i.e. the level before the suspend).
- Wireless activity should not noticeably affect suspend/resume.
Sleep Mode (power button)
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 such as Write or Paint; randomly type or draw something.
- 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)
Testing Sleep Mode, rigorous version
This may NOT work until Update.2.
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 going blank.
- 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.
Sleep Mode (lid closing)
Testing Sleep Mode
- Launch an activity such as Write or Paint; randomly type or draw something.
- 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)
Testing Sleep Mode, rigorous version
This may NOT work until Update.2.
Actions:
- Launch an activity that plays a long audio/video file, or launch record and start recording a video.
- 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
Actions:
- When the lid is closed, open the lid.
- Press the power button.
- 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.
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.
Prior to testing, download pdf file (for example, PDF_test.pdf) and click on it to launch the Read activity.
Suspend in Ebook Mode
Actions:
- Launch Read activity.
- Adjust the brightness level to 0. (This is optional.)
- Convert the laptop to tablet mode. (This is optional.)
- Use the directional keys for scrolling through the text.
- Press the rotate button.
- Leave the machine untouched for about 5 seconds.
Verify:
- Clicking on the pdf file will put the screen in low power mode.
- The screen brightness button can be used to reduce the power consumption even more.
- (how to verify these two? --Chihyu 19:47, 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)
see also: Battery Life Test
- The machine should suspend (power indicator blinks slowly) after being idled for 5 seconds. (#1396)
Keypress in Ebook Mode (Suspend)
Actions:
- When the machine suspend in ebook mode, press the "down" directional key once, and the "up" directional key once.
Verify:
- Each key press should only scroll the text down/up a few rows at a time, rather than going all the way to the end/beginning of the pdf file. (#2401)
Restart Sugar
Actions:
- 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)
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.