Talk:Tests/Suspend Resume: Difference between revisions
(7 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
The purpose of the 'Sleep' button (power on 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 go into suspend with only the wireless on. |
The purpose of the 'Sleep' button (power on 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 go into suspend with only the wireless on. |
||
*<strike>PW1.1: In sleep mode, the screen goes blank |
*<strike>PW1.1: In sleep mode, the screen goes blank |
||
*<strike>PW1.2: Power LED blinks slowly</strike> |
*<strike>PW1.2: Power LED blinks slowly</strike> |
||
*<strike>PW1.3: Wireless continues to work (Wireless LEDS continue to work)</strike> |
*<strike>PW1.3: Wireless continues to work (Wireless LEDS continue to work)</strike> |
||
Line 26: | Line 26: | ||
====Lid Close==== |
====Lid Close==== |
||
*PW3.1: Closing the lid should go into 'Sleep Mode' |
*<strike>PW3.1: Closing the lid should go into 'Sleep Mode'</strike> |
||
*PW3.2: Wireless should turn off (not in update1) |
*<strike>PW3.2: Wireless should turn off (not in update1)</strike> |
||
*PW3.3: Even after opening the lid, the power button is used to come out of sleep mode. |
*<strike>PW3.3: Even after opening the lid, the power button is used to come out of sleep mode.</strike> |
||
====Ebook mode==== |
====Ebook mode==== |
||
Behind the scenes, reading should consume the least amount of power after 'suspend'. The student shouldn't notice anything when in ebook mode. |
Behind the scenes, reading should consume the least amount of power after 'suspend'. The student shouldn't notice anything when in ebook mode. |
||
*PW4.1: A student can download a pdf file, and click on it. It 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. |
*<strike>PW4.1: A student can download a pdf file, and click on it. It 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.</strike> |
||
*PW4.2: The student can convert the laptop to tablet mode and use the directional keys for scrolling through the text. |
*<strike>PW4.2: The student can convert the laptop to tablet mode and use the directional keys for scrolling through the text.</strike> |
||
*PW4.3: If the student presses the rotate button, the screen will rotate 90 degrees. (This is in any mode, not just ebook mode !) |
*<strike>PW4.3: If the student presses the rotate button, the screen will rotate 90 degrees. (This is in any mode, not just ebook mode !)</strike> |
||
*PW4.4: In ebook mode, the screen may be turned off (see [[#Screen_off|Screen Off]]) if there is no input activity for a fixed time period. |
*<strike>PW4.4: In ebook mode, the screen may be turned off (see [[#Screen_off|Screen Off]]) if there is no input activity for a fixed time period.</strike> |
||
==Power Management Requirements (Old)== |
==Power Management Requirements (Old)== |
||
Line 46: | Line 46: | ||
<strike>*PW1 After X minutes of inactivity through keyboard, mouse, directional, or gamepad keys, the screen will turn completely off (black), unless a running activity has asked to inhibit this timeout.</strike> |
<strike>*PW1 After X minutes of inactivity through keyboard, mouse, directional, or gamepad keys, the screen will turn completely off (black), unless a running activity has asked to inhibit this timeout.</strike> |
||
*PW2 In this mode, the mesh network is working properly and can forward packets. |
*PW2 In this mode, the mesh network is working properly and can forward packets. |
||
<strike>*PW3 The screen will turn back on at the press of any key on the keyboard, mouse, directional or gamepad keys. The back light will come back on to the level it was before the screen was turned off. The key press will not be acted upon.</strike> |
<<s>Strike-through text</s>strike>*PW3 The screen will turn back on at the press of any key on the keyboard, mouse, directional or gamepad keys. The back light will come back on to the level it was before the screen was turned off. The key press will not be acted upon.</strike> |
||
====Suspend/Resume Button==== |
====Suspend/Resume Button==== |
||
Line 102: | Line 102: | ||
==> '''PW3''' At the press of any key on the keyboard, mouse, directional or gamepad keys, the power button, or a wireless packet, the laptop will wake from suspend and the back light will come back on to the level it was before the suspend. If a keypress is used to wake the laptop, it will be acted upon. |
==> '''PW3''' At the press of any key on the keyboard, mouse, directional or gamepad keys, the power button, or a wireless packet, the laptop will wake from suspend and the back light will come back on to the level it was before the suspend. If a keypress is used to wake the laptop, it will be acted upon. |
||
=== ebook mode === |
|||
# Wakeup event is repeated, #2401 |
|||
* To test, load a PDF in Read, push the game key down button, five seconds later the machine should suspend with the backlight on full. While suspended, push the game key down button again. The screen should scroll down once, and only once. Cjb 14:26, 23 January 2008 (EST) |
|||
# Ebook reader should suspend on idleness, #1396 |
|||
* This is as above in the #2401 test case; the machine should suspend five seconds after the last ebook scroll event, with the backlight fully on. Cjb 14:26, 23 January 2008 (EST) |
Latest revision as of 22:18, 30 December 2009
- copied the requirements over just for me own ease. --Chihyu 11:55, 11 January 2008 (EST)
- if a test case has been created for a requirement, the requirement will appear in
strike.
Power Management Requirements (Current)
Most of the power management is behind the scene and should be invisible to the student. For update1 release there will be no difference in power management whether the laptop is using external power adapter or its battery.
The Power Management Table details what sections of the laptop are powered in different states. A more detailed description of the implementation is available at Hardware Power Domains.
Sleep Mode
The purpose of the 'Sleep' button (power on 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 go into suspend with only the wireless on.
PW1.1: In sleep mode, the screen goes blankPW1.2: Power LED blinks slowlyPW1.3: Wireless continues to work (Wireless LEDS continue to work)PW1.4: Comes out of Sleep mode by pressing power button; no other buttons will bring the laptop out of sleep mode.
Suspend
The purpose of suspend is behind the scenes processor suspension to save power during regular use.
PW2.1: After a short delay the screen dimsPW2.2: After additional delay the processor suspends and the power LED blinks slowlyPW2.3: At this second delay, the screen goes blank (not currently in update1)PW2.4: Wireless continues to work (wireless LEDS visible)PW3.5: Any key or the touchpad brings the laptop out of suspend; and is an active key (not lost), even if the screen was blank.
Lid Close
PW3.1: Closing the lid should go into 'Sleep Mode'PW3.2: Wireless should turn off (not in update1)PW3.3: Even after opening the lid, the power button is used to come out of sleep mode.
Ebook mode
Behind the scenes, reading should consume the least amount of power after 'suspend'. The student shouldn't notice anything when in ebook mode.
PW4.1: A student can download a pdf file, and click on it. It 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.PW4.2: The student can convert the laptop to tablet mode and use the directional keys for scrolling through the text.PW4.3: If the student presses the rotate button, the screen will rotate 90 degrees. (This is in any mode, not just ebook mode !)PW4.4: In ebook mode, the screen may be turned off (see Screen Off) if there is no input activity for a fixed time period.
Power Management Requirements (Old)
Most of the power management is behind the scene and should be invisible to the student.
The Power Management Table details what sections of the laptop are powered in different states. A more detailed description of the implementation is available at Hardware Power Domains.
Screen off
*PW1 After X minutes of inactivity through keyboard, mouse, directional, or gamepad keys, the screen will turn completely off (black), unless a running activity has asked to inhibit this timeout.
- PW2 In this mode, the mesh network is working properly and can forward packets.
<
Strike-through textstrike>*PW3 The screen will turn back on at the press of any key on the keyboard, mouse, directional or gamepad keys. The back light will come back on to the level it was before the screen was turned off. The key press will not be acted upon.
Suspend/Resume Button
The purpose of the 'suspend/resume' 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 go into suspend with only the wireless on. The 'suspend' that happens is the same as that when the lid is closed, but that changes the RF characteristics quite a bit.
*PW4 Pushing the 'Suspend/Resume' button (previously the power button), will put the laptop into suspend mode, which includes Screen off.
- PW4.1 In suspend mode, the laptop will continue to forward mesh networking packets if it is in the path between other mesh points (laptops, school servers).
**PW4.2 Pushing the 'Suspend/Resume' button when the laptop is suspended will return it to powered on state with the same activities running as before it suspended.
**PW4.3 Pressing any key on the keyboard, the mouse, directional keys or gamepad keys will also return the laptop to its full operational state. The button will not be acted upon.
*PW5 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.
*PW6 The student must be able to execute a full power down of the laptop from the Sugar home view.
Lid Closed
Whenever a student closes the lid, the laptop should go into suspend mode to save battery power. Wireless is still operational.
*PW7 When the lid is closed on the laptop, it will have the same affect as pushing the suspend/resume button (see Suspend/Resume Button).
*PW8 When the lid is opened, the laptop will resume (or, it may be necessary for the student to press a key or the suspend/resume button)
Ebook mode
Behind the scenes, reading should consume the least amount of power after 'suspend'. The student shouldn't notice anything when in ebook mode.
(this is quite unclear: the screen will still be turned off in ebook mode? then what is a good test case that only applies to ebook mode, as opposed to the laptop mode? --Chihyu 19:40, 10 January 2008 (EST))
- PW9 A student can download a pdf file, and click on it. It 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.
- PW10 The student can convert the laptop to tablet mode and use the directional keys for scrolling through the text.
- PW11 If the student presses the rotate button, the screen will rotate 90 degrees. (This is in any mode, not just ebook mode !)
- PW12 In ebook mode, the screen may be turned off (see Screen Off) if there is no input activity for a fixed time period.
from cjb
Suspend vs. Sleep
Suspend mode
- happens automatically when a machine is idle
- can be returned from via touchpad, keyboard, buttons, wireless packet, any kind of interaction.
- screen stays on, but dimmed (unless the brightness was already low)
Sleep mode
- happens on power button press or lid close
- can only be returned from with another power button press (or lid open, but there's still a bug there; power button press to be safe)
- screen stays off to save power
- other interaction will wake up the CPU/power lights, but then it'll go back to sleep again unless it was a power button press
revision of power management requirements (from cjb)
suspend
PW1 After X minutes of inactivity through keyboard, mouse, directional, or gamepad keys, the screen will turn completely off (black), unless a running activity has asked to inhibit this timeout.
==> PW1 After a brief period of both input inactivity (keyboard, touchpad, buttons) and CPU inactivity, the screen will dim and the laptop will enter suspend mode, unless a running activity has asked to inhibit this.
keypress
PW3 The screen will turn back on at the press of any key on the keyboard, mouse, directional or gamepad keys. The back light will come back on to the level it was before the screen was turned off. The key press will not be acted upon.
==> PW3 At the press of any key on the keyboard, mouse, directional or gamepad keys, the power button, or a wireless packet, the laptop will wake from suspend and the back light will come back on to the level it was before the suspend. If a keypress is used to wake the laptop, it will be acted upon.
ebook mode
- Wakeup event is repeated, #2401
- To test, load a PDF in Read, push the game key down button, five seconds later the machine should suspend with the backlight on full. While suspended, push the game key down button again. The screen should scroll down once, and only once. Cjb 14:26, 23 January 2008 (EST)
- Ebook reader should suspend on idleness, #1396
- This is as above in the #2401 test case; the machine should suspend five seconds after the last ebook scroll event, with the backlight fully on. Cjb 14:26, 23 January 2008 (EST)