We have moved to a new Sailfish OS Forum. Please start new discussions there.
14

[1.1.9.28] heavy battery drain even in stand by

asked 2015-09-24 06:28:42 +0300

Pankaj Singh gravatar image

after updating to. 1.1.9.28 I observe heavy battery drain even. In standby mode (zero app open). In nights it was 80% and in morning it goes down to 25-30%.

edit retag flag offensive close delete

Comments

4

Absolutely agree. Just now, the battery went down overnight by 20% in less than 7 hours, with no apps open, no chat active... That never happened to me before - something is seriously wrong.

nodevel ( 2015-09-24 09:29:03 +0300 )edit

for me it is somewhat the other way around. In standby the phone uses nearly no battery at all (2-3% over night), but when using the phone (reading through a forum in browser, not using anything else), I lost 30% within an hour..

dieerstegiraffe ( 2015-09-26 13:26:50 +0300 )edit

@nodevel same here. after update to 2.0.0.10, battery level goes down above 5% per night even in flight mode.

fishegg ( 2015-10-26 13:47:12 +0300 )edit

2 Answers

Sort by » oldest newest most voted
9

answered 2015-09-24 10:03:28 +0300

spiiroin gravatar image

Reaching the lowest possible standby battery consumption requires that the device manages to enter late suspend and no peripherals stay erroneously powered on. Note that if the device does suspend, it does not matter if some ill behaved application would try to use cpu -> tracking just cpu usage is usually useless.

Failure to suspend makes power consumption jump approximately from 4mA to 13mA (or so and ignoring led, wlan and cellular activity), even if there is no cpu activity. As this also allows misbehaving apps to consume cpu resources, the impact could be higher too -> tracking cpu usage could reveal problems.

Check that autosuspend policy is not disabled - you should see:

mcetool | grep ^Autosu
Autosuspend policy:                  enabled

If it says "early" or "disabled", do:

mcetool --set-suspend-policy=enabled

Check if there are active wakelocks that would block system from entering late suspend:

cat /sys/power/wake_lock
  • "mce_display_on" - On Jolla phone this shows up always even if it is not active due to kernel side issues -> ignore
  • "mce_cpu_keepalive" - Some application is blocking late suspend via nemo-keepalive/lower level interfaces. Unless there is a valid reason for this (audio playback, ongoing synchronization) it indicates a bug somewhere.
  • Anything else that stays listed for extended periods of time is suspicious.

How to identify processes that are potentially misusing cpu-keepalive:

journalctl -u mce | grep keepalive| grep 'long session'
Sep 20 22:16:52 Jolla mce[407]: modules/cpu-keepalive.c: cka_session_renew(): long session active after 180020 ms; id=34/undefined name=:1.197 pid=16244 cmd=/usr/libexec/packagekitd
Sep 20 22:22:03 Jolla mce[407]: modules/cpu-keepalive.c: cka_session_finish(): long session lasted 490707 ms; id=34/undefined name=:1.197 pid=16244 cmd=/usr/libexec/packagekitd

In the above example packagekitd was blocking suspend for fairly long time, but it is a) more or less expected b) it eventually finished -> If there is an unexpected process holding a long keepalive session without finishing it, there is a bug somewhere.

If none of the above reveals possible problems, it is something more exotic - like erroneously powered up peripheral device (the tohd bug left the nfc chip powered on causing IIRC ~30mA power drain).

edit flag offensive delete publish link more

Comments

And this mcetool was something to be installed separately ?

Upp15 ( 2015-09-24 12:12:22 +0300 )edit
1

@Upp15 yes, run "pkcon install mce-tools" from shell as root.

spiiroin ( 2015-09-24 12:23:42 +0300 )edit
1

I can't install mce-tools, dependency error: mce-tools-1.51.2.1-1.49.1.armv71hl require mce=1.51.2.1-1.49.1, but this requirement can not be met

dcase ( 2015-09-25 13:22:16 +0300 )edit
2

answered 2015-09-24 08:45:14 +0300

Upp15 gravatar image

Obvious answer: install Lighthouse and see who's using a lot of cpu.

I have 1.1.9.28 and battery consumption is perhaps even slightly better than what it was before update. With light usage easily 48 hours between charging.

edit flag offensive delete publish link more

Comments

1

Yes, it is but sometimes battery drains like hell even no app opened.

Pankaj Singh ( 2015-09-24 09:14:55 +0300 )edit

After updating to one before 1.1.9.28. battery drains about twice faster than earlier. Updating to 1.1.9.28. doesn't seems to fix this. I read somewhere (maybe jolla blog chat) that there might be issue with GPS.

MJolla ( 2015-09-25 12:29:00 +0300 )edit

After update to 2.0.0.10 battery drain more faster then on 1.1.9.28...not enouth for even one day

apanas ( 2015-10-27 08:17:19 +0300 )edit

@apanas Unfortunately I must confirm this, I have the same impression. Haven't been able to pinpoint the reason, though !? No changes in my usage patterns.

Upp15 ( 2015-10-28 08:29:53 +0300 )edit
Login/Signup to Answer

Question tools

Follow
8 followers

Stats

Asked: 2015-09-24 06:28:42 +0300

Seen: 659 times

Last updated: Sep 24 '15