← Back to team overview

ubuntu-phone team mailing list archive

Re: battery 83% to 0% in 1 hour of not using the BQ

 

On 05/04/2015 09:13 PM, meles wrote:
Hi Ed,

How would you run a script like the one suggested below to even work when the screen is locked?

cheers
meles


Am Mittwoch, den 29.04.2015, 22:08 +0200 schrieb Ed Kapitein:
On 04/29/15 20:30, Matthias Apitz wrote:
> Hello,
>
> I have a problem with the BQ (r21) of my wife, which happened already
> twice:
>
> She is a normal user of a cellphone, or not even this, she does only
> calls from time to time, not even SM; and no mobile data, but it is
> configured in her BQ and her contract has 500 GB flat; GPS is completely
> disabled, HERE app is de-installed and Wifi is disabled too;
> normaly the BQ goes to sleep after 1 minute;
>
> today it happened for the second time that the BQ was completely off-battery;
> after charging and rebooting the battery page shows:
>
> - 83% from today morning until around 5 pm (I know the exact 83% because I
>    checked it in the morning at 7 am); from this hour a green horizontal line;
>
> - at around 5 pm the line starts falling until reaching 0% around 6 pm;
>
> In the hour in question between 5 and 6pm the BQ was sitting untouched
> in her bag.
>
> Any ideas? Where to start post mortem analyzing this next time?
>  From where the battery graphic is drawn, from data in the Ubuntu logs or
> from the chip in the battery on start of the app showing the graphic?
>
> Thanks
>
> 	matthias
>
Hi Matthias

The other day my phone became very warm and on closer inspection the
unity8 process was running 100% on one cpu.
I rebooted the phone and after that is was fine.
Something like that might drain your battery rather quick.

You could run a script to monitor the battery temp and capacity:
while sleep 60; do
   date
   cat /sys/devices/platform/battery/power_supply/battery/capacity
   cat /sys/devices/platform/battery/power_supply/battery/temp
done

And if discharging goes faster then a certain value ( 10%/h ? ) you
could text *your* phone so you can start investigation with top if a
process is running at 100%.
(  /usr/share/ofono/scripts/send-sms /ril_0 yourphonenumber "Start
investigation" 0 )

Kind regards,
Ed




Hi Meles,

If you run it in the background ( nohup /path/to/script & ) it will continue to run, even when the screen is locked. I am happily surprised that a lot keeps working with a locked screen and that battery life is as good as it is. You can listen to music, login over wifi, run scripts etc. They did a great job on getting the best performance on the lowest power budget possible.

Kind regards,
Ed


Follow ups

References