hostd wakelock preventing deep sleep - Galaxy S III Q&A, Help & Troubleshooting

Hi,
I hope someone could point me into the right direction to solve one annoying issue with my SGS3. Every time when I fully charge it and disconnect charger it doesn't go into deep sleep due to "hostd" kernel wakelock. If I reload phone after charging - wakelock is not there and I have excellent battery life.
I had this problem with unrooted stock ROM and kernel, so I though that it might be a kernel issue and upgraded to Siyah kernel - but the issue is still there.
Unfortunately BBS (and google) doesn't provide more info about this wakelock. Does anybody have this issue? Is it a known problem?
Thanks!

Hmm, I've only had that as a wake lock when using a USB OTG cable and a USB DAC, strange that you'd get it without having anything plugged in.
Sent from my GT-I9300 using xda premium

onslaught86 said:
Hmm, I've only had that as a wake lock when using a USB OTG cable and a USB DAC, strange that you'd get it without having anything plugged in.
Click to expand...
Click to collapse
Yes, very strange. Even if charger (or cable) somehow tricks phone to go into USB host mode, why does wakelock stay on after I unplugged it? I tried different cables and charges - same thing...
At the moment my only hope is JB update

Related

Rant - I cannot believe Samsung didn't fix deep sleep usb charge issue in ICS

This is completely unacceptable. I understand that phones will ship with bugs, but updates should fix those bugs. I should or have to reboot every time I pug into a USB based charger. Ridiculous.
What is your issue specifically? Might do more good to state the troubles rather than just complain. Because to me it just sounds like you have a bad phone.
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
This is a known issue with every note that has been discussed at length in many threads since the phone was released. Basically if you charge the phone from a USB based source, as opposed to a wall charger, it won't go into deep sleep ever after you unplug it. You must reboot or plug into a wall charger to fix the issue.
EvoXOhio said:
This is a known issue with every note that has been discussed at length in many threads since the phone was released. Basically if you charge the phone from a USB based source, as opposed to a wall charger, it won't go into deep sleep ever after you unplug it. You must reboot or plug into a wall charger to fix the issue.
Click to expand...
Click to collapse
Not my note my friend, never had that problem
Sent from my SGH-I717M using xda app-developers app
eviltango said:
Not my note my friend, never had that problem
Sent from my SGH-I717M using xda app-developers app
Click to expand...
Click to collapse
Its a software problem in the kernel so you most certainly do you just may not be aware of it. Here is a good test:
1. Plug your phone into one of those USB based car chargers. What this is is a unit that goes into your cigarette lighter and has a USB female plug on top. You then connect your phone to it via a USB cable.
2. Let it charge for a few minutes with screen off.
3. Unplug.
4. Turn screen on, open cpuspy and reset timers.
5. Turn screen off and wait a few minutes.
6. Unlock phone and launch cpuspy and click refresh.
What youll see is that your deep sleep time is zero and it spent all or most of its time at 384mhz.
You must then reboot or plug back into wall charger for it to fix itself.
maybe this is why it takes so long to charge?
Fortunately now that source has dropped a custom kernel can be deved to fix it.
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
EvoXOhio said:
This is completely unacceptable. I understand that phones will ship with bugs, but updates should fix those bugs. I should or have to reboot every time I pug into a USB based charger. Ridiculous.
Click to expand...
Click to collapse
+1
never had this problem
I bought a charger at Sams and its the best charger I have owned
Charges at 1 amp and is very sturdy
I just tested it by first plugging my phone into my laptop then by plugging it into a wall charger which has USB on it. After trying the laptop it came back fine, deep sleep and everything. I plugged it into the wall charger through it's USB port and I'll be damned, it didn't deep sleep. I seem to exclusively use wallplug to USB adapters. I wonder if this is why my battery dies so quickly. I'll have to test the adapter in my truck and the one I use at home and I'll report back if anyone is interested or if there's any relevant information. The adapter I used at my office is an apple adapter and it caused the issue.
Theoriginalgiga said:
I just tested it by first plugging my phone into my laptop then by plugging it into a wall charger which has USB on it. After trying the laptop it came back fine, deep sleep and everything. I plugged it into the wall charger through it's USB port and I'll be damned, it didn't deep sleep. I seem to exclusively use wallplug to USB adapters. I wonder if this is why my battery dies so quickly. I'll have to test the adapter in my truck and the one I use at home and I'll report back if anyone is interested or if there's any relevant information. The adapter I used at my office is an apple adapter and it caused the issue.
Click to expand...
Click to collapse
This is exactly why your battery dies so fast.
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
TOA Duck said:
Fortunately now that source has dropped a custom kernel can be deved to fix it.
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
Click to expand...
Click to collapse
Yeah if someone can track down the cause. And it could be an issue with a binary blob for one of the hardware components that we don't have the source for.
dakleenupman said:
This is exactly why your battery dies so fast.
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Click to expand...
Click to collapse
See I always thought it was because I ran so much through it. my streak never had great battery life so I just accepted it haha.
dakleenupman said:
This is exactly why your battery dies so fast.
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Click to expand...
Click to collapse
+1
Instead of the normal 1% drain per hour in standby it will do up to 10% per hour in standby because it doesn't deep sleep.
EvoXOhio said:
Its a software problem in the kernel so you most certainly do you just may not be aware of it. Here is a good test:
1. Plug your phone into one of those USB based car chargers. What this is is a unit that goes into your cigarette lighter and has a USB female plug on top. You then connect your phone to it via a USB cable.
2. Let it charge for a few minutes with screen off.
3. Unplug.
4. Turn screen on, open cpuspy and reset timers.
5. Turn screen off and wait a few minutes.
6. Unlock phone and launch cpuspy and click refresh.
What youll see is that your deep sleep time is zero and it spent all or most of its time at 384mhz.
You must then reboot or plug back into wall charger for it to fix itself.
Click to expand...
Click to collapse
I charge it on my vehicle often, never had this issue, whacha talking about Willis
Sent from my SGH-I717M using xda app-developers app
I seem to recall that the workaround for this issue was to turn the screen on before unplugging the phone from the charger.
lactardjosh said:
I seem to recall that the workaround for this issue was to turn the screen on before unplugging the phone from the charger.
Click to expand...
Click to collapse
That was hit or miss for most people myself included.
eviltango said:
I charge it on my vehicle often, never had this issue, whacha talking about Willis
Sent from my SGH-I717M using xda app-developers app
Click to expand...
Click to collapse
Make sure it is a USB based charger and try my test. The issue may not occur if the car charger is one piece consisting of cable and male charger end.
lactardjosh said:
I seem to recall that the workaround for this issue was to turn the screen on before unplugging the phone from the charger.
Click to expand...
Click to collapse
This. Sure. Samsung didn't fix the issue but the workaround completely takes the issue out of the picture. I tried it and my phone now deep sleeps every time. Relax and enjoy these next few days knowing that our devs are cooking up some progressive kernel pie.
To the OP.. Here's the link.
http://forum.xda-developers.com/showthread.php?t=1516565
My issue is poor charging on vehicle charger. I can drive three hours and use navigation with the screen off and also stream Pandora with my phone not fully charger. My POS Vivid was fine. Luckily I have a power converter to deal with it. This is my second Note and both do the same thing.
Sent from my SAMSUNG-SGH-I717 using xda premium

S2 thinks it is rechargin when it is not

Hi,
Yesterday when I took the phone off the charger normally, it started to indicate that it is being recharged, and a couple of seconds after it announces that it will no longer be charged and this same cycle continues and continues playing the annoying sound / message. I tried to fix it by removing the battery, but it did not help at all. I also tried to connect the phone to Kies but when Kies recognize it, the program crashes ...
So could someone please help me with this?
-Finnspirit
Finnspirit said:
Hi,
Yesterday when I took the phone off the charger normally, it started to indicate that it is being recharged, and a couple of seconds after it announces that it will no longer be charged and this same cycle continues and continues playing the annoying sound / message. I tried to fix it by removing the battery, but it did not help at all. I also tried to connect the phone to Kies but when Kies recognize it, the program crashes ...
So could someone please help me with this?
-Finnspirit
Click to expand...
Click to collapse
Did you try to blow some air in the usb port? As it may contain some dust that is leading your phone to notify you as if it is being charged...
sent with my homing pigeon
riro1612 said:
Did you try to blow some air in the usb port? As it may contain some dust that is leading your phone to notify you as if it is being charged...
sent with my homing pigeon
Click to expand...
Click to collapse
Didn't help But ty for advice.
Do wipe cache.
Sent from my GT-I9100 using xda premium
Hey,
I have been actually been having the same problem, it could:
1. bad charging brick
2. battery issue
3. kernel issue - i dont think its this one any more because i am still getting it on the stock leaked firmware.
4. usb charging board
i have tried flashing different roms / kernels and doesnt seem to be a cache / file issue since it happening before the phone boots. (charging screen)
if possible try another s2's battery in your phone... power off the phone and see if it auto starts or goes into charging screen. I have a spare battery and i dont seem to get the issue on that one. (still testing)
I also noticed i really only get the issue when i leave the phone charging for the night then wakeup. pull the charging cable and the phone doesn't register the disconnect and says its still charging. if i connect the usb to a laptop and connect and disconnect, it registers instantly.
i have looked for bent pins / dust.. depending on the better testing goes it may be the charging board that could be the issue.
good luck
astrialphantom said:
Hey,
I have been actually been having the same problem, it could:
1. bad charging brick
2. battery issue
3. kernel issue - i dont think its this one any more because i am still getting it on the stock leaked firmware.
4. usb charging board
i have tried flashing different roms / kernels and doesnt seem to be a cache / file issue since it happening before the phone boots. (charging screen)
if possible try another s2's battery in your phone... power off the phone and see if it auto starts or goes into charging screen. I have a spare battery and i dont seem to get the issue on that one. (still testing)
I also noticed i really only get the issue when i leave the phone charging for the night then wakeup. pull the charging cable and the phone doesn't register the disconnect and says its still charging. if i connect the usb to a laptop and connect and disconnect, it registers instantly.
i have looked for bent pins / dust.. depending on the better testing goes it may be the charging board that could be the issue.
good luck
Click to expand...
Click to collapse
I agree with you about the usb port problem. I also had a problem with the usb port, the battery icon was blinking all the time and the phone had a huge battery drain issue. All I could do is returning to stock, unrooting and bringing the phone to service center for repair.
sent with my homing pigeon

Battery not charging when off

Hi Guys,
I have searched the forums and i found that all the issues are with the phone on. My problem is the phone loses power when plugged into the PC when the phone is off and while plugged into the mains, it charges very very slowly. When it is on, the phone does not charge when plugged into the mains.
Do i need to get a new battery? Or should i go back to stock and see if it still occurs.
I am using cm10.1 nightly btw
Thanks
This thread might help you out: http://forum.xda-developers.com/showthread.php?p=36124435
Sent from my GT-I9300 using xda app-developers app
oh i forgot to add, i am using siyah and have pushed my usb charge to 900ma, and i used another current widget and it shows that the phone is drawing 899ma. that 1 ma does not really affect anything.
now the problem is when the phone is off, it shows charging but not really charging. i have wrote a program in c to see what current the cpu is outputting to the usb ports and it shows 500ma.
since it is 500ma shouldn't the phone be charging?
my question is will the kernel or rom affect the phone if it is off, if so it means i need to get a new battery.
But my battery can last 19hrs on a full charge, so i dont see how it is damaged.
Confused
exge said:
oh i forgot to add, i am using siyah and have pushed my usb charge to 900ma, and i used another current widget and it shows that the phone is drawing 899ma. that 1 ma does not really affect anything.
now the problem is when the phone is off, it shows charging but not really charging. i have wrote a program in c to see what current the cpu is outputting to the usb ports and it shows 500ma.
since it is 500ma shouldn't the phone be charging?
my question is will the kernel or rom affect the phone if it is off, if so it means i need to get a new battery.
But my battery can last 19hrs on a full charge, so i dont see how it is damaged.
Confused
Click to expand...
Click to collapse
In that case, do basic troubleshooting first:
Try with different cables. S3 cables have known issues with charging.
Try another port on the PC.
Try another PC/laptop.
Try other chargers.
Using the link I posted, check what is the current_max when you plug the phone to charge in each case. Details are in the first post of the linked thread.
Unplug and re_plug the cable from the phone when it is charging, several times if need be, to check if the charging current varies/increases.
Install stock and check if the issue persists.
Try with another battery (borrow from a friend, if needed).
If ask this fails, take it to the service centre. It might be an issue with the charging port.
Good luck!
Sent from my GT-I9300 using xda app-developers app
this issue only came up when using cm10.1 .. guess i have to go back to stock and see
exge said:
this issue only came up when using cm10.1 .. guess i have to go back to stock and see
Click to expand...
Click to collapse
Good luck! Post back what the result is.
ok i am on stock sammy rom now and it still has this problem.
this is what i know so far
my battery % shows 53%but my battery has 3.858 volts.
do i need to get a new battery or anything?
i might have damaged it due to always leaving it plugged in overnight for 1 year, but i thought li-on cells should have a chip to detect when they are full and automatically prevent anymore uptake of current
ok i am using inductive charging to charge my phone now, even though it is only 500ma, it charges faster then the 1A when using a wall charger.
So i guess that the microusb port is the one affecting it.

USB problem (software?)

Hi guys,
I'm having some problems with my S2's USB port. I've been combing the forums to see if I can find something, but no luck. Let me describe the symptoms and everything I tried.
Whenever I plug my phone in, it doesn't show that it's charging, but the battery is getting filled. USB also doesn't work. Rebooting the phone with the power cable plugged in shows that the phone is charging. Doing the same with the USB only made it charge but not work in USB mode. The battery life is also crappy, as the phone never goes into deep sleep (not even with the Deep Sleep app).
First I thought that the USB board might be faulty. I exchanged that (yes, the revision matches). The problem still persisted. I then tried to reflash the device with different versions of stock ROMs (ICS and JB). Same thing. I then tried flashing the Siyah kernel. That solved a small part of it. Restarting the phone while connected to the PC will make the phone be recognized as a USB device. I also installed CM 10.1. Tried it out with the Dorimanx kernel, still nothing.
My next plans are to use the NukeROM script (tried it before, but nothing) and try fiddling with different ROMs. If anyone has any more ideas, I'd really appreciate it.
Thanks,
Tudor
tudor.timi said:
Hi guys,
I'm having some problems with my S2's USB port. I've been combing the forums to see if I can find something, but no luck. Let me describe the symptoms and everything I tried.
Whenever I plug my phone in, it doesn't show that it's charging, but the battery is getting filled. USB also doesn't work. Rebooting the phone with the power cable plugged in shows that the phone is charging. Doing the same with the USB only made it charge but not work in USB mode. The battery life is also crappy, as the phone never goes into deep sleep (not even with the Deep Sleep app).
First I thought that the USB board might be faulty. I exchanged that (yes, the revision matches). The problem still persisted. I then tried to reflash the device with different versions of stock ROMs (ICS and JB). Same thing. I then tried flashing the Siyah kernel. That solved a small part of it. Restarting the phone while connected to the PC will make the phone be recognized as a USB device. I also installed CM 10.1. Tried it out with the Dorimanx kernel, still nothing.
My next plans are to use the NukeROM script (tried it before, but nothing) and try fiddling with different ROMs. If anyone has any more ideas, I'd really appreciate it.
Thanks,
Tudor
Click to expand...
Click to collapse
Did you ever try to use another, USB cable, USB port or even computer to connect your phone? If not, try this first. It is just to make sure you are not trying to fix the problem on the wrong side of the USB cable
Oh yeah, forgot to mention. Tried multiple ports with multiple cables on multiple PCs.
Sent from my GT-I9100 using xda app-developers app
Awkward, in this case likely to be a hardware problem, but you mentioned it isnt. I never seen something like this.
Sent from my GT-I9100 using xda premium
I could live with the USB thing, but the not going to deep sleep is really a phone killer. The battery only lasts a few hours on idle.
tudor.timi said:
I could live with the USB thing, but the not going to deep sleep is really a phone killer. The battery only lasts a few hours on idle.
Click to expand...
Click to collapse
Use BetterBatteryStats then. It will help you find the problem.
over Lioyr
I've been using it (even got the paid version). Doesn't really show anything useful. Also, correct me if I'm wrong, it should show me any problematic apps I have installed. Seeing as how I've been wiping like crazy, I don't think it's an issue due to some app.
tudor.timi said:
Doesn't really show anything useful.
Click to expand...
Click to collapse
Wow... That definitely depends on the observer
tudor.timi said:
Seeing as how I've been wiping like crazy, I don't think it's an issue due to some app.
Click to expand...
Click to collapse
If you think it's a hardware issue It would probably be best to bring the phone to a Samsung repair center.
Might just buy a new phone. I just wanted to see if anybody ever had the problem before.

[Q] Phone boots, but won't charge (normally)

So, I ran my Razr Maxx down to 0% battery the other day. (I know - don't do that...)
After much reading, I tore the phone apart and was able to charge the battery by connecting the red/black wires from a USB cable directly to the +/- screws on the battery connection.
I can now boot all the way into my ROM, stock or Eclipse (SafeStrap slot 1). The battery status shows 'charging (AC)'. But the % remaining is slowly dropping. It was at 44% when I first booted. It's down to 41% now.
I powered off and let the charging screen come up - it shows 50%, but it's not gaining any charge. Last night, I left it plugged in all night (powered off) and the battery was dead by morning. I think I started with ~ 30% charge that time. So, even though this shows 50% now, I suspect it's still discharging.
I've tried different chargers, including the Motorola charger.
I tried making a factory cable, but that doesn't seem to charge the phone - it appears to just provide power while bypassing the battery.
Any ideas on other things I can try to get this to charge off a normal charger & cable? Thanks!!
I think USB port is broken. Check charging in BMM.
dzi0bas said:
I think USB port is broken. Check charging in BMM.
Click to expand...
Click to collapse
Well, I was able to connect via usb to my laptop and copy files of the internal sd. And the charging indicator shows that it is charging via usb/ac. Of course, it doesn't seem to actually be charging. Would that be possible if the usb port was broken?
Maybe something is wrong. To be 100% sure check it in BMM. Charge it 1hr and boot normally and check bat %
dzi0bas said:
Maybe something is wrong. To be 100% sure check it in BMM. Charge it 1hr and boot normally and check bat %
Click to expand...
Click to collapse
Thanks... I'll give it a try. Quick question - where should I grab BMM from? I want to make sure I have the latest version. (I've always used SafeStrap.) The thread I found for BMM looks like it hasn't been updated in a long time.
http://forum.xda-developers.com/showthread.php?t=2005187
Okay... installed bmm from Google play...
When I first get into bmm, it shows 99% for the battery. After tapping around, it eventually updates and shows 13%. I powered off and waited for the charging screen, which shows 15% now.
I'm not familiar with bmm... is there any place aside from the status bar at the top that shows charging/battery status?
Is there any sort of battery calibration that might help?
Thanks...
Yes for the battery calibration it is in the recovery under wiping it says wipe battery stats. See if that helps
Sent from my XT912 using XDA Premium 4 mobile app
tydiamond11 said:
Yes for the battery calibration it is in the recovery under wiping it says wipe battery stats. See if that helps
Sent from my XT912 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Tried wiping battery stats, and still no luck...
So, right now it appears that:
1) The battery will NOT charge via the usb port, but WILL charge when I apply +5v directly to the battery.
2) The usb port is functional for connecting to a computer and transferring files over a usb cable.
Something that occurred to me today is that, when the phone was at 1%, I plugged it into a friend's charger. She has a Samsung Galaxy S4 - I'm not 100% sure if it was the factory charger, but I think it was. Could the charger somehow have damaged the phone such that it won't charge over the usb port (but somehow leave the usb port functional?)
Could replacing the battery have any chance of success? (Seems unlikely, since it can take a charge directly.)
Is there any other debugging I can do to narrow down the problem? Or is it time to give up? Is the phone likely to be useful to anyone for parts?
Thanks everyone so far for the suggestions...
marksibert said:
Tried wiping battery stats, and still no luck...
So, right now it appears that:
1) The battery will NOT charge via the usb port, but WILL charge when I apply +5v directly to the battery.
2) The usb port is functional for connecting to a computer and transferring files over a usb cable.
Something that occurred to me today is that, when the phone was at 1%, I plugged it into a friend's charger. She has a Samsung Galaxy S4 - I'm not 100% sure if it was the factory charger, but I think it was. Could the charger somehow have damaged the phone such that it won't charge over the usb port (but somehow leave the usb port functional?)
Could replacing the battery have any chance of success? (Seems unlikely, since it can take a charge directly.)
Is there any other debugging I can do to narrow down the problem? Or is it time to give up? Is the phone likely to be useful to anyone for parts?
Thanks everyone so far for the suggestions...
Click to expand...
Click to collapse
I am sorry I wish i could help more but i am out of ideas. Hope you get some other help!

Categories

Resources