MicrosoftDocs / mixed-reality

Mixed Reality documentation
Creative Commons Attribution 4.0 International
173 stars 184 forks source link

Issue with values returned by /api/power/battery (GET) #768

Closed contactgc closed 7 months ago

contactgc commented 7 months ago

Hi,

Until recently, we used the /api/power/battery API (GET) to get the battery level and, more importantly, the estimated time remaining, but since the latest updates we've been getting this:

{
    "AcOnline": 0,
    "BatteryPresent": 1,
    "Charging": 0,
    "DefaultAlert1": 221,
    "DefaultAlert2": 397,
    "EstimatedTime": 4294967295,
    "MaximumCapacity": 4415,
    "RemainingCapacity": 4415
}

4294967295 is the max uint value. It looks like the Hololens is not able to estimate the time left anymore. I don't know if it's related to this another issue with the WinRT API (https://github.com/MicrosoftDocs/winrt-api/issues/2456) but unfortunately this is a handicap for us.

It would be great if this could be fixed.

Thank you. Regards.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AMollis commented 7 months ago

Hi @contactgc

This appears to be a product issue. Can you please up a support ticket @ https://aka.ms/hldevsupport, and someone on our support team will help resolve this issue.

I'm closing this issue, since this is not a documentation bug.

CC: @RobertVS-MS