InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.79k stars 947 forks source link

Battery rapidly draining #1790

Open segaretroboy opened 1 year ago

segaretroboy commented 1 year ago

Verification

What happened?

I went to bed with the watch near half charged, woke up with no charge.

What should happen instead?

I was expecting the watch to make it through the night.

Reproduction steps

I have no idea how this happened.

More details?

Gadgetbridge shows the battery dropped rapidly at around 5:30AM

Screenshot_2023-07-02-16-35-36-50_4c96f65cafca1cafb769ce6b564b6184 Screenshot_2023-07-02-16-35-31-66_4c96f65cafca1cafb769ce6b564b6184

Version

V1.13

Companion app

GadgetBridge 0.74.0

steinhmor commented 1 year ago

Same problem here. With the Update to 1.13 my battery only last half a day compared to 3,5 days before the update. Screenshot_20230704-213946

FintasticMan commented 1 year ago

I think these are different issues. I think @segaretroboy's issue is somehow caused by a bug causing some component (like the display) to stay on when it should turn off.

I think that @steinhmor's issue is something else, but I'm not sure what. Could you tell me what features you've enabled (such as heart rate, raise to wake etc.) and what your display timeout is set to? I personally got just under a week of usage before the changes in 1.13, and get over 2 weeks with those changes, so it's really surprising to see such short battery life.

segaretroboy commented 1 year ago

@FintasticMan I think you are correct on my issue, that was my suspicion but unfortunately I couldn't tell which it was since it happened overnight, the watch was acting normal the night prior. When I took it off the screen kept trying to turn on and I had to fiddle with the button, but it didn't come back on before I walked away from it after setting it down so that was probably unrelated. The watch has been acting normal since this as well. Screenshot_2023-07-09-21-49-29-99_4c96f65cafca1cafb769ce6b564b6184

steinhmor commented 1 year ago

My problem also seems to be solved. After checking and setting the shake calibration (which might have been set to 0), my pinetime-battery seems to last muuuuuch longer. Thanks for the help!

JF002 commented 1 year ago

Thanks for the update, I guess we can close this issue, then.

segaretroboy commented 1 year ago

Update on this, I recently had the watch do this again, after taking it off the charger, with nothing unusual with the watch's operation (screen was not stuck on and nothing was misbehaving) the watch went through 20% of the battery in the first 20 minutes off the charger, after this it re-stabilized. But it went from 61% to 42% between 1541 and 1600 Images are attached below Screenshot_2023-11-21-23-15-12-96_4c96f65cafca1cafb769ce6b564b6184 Screenshot_2023-11-21-23-15-25-93_4c96f65cafca1cafb769ce6b564b6184 Screenshot_2023-11-21-23-15-37-78_4c96f65cafca1cafb769ce6b564b6184

FintasticMan commented 1 year ago

That's expected, the battery percentage displayed while charging isn't accurate and will always be higher than what it should be. After taking it off the charger, it'll update to the correct percentage within 10 mins. It's best to leave it on the charger until it says 100%, in which case it should be fully charged.

segaretroboy commented 9 months ago

Not sure what happened this time, but this seems to have reoccurred in 1.14, went to bed around 3, and at 7AM my battery tanked, where I found the watch, it was face up, on a flat surface, with nothing near the button. Screenshot_2024-02-08-15-05-54-68_38088ff49c7eac62e8cc6b25131c3ff7 Screenshot_2024-02-08-15-09-17-80_38088ff49c7eac62e8cc6b25131c3ff7 Only wake option selected is shake wake and the screen timeout is 7 seconds. I have weather in use, but on this boot hadn't used the watch for anything but notifications and time telling.

segaretroboy commented 9 months ago

Actually it went dead in 24hrs Screenshot_2024-02-08-15-29-53-37_38088ff49c7eac62e8cc6b25131c3ff7 Screenshot_2024-02-08-15-30-02-54_38088ff49c7eac62e8cc6b25131c3ff7 Off charger nearly full at 1430ish, dead by 1300ish

FintasticMan commented 9 months ago

There does seem to be an issue here, so I'll reopen this. It's very unfortunate that it happens infrequently enough that it's very hard to figure out what's causing it. Had it completely died by the time you checked it in the morning? If it hadn't, did you notice anything like the screen being on?

segaretroboy commented 9 months ago

I don't think the screen was on, I was up at around 12 today and didn't notice it if it was. I noticed when I put it on, shook it a few times, and pressed the button getting no response from it. I'll see if I cant set it in front of a webcam to see if I can catch the next time the issue appears.

segaretroboy commented 9 months ago

Update on this, the issue occurred while the watch was on my wrist at work. The screen ceased dimming or turning off, the touchscreen completely stopped recognizing input, and the button was limited in what it could do, holding the button successfully brought up the system info screen, and double tapping let me see the last notification, single pressing the button also successfully returned me to the time screen, but I could not scroll in any of these since the touch screen wasn't responding. I was able to restore normal function by rebooting by holding the button down. From 17:04 to 17:45 the screen did not turn off. Screenshot_2024-03-06-18-54-46-41_38088ff49c7eac62e8cc6b25131c3ff7

FintasticMan commented 8 months ago

That's useful information! It sounds very similar to what was reported here: https://github.com/InfiniTimeOrg/InfiniTime/issues/2012#issuecomment-1977602996.

segaretroboy commented 8 months ago

That's useful information! It sounds very similar to what was reported here: #2012 (comment).

Not sure if a notification triggered it, but that does look related, pretty much the same symptoms. Except for them being unable to go back a screen with the button, that continued working for me to return to the time. Some people over there mentioned the heart rate monitor, I did not run the sensor on that boot at all.

segaretroboy commented 8 months ago

Update on this, caught the screen stuck on last night, but this time pressing the button to put it to sleep was all that was needed to restore normal function, it seems the screen staying on and the input suddenly stopping might be separate issues that just often come together.

segaretroboy commented 5 months ago

One extra update, I have caught the watch doing it a few times now and I've noticed if I use the power button to switch the screen off, it does work, but the next time the screen comes on, it will still be effected by this bug still, but setting the screen timeout to something different and immediately back seems to persistently fix it, so I suspect the screen timeout value in RAM is getting overwritten or corrupted somehow.

JF002 commented 5 months ago

I also found my watch sitting on a table with the display ON while it should have shut down for a while. I haven't had the opportunity to reproduce and diagnose this issue so far, though. But yeah, the watch will definitively use a lot of power if it sits with the display ON for a long time (iirc, it should last for less that a day with the display on).

mark9064 commented 5 months ago

I've also experienced this, but I've got a lot of patches on top of main so I don't know if it's caused by changes I've made

Limited testing so far, which I'm not 100% sure on. Someone else should verify this: Using just the button to sleep the watch and wake it again causes it to still stay on. A swipe left and back right is enough for the sleep timer to begin working again. The next time I see this I'll test if a tap is enough.

Either way it's looking like the LVGL activity timer has an incorrect value as displayapp regenerates IsPastSleepTime every refresh cycle, and that relies on only the settings controller and lv_disp_get_inactive_time (and a swipe left and right shouldn't affect the settings controller)

mark9064 commented 5 months ago

Hit this again just now. Turned on and off multiple times using the button and raise-wake/lower-sleep, screen timeout still broken. One tap on the screen, and exactly 7s (the configured timeout) later it went to sleep. So does seem like an activity timer issue

StevenAlexander44 commented 3 months ago

Screenshot_20240822-095238_Gadgetbridge I experienced something similar. I think I've seen the screen stay active when it shouldn't have been, so maybe that's what caused it this time, but I don't know. (version 1.14)