maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   1.1.6 Drains battery? (https://talk.maemo.org/showthread.php?t=95639)

ggabriel 2015-06-19 08:17

Re: 1.1.6 Drains battery?
 
I haven't got hard data but I don't perceive any difference with this update.

juiceme 2015-06-19 14:24

Re: 1.1.6 Drains battery?
 
Quote:

Originally Posted by romu (Post 1474125)
Interesting @juiceme, but this raises 2 questions for me:
- as I didn't run any "real" experiment before the update, if I do this now, I don't how I will be able to use this results, any idea?
- could you please describe the process to run such measures?


Very simple; I just have a small shellscript that logs power usage, like this:
Code:

#!/bin/bash

battery=$(upower -d | grep percentage | awk '{print $2}')
date=$(TZ='Europe/Helsinki' date "+%d.%m.%Y %H:%M")
echo "$date  -->  $battery"

Then I have entry in my crontab that calls the script every half-an-hour;
Code:

# log power usage every 30 minutes
1,31 * * * * /home/nemo/bin/powerlog.sh >> /home/nemo/powerlog.txt



All times are GMT. The time now is 06:53.

vBulletin® Version 3.8.8