maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Fix battery time from under 7 hours to over 9 days! (https://talk.maemo.org/showthread.php?t=36438)

TA-t3 2009-12-16 09:38

Re: Fix battery time from under 7 hours to over 9 days!
 
I mentioned this in another thread, but I suddenly have moved to a battery issue out of the blue. The cause? Pulseaudio consuming CPU like when the equalizer is running (16-18%), it even drops to 9-10% with headphones in. As normal, if _playing_ something. Which I'm not doing. I don't use the media player in general. There's no obvious reason why pulseaudio should run its equalizer.

javispedro 2009-12-16 09:46

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by twaelti (Post 430151)
It's using SDL. Which is not as power-saving friendly as other solutions I was told (my mClock is using PyGame which uses SDL which seems to disable some CPU power saving states).

SDL1.2 does a 10Hz tick even if your app is completely idle.

TA-t3 2009-12-16 10:46

Re: Fix battery time from under 7 hours to over 9 days!
 
Ok there's definitely something fishy with pulseaudio.

As I mentioned above pulseaudio was spinning CPU like when it's equalizing something playing. Nothing was playing. Battery in 'low battery warning' mode this morning. I looked through all processes running. There was really no reason for pulseaudio eq being active.
So I killed pulseaudio. It then restarted, but now with normal CPU (i.e. idle).

I'll be keeping an eye on this. I bet my battery performance will now be back to normal (until pulseaudio acts up again). I'm not a media player user so I don't know what triggers pulseaudio misbehaviour.

javispedro 2009-12-16 13:59

Re: Fix battery time from under 7 hours to over 9 days!
 
It's not necessarily pulseaudio's fault. Any app opening a pulseaudio socket and not closing it/closing itself will cause that.

TA-t3 2009-12-16 14:56

Re: Fix battery time from under 7 hours to over 9 days!
 
@javispedro: I'm not familiar with how pulseaudio works. If it's via a socket then it should be possible to figure out the offending process with netstat -p (or lsof, if it's available). I will try to check that out if/when this happens again. What I did though was to look for suspicious processes, which I couldn't find.

Phantasm 2009-12-16 23:26

Re: Fix idle battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by Venomrush (Post 430169)
Command not working
-sh: lshal|grep bat: not found

nor

alias b="lshal|g ng.c"

This one didn't return anything.

Run as root?

No need to run as root. Perhaps you have mistyped the commands or something? Lowercase "LSHAL" and | can be gotten from fn-ctrl. In case of mistyped commands, it should list the command before and after | separately and never include | in the error message.

j.s 2009-12-16 23:51

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by mr2600 (Post 430119)
I then did the ifconfig command but after inputing it I dont seem to get a response. If i just do ifconfig wlan0 this is i see:

0 Link encap:Ethernet HWaddr 34:7E:39:42:B5:03
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:6959 errors:0 dropped:0 overruns:0 frame:0
TX packets:4366 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9467151 (9.0 MiB) TX bytes:415553 (405.8 KiB)

Does that mean the wifi was still on? Even so why would it drain so fast.

You will get something like that listing even in offline mode. When you are connected, included will be:
"UP BROADCAST RUNNING"
The "UP" and "RUNNING" are key.

I don't know how to tell for certain if power is going to the wifi radio.

inzimam 2009-12-18 15:55

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by Chippeer (Post 421844)
I have CPU widget and that says, that my device using 3% of CPU...

WHere did you get this from?

jetmarc@hotmail.com 2009-12-18 17:16

Re: Fix idle battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by Venomrush (Post 430169)
Command not working
-sh: lshal|grep bat: not found

Separate the vertical bar with spaces on both sides.

Phantasm 2009-12-19 03:16

Re: Fix idle battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by jetmarc@hotmail.com (Post 433605)
Separate the vertical bar with spaces on both sides.

That isn't required. It works both ways just fine.

z3phyr 2009-12-19 03:42

Re: Fix battery time from under 7 hours to over 9 days!
 
what do u mean when you say u disabled gps. is it usually on by default? or do you mean your not running the ovi maps or location widget or something similar.

Phantasm 2009-12-20 08:19

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by z3phyr (Post 434094)
what do u mean when you say u disabled gps. is it usually on by default? or do you mean your not running the ovi maps or location widget or something similar.

By default GPS is enabled in such way, that if an application tries to use it, it can.

But you can set it so that no application may use GPS at all.

L11 2009-12-20 08:23

Re: Fix battery time from under 7 hours to over 9 days!
 
My battery life has too dramatically reduced, and for ages I've been trying to pin point why... Now its maybe not a coincedence that it's dropped the same time i got a new router!!

jerra 2009-12-20 08:36

Re: Fix battery time from under 7 hours to over 9 days!
 
Is it possible to make a script or widget even that disables/enables energy intensive services or functions like GPS, bluetooth, wi-fi etc?
I'd very much would like such a function. No confirmation dialog, just a one click flick to either turn on/off.

Doc_Raj 2009-12-20 09:35

Re: Fix battery time from under 7 hours to over 9 days!
 
I'd concur. There is certainly something up with Wi-Fi....when connected to Wi-Fi, the batter drains within around 6 hours (even if IDLE and no downloading/uploading). When Wi-Fi is off (and network set to 2G rather than 3G) the battery is perfectly happy lasting 24 hours at least.
Lets hope this is something picked up by the next firmware update

su_root 2009-12-20 10:41

Re: Fix battery time from under 7 hours to over 9 days!
 
Someone else having browserd using about ~13% all the time?

I have installed alot of apps and unistalled 99% of them. Would like to get some more battery life..

sabaircargo 2009-12-21 09:57

Re: Fix battery time from under 7 hours to over 9 days!
 
my battery is empty after 5 hours in idle mode, with all widgets erased, 2,5G, and no Wifi.
I checked the CPU usage with X terminal and Calendar is "eating" between 60-80%. I opened the calendar and closed it. I checked again the X terminal and after a few moments the Calendar usage appear again.
How I can close this Calendar to work in background, because is using a lot of CPU and is draining the battery so fast?
thank you,
Catalin

n900_ag 2009-12-21 10:17

Re: Fix battery time from under 7 hours to over 9 days!
 
i had to get rid of calendar and stop using wifi. Its better now.

cashclientel 2009-12-21 10:21

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by Chippeer (Post 422812)
Today, I woke up and i go to internet through 3G. I was on internet about 1:15h and then i play supertux for 1 hour. In the end i have 10 minute call and then battery was totally empty.... Is it normal? Thank you for your response...

Yeah I reckon so.

pelago 2009-12-21 11:34

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by sabaircargo (Post 436188)
I checked the CPU usage with X terminal and Calendar is "eating" between 60-80%. I opened the calendar and closed it. I checked again the X terminal and after a few moments the Calendar usage appear again.

There's definitely something wrong there. If you reboot, does the calendar usage show up again?

sabaircargo 2009-12-21 11:44

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by pelago (Post 436257)
There's definitely something wrong there. If you reboot, does the calendar usage show up again?

yes, reboot it and after seconds appear again. the calendar is setup to delete items older then 2 weeks. could be that the reason?

pelago 2009-12-21 11:45

Re: Fix battery time from under 7 hours to over 9 days!
 
That sounds like a bug worth filing, specifically to do with the calendar app. Hopefully someone on the bug tracker will be able to talk you through troubleshooting it, e.g. uploading a copy of your calendar db and/or settings, so they can see why the CPU usage is so high.

hollowplayer 2009-12-21 13:26

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by pelago (Post 436264)
That sounds like a bug worth filing, specifically to do with the calendar app. Hopefully someone on the bug tracker will be able to talk you through troubleshooting it, e.g. uploading a copy of your calendar db and/or settings, so they can see why the CPU usage is so high.

world clock maybe?? after i removed 2 regions with only local battery seems to last alot longer than usual.

Devil 2009-12-21 13:32

Re: Fix battery time from under 7 hours to over 9 days!
 
what? is this true? the less world clocks the longer the battery?

smegheadz 2009-12-21 14:31

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by hollowplayer (Post 436364)
world clock maybe?? after i removed 2 regions with only local battery seems to last alot longer than usual.

Should put in 24 timezones or more cities and see if it makes a major difference again.

StormBlast 2010-01-06 16:43

Re: Fix battery time from under 7 hours to over 9 days!
 
Hi All.

I am new forum and N900 user.
Please tell me if it is really possible even in theory to increase the battery life to anything close to 9 days (like the tittle states) ?

My battery lasts up to around 48 hours on GSM, offline, mostly idle. It lasts for less than 12 hours when I access internet several times and make few phone calls.

I am trying to return the phone to the shop as my 14-days money back guaranteed period has not passed yet but I doubt if they will accept the return of a product that has been in use. So my only hope will be probably this forum and nokia updates...

Cheers.

Phantasm 2010-01-06 23:00

Re: Fix battery time from under 7 hours to over 9 days!
 
Quote:

Originally Posted by StormBlast (Post 455755)
My battery lasts up to around 48 hours on GSM, offline 99% idle. It lasts for less than 12 hours when I access internet several times and make few phone calls.

This thread is mostly about a bug in Wi-Fi on the phone causing heavy battery draining on some users. With that bug triggered a fully charged battery will not last 7 hours. As such, you likely do not have the problem there.

As for other things that use battery. Some widgets may increase battery usage. Specifically calendar widget seems to have a big in it that causes it to use a lot of battery in some conditions. Search the forum for topics about that. I haven't personally experienced it and can't help much there.

Signal level, both on 2G and on 3G, will affect the battery lifetime. And it depends a lot on the usage. Different people use very different words to describe same behavior. But I would estimate from your wording that there is something draining battery. But the problem isn't very severe.

xomm 2010-01-06 23:55

Re: Fix battery time from under 7 hours to over 9 days!
 
I haven't read through the whole thread, so I'm not sure if anyone has tried this. (And I don't have the bug either, so I can't confirm)

Has anyone tried turning off the "Search Interval" in the WiFi settings?

(I didn't have the bug before, but it did seem to increase battery times slightly.)

TA-t3 2010-01-07 11:48

Re: Fix battery time from under 7 hours to over 9 days!
 
Automatic search for wi-fi will use quite a bit more battery than the option that I use, which search interval 'never' plus 'always ask'.

Phantasm 2010-01-07 18:03

Re: Fix battery time from under 7 hours to over 9 days!
 
Yes, the bug doesn't care about search interval or automatic connection. Even with 'never' and 'always ask' full battery dies under 7 hours if Wi-Fi connection had been on at any point. Simple searching for connections doesn't trigger it.

Phantasm 2010-01-15 00:19

Re: Fix battery time from under 7 hours to over 9 days!
 
This bug is still present in PR1.1 (2.2009-51-1) version. If you have any details about the problem to help solving it, go to https://bugs.maemo.org/show_bug.cgi?id=6615 and read the comments. Then if you have something to add, post a new comment. Also remember to vote for the bug if you are experiencing it.

Phantasm 2010-01-19 17:51

Re: Fix battery time from under 7 hours to over 9 days!
 
This bug seems to occur only when using static IP with Wi-Fi. There is also a potential devel level fix for the problem described in the most recent comments on bug thread https://bugs.maemo.org/show_bug.cgi?id=6615

If you can confirm the bug only occurs with static IP, please post it on comments of the bug. Also if you are knowledgeable enough to use devel level fix, do post the results.

oralallen82 2010-01-20 12:15

Re: Fix battery time from under 7 hours to over 9 days!
 
Great work my test actually confirms your statement. I took my phone off the charger at 9:40pm Woke up this morning and it has hardly budged. I hope Nokia comes out with a solution for this fast I cannot believe someone dropped the ball and didn't notice this.

Soham 2010-11-17 15:26

Re: Fix battery time from under 7 hours to over 9 days!
 
well...guess what guys ? my n900 battery has gone bonkers... :p :-

1.my battery takes ONLY 4-5 hours to get it fully charged and that too when its TURNED OFF...it simply doesn't completes charging if its ON !!!:eek:well just as a side note my NOKIA N81 takes only 1.5hours to complete
charging...and so does other nokia phones in my house...:rolleyes:

2.i put my n900 to charge at 5:00pm at a battery level of 0.4%! at around 10:30 pm its still at 0.4%!!!!! now beat that ! :eek:(refer pt.1)

3.then how long can it last after a full charge ??? 5-6 hours ??? nope...4 hours MAX...may be an hour in addition if i am LUCKY ENOUGH !!!:o

4.but guys u know what ?? i STILL LOVE MY NOKIA N900!!! i'm sure i'm gonna find a way out to get it in line.... :D

mary122 2011-07-08 12:51

Re: Fix battery time from under 7 hours to over 9 days!
 
I bet there's a way of just turning the wifi radio off. Be it a kill switch in /sys/bus/pci/drivers/ or somewhere. I doubt you need Texas Hold Em Tex to reboot the device just to do this...

michaaa62 2011-07-08 19:07

Re: Fix battery time from under 7 hours to over 9 days!
 
Like advanced-interface-switcher

Goliath27 2011-07-08 20:05

Re: Fix battery time from under 7 hours to over 9 days!
 
What about the bleeding edge app? Doesn't that just kill the wifi?

Also, entering the command yo shut down Wifi and I get a No Such Device error, anyone care to give a proper step to completing?

ALi


All times are GMT. The time now is 02:15.

vBulletin® Version 3.8.8