
Chapter 3: Batteries and Power Management
Accelerometer and Gyroscope
23
Psion Mobile Devices Developers Guide
The first time you enable a wakeup source programmatically, it may not bring the device into the fully on
state. The device is in standby mode. For a code sample showing how to deal with this see:
community.psion.com/downloads/developer_sdkhdk/m/sample__demo_code/34578.aspx.
Usually, after Windows is restarted, an enabled wakeup source brings the device out of suspend mode into
fully on. For details see Section 4.3 Programmatic Initiation of Resets on page 34.
3.6.3 Accelerometer and Gyroscope
The accelerometer and the gyroscope do not wake a computer from suspend mode.
3.6.4 Wake up that Stops in Standby Mode
For some wakeup sources—such as WWAN radio events—the wakeup event raises the device from suspend
mode into standby mode, and not to fully on. In this case the application must monitor the transition from
suspend mode to reset mode. It can then programmatically bring the device from standby mode to fully on.
3.6.5 Setting a Time Until Wakeup
To suspend a computer for a selected length of time, use the Microsoft APIs.
3.7 Getting Started with the Suspend/resume Cycle
For articles on Ingenuity Working that will guide you in getting started with the suspend/resume cycle see:
community.psion.com/tags/wakeup/noteDG.
3.8 Code Samples for the Suspend/resume Cycle
For postings on Ingenuity Working that contain code samples that use the suspend/resume cycle see:
community.psion.com/tags/wakeup/codeDG.
3.9 Suspend API Elements
You cannot programmatically put a Psion computer into standby mode.
C++: Suspend on all computers is controlled using the PsionTeklogix::PowerManagement namespace. For
suspending the computer and setting the time until wake-up use Microsoft Power Management APIs; for
details see
http://msdn.microsoft.com/en-us/library/ms895437(v=MSDN.10).aspx.
Java: Suspend on all computers is controlled using the com.teklogix.power package.
.NET: Suspend on all computers is controlled using the PsionTeklogix.Power namespace. Power can also
be controlled by the Windows Power Management Functions; for details see
http://msdn.microsoft.com/en-us/library/ms895437(v=MSDN.10).aspx.
Selection of wakeup sources
C++: Wakeup sources on all computers is controlled using the
PsionTeklogix::PowerManagement namespace.
Java: Wakeup sources on all computers is controlled using the com.teklogix.power package.
.NET: Wakeup sources on all computers is controlled using the PsionTeklogix.Power namespace.
3.10 Power Management
3.10.1 Events
C++
C++ applications must use the Microsoft RequestPowerNotifications and
GetSystemPowerStatusEx2 APIs.
Comentarios a estos manuales