Battery Life

RSS for tag

Measure how your application consumes energy.

Posts under Battery Life tag

156 Posts

Post

Replies

Boosts

Views

Activity

Battery Health drainage in 11 Pro
Few weeks ago, everything was going good. My battery health was 86%. Don’t know why my IPhone 11 pro starts heating up during charging and its battery health reduced to 82% in just 3 weeks. Can anyone let me whats going on with it as I am using Apple 20 watt charger with it. Then whats the problem and what should I do?
1
0
669
Apr ’23
If statement not working on shortcuts iOS 16.2
i used to have shorts where my phone goes into lower power mode on its own when it reaches 20% and that it will remind me to unplug once battery status reaches 90%. But now I am not able to do that as the if statement does jot have the conditions that it used to have before. I used the if equal to, if lesser than, if greater than features for these shortcuts of mine. Now all I see are two conditions that basically only checks for value. Which again makes no sense because your battery status will always have a value ranging from 0-100. So how do I solve this I don’t know. The conditons need to come back!
1
1
1.7k
Apr ’23
Battery health got low fast
So I got my phone like 3 months ago in December 12 from not authorized apple store, we dont have as i think, and it got to 96% on past month and now when I looked it has 90%. I wasnt charging from 0-100, it was 20-90 always, like I didn't treat my old iphone 7 that well and it was absolutely 2 years of heaven. only differences between them are that this one is factory changed iPhone XS and old one was with real iPhone factory made materials and didnt charged anything, SO IS this problem that I have bad battery or the phone is badly factory upgraded. tell me what to do in reply's thanks and have fun.
0
0
893
Mar ’23
Correct way to read out information about current energy usage battery&charger/adapter
I'm looking for a way to read out the current energy drain of various macOS devices that should be backwards compatible at least to macOS 12. So far I already had a couple of good idea – well initially I thought so – to get that data from ioreg or IOKit, reading out AppleSmartBattery object. I'm trying to write a small program in Rust that collects the energy usage of our companies macOS devices and record this how much happened while in the office and how much on the road. Therefore I need to consider cases where the battery is charging as well as the battery is full and energy is drawn from the power adapter or usb-c connected display directly via PD. So far I was able to read the desired data out via ioreg with plist output and parse the information into a struct. The issue I have testing this out that my 1st approach of going for PowerTelemetryData which would be perfect is only available on macOS 13+ systems. The second approach reading out the subobjects of BatterData and PowerOutDetails seem to only be available on macOS 12 devices now and then. Any suggestions or hints?
1
0
1.1k
Feb ’23
What does the number key means in log-power-timestamp.session
I get a log-power session from my iPhone analyze, I want to know the power consuming of my app, power_metrics as below: "power_metrics" : { "network_io" : { "cellular" : { "totalUpload" : 4478468, "totalDownload" : 223284091 }, "wifi" : { "totalUpload" : 195605789, "totalDownload" : 1233202961 } }, "display_apl" : { "totalFrameCount" : 209019, "averagePixelLuminance" : 38 }, "app_energy" : { "bg_audio" : { "10" : 563, "6" : 70, "4" : 25, "2" : 26, "7" : 236, "11" : 577 }, "bg" : { "10" : 15501, "6" : 1931, "4" : 689, "2" : 725, "7" : 6504, "11" : 15878 }, "fg" : { "7" : 137056, "3" : 3069, "11" : 334589, "4" : 14555, "1" : 505774, "6" : 40718, "2" : 15294, "10" : 326637 }, "total" : { "7" : 143797, "3" : 3069, "11" : 351045, "4" : 15270, "1" : 505774, "6" : 42720, "2" : 16046, "10" : 342702 } }, "app_time" : { "GPU" : 503, "CPU" : 2479, "bg_unplugged" : { "audio" : 6, "location_audio" : 0, "total" : 171, "location" : 0 }, "fg_total" : 3492, "fg_unplugged" : 3492, "cellular_condition" : { "signalBarUnknown" : 0, "signalBar1" : 91, "signalBar0" : 0, "signalBar4" : 2282, "signalBar3" : 1060, "signalBar2" : 341 }, "bg_total" : { "audio" : 6, "location_audio" : 0, "total" : 171, "location" : 0 } } }, The key 10, 6, 4, 2, 7, 11 means what? "10" : 563, "6" : 70, "4" : 25, "2" : 26, "7" : 236, "11" : 577
1
0
1.7k
Feb ’23
Improving battery reading when the machine wakes.
I am using the CFProperty "AppleRawCurrentCapacity" value from IOServiceGetMathcingService( kIOMainPortDefault, IOServiceMatching( "AppleSmartBattery" ) ) to obtain the mAh value of the MacBook's battery. Once when the app receives the NSWorkspace notification of display sleep, and once again when receiving the NSWorkspace notification of display wake. I then calculate how much battery was expended during sleep by deducting the pre value from post value. The results can wildly vary, from it using 16 mAh per hour, to gaining 10 mAh an hour (without being plugged in). Sometimes a 10 hour sleep doesn't use any mAh... Which is clearly wrong. When my app detects the key kIOPMPSInvalidWakeSecondsKey is present, I set a timer for that period + 3 seconds and attempt to read the battery values again. Yet the results can still wildly vary. I see on Intel Macs there is a kIOPMPSMaxErrKey (set to 9 on a 2019 16"), however I don't see this on M1, and don't know how it can help, if it does exist. Can anyone give me any pointers as to what I am doing wrong, or in the direction of obtaining reliable mAh values? I like mAh as it's more precise that the standard integer values of 0 - 100, but I don't have to stick with mAh, I'd just don't like reporting that a 16 hour sleep didn't use any battery, when I know it's not true. Thanks
1
0
1.2k
Jan ’23
iPhone 13 Battery Health
Hi, I’ve had my iPhone 13 for a little more than a year at this point and i checked my battery health to check where it was at. To my surprise, it had dropped 9% to now only be at 91% battery health. After doing research on what might have caused that I noticed a recurring theme about 5g having an effect on my battery health. I just wanted to verify what could be causing the fast deterioration of my battery health and if there’s anything I can do to slow down the loss of the battery.
1
0
954
Dec ’22
Bartery Health drain
I’ve had my iPhone since July and my battery health has stayed at 99% for a good while now yesterday I checked it was the exact same but today when I checked it went down to 96% we have cold weather here but could it be due to cold weather even though I had my phone in my pocket during the entire time?
1
0
1k
Nov ’22
Battery performance poor in iPhone 14 pri
I’m not a developer but I really wanted to reach you out to raise a concern. When the launch of iPhone 14 pro happened it was advertised as 30-40% increase in battery performance due to the changes in hardware. Unfortunately the battery is draining 2x as fast as iPhone 13 Pro and iPhone 12 which is incredibly disappointing. Please do not do false marketing on your product if the feature is fully developed. I bought this phone for 1600$ and this is what I get. Please fix this. Battery backup is the most important thing rather than the focused features such as dynamic island and always on Display
1
0
781
Oct ’22
iPad self checking checklist
We are trying to build an in-house app to help our internal employees have quick health checks on an iPad. We want to understand whether we can perform the below action on managed DEP iPads. What version of the managed app is installed on the iPad How we can run the battery health check command and capture the percentage? How we can display the device connectivity and which network it was connected to and signal strength?
2
0
1.3k
Sep ’22
Battery Health drainage in 11 Pro
Few weeks ago, everything was going good. My battery health was 86%. Don’t know why my IPhone 11 pro starts heating up during charging and its battery health reduced to 82% in just 3 weeks. Can anyone let me whats going on with it as I am using Apple 20 watt charger with it. Then whats the problem and what should I do?
Replies
1
Boosts
0
Views
669
Activity
Apr ’23
If statement not working on shortcuts iOS 16.2
i used to have shorts where my phone goes into lower power mode on its own when it reaches 20% and that it will remind me to unplug once battery status reaches 90%. But now I am not able to do that as the if statement does jot have the conditions that it used to have before. I used the if equal to, if lesser than, if greater than features for these shortcuts of mine. Now all I see are two conditions that basically only checks for value. Which again makes no sense because your battery status will always have a value ranging from 0-100. So how do I solve this I don’t know. The conditons need to come back!
Replies
1
Boosts
1
Views
1.7k
Activity
Apr ’23
iOS 16.4 battery drain from Wallet App
Hi there! i have a similar issue as this guy (Link), but on my iPhone 14 Pro running iOS 16.4 (20E5229e). Without really using the wallet, it accounts for a huge portion of battery usage (see below). Does anyone of you have a similar issue?
Replies
1
Boosts
1
Views
1.4k
Activity
Apr ’23
Battery health got low fast
So I got my phone like 3 months ago in December 12 from not authorized apple store, we dont have as i think, and it got to 96% on past month and now when I looked it has 90%. I wasnt charging from 0-100, it was 20-90 always, like I didn't treat my old iphone 7 that well and it was absolutely 2 years of heaven. only differences between them are that this one is factory changed iPhone XS and old one was with real iPhone factory made materials and didnt charged anything, SO IS this problem that I have bad battery or the phone is badly factory upgraded. tell me what to do in reply's thanks and have fun.
Replies
0
Boosts
0
Views
893
Activity
Mar ’23
Correct way to read out information about current energy usage battery&charger/adapter
I'm looking for a way to read out the current energy drain of various macOS devices that should be backwards compatible at least to macOS 12. So far I already had a couple of good idea – well initially I thought so – to get that data from ioreg or IOKit, reading out AppleSmartBattery object. I'm trying to write a small program in Rust that collects the energy usage of our companies macOS devices and record this how much happened while in the office and how much on the road. Therefore I need to consider cases where the battery is charging as well as the battery is full and energy is drawn from the power adapter or usb-c connected display directly via PD. So far I was able to read the desired data out via ioreg with plist output and parse the information into a struct. The issue I have testing this out that my 1st approach of going for PowerTelemetryData which would be perfect is only available on macOS 13+ systems. The second approach reading out the subobjects of BatterData and PowerOutDetails seem to only be available on macOS 12 devices now and then. Any suggestions or hints?
Replies
1
Boosts
0
Views
1.1k
Activity
Feb ’23
Bug in battery status
I found and intresting but. As you can see in attached image, battery charged percentage is howing 100% on statusbar but in battery widget it is showing 1% only
Replies
1
Boosts
0
Views
648
Activity
Feb ’23
How to measure current iPhone battery consumption?
I want to measure current battery consumption and show it in the view.
Replies
0
Boosts
0
Views
964
Activity
Feb ’23
What does the number key means in log-power-timestamp.session
I get a log-power session from my iPhone analyze, I want to know the power consuming of my app, power_metrics as below: "power_metrics" : { "network_io" : { "cellular" : { "totalUpload" : 4478468, "totalDownload" : 223284091 }, "wifi" : { "totalUpload" : 195605789, "totalDownload" : 1233202961 } }, "display_apl" : { "totalFrameCount" : 209019, "averagePixelLuminance" : 38 }, "app_energy" : { "bg_audio" : { "10" : 563, "6" : 70, "4" : 25, "2" : 26, "7" : 236, "11" : 577 }, "bg" : { "10" : 15501, "6" : 1931, "4" : 689, "2" : 725, "7" : 6504, "11" : 15878 }, "fg" : { "7" : 137056, "3" : 3069, "11" : 334589, "4" : 14555, "1" : 505774, "6" : 40718, "2" : 15294, "10" : 326637 }, "total" : { "7" : 143797, "3" : 3069, "11" : 351045, "4" : 15270, "1" : 505774, "6" : 42720, "2" : 16046, "10" : 342702 } }, "app_time" : { "GPU" : 503, "CPU" : 2479, "bg_unplugged" : { "audio" : 6, "location_audio" : 0, "total" : 171, "location" : 0 }, "fg_total" : 3492, "fg_unplugged" : 3492, "cellular_condition" : { "signalBarUnknown" : 0, "signalBar1" : 91, "signalBar0" : 0, "signalBar4" : 2282, "signalBar3" : 1060, "signalBar2" : 341 }, "bg_total" : { "audio" : 6, "location_audio" : 0, "total" : 171, "location" : 0 } } }, The key 10, 6, 4, 2, 7, 11 means what? "10" : 563, "6" : 70, "4" : 25, "2" : 26, "7" : 236, "11" : 577
Replies
1
Boosts
0
Views
1.7k
Activity
Feb ’23
Improving battery reading when the machine wakes.
I am using the CFProperty "AppleRawCurrentCapacity" value from IOServiceGetMathcingService( kIOMainPortDefault, IOServiceMatching( "AppleSmartBattery" ) ) to obtain the mAh value of the MacBook's battery. Once when the app receives the NSWorkspace notification of display sleep, and once again when receiving the NSWorkspace notification of display wake. I then calculate how much battery was expended during sleep by deducting the pre value from post value. The results can wildly vary, from it using 16 mAh per hour, to gaining 10 mAh an hour (without being plugged in). Sometimes a 10 hour sleep doesn't use any mAh... Which is clearly wrong. When my app detects the key kIOPMPSInvalidWakeSecondsKey is present, I set a timer for that period + 3 seconds and attempt to read the battery values again. Yet the results can still wildly vary. I see on Intel Macs there is a kIOPMPSMaxErrKey (set to 9 on a 2019 16"), however I don't see this on M1, and don't know how it can help, if it does exist. Can anyone give me any pointers as to what I am doing wrong, or in the direction of obtaining reliable mAh values? I like mAh as it's more precise that the standard integer values of 0 - 100, but I don't have to stick with mAh, I'd just don't like reporting that a 16 hour sleep didn't use any battery, when I know it's not true. Thanks
Replies
1
Boosts
0
Views
1.2k
Activity
Jan ’23
iPhone 13 Battery Health
Hi, I’ve had my iPhone 13 for a little more than a year at this point and i checked my battery health to check where it was at. To my surprise, it had dropped 9% to now only be at 91% battery health. After doing research on what might have caused that I noticed a recurring theme about 5g having an effect on my battery health. I just wanted to verify what could be causing the fast deterioration of my battery health and if there’s anything I can do to slow down the loss of the battery.
Replies
1
Boosts
0
Views
954
Activity
Dec ’22
14 pro
Why my iphone 14 pro reduce 2% battery health with in 2 mounth last time my 1 drian in 6 mouth
Replies
1
Boosts
0
Views
987
Activity
Dec ’22
Bartery Health drain
I’ve had my iPhone since July and my battery health has stayed at 99% for a good while now yesterday I checked it was the exact same but today when I checked it went down to 96% we have cold weather here but could it be due to cold weather even though I had my phone in my pocket during the entire time?
Replies
1
Boosts
0
Views
1k
Activity
Nov ’22
Battery drain issue
iPhone 11 battery drain very fast plz bug fix in battery issue
Replies
1
Boosts
0
Views
823
Activity
Oct ’22
Battery health decrease
I bought an iPhone SE 2nd generation about a week ago renewed from Amazon and the battery health was at 92% and I checked today and it was decreased 3% at 89% I am confused how is the battery rapidly decreasing
Replies
1
Boosts
0
Views
838
Activity
Oct ’22
MagSafe
Does using a non-original Apple MagSafe case affect the charging of the iPhone and cause damage?
Replies
3
Boosts
0
Views
990
Activity
Oct ’22
Battery performance poor in iPhone 14 pri
I’m not a developer but I really wanted to reach you out to raise a concern. When the launch of iPhone 14 pro happened it was advertised as 30-40% increase in battery performance due to the changes in hardware. Unfortunately the battery is draining 2x as fast as iPhone 13 Pro and iPhone 12 which is incredibly disappointing. Please do not do false marketing on your product if the feature is fully developed. I bought this phone for 1600$ and this is what I get. Please fix this. Battery backup is the most important thing rather than the focused features such as dynamic island and always on Display
Replies
1
Boosts
0
Views
781
Activity
Oct ’22
Food and Drink app test
.navigationViewStyle(StackNavigationViewStyle()) results as StackNavigationViewStyle' is unavailable in macOS. How can I please have it fixed?
Replies
1
Boosts
0
Views
828
Activity
Oct ’22
Battery life on my iPhone 14 pro max
this is the battery usage on my 14 pro max ios 16.0.2 all day and the always on display feature is turn on ! is good battery life ?
Replies
1
Boosts
0
Views
1.7k
Activity
Sep ’22
iPad self checking checklist
We are trying to build an in-house app to help our internal employees have quick health checks on an iPad. We want to understand whether we can perform the below action on managed DEP iPads. What version of the managed app is installed on the iPad How we can run the battery health check command and capture the percentage? How we can display the device connectivity and which network it was connected to and signal strength?
Replies
2
Boosts
0
Views
1.3k
Activity
Sep ’22
Query to find iPad battery health check
We want to understand whether we can perform the below action on managed DEP iPads. How we can run the battery health check command and capture the percentage? if yes, can you share some lights to understand how we can capture that information?
Replies
0
Boosts
0
Views
881
Activity
Sep ’22