yashsingh1/xdaforums huggingface dataset:
[Epic 4G Android Development] robl45:
phone on for 11 hours. time without sleeping 3h 35 min. screen on 54 min, shouldn't they be approximately the same?

my battery life is crap again. was great for two days and now crap again. I can't keep flashing 1.1.4, then 2.0.1 to have a working phone for 2 days then rinse and repeat. anyone shed some light on this?
[Epic 4G Android Development] mattallica76:
The only GB theme that works with Bonsai is 1.9, and it does not include a mms app. You have to flash it as a separate add-on. You can't install the mms.apk I sent you by conventional means, you need to push it to system/app via adb or use Root Explorer to copy/paste it there.
[Epic 4G Android Development] flyers2114:
Ahhh ok...well that is definetly a good reason!

Sent from Epic using Tapatalk!
[Epic 4G Android Development] mattallica76:
What's keeping it awake?
[Epic 4G Android Development] robl45:
nothing from what I can tell, the services say they are running basically for the same time as it says time without sleeping, these are android core services. IQ agent service, sanservice android sprint extension , makesimdbservice, cm_service, oppserverservice, google messaging service and swype.

I checked partial wake as I read to check that, and its just very very minor, nothing out of the ordinary.
[Epic 4G Android Development] mattallica76:
What's at the top of the list under "partial wake usage"?
[Epic 4G Android Development] pjjohn73:
Thanks for info.

Im not having battery issues myself. I just misunderstood you and was wondering if there was an advantage to drainung the battery. Now u understand you were just saying it takes ALOT to drain the battery.

I get through the very goid with moderate use.
[Epic 4G Android Development] robl45:
android system is top.

i just restarted the phone a bit ago, time without sleeping 6min, screen on 3min.
[Epic 4G Android Development] bjhill2112:
I'm having similar battery issues. When I look at partial wake usage, Android system is always at the top.

I grabbed a CatLog last night and have been trying to parse it out and graph the results in what little down time I've had today (not much). I found that from about 12:00 am to 2:13 am there was little activity - mostly just the BatteryService and MinimalTextUpdateService (responding to notifications). Then all of the sudden the log entries started piling up big time. It all corresponds to the batter full notification. I also started getting a ton of these:

/dalvikvm( 4596)	GetFieldID	unable to find field Ljava/util/HashMap;.loadFactor	F

Here is what the graph looks like of those entries (the Y axis is the position in the log, the X axis is the time it occurred):
[Epic 4G Android Development] mattallica76:
When you click on Android System, it will tell you the running time of the process. How much time is "Android system" using?
[Epic 4G Android Development] robl45:
sensor usage shows android system for like the entire time the phone has been on. not sure if that is normal or not.
[Epic 4G Android Development] robl45:
now 2 min 29s out of 12 minutes and change total.
[Epic 4G Android Development] superbraut:
thanks again for the reply. I see what you mean now, but the picture messaging download still wont work. I moved the app via root explorer to the system/app folder and replaced the mms.apk that was in there before.
[Epic 4G Android Development] mattallica76:
In your "Location and security" settings, do you have "Use wireless networks" enabled?
[Epic 4G Android Development] mattallica76:
Did you edit the permissions of the file to match the permissions of the other files in that directory?
[Epic 4G Android Development] robl45:
yes, I meant to mention that I keep bluetooth, wifi, and gps on all the time. and yes that setting is checked. with everything the way it is now, I went to work on monday. left my house at 7:30am and when I left work at 5pm, I had 55% of my battery left. Today I left work and I had 32% left, nothing has changed between Sunday when i reflashed everything and redid it to now. I did spend yesterday at home with my son and wifi was used a good deal but wifi is used everynight when I'm at home so i don't think thats it. all I know is 2 days and this thing is done, every time. 1.1.4, this one, makes no matter. then i have to flash 1.1.4 clean, then 2.0.1, then put my apps back on and i get another 2 days.
[Epic 4G Android Development] mattallica76:
That's way too high. Do you have "Use wireless networks" enabled in Location settings?
[Epic 4G Android Development] robl45:
yes, I think you missed it in the post above this one, but the answer is yes, thats always on.
[Epic 4G Android Development] mattallica76:
Try unchecking that setting. I've found that some apps will poll for location constantly when that's enabled, which will cause Android system to wakelock and use battery. Did you install or enable any apps that might poll location or network location, like News and Weather Widget, or Beautiful Widgets. Is the browser running in the background, and if so, do you have network location enabled in the browser?
[Epic 4G Android Development] robl45:
nope, no browser running the background, no apps running. like I said, works fine for 2 days with everything the same as the phone is now, then does this.

android system only been on like 3 min out of 1 hour now, so i don't think thats the issue.

but time without sleeping is 21 min and screen on is 11 min.
[Epic 4G Android Development] mattallica76:
3 min out of an hour is pretty high if your not doing anything. You should average around 1 min per hour, even less if your connected to a WiFi network. What is your WiFi sleep policy set to?
[Epic 4G Android Development] digiblur:
Uhh...5 dollar solar calculators are so reliable.
[Epic 4G Android Development] theimpaler747:
For the Bonsai team and any interested in helping; here's my logcat when trying to get wifi working. Let me know what you find. Thanks.
[Epic 4G Android Development] Top Nurse:
If you know one that has stored info on dobutamine, epinephrine, norepinephrine, etc then please pm me. It's looking more likely I will get an ipod touch just to use at work. I'm thinking it is unrealistic to think an android phone can make it through a shift.

Sent from Bonsai v 5.0.3
[Epic 4G Android Development] robl45:
don't take this the wrong way as I know you are trying to help and I REALLY appreciate it. But nothing, nada, zip has changed on the phone. So what would the wifi sleep policy have to do with it? Its set to normal though, no changes, when the phone works, I get great life out on 3g and phenomenal life on wifi. I don't know what the heck is going on, why I get 2 days and it reverts back to crap is dumbfounding to me.
[Epic 4G Android Development] sndtubes:
I bought the external charger and carry TWO fully charged batteries in my pocket. All you need to do is to have a couple of batteries in your pocket when you start your shift. They are very easy to change.....
[Epic 4G Android Development] Randy_T:
A recommendation was made today by Mystery to install Watchdog on your phone and let it catch the processes that are misbehaving. I think this is a great idea rather than guessing.

Also, Bluetooth is power hungry. I see no reason to leave Bluetooth on all of the time. It is too easy to configure the phone to automatically turn it on when needed.
[Epic 4G Android Development] superbraut:
Yeaa the permissions were the same as all the other apps. READ for the User Group and Others and just WRITE for the USER. I also played around with the permissions a little bit and it still doesnt work. Any other ideas come to mind?
[Epic 4G Android Development] Randy_T:
Execute bits also need to be set. Try the following at the terminal:

chmod 755 /system/app/Mms.apk
[Epic 4G Android Development] mattallica76:
If WiFi sleep policy is set to anything other than Never, it's been known to drain battery.

I've experienced the same phenomenon you are experiencing where everything is great for a couple days after a ROM flash, then wakelocks and runaways takeover. But for me the issue was on Eclair and it had to do with Superuser installed to both system/app and data/app at the same time.

Weather you changed something on the phone or not, something has changed. Download Watchdog Task Manager from the market. It will alert you when an app misbehaves.
[Epic 4G Android Development] mattallica76:
Did you happen to reboot after installing it?
[Epic 4G Android Development] theimpaler747:
Anyone see this? Bonsai guys? :p :)
[Epic 4G Android Development] mrhocuspocus:
lol using an phone to do calculations in a time sensitive ER environment. Itll take you longer to unlock your phone than to start the calculation on regular calculator.

get yourself a nice calculator watch and calculate your vasoactive drips in style and be the envy of all the other nurses.
[Epic 4G Android Development] nubecoder:
From the log...

and then later on...

Could you check the permissions of "/data/misc/dhcp/dhcpcd-eth0.pid".

The permissions should be "rw-r--r--" (chmod 644).

Just a guess, but it seems that your dhcp daemon isn't able to start.

GL

=]

[edit]

It takes time filtering through all that other "junk" in the logs

=]
[Epic 4G Android Development] theimpaler747:
Thanks for trying to help man :) Just checked, and the permissions are correct....
[Epic 4G Android Development] nubecoder:
OK, just for giggles, try the "/system/bin/dhcpcd" @ "rwxr-xr-x"

=]
[Epic 4G Android Development] theimpaler747:
Yup, it's all right there too
[Epic 4G Android Development] superbraut:
sorry for being noob. when you mean terminal, do you mean through root explorer or my computer. I did a search but i still dont understand.
[Epic 4G Android Development] theimpaler747:
Search the market for terminal emulator
[Epic 4G Android Development] nubecoder:
He means Android Terminal Emulator.

Well, to the best that I can tell, it looks like the DHCP daemon can't start and eventually times out.

How to fix that, is a whole other story, we've already tried the only thing I could think of (file permissions).

Maybe run a "Fix Permissions" with CWM (if you haven't already).

That's my last idea (and I'm pretty sure you said you've re-flashed already and still no WiFi love, so IDK).

Maybe someone else has something to try?

=[

[edit]

AHH!!! Try setting a manual IP.. so DHCP wont be necessary!

[edit 2]

OK, lol last thought I had... the "/data/misc/dhcp" folder should be chmod 777.
[Epic 4G Android Development] JohnCorleone:
I am running Viper Frozen and every time I try to switch to Bonsai, I keep getting tons of FCs. Do I need to change anything thru Odin? Couldn't find OdinBonsai
[Epic 4G Android Development] nubecoder:
It seems that when coming from Viper it's best to (simplified):

Odin to DI18 (full tar).

Odin the DK28 modem (modem only).

One click Root CWM 3.0.0.5(EXT4) root.

Flash Bonsai v2+.

People have been having trouble coming from Viper.
[Epic 4G Android Development] JohnCorleone:
I was going good readding apps then all of a sudden....FC for swype,then services,etc
[Epic 4G Android Development] JohnCorleone:
Thanks. Give that a shot
[Epic 4G Android Development] theimpaler747:
I'll try them all :) Thanks again for all the help :D
[Epic 4G Android Development] running_the_dream:
+1 cosign

10 char
[Epic 4G Android Development] theimpaler747:
Fixing permissions didn't work, and as for chmod 777.... that's what the folder should be?
[Epic 4G Android Development] nubecoder:
Yes, my "/data/misc/dhcp" is @ rwxrwxrwx (chmod 777).

If yours is different, maybe that's why the dhcpcd is giving permission denied.

I've tested a bit, and when I disable my WiFi the "dhcpcd-eth0.pid" file is removed.

When I re-enable WiFi it is re-created.

So maybe there is a problem while creating the PID file.

All I can say is, (IMO) your problem is definitely related to the dhcp process and it failing to start correctly (permission denied on the pid file), then it times out, resets connections, and disables dhcp.

Maybe some linux guru's have something to add (I'm still a nube when it comes to linux).

=]
[Epic 4G Android Development] robl45:
i didn't see anything about that, but I will do that, how would i have bluetooth turn on automatically if its off? i use it in my car, don't want to fiddle with turning it on and off everytime i get in and out.

i reflashed everything again and restored all the apps from titanium backup, we will see if its better, doesn't look all that different from looking at the stats now but i'll know tomorrow if its using 3% an hour like it does when its working right.
[Epic 4G Android Development] theimpaler747:
Yup, it's all like that :( Man, not sure why this is happening
[Epic 4G Android Development] nubecoder:
I suppose you could try a few other things..

Configuring a manual IP, gateway, netmask, etc (WiFi Settings->Menu->Advanced->Use Static IP).

Change router settings: Change security types (WPA [TKIP, AES], WEP, etc), disable wireless security entirely... See if anything changes.

Otherwise I'm pretty much out of ideas.

=[
[Epic 4G Android Development] Randy_T:
For grins, make sure the following is set for /data/misc

chmod 1771 /data/misc

and

chown system:misc /data/misc

The other suggestion of setting a static IP would also show that dhcp is in fact the problem.

The other thing I saw that gave me some concern was that your SSID has a space in it. I have seen that cause problems in some cases.
[Epic 4G Android Development] theimpaler747:
It's definitely not the router, as it works fine on stock DK28.....
[Epic 4G Android Development] Randy_T:
Why did you need to restore apps with Titanium? As has been mentioned repeatedly, that is not recommended.

There are tons of apps available that will turn on BT when you plug in your car charger as an example. Tasker also has ability to set these operating modes.

For fun, try making the effort to turn off BT and see what happens. I know my phone would not last more than 6 hours if I had BT on all the time.
[Epic 4G Android Development] nubecoder:
Nice catch I wouldn't have thought of that.

Come on, would it really hurt to try.

What's the fun in diagnosing something when you aren't willing to try every last possible thing to get it working. ;]
[Epic 4G Android Development] Randy_T:
Humor us...
[Epic 4G Android Development] theimpaler747:
All the files have the correct permissions, I'll try changing the SSID though
[Epic 4G Android Development] nubecoder:
Well FWIW, I just changed my SSID to have a space in it, and I have no trouble connecting and getting an IP.

=[
[Epic 4G Android Development] theimpaler747:
Yeah, didn't work, and I tried my second router and that didn't work either, same issue...
[Epic 4G Android Development] Randy_T:
And setting a static IP?
[Epic 4G Android Development] theimpaler747:
Let me try that... I'll update

EDIT: No go :( Appreciate the support, it's not often I need it but when I can't figure something out (like this) it's good to know there's some help out there
[Epic 4G Android Development] Randy_T:
Ok, last couple of thoughts.

Can you go to /data/misc/dhcp and type the following:

touch dhcpcd-eth0.pid

chown dhcp:dhcp dhcpcd-eth0.pid

That will create a zero length file owner and group dhcp.

If that does not work, have you tried the solution in this post: http://xdaforums.com/showpost.php?p=10918453&postcount=2865
[Epic 4G Android Development] theimpaler747:
Trying that solution right now, fingers crossed!

Edit: Still nada..... bah, this is just silly. Still like the rom though ;)
[Epic 4G Android Development] nubecoder:
another good catch, I'm remembering that post now, seems promising.

GL!

ps- Randy check your gmail.

=]
[Epic 4G Android Development] nubecoder:
Have you tried dropping your phone from about waist level onto some concrete or hard tile? You know show it who's boss.

But seriously tho, WTH, your phone just doesn't like us!

=[
[Epic 4G Android Development] theimpaler747:
Well, I tried chunking it off the roof, but that didn't help either :p I have 4G from my house, so it;s not a huge deal to me, but obviously I'd like to have it working.
[Epic 4G Android Development] musclehead84:
If I had that much trouble with my wifi I would say screw it. That is nuts
[Epic 4G Android Development] theimpaler747:
Yeah I really don't know why it's happening. I'm hoping that the when a new version of Bonsai is out, it'll work ;)
[Epic 4G Android Development] Randy_T:
I think that is wishful thinking... :) This is not a Bonsai problem even though it may seem so. I've peered to at least 6 different Wifi networks over the past few days. There is never a problem. Especially makes no sense that you cannot set a static IP. That is basic functionality.

You mention you have 4G... do you have 4G enabled while trying the Wifi? Saw some evidence of that in the log and wonder if they are competing somehow.
[Epic 4G Android Development] theimpaler747:
I've tried it both ways; neither seems to work. And no offence meant, this is a great rom, but it's only a transition until we at ACS can come out with a 2.2 rom ;) :D
[Epic 4G Android Development] superbraut:
Okay i got it to work, through android terminal emulator, but i get the message operation not permitted.
[Epic 4G Android Development] nubecoder:
Ya, I noticed your dhcpcd is working fine for wimax.

So again... WTH...

I'm not the kind of person who likes to give up when something needs fixing, but I'm afraid that is the point we've come to.

I'm convinced that permission denied error is the cause of the problem, but it seems that we are all at a loss as to how to fix it.

As a matter of fact, I'm not ready to quit, if you willing, I've got some more ideas, but I'm going to take this to pm as to not continue to flood the thread here.

=]
[Epic 4G Android Development] theimpaler747:
Absolutely! Hit me up by PM :)
[Epic 4G Android Development] musclehead84:
If you all find a fix be sure.to.let us know about it. Never know when that fix might come on handy. Thank you and hope you get it.

Sent from my Evo Killer!!!
[Epic 4G Android Development] WunderXDA:
OOH I could use something like that, which is your favorite?
[Epic 4G Android Development] BeerChameleon:
Wow do I feel retarded, my battery completely drained then shut down showed the sprint symbol and I kept rebooting and I thought it was not responsive now I have to reconfigure everything, and redo my mods, six ass for my dumbass

lol

Sent from epic 4g running Bonsai :)
[Epic 4G Android Development] musclehead84:
LOL!!!![

QUOTE=davidrules7778;11255813]Wow do I feel retarded, my battery completely drained then shut down showed the sprint symbol and I kept rebooting and I thought it was not responsive now I have to reconfigure everything, and redo my mods, six ass for my dumbass

lol

Sent from epic 4g running Bonsai :)[/QUOTE]
[Epic 4G Android Development] BeerChameleon:
[/QUOTE]

Ya pretty dumb now I'm getting a lot of force closes and also when I click widow on it works just force closes what is the easiest way to refkash thus and fix this, with out going back to b4 ext ?

Sent from epic 4g running Bonsai :)
[Epic 4G Android Development] robl45:
never plug in the charger in the car. bluetooth is only running when i'm using the car, otherwise its on but not connected. I used titanium first because i want to eliminate it as an issue. and i've used it 3 times before and everything is always fine until 2 days later when battery life goes to crap. besides, if I have to do this every 2 days, i can't lose all my apps.

i have the watchdog installed now. so we will see what happens.
[Epic 4G Android Development] Randy_T:
I use Tasker. Allows me to do things like turn on BT, turn off wifi when I plug in my car charger. Turns my Wifi on when I am within 1000 yards of my house and turns off the screen lock.

It is not free though and it is not for the faint of heart to get it configured.

To be honest though, I've turned it off over the past few weeks because my battery life is so good...
[Epic 4G Android Development] mattallica76:
Ya pretty dumb now I'm getting a lot of force closes and also when I click widow on it works just force closes what is the easiest way to refkash thus and fix this, with out going back to b4 ext ?

Sent from epic 4g running Bonsai :)[/QUOTE]

Just reflash Bonsai. If the file system is corrupt that should fix it. Unless the data itself is corrupt.
[Epic 4G Android Development] ryno502:
Haven't had the phone dying issue since yesterday. The reflash worked.

Note to self: Do not install no-governor mod on top of Bonsai lol.
[Epic 4G Android Development] stepchap:
In my experience on every phone I've had, just leaving the BT on even if it's not connected to anything, is a big battery drain.
[Epic 4G Android Development] BeerChameleon:
Just reflash Bonsai. If the file system is corrupt that should fix it. Unless the data itself is corrupt.[/QUOTE]

Nope that didn't fix it, so I went back b4 ext then reflashed bonsai and it seems to working now, just need to get all my mods and settings back, does anyone have the handcent APk?, it wont load on the market when all the other apps will ..
[Epic 4G Android Development] ahowie111:
battery issue

okay i searched around the thread and i have tried all the things i could find with no luck... i have turned off network location and set wifi sleep to never. when i was on stock rooted dk28 i got awesome battery life after coverting to ext4 and flashing bonsaii 2.0 i have terrrrible battery life and my gps wont connect.. although i just found a supposed fix for that so i am going to try that. but the battery is the big problem. soon as i unplug the phone it goes down to about 89 % after about 5 minutes and the battery lasts me about half the day where as before it would lalst almost two days. any ideas? i tried a few different methods of "recalibrating the battery" but didnt seem to work.

edit: just tried the gps fix and still cant connect to gps :(
[Epic 4G Android Development] JudasD:
Has anyone come up with a definitive way to re-enable journaling? I tried to do a data restore, but that did not re-enable it. Since i have been playing around with the new wifi tether my phone reboots a lot on its own and it has been causing noticeable data corruption. Not good :(

Thanks,

JD
[Epic 4G Android Development] vampyrex13:
+1

I had wireless tethering 3.0 pre3 on my phone, and it was working great. Suddenly, I got an SMS and it caused my phone to power off. Once it came back up, I had all sorts of FCs. I did a reinstall of Bonsai 2.0.1, but when it restored my data and loaded up, the FCs came back. Thank God I had my data backed up with Titanium Backup. I restored all my data from that and the FCs went away.
[Epic 4G Android Development] nubecoder:
Still, nothing we've tried has worked.

I had him flash back to stock DI18 and check WiFi every step of the way, and it breaks right after the Bonsai install.

I know it can't be the Rom, as no one else is having the problem, but something is going on, just can't figure it out. =[

Hrm... I had a thought... This is the MD5 hash I have for Bonsai v2.0.1

e28bfdec325ea309efad35b13507f61d

theimpaler747 could you verify that your file's hash matches? just to be sure.

Do you by chance use the AOSP lock-screen?

If so, check a page or two back, I posted a link to the "fixed" AOSP lock-screen that will not reboot the phone when a SMS is received.

=]
[Epic 4G Android Development] theimpaler747:
Yeah, it does match....
[Epic 4G Android Development] gtuansdiamm:
plez delete
[Epic 4G Android Development] bjhill2112:
So, I've been following this conversation and I wanted to note that I have intermittent issues with Wifi. It sometimes won't turn on. I have not had a chance to grab a log though. Sometimes I get it to turn on after trying a couple of times - the settings -> Wireless networks screen will show error under the checkbox. About half the time I have to reboot to get it to work. I use Wifi at home, turning it off when I leave the house, and I use 4G at work and turn it off when I leave. Not sure if it is a related problem.
[Epic 4G Android Development] robl45:
left work today and I had 52% of my battery left, thats 20% more than yesterday and I purposely installed more apps this time to make sure it wasn't an app problem.

watchdog installed, no alerts, no issues.