PowerPolicyNotify failing in BatteryThreadProc RRS feed

  • Question

  • Platform is Windows Embedded Compact 7, running on TI DM3730.

    Whilst working on enabling power management of the LCD backlight driver, parts of the battery driver appear to have started mis-behaving:

    Initially when I start debugging my platform, the call to PowerPolicyNotify in the battery driver BatteryThreadProc succeeds, but occasionally it fails, and thereafter it seems to fail regularly. This appears to happen when power level has come back from level D2 (System Idle) to D0 (Full On).

    The code is as follows:

    fOk = PowerPolicyNotify(PPN_POWERCHANGE, 0);


    When it fails, GetLastError returns 0x05b4 (ERROR_TIMEOUT).

    Can anyone shed some light on why this call starts failing?

    Thursday, October 10, 2013 9:55 AM