keep Windows Mobile 5.0 device awake while maintaining the auto-dim

  • Thread starter Thread starter andie
  • Start date Start date
A

andie

Hi All,

I know that SystemIdleTimerReset() will keep Windows Mobile 5.0 device
awake. However, keeping the device awake and not dimming the backlight
will drain the battery power.

Is there any way to keep Windows Mobile 5.0 device awake while
maintaining the auto-dim backlight mechanism.

Regards,
Andie
 
Hi Again,

I found this article about Unattended mode

http://blogs.msdn.com/windowsmobile/archive/2006/08/16/702833.aspx

It is an interesting blog.

However, I didn't manage to run it on my application

Here is the code:

[DllImport("coredll.dll")]
static extern bool PowerPolicyNotify(
UInt32 dwMessage,
UInt32 dwData
);


private void btnStart_Click(object sender, EventArgs e)
{
PowerPolicyNotify(3, 1);
}

private void btnExit_Click(object sender, EventArgs e)
{
PowerPolicyNotify(3,0);
}

Basically, the application will run in unattended mode when the Start
button is clicked and return to attended mode when the Exit button is
clicked.

Any help would be appreciated.

I am using Windows Mobile 5.0 and .NET CF 2.0

Regards,
Andie
 
I also tried to change the power state to unattended. But, no luck.

It will be good if you can give me a hint on how to use the unattended
mode in pocket pc 2003.

Regards,
Andie said:
Hi Again,

I found this article about Unattended mode

http://blogs.msdn.com/windowsmobile/archive/2006/08/16/702833.aspx

It is an interesting blog.

However, I didn't manage to run it on my application

Here is the code:

[DllImport("coredll.dll")]
static extern bool PowerPolicyNotify(
UInt32 dwMessage,
UInt32 dwData
);


private void btnStart_Click(object sender, EventArgs e)
{
PowerPolicyNotify(3, 1);
}

private void btnExit_Click(object sender, EventArgs e)
{
PowerPolicyNotify(3,0);
}

Basically, the application will run in unattended mode when the Start
button is clicked and return to attended mode when the Exit button is
clicked.

Any help would be appreciated.

I am using Windows Mobile 5.0 and .NET CF 2.0

Regards,
Andie
Hi All,

I know that SystemIdleTimerReset() will keep Windows Mobile 5.0 device
awake. However, keeping the device awake and not dimming the backlight
will drain the battery power.

Is there any way to keep Windows Mobile 5.0 device awake while
maintaining the auto-dim backlight mechanism.

Regards,
Andie
 
Back
Top