Tests/Suspend Resume: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 11: Line 11:
* After X minutes of inactivity through keyboard, mouse, directional, or gamepad keys, the screen will turn completely off (black).
* After X minutes of inactivity through keyboard, mouse, directional, or gamepad keys, the screen will turn completely off (black).
:* To find out how long X should be, go to '''the Terminal activity''' and type <tt> xset -q </tt>. Screen Saver timeout is set to 600, which means 10 minutes. DPMS Standby is set to 1200, which means 20 minutes.
:* To find out how long X should be, go to '''the Terminal activity''' and type <tt> xset -q </tt>. 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 5 minutes, type <tt> xset s 300 </tt>. To change other values, type <tt>xset</tt> for usage.
:* To change the Screen Saver time out to, for example, 5 minutes, type <tt> xset s 300 </tt>. To change other values, type <tt>xset</tt> for usage.
:* Info found under [[Suspend_Resume/ohm|/etc/ohm/plugins.d]]
:* Info found under [[Suspend_Resume/ohm|/etc/ohm/plugins.d]]
* The Power Indicator LED is off but flashing every few seconds.
* The Power Indicator LED is off but flashing every few seconds.

Revision as of 16:58, 14 January 2008


screen turns off

Actions:

  1. Connect the machine with the power adapter. Make sure the power adapter is plugged in.
  2. Boot up the machine, and do not do anything else.
  3. Open Terminal or Write; randomly type something (optional, depending on which mechanism is used in screen turns on --Chihyu 16:32, 10 January 2008 (EST))
  4. Leave the machine on until the screen turns off, then leave it untouched for X minutes.

Verify:

  • After X minutes of inactivity through keyboard, mouse, directional, or gamepad keys, the screen will turn completely off (black).
  • 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.
  • Info found under /etc/ohm/plugins.d
  • The Power Indicator LED is off but flashing every few seconds.

screen turns on

Actions:

  1. Press any key on the keyboard, mouse, directional or gamepad keys

(may have to repeat this multiple times to make sure the machine can be resumed by all different types of keys --Chihyu 16:32, 10 January 2008 (EST))

Verify:

  • The screen will turn back on.
  • The back light will come back on to the level it was before the screen was turned off. (#4843)
  • The Power Indicator LED should turn green.
  • Also, if the machine was resumed by key press, the key press will not be acted upon. (#5973)

suspend/resume by pressing the power button

Actions:

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

Verify:

  • The machine should be put into suspend mode, which includes screen off.
  • Wireless is still operational.
  • Verify this from the indicator light? --Chihyu 18:33, 10 January 2008 (EST)

Actions:

  1. When the laptop is suspended: Press the power button. Alternatively, press any key on the keyboard, mouse, directional or gamepad keys, as in screen turns on.
  2. 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.

suspend/resume by lid closing/opening

Actions:

  1. Launch an activity that plays a long audio/video file, or launch record and start recording video.
  2. 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:

  1. When the laptop is suspended: Open the lid. (it may be necessary to press a key or the power button to resume the machine)
  2. 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:

  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. Suspend/resume behavior should remain the same. (#5400)