locked
Is Today Screen Plugin called in Standby mode with Windows Mobile 6.5 ? RRS feed

  • Question

  • I have a custom plugin that monitors an application and restarts it if it becomes unresponsive. This works up to 6.1 but under 6.5 the plugin fails to restart the application after it shuts down while the device is on standby. When the device wakes up the plugin appears as it did before standby, then after the normal timeout it recognises that the application is unresponsive and restarts it. I suspect that the Today Screen does not call the plugin while the device is on standby. Can anyone confirm this please? Is there a way to change this behaviour?
    Friday, October 16, 2009 1:35 PM

Answers

  • I need to clear up some terminology. Do you mean "suspended" mode instead of "standby" mode?  Standby mode is specific to Windows Mobile Standard devices without touch screens. In standby mode a device is still running but the screen is off.  On Windows Mobile Professional devices (with a touch screen) a device goes into standby mode in which everything stops running.

    That being said back to your question:

    Nothing get's called in suspended.  When you press the power button or let the device idle it will transition to either unattended mode or suspendedmode. In unattended mode the screen and specific items of hardware powerdown (the exact items that power down are OEM dependent).  In suspended mode the processor halts and nothing is running until a hardware event (incoming call, button press, timer alarm) will cause the processor to begin running again.

    It may be a hasty conclusion to say that the behaviour you are seeing is specific to Windows mobile 6.1 or 6.5.  It may be more specific to the applications that you have on your device.  If a program is running in unattended mode then when the device times out the device will go into unattended mode instead of suspended mode and your applications will continue to run until all programs running in unattended mode release their request for unattended mode. Those other programs running in unattended mode could be what is giving your plug-in a chance to do it's work after the screen turns off.

    You may want to use PowerPolicyNotify to detect when the device comes out of suspended mode so that you can immediatly trigger your routine when the device comes out of suspended mode.
    Joel Ivory Johnson
    Friday, October 16, 2009 2:56 PM

All replies

  • I need to clear up some terminology. Do you mean "suspended" mode instead of "standby" mode?  Standby mode is specific to Windows Mobile Standard devices without touch screens. In standby mode a device is still running but the screen is off.  On Windows Mobile Professional devices (with a touch screen) a device goes into standby mode in which everything stops running.

    That being said back to your question:

    Nothing get's called in suspended.  When you press the power button or let the device idle it will transition to either unattended mode or suspendedmode. In unattended mode the screen and specific items of hardware powerdown (the exact items that power down are OEM dependent).  In suspended mode the processor halts and nothing is running until a hardware event (incoming call, button press, timer alarm) will cause the processor to begin running again.

    It may be a hasty conclusion to say that the behaviour you are seeing is specific to Windows mobile 6.1 or 6.5.  It may be more specific to the applications that you have on your device.  If a program is running in unattended mode then when the device times out the device will go into unattended mode instead of suspended mode and your applications will continue to run until all programs running in unattended mode release their request for unattended mode. Those other programs running in unattended mode could be what is giving your plug-in a chance to do it's work after the screen turns off.

    You may want to use PowerPolicyNotify to detect when the device comes out of suspended mode so that you can immediatly trigger your routine when the device comes out of suspended mode.
    Joel Ivory Johnson
    Friday, October 16, 2009 2:56 PM
  • Thanks, that's helped my understanding.
    But then it looks as if in 6.5 the Today Screen is not running in unattended mode (and calling the plugin).
    Can the plugin itself use PowerPolicyNotify?
    Is there any way to debug this?
    Monday, October 19, 2009 2:47 PM