maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Methods for determining battery drainage / cause (https://talk.maemo.org/showthread.php?t=59611)

2disbetter 2010-08-02 10:04

Methods for determining battery drainage / cause
 
Hello Maemo, I've done a few searches and haven't anything really all that comprehensive. Does anyone know of an existing list, which indicates which apps are known to drain battery life in ways outside of their function. (ie, programs continues to scan while closed, draining battery prematurely, etc.)

My N900 is having some real drain issues lately. I've been using a combination of turning the cell radio off, disabling wifi, and forcing deep sleep in an attempt to get more battery life, but I'm still loosing anywhere from 8-12% over the course of a few hours, while the phoen shouldn't be doing anything.

Thanks for any help.

Edit: I'll be editing this post with info I find that is useful to said subject. As I discover apps known to do this I'll put them below (I'll try to provide links to the source where I can):

- Personnel IP App (circumvented if phone is rebooted on a daily basis)
- All Daemons (apps ending with a d, this is not so serious, as their use is mostly very little, but can build up over time, especially with alot running at once) This includes batterygraph and eye.
-fmtx widget
- There is a know hildon bug associated with categorize and apmefo that has to do with reorganization items, and quickly moving between folder items that causes hildon.desktop to continue to run at about 1-5% cpu load. Rebooting or killing hildon.desktop with htop fixes the problem temporarily.
- MaeNotify appears to cause an excessive amount of drain as well.

Edit: Powertop is a useful program to investigate in depth power use. See page 3 for it's use and installation.

Edit: Tho shared a method he uses to track down battery drain issues. Seems very efficient and practical, here is a link to the comment:

http://talk.maemo.org/showpost.php?p...4&postcount=52

2d

HugoSon 2010-08-02 10:11

Re: List of Apps known to drain battery?
 
I can see a similar problem. Once I reloaded my phone – turn it on and do nothing, my battery drain looks great. But as soon I’ve been once in the INet (Wifi or 3G) or answered a phone call, the battery drain looks much worse than before – this is somehow strange… (running Titan v37 kernel).

kevinm2k 2010-08-02 10:54

Re: List of Apps known to drain battery?
 
It would be handy to get a list of apps that cause drain or people suspect to cause drain, would'nt mind trying to find a list of apps that take space on your rootfs as well, so we can try to encourage the developers to optify them, i only have 59mb left, and have no idea which apps are taking the room up.

ndi 2010-08-02 11:06

Re: List of Apps known to drain battery?
 
a) 59 root is fine
b) if we had a list they would never make it past -testing
c) do you have extras-testing and -devel enabled?
d) you'll have to cook your own watch before. Get a monitoring app, get conky, get battery-eye and check to see what it does when it does it. Then you can be helped. Repos have some 5000 packages. More specific please?

chemist 2010-08-02 11:12

Re: List of Apps known to drain battery?
 
To start to pinpoint this please provide information on which repositories you activated and a list of installed apps.
The list you get by this cmd in xterminal
Code:

maemo-list-user-packages
to have them handy via Notes make it
Code:

maemo-list-user-packages > /home/user/MyDocs/.documents/Installed_Apps.txt
now it is available under Documents in your filebrowser

2disbetter 2010-08-02 13:54

Re: List of Apps known to drain battery?
 
I have the following repo's activated:

Both Nokia repos
ovi repo
maemo extras
maemo dev
mozilla

And below is the list of installed apps:

Code:

3g2g-mode-selection-applet 0.4-2 user/desktop 64
abuse 0.7.1-1 user/games 8232
account-plugin-butterfly 0.8 user/network 84
account-plugin-haze 0.8 user/network 148
account-plugin-salut 0.8 user/network 84
adblock-plus-1.0 1maemo0-8 user/network 1548
angrybirds 1.3.4 user/hidden 32188
apmefo 0.9-6 user/system 204
ati85 1.4.1-1 user/science 2059
backupmenu 0.31-2 user/system 84
battery-eye 0.7.0-2 user/utilities 164
batterygraph 0.3.2 user/utilities 356
beneath-a-steel-sky 0.0372-3maemo8 user/games 71332
bluetooth-dun 1.1-1 user/system 80
bochs 2.3.7-maemo2 user/other 2204
bootmenu-n900 1.8 user/system 72
boswars 2.6.1+r9869-2 user/games 77728
bounce 1.0.1 user/hidden 22036
camkeyd 0.0.2-2 user/system 72
cell-modem-ui 0.5.1-1 user/system 288
conboy 1:0.6.3 user/utilities 508
conky 1.6.1-0maemo5-1.1 user/desktop 680
cpumem-applet 0.0.3 user/utilities 64
cuteexplorer 1.1.1-1 user/utilities 168
d1x-rebirth 0.55.1-5maemo1 user/games 1020
de-lite 1.0.1-1 user/games 268
decoders-support 0.3.4-1 user/multimedia 96
desktop-cmd-exec 1.10 user/desktop 144
docstogo 2.000.315 user/hidden 8152
dosbox 0.73-7maemo5 user/games 2292
drnoksnes 1.3.4 user/games 1260
dtg 1.0.153 user/office 8884
dtg-installer 1.0-4.1.1+0m5 user/other 96
easy-chroot 0.2.5-1fremantle1 user/system 152
easy-deb-chroot 0.9.39-1fremantle1 user/system 2720
eightyone 1.10.20100513-1 user/games 364
fcam-drivers 1.0.5-2 user/multimedia 256
fcamera 0.1.3-1 user/multimedia 580
fennec 1.1 user/hidden 33192
flashlight-applet 0.4-3 user/desktop 248
fm-boost 0.2-2fremantle1 user/system 120
fmradio 2010.03.20 user/multimedia 2172
freeciv-client-sdl 2.1.10-1maemo5v2.3 user/games 2076
gemrb 0.6.0 user/other 43120
gltron 0.70final-9maemo9 user/games 2740
hermes 0.8.5 user/utilities 944
hoopsfrenzy 1.0.5 user/games 3387
htop 0.8.3-1maemo3 user/utilities 192
hymns 20100214 user/religious 96
ines 3.6.9-2 user/games 222
ioquake3 1558-maemo6 user/games 1760
joikuspot 1.2.2 user/hidden 1036
kmplayer 0.10.5-2 user/multimedia 816
kobodeluxe 0.5.1-5maemo6 user/games 628
leafpad 0.8.17le-0maemo1 user/utilities 944
libzeemote-conf 1.0.1-maemo7 user/games 120
maenotify 0.4 user/system 60
mc 1:4.6.2-pre1-1maemo10 user/utilities 7752
mg 2.6.5-1 user/games 301
mirror 2.1-1 user/multimedia 188
mp-fremantle-002-pr 10.2010.19-1.002 user/system
mplayer 1.0svn20091221-4 user/multimedia 18612
nhouselite 1.0.0 user/hidden 26960
numptyphysics 0.3.0.9 user/games 748
offscr-airport 1.0.2 user/hidden 1288
offscr-electric-beams 1.0.3 user/hidden 1404
offscr-labyrinth-lite 1.0.4 user/hidden 1604
ogg-support 1.0.5 user/multimedia 136
omweather 0.28.2 user/desktop 3432
omweather-weather-com-stations-db 0.9.18 user/desktop 3500
onedotzero 1.0.2 user/multimedia 580
openarena 0.8.1-maemo1 user/games 2912
openjazz 0.1-5 user/games 576
openssh-client 1:5.1p1-6.maemo5 user/network 1192
openssh-server 1:5.1p1-6.maemo5 user/network 456
openttd 0.7.4-1maemo3 user/games 2464
opentyrian 0.3-1 user/games 12268
openvpn 5:2.1~rc20-3maemo3 user/network 880
openvpn-applet 0.5.3-1 user/desktop 136
opera-mobile 10alpha1-3~fremantle0 user/network 14772
osso-applet-screencalibration-fix 1.12-6 user/system 88
pc-connectivity-manager 0.7.13 user/utilities 364
personal-ip-address 0.4-2 user/desktop 272
picodrive 1.35-1 user/games 960
pidgin 2.6.6-1nix0 user/network 4748
pidgin-maemo-docklet 0.0.1-4 user/network 96
presencevnc 0.2 user/utilities 340
proximityd 0.2.2 user/system 88
psx4all 0.3.9 user/games 928
purple-extra-protocols 2.6.6-1nix0 user/network 180
pygtkeditor 3.0.14-1 user/development 568
pymaemo-optify 0.4 user/hidden 72
qcpufreq 0.3.2-1 user/system 280
qtirreco 0.3.1-1 user/utilities 1820
queen-beecon 1.0.0.1 user/desktop 396
quick-launch 0.5 user/desktop 188
rootsh 1.8 user/system 32
scavenger 1.4.5-0maemo3 user/games 832
scummvm 1.1.1 user/games 10716
searchtool 0.1-7 user/utilities 228
shortcutd 0.1.3-1 user/system 240
simple-brightness-applet 1.4-1 user/desktop 96
soccerfrenzy 1.0.2 user/games 3197
sopwith 1.7.1-4maemo5 user/games 200
spb-tv 1.0-6 user/hidden 536
ssh-status 0.1-6 user/desktop 128
supertux-stable 0.1.3-1.1maemo13 user/games 528
tecnoballz 0.92-4 user/games 3336
telepathy-extras 0.8 user/network 36
transmission 1:1.76-1maemo0 user/network 1620
ttf-droid 1.01-dfsg0maemo3 user/graphics 4392
tutorial-home-applet 0.6.14+0m5 user/support 1272
tweakflashver 0.2-maemo5 user/utilities 200
tweakr 0.0.17-2 user/system 228
uqm 0.6.7-0maemo5 user/games 1552
uqm-3do-data 0.6.7-0maemo user/games 130904
vgba 3.6.8-2 user/games 418
vncviewer 0.6.6-fremantle8 user/network 252
wifieye 1.0-3 user/network 256
wiicontrol 1.0 user/system 96
wireshark 1.2.6-0maemo1 user/network 1868
xulrunner 1.9.2.1+rc2 user/network 28744
zip 2.32-1maemo2 user/tools 168

For the record I have already tried using battery graph to solve this. The problem is that battery graph doesn't tell you which process caused the battery usage to spike (that is perhaps too strong of a word, it's not going all out, it's just elevated). Running conky doesn't help anything either, as when the phone is active (screen on) the processes shuffle.

I will also add that my N900 has had the wifi bug since I've gotten it, and 1.2 has done nothing for that. (I have to reboot after using wi-fi or loose a ton of battery)

2d

VulcanRidr 2010-08-02 15:16

Re: List of Apps known to drain battery?
 
The main battery drain I have seen is yesterday when I had a Fennec/Firefox process hang and take up 99% of the CPU. It ate most of my battery in under an hour. I had put it back on my belt and the next time I pulled it out, I noticed that the device was warm to the touch, and fired up conky to see if anything was eating the CPU. Sure enough, there was that stray Fennec process...While I prefer tabbed browsing instead of opening multiple disparate windows, I am going to be very circumspect about my use of Firefox for a bit, or I'll use iceweasel from Debian...

--vr

lemmyslender 2010-08-02 16:13

Re: List of Apps known to drain battery?
 
I see you have apmefo installed, so I assume your using custom folders for your menu?

If so, there is a bug in hildon-desktop that will cause it to run at 4-9% continuously after run access the app menu. See either apmefo or catagorize threads for more info. This can cause the batter to drain rather quickly.

2disbetter 2010-08-02 16:31

Re: List of Apps known to drain battery?
 
For any curiou son more specifics relative to Lemmyslender's post, here is the bug tracker link for said battery drain:

https://bugs.maemo.org/show_bug.cgi?id=10412

2d

shadowjk 2010-08-02 16:53

Re: List of Apps known to drain battery?
 
Sometimes microb is left hogging cpu for me

Sometimes wifi is left active doing nothing at all despite phone using edge for data..

ndi 2010-08-02 17:50

Re: List of Apps known to drain battery?
 
By using conky i mean leave it running and see what process never shuts up or spikes repeatedly.

Also, is it me or did you say you have extras and extras-devel but not extras-testing? You are missing on stable verions.

camkeyd is deprecated. Also, you have shortcutd installed at the same time.

osso screen calibration fix is also deprecated in PR1.2

Finally, you seem to have several daemon based apps. Maybe the sum of those are a drain? How much media do you have? Images, audio, video? Tracker could be in trouble.

Also, I say qcpufreq. Did you mess with CPU speed? Lowering speed can give you increased consumption.

ossipena 2010-08-02 17:59

Re: List of Apps known to drain battery?
 
haha this is hilarious :D you have gazillion daemons running and you complain about battery drain...

s33 2010-08-02 19:24

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by ndi (Post 773312)
By using conky i mean leave it running and see what process never shuts up or spikes repeatedly.

Also, is it me or did you say you have extras and extras-devel but not extras-testing? You are missing on stable verions.

camkeyd is deprecated. Also, you have shortcutd installed at the same time.

osso screen calibration fix is also deprecated in PR1.2

Finally, you seem to have several daemon based apps. Maybe the sum of those are a drain? How much media do you have? Images, audio, video? Tracker could be in trouble.

Also, I say qcpufreq. Did you mess with CPU speed? Lowering speed can give you increased consumption.

Hey i have shortcutd installed.....does this by any means cause any battery drain?

and what about tweaker?i have it also installed...

Can u pls list the daemon based apps??so that i can uninstall and check the battery life

my battery also sucks

ndi 2010-08-02 19:36

Re: List of Apps known to drain battery?
 
All apps that do something when not started drain. battery-eye, e.g. is one. As is battery-graph. To log battery, one needs to run. Also, shotcutd, camkeyd, etc are all daemons. All servers.

2disbetter 2010-08-02 19:43

Re: List of Apps known to drain battery?
 
Glad this is providing some amusement. Just when I think I have Linux under wraps, I go and discover I'm clueless once again. I know this is blasphemy around here but after developing for windows system the past 10 years, I really prefer that OS.

Anyway, I've installed a bunch of things in preparation for installing the NITDriod build.

Edit: Is the pymaemo-optify app necessary anymore under pr1.2? Also forgot to mention normal extras as an active repo. I have it enabled.

Edit #2: Also there are a ton of things that I've uninstalled from the App manager that are still on that list. How would I go about removing them via x-term, as I imagine this is the only way to do it?

2d

2disbetter 2010-08-02 20:01

Re: List of Apps known to drain battery?
 
A couple more follow on questions. Programs like batterygraph. If I kill the process via htop, will this be a good way to kill it's drain until the next restart? For example if I don't want it running but would still like to have the app installed? Could this method be extended to other daemons I don't necessarily need running as well?

My list needs some cleaning up, as a bunch of things have long since been uninstalled. (Openvpn, personnel-ip, etc.)

2d

cesarcesar 2010-08-02 22:19

Re: List of Apps known to drain battery?
 
i too have questions around battery drain. i flashed my 900 then installed about 50 apps. i soon started getting notifications that the device was consuming more power than it could be given via usb. i flashed again and have only added 15 or so apps that i had before and trusted to work good. I had just assumed the drain was from a app i downloaded, but now maybe i had the same high amount of daemons running. so how does one kow if the app being installed runs in the background? thanks.

s33 2010-08-02 23:22

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by ndi (Post 773421)
All apps that do something when not started drain. battery-eye, e.g. is one. As is battery-graph. To log battery, one needs to run. Also, shotcutd, camkeyd, etc are all daemons. All servers.

But battery eye & battery graph doesnt record the battery activity when its idle right?

these two apps only use cpu when they are opened.it takes 5-8secs to load since it needs to get the details so that the graph/percentage left can be shown.

so i think they dont drain battery unless you use them

Pls correct me if i'm wrong

2disbetter 2010-08-03 05:34

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by s33 (Post 773693)
But battery eye & battery graph doesnt record the battery activity when its idle right?

these two apps only use cpu when they are opened.it takes 5-8secs to load since it needs to get the details so that the graph/percentage left can be shown.

so i think they dont drain battery unless you use them

Pls correct me if i'm wrong

Where do you think the polled data concerning your battery usage is just coming from? Something has to be recording it. Open up top or htop and you'll see both of those activities in your processes list.

2d

ossipena 2010-08-03 06:36

Re: List of Apps known to drain battery?
 
come on, a bit common sense please. Install one app and see for couple days if it is draining battery.

or if you have installed million apps, remove one and see if situation gets better.

good rule of thumb: if you don't know what to do with app x, remove it. or have you really used ssh server for example?

naabi 2010-08-03 06:48

Re: List of Apps known to drain battery?
 
An utility tool that would record the total CPU time and total network activity used by executables would be handy. Though it could be the one at the top regarding CPU time...

ossipena 2010-08-03 07:30

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by naabi (Post 773932)
An utility tool that would record the total CPU time and total network activity used by executables would be handy. Though it could be the one at the top regarding CPU time...

on an other hand it would use a lot less power compared to removing and installing random packages plus monitoring if battery consumption changes...

2disbetter 2010-08-03 07:45

Re: List of Apps known to drain battery?
 
So I've been trying to clean up my packages list, and am not having any luck. As root I've tried the following commands:

apt-get purge, autoclean, clean

as well as apt-get purge with the specific package listed.

It just keeps saying the package is not installed and is therefore not removed.

So how do I clean up the packages list? Or is that just the way it works?

2d

Ps: I'm also certian that the bug mentioned earlier in this thread is the culprit for my increased battery drain. I've been monitoring hildon.desktop and it is spiking and almost always running at 1-4% cpu cycles.

After killing the process it returns to normal, however as soon as a menu item is accessed the activity returns. I really hope they come up with a fix for this bug, because it is killing my phones productivity.

2d

AlMehdi 2010-08-03 07:53

Re: List of Apps known to drain battery?
 
If you are adventurus you could install PowerTop. It will give you good information if you can understand it.

I uninstalled the fmtx widget as i saw it drew battery. Noticed a little change. And did my own fmtx widget with the help of QBW. ;)

1. sudo gainroot
2. apt-get install powertop

you will not find it in app manager and you run it from terminal.

1. sudo gainroot
2. Start PowerTop.. during the count down
3. Close all program and the keyboard
4. Lock the screen and wait a minute

If you want it to save to a file..
2. powertop > /path/to/the/file.txt

2disbetter 2010-08-03 07:58

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by AlMehdi (Post 773975)
If you are adventurus you could install PowerTop. It will give you good information if you can understand it.

I uninstalled the fmtx widget as i saw it drew battery. Noticed a little change. And did my own fmtx widget with the help of QBW. ;)

what repo is powertop from, dev?

Also I don't have the fmtx widget installed, but thanks for the tip.

2d

AlMehdi 2010-08-03 08:07

Re: List of Apps known to drain battery?
 
It's in extras-devel so you'll need to make sure it is activated.

s33 2010-08-03 08:11

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by 2disbetter (Post 773887)
Where do you think the polled data concerning your battery usage is just coming from? Something has to be recording it. Open up top or htop and you'll see both of those activities in your processes list.

2d

i saw these 2 apps only once in my htop/top.
And both were not consuming any % of cpu.
so hw can it be possible if they were recording the usage?
but i also thought the same....it can only plot the graph or give us the detailed usage info if these info were prerecorded somewere....

2disbetter 2010-08-03 08:16

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by s33 (Post 773989)
i saw these 2 apps only once in my htop/top.
And both were not consuming any % of cpu.
so hw can it be possible if they were recording the usage?
but i also thought the same....it can only plot the graph or give us the detailed usage info if these info were prerecorded somewere....

Yep. Just becuase they were not using any CPU then, does not mean they don't. How long where you monitoring Htop? The entire day? But just so you know, it's not speculation or a theory, they do infact use battery juice. Just making sure that is clear.

2d

rexii23 2010-08-03 08:33

Re: Methods for determining battery drainage / cause
 
Over the past week or 2 I've also had battery problems. I ended up reflashing and thought it was all good and started installing apps. but the problem started again.

I can't help but think its the titan's kernel doing something OR conflicting with something cos ever since I uninstalled it 3 days ago, the mysterious battery drain disappeared.

I used powertop to see what's going on. It turns out that the kernel is doing something weird. The process:
<kernel core> with function tick_nohz_restart_sched_tick kept the phone in C0 state all the time. Battery drains to 0 in a few hrs. It's completely random and it takes a few restart for the problem to go away.

Anyone else have the same problem?

I'm gonna have another crack at reflashing and installing apps one by one and testing it slowly this time.

On a side note the scim package used for for chinese input also drains battery.

Once I start scim-panel-gtk, it keeps n900 from sleeping fully and keeps waking the n900 up. This can be confirmed by running powertop. n900 will spend approximately 30% of the time in C3 state and cannot go fully into C4 state.

The process cannot be killed, it just respawns. A restart is needed to unload it. If anyone can figure out a good way to stop it from respawning let me know!

joelsk 2010-08-03 08:37

Re: Methods for determining battery drainage / cause
 
hi guys, i've been viewing this forum for a few months now picking up useful tips and tricks on pimping my n900.
I'm just wondering if anyone knows of a list of apps and settings used by the power users to keep their n900's running nice and smooth?
if not would someone come up with 1 for the new guys like me... thanks

AlMehdi 2010-08-03 08:57

Re: Methods for determining battery drainage / cause
 
Quote:

Originally Posted by rexii23 (Post 774016)
Over the past week or 2 I've also had battery problems. I ended up reflashing and thought it was all good and started installing apps. but the problem started again.

I can't help but think its the titan's kernel doing something OR conflicting with something cos ever since I uninstalled it 3 days ago, the mysterious battery drain disappeared.

I used powertop to see what's going on. It turns out that the kernel is doing something weird. The process:
<kernel core> with function tick_nohz_restart_sched_tick kept the phone in C0 state all the time. Battery drains to 0 in a few hrs. It's completely random and it takes a few restart for the problem to go away.

Anyone else have the same problem?

I'm gonna have another crack at reflashing and installing apps one by one and testing it slowly this time.

On a side note the scim package used for for chinese input also drains battery.

Once I start scim-panel-gtk, it keeps n900 from sleeping fully and keeps waking the n900 up. This can be confirmed by running powertop. n900 will spend approximately 30% of the time in C3 state and cannot go fully into C4 state.

The process cannot be killed, it just respawns. A restart is needed to unload it. If anyone can figure out a good way to stop it from respawning let me know!

I have titans kernel and got about 90% on C4 and 1,5-2% on C0 so i am not sure it is the oc-kernel. Though i can confirm that tick_nohz_restart_sched_tick is one with the most wakeups.

Have never seen the scim-panel-gtk causing problems.. but that process must be pretty deep and if turned of cause instability.. thus it starts up again. Maybe if you remove it from init.d but that would probably cause even bigger problems.

Ohh.. and i forgot to say that powertop needs to be run with root or it segfaults.

SpeedEvil 2010-08-03 09:41

Re: Methods for determining battery drainage / cause
 
Quote:

Originally Posted by AlMehdi (Post 774039)
I have titans kernel and got about 90% on C4 and 1,5-2% on C0 so i am not sure it is the oc-kernel. Though i can confirm that tick_nohz_restart_sched_tick is one with the most wakeups.

It doesn't.
This is exactly backwards.

I'm trying to write a page explaining power use - this is not done yet.

http://wiki.maemo.org/N900_Software_Power_management
In a couple of days I hope to have it polished, including how to use tools.

Of an idle system.

PID# | Activity | Name | Function Entry (Expire)
--------+------------+----------------+---------------------------
0 | 15 | <kernel core> | tick_nohz_restart_sched_tick (tick_sched_timer)

This is only called when something happens, to reschedule when the next tick happens.
0 | 10 | <kernel core> | hrtimer_start (tick_sched_timer)
Similarly.

37 | 8D| awk | cpufreq_governor_dbs (delayed_work_timer_fn)
This is a kernel bug - the awk is bogus - as is the process number, this is really the CPU governor code being called - again after something else happens - to change the CPU speed.

From here on are 'real' wakeups.

743 | 7 | bme_RX-51 | sys_timer_settime (posix_timer_fn)
BME timer timing out 7 times in 30s.

475 | 3 | wl12xx | schedule_timeout (process_timeout)
wireless card timeouts.
1 | 3D| <kernel core> | queue_delayed_work (delayed_work_timer_fn)
I think this is to process delayed events.
475 | 2 | wl12xx | schedule_timeout (process_timeout)
475 | 2 | wl12xx | queue_delayed_work (delayed_work_timer_fn)
wireless card again.

AlMehdi 2010-08-03 09:48

Re: Methods for determining battery drainage / cause
 
SpeedEvil: Pleas explain about the i2c_omap too.

rexii23 2010-08-03 11:19

Re: Methods for determining battery drainage / cause
 
Quote:

Originally Posted by AlMehdi (Post 774039)
I have titans kernel and got about 90% on C4 and 1,5-2% on C0 so i am not sure it is the oc-kernel. Though i can confirm that tick_nohz_restart_sched_tick is one with the most wakeups.

Have never seen the scim-panel-gtk causing problems.. but that process must be pretty deep and if turned of cause instability.. thus it starts up again. Maybe if you remove it from init.d but that would probably cause even bigger problems.

Ohh.. and i forgot to say that powertop needs to be run with root or it segfaults.

On the occasion that things behave nicely. I can get up to 97% on C4 on a complete idle system. As I have said previously, it was randomly keeping the device out of C4 and into C0. Will have another try on a completely flashed system on the weekend and see if what SpeedEvil describles will happen on a fresh system.

The scim-panel-gtk is not really that integral to the system. On a fresh boot it doesnt kick in. only when I click on the screen for the virtual keyboard the scim input box then pops up and the process stays. So I don't see why it can't be killed.

@SpeedEvil, can't wait for the full article

AlMehdi 2010-08-03 12:55

Re: Methods for determining battery drainage / cause
 
Quote:

Originally Posted by rexii23 (Post 774165)
On the occasion that things behave nicely. I can get up to 97% on C4 on a complete idle system. As I have said previously, it was randomly keeping the device out of C4 and into C0. Will have another try on a completely flashed system on the weekend and see if what SpeedEvil describles will happen on a fresh system.

The scim-panel-gtk is not really that integral to the system. On a fresh boot it doesnt kick in. only when I click on the screen for the virtual keyboard the scim input box then pops up and the process stays. So I don't see why it can't be killed.

@SpeedEvil, can't wait for the full article

Nothing is random ;)

If i where you i would try to find out the reason before you flash. And i guess you will.. have you installed sysklogd? It might help you further in your investigation. Also the MicroSD card can be cause for some wake ups. I guess that is the "mmcqd" and "mmc1" processes.

Matan 2010-08-03 13:01

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by ndi (Post 773421)
All apps that do something when not started drain. battery-eye, e.g. is one. As is battery-graph. To log battery, one needs to run. Also, shotcutd, camkeyd, etc are all daemons. All servers.

The fact that a program is a daemon does not mean that it causes any battery drain. Take camkeyd, for example. All it does is sleep, waiting for a specific d-bus event. It does not run and therefore does not consume battery except for very short time when the camera key is pressed. Unless you spend all time pressing and releasing the camera key, it has absolutely no effect on battery life.

Shortcutd, on the other hand, might activate the proximity sensor which does draw non negligible amount of power, but it's CPU consumption is meaningless.

2disbetter 2010-08-03 14:24

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by Matan (Post 774245)
The fact that a program is a daemon does not mean that it causes any battery drain. Take camkeyd, for example. All it does is sleep, waiting for a specific d-bus event. It does not run and therefore does not consume battery except for very short time when the camera key is pressed. Unless you spend all time pressing and releasing the camera key, it has absolutely no effect on battery life.

Shortcutd, on the other hand, might activate the proximity sensor which does draw non negligible amount of power, but it's CPU consumption is meaningless.

Good point. But still even as it sleeps isn't it still pulling power? An app not recieving any processing power will not be able to tell the event occured. At least not in any computer architecture I'm aware of. While the power I'm talking about to make this happen is negligible it is still power being drawn. I'm not sure how the operating memory of the N900 functions in comparison to desktop RAM, (I know how the my documents and sd card portion work) but I'm assuming even being loaded into this space still requires power to keep it there.

The only way an app can claim it doesn't use power, is when it's not being reported in your list of processes.

shadowjk 2010-08-03 20:48

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by 2disbetter (Post 774340)
Good point. But still even as it sleeps isn't it still pulling power? An app not recieving any processing power will not be able to tell the event occured. At least not in any computer architecture I'm aware of. While the power I'm talking about to make this happen is negligible it is still power being drawn. I'm not sure how the operating memory of the N900 functions in comparison to desktop RAM, (I know how the my documents and sd card portion work) but I'm assuming even being loaded into this space still requires power to keep it there.

The only way an app can claim it doesn't use power, is when it's not being reported in your list of processes.

An app waiting for an event doesn't consume any processing power. If no apps and drivers have requested to be woken up in X amount of time, the CPU goes to sleep indefinitely. Some peripherals might remain powered, and some minimal amount of circuitry is powered to detect if you opened up the keyboard slide, pressed any buttons and so on. That then generates an IRQ that wakes up the processor. The kernel's driver and the kernel itself then checks what apps need to be notified of this event. Typically on the N900 most things end up going out through dbus, which sends a notification to the apps, which causes the kernel to schedule them for time on the processor.

Polling behaviour, an app doing something like checking if a condition exists, sleeping for a second or two, checking again, and so on, is very bad behaviour and not battery friendly.

Heck, even PCs are capable of this to some extent. Suspend to ram leaves the CPU powered off, RAM remains powered. The OS might elect to retain some hardware, to for example detect if user presses powerbutton or types on the keyboard.. It can program itself to be woken up by the RTC, and the RTC is capable of running years on the single lithium coin battery on the motherboard... It can even switch the entire system off. Of course, on a PC entering and leaving such low power modes takes ages and aren't a practical thing to do behind the user's back.. Exception here being OLPC where they threw out the BIOS and managed to program the computer to suspend while leaving the screen on, and managed to make it fast enough that it 's transparent to the user..

juise- 2010-08-03 21:33

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by s33 (Post 773693)
But battery eye & battery graph doesnt record the battery activity when its idle right?

these two apps only use cpu when they are opened.it takes 5-8secs to load since it needs to get the details so that the graph/percentage left can be shown.

so i think they dont drain battery unless you use them

Both of the battery logging apps mentioned come with a background process that is "on" whenever the phone is. They do listen for changes in the values they record, and when they do, they write the observations to disk. This functionality will inevitably use some power.

However, data collection processes for both apps are pretty well behaved in that they will only do something when things change i.e. they do not poll (I think though that BatteryGraph has to do some very infrequent polling, maybe 10min interval, in order to record system load). I've been running both of these apps for about 5 months now, and dare to claim that neither of them should be causing measureable idle drain.

That said, if one doesn't want or need battery stats recording, there's no reason to keep these apps installed.

s33 2010-08-03 23:09

Re: List of Apps known to drain battery?
 
Quote:

Originally Posted by juise- (Post 774763)
Both of the battery logging apps mentioned come with a background process that is "on" whenever the phone is. They do listen for changes in the values they record, and when they do, they write the do some very infrequent polling, maybe 10min interval, in order to record system load). I've been running both of these apps for about 5 months now, and dare to claim that neither of them should be causing measureable idle drain.

That said, if one doesn't want or need battery stats recording, there's no reason to keep these apps installed.


so what u are saying is that these apps dont drain much battery...but they do upto some extend....

if so how much % does it use?
how much battery life do you get?
can u give a brief analysis??

i enabled VDD1 by editing "pmconfig" file...but now am getting less battery life than before.....sometimes less than 10hrs with slight usage:eek:


All times are GMT. The time now is 01:08.

vBulletin® Version 3.8.8