FORUMS

Analysis & Opinion

Top Forum Discussions

Wireless Charger Detector -- Orb

33 posts
Thanks Meter: 3
 
By easyxtarget, Member on 19th February 2013, 09:32 PM
Post Reply Subscribe to Thread Email Thread
27th September 2013, 10:46 PM |#31  
Member
Thanks Meter: 1
 
More
For me the problem only occurs if the phone is left on the charger once it is fully charged.

If I leave it on the charger when full it will stay awake and drain quickly. Example 30% drain in 10 hrs (overnight).
And the charger never comes back on.

If I charge it again and take it off the charger when it's fully charged, the battery drain will be only 3-5% in 10 hrs.
And the awake time will be very low. And battery usage over the next day(s) doesn't seem to be abnormal.
And I don't have to restart the phone to get this result even if I've previously left it on the charger overnight and
seen the excessive drain.

So this seems to be a problem being a result of the phone detecting the presence of the wireless
charger and remaining awake as a result.

The wakelock that seems to be the culprit is suspend_backoff

This wouldn't be a problem if it the charger came back on at say 80% but it does not.
And it wouldn't be a problem if the phone didn't stay 'awake' but it does.

There doesn't seem to be any point in being aware there's a wireless charger present if charging is
never going to restart no matter how low the battery goes, or in staying away because there's a charger
present that's never going to be utilized.

I'm not an android programmer but perhaps some of you who know more about how it's working could see
a way to work around this.

For now the workaround is to take the phone off the charger before going to bed and the convenience of
the wireless charger is worth it, but it would obviously be better if you could just leave it on the charger and not worry about it.

My phone is Nexus 4 purchased new in September. came with 4.2.. ota update to 4.3. stock. no root (yet)
I'm using a generic Qi charger purchased on ebay for around $22
I'm still using Safe Charge while charging.
Haven't had a chance to try the same routines without it yet.
Last edited by bobaka; 27th September 2013 at 10:50 PM. Reason: add
 
 
28th September 2013, 01:34 PM |#32  
dzo's Avatar
Senior Recognized Developer
Flag Auckland
Thanks Meter: 4,856
 
Donate to Me
More
Attached is a new version of my app and it certainly works for me. The previous version didn't always trigger when you lifted it off the charger.
My nexus 4 has been running it for the last 10 days, wireless charging every night and the wakelock is not held except during charging, see attached screenshot.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2013-09-29-00-29-28.jpg
Views:	328
Size:	40.5 KB
ID:	2288515  
Attached Files
File Type: apk Nexus4WirelessChargingFix-release.apk - [Click for QR Code] (27.4 KB, 223 views)
Last edited by dzo; 28th September 2013 at 01:37 PM.
The Following 3 Users Say Thank You to dzo For This Useful Post: [ View ]
28th September 2013, 06:19 PM |#33  
Senior Member
Thanks Meter: 18
 
More
So, for this you would need a charger that trickle charge? Once my phone is charged it stops charging then eats up battery.

Stupid question but how can i check it does its job?
Attached Thumbnails
Click image for larger version

Name:	w.pngakelock.jpg
Views:	159
Size:	33.9 KB
ID:	2289022  
1st October 2013, 11:35 PM |#34  
Junior Member
Thanks Meter: 1
 
More
affected +1
@cm10.1.3 stable (4.2.2)
10th October 2013, 05:27 AM |#35  
gbarayah's Avatar
Senior Member
Flag California
Thanks Meter: 140
 
More
Quote:
Originally Posted by dzo

Attached is a new version of my app and it certainly works for me. The previous version didn't always trigger when you lifted it off the charger.
My nexus 4 has been running it for the last 10 days, wireless charging every night and the wakelock is not held except during charging, see attached screenshot.

Thanks - been running the app for the last two days - so far, so good!
10th October 2013, 11:36 AM |#36  
dzo's Avatar
Senior Recognized Developer
Flag Auckland
Thanks Meter: 4,856
 
Donate to Me
More
Quote:
Originally Posted by gbarayah

Thanks - been running the app for the last two days - so far, so good!

Glad it's useful to you.

I found that sometimes the wakelock doesn't get released so I updated the app to make sure it always releases it.

The new version is attached, I've also put the source on github:

https://github.com/dzo/Nexus4WirelessChargingFix
Attached Files
File Type: apk Nexus4WirelessChargingFix-release.apk - [Click for QR Code] (27.4 KB, 146 views)
The Following 9 Users Say Thank You to dzo For This Useful Post: [ View ]
10th October 2013, 05:54 PM |#37  
Lush78's Avatar
Senior Member
Thanks Meter: 266
 
More
Just testing your latest fix... Will post results. My problem is that I flash new ROM updates nearly daily... Will this fix survive a dirty flash update? Does it survive a normal reboot?
10th October 2013, 08:25 PM |#38  
dzo's Avatar
Senior Recognized Developer
Flag Auckland
Thanks Meter: 4,856
 
Donate to Me
More
Yes to both those. It only runs when charging state changes so if it's installed it will work.

Sent from my Nexus 7 using xda app-developers app
The Following 2 Users Say Thank You to dzo For This Useful Post: [ View ]
12th October 2013, 08:53 PM |#39  
Lush78's Avatar
Senior Member
Thanks Meter: 266
 
More
The wireless charger detector has kept my phone awake since this morning... I dirty flashed an AOKP update (wiped cache and dalvik) yesterday and did nothing with the fix app... Pulled of my wireless charger ~5 hours ago and it hasn't deep slept yet....
13th October 2013, 05:47 AM |#40  
dzo's Avatar
Senior Recognized Developer
Flag Auckland
Thanks Meter: 4,856
 
Donate to Me
More
Quote:
Originally Posted by Lush78

The wireless charger detector has kept my phone awake since this morning... I dirty flashed an AOKP update (wiped cache and dalvik) yesterday and did nothing with the fix app... Pulled of my wireless charger ~5 hours ago and it hasn't deep slept yet....

Try running the app and hitting the button, does that help?
20th October 2013, 11:16 AM |#41  
Senior Member
Flag Dublin
Thanks Meter: 58
 
More
dzo, you are a hero! I have been having horrible battery drain to these wakelocks for the past few weeks. Only installed & ran this fix a few hours ago (will report back in a few days) but the difference is stunning with lots of deep sleep on a phone that previously just did not go into deep sleep at all (with lots of wakelocks).
A few questions:
I guess I need to re-run the app following a reboot? Any easy way to make it persist beyond reboot / auto run as a script on reboot?
Any plans to publish it to Google Play?
@bobaka I used to have this problem. Replaced my 1A power supply with a 2A. For some reason a 1Amp psu doesn't seem reliably to re-initiate top up charging, while 2amp ones do (presumably cos of power lost to heat etc with induction chargers). Try it. Worked for me & lots of others

Sent from my Oric-1 micro
Last edited by thesoupthief; 20th October 2013 at 11:27 AM.
The Following User Says Thank You to thesoupthief For This Useful Post: [ View ]

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes