yashsingh1/xdaforums huggingface dataset:
[Xperia Arc Android Development] centi50:
is 0% battery problem same as LED-problem

1. Just wanted to ask the problem of 0% battery same as LED-Problem problem in this solution thread http://xdaforums.com/showthread.php?t=1274572. If NO then we are in trouble. If YES then People should try it.

2. And has anyone with 2.3.4 unroot locked Bootloader tried the steps in the above thread i mentioned encountered the 0% battery problem when trying rooting.

3. If the answer to Question 2 above is YES. I think it Should be Put as A sticky to warn people with 2.3.4 not to downgrade.
[Xperia Arc Android Development] Bin4ry:
Please someone try this for me:

adb shell to your device

gain su

if you are superuser:

bq275xx_fwloader -d bq27520 -f

and afterwards show me a logcat please.

Regards
[Xperia Arc Android Development] jojora:
http://www.4shared.com/document/Mk1gRBNU/logcat.html

Hi, this is the logcat of my cell
[Xperia Arc Android Development] yeskarteek:
0% battery issue

hey there

i have a htc desire and im srry that im posting my query in a different thread, but this is the best thread i found for my solution

i bought almost three batteries and two of them show 0% but its just about the reading actually the battery is being fully charged as i have an external dock charger

in your first post you said there is a tweak to maintain 1% battery, if u describe how i can get that it will be very thank full to you

regards

karteek

thank you
[Xperia Arc Android Development] rubenswing:
As FiDra has said that this is an arc firmware....I don't think its going to be of much use to u though as you are having an HTC Desire....how u planning to utilize it on an HTC Desire :confused: The so called 1% tweak is integrated into the firmware itself.
[Xperia Arc Android Development] Bin4ry:
Thanks.

Can you show me folder listing of

/sys/class/power_control/

is there the bq2xxxxx device available?

If not i have to think how to start it to firmware upload mode.

Regards
[Xperia Arc Android Development] FiDra:
Hi Bin4ry,

This is what inside the /sys/class/power_supply (I did not find the power_control folder):

I can cd to both bq27520 and bq24185.

Hope this help!
[Xperia Arc Android Development] heidality:
sys/platform/semc_battery_data

/power

/power.0
[Xperia Arc Android Development] Bin4ry:
have you already applied the 1% fix?
[Xperia Arc Android Development] heidality:
yes.i have 1% battery fix
[Xperia Arc Android Development] shahzaib.khan:
No one can fix this bettery problem...the guyz who does have warranty just claim ur cell n the guyz who doesnt have warranty valid just use the fix 1% patch
[Xperia Arc Android Development] heidality:
we must help Bin4ry to find final solution!!understand??
[Xperia Arc Android Development] morenoro:
Why? Here in xda are the best developers in the world, and Bin4ry is one of the best of them. We must give him time and I´m sure we can solve this great problem. If Bin4ry surrender and tells us there is no solution, then we´ll go to SE service or we´ll use 1% fix. Let´s give him a chance.
[Xperia Arc Android Development] FiDra:
Hi Bin4ry, so do I.
[Xperia Arc Android Development] shahzaib.khan:
Yeah bin4ry is the last hope i gess
[Xperia Arc Android Development] jojora:
Hi bin4ry

I use the kernel of the firmware LT15i_3.0.1.A.0.146_Global and i get the 1% battery fix
[Xperia Arc Android Development] heidality:
But!!I use the kernel of the firmware LT15i_3.0.1.A.0.

184

_Global and i get the 1% battery fix
[Xperia Arc Android Development] shahzaib.khan:
I think its a minor problem just need to find it
[Xperia Arc Android Development] Killadude:
Q: If you have an unlocked bootloader and you flash a custom rom does the 1%/0% error still stay??
[Xperia Arc Android Development] heidality:
hm interesting.
[Xperia Arc Android Development] ates68:
hi all

i have the same problem, her is my log, i hope you find issu thnks

---------- Post added at 09:39 PM ---------- Previous post was at 09:36 PM ----------

can't upload, sorry
[Xperia Arc Android Development] :
Yes problem is still there, I have unlocked bootloader...
[Xperia Arc Android Development] heidality:
firmware 184+1 %battery fix.Xperia ARC

this my log Bin4ry look
[Xperia Arc Android Development] Bin4ry:
Okay.

So I think that following happened:

Downgrade and gingerbreak caused a firmware damage of fuelgauge. I saw some logs showing me that bq2xxxx device is not even showing up in /sys/class/power_blablabla

So device cannot start. BUT to upgrade the firmware of the device it is neccesary that it is present. Also you always see the i2c xfer errors. that's another indicator that the device is not up, OR that the device is not up in a recognized mode.

I have to do a little research about the chip and the hardwarelayout where it is embedded. I HOPE that i am able to find a solution for this. I think that it has to be possible to set the bq fuelgauge device to firmware download mode.

Please give me a little time for that. I will come back to you, even if i only have bad news.

Regards
[Xperia Arc Android Development] shahzaib.khan:
We will be waiting for the good news...
[Xperia Arc Android Development] steryman:
Good luck man, you are my only hope.
[Xperia Arc Android Development] shahzaib.khan:
Bin4ry dude can you tell us the approx time that when did this solution thing will be out ?
[Xperia Arc Android Development] niceguy999:
0% battery

Hi everybody,

I need 1% battery patch for NEO... please help
[Xperia Arc Android Development] heidality:
patience friend
[Xperia Arc Android Development] morenoro:
By the way, which is the newest firmware with 1% fix that we can get? And, where to get it or link, please
[Xperia Arc Android Development] silentxnl:
I suggest you people wait a little for the real fix.

If you dont know where to download correct firmware, you shouldnt be ****ing around with your phone any more as you already did.
[Xperia Arc Android Development] shahzaib.khan:
Only one developer is helping us where are others?:s
[Xperia Arc Android Development] morenoro:
I´m sure Bin4ry is in the right way, so let´s him work. Sooner or later he´ll find the solution. Till now, other developers faliled with it, but he found things than others didn´t.

How long is the waiting....
[Xperia Arc Android Development] uyo_kun:
well, i've got problem with .181 patch. The hotspot always say error when I turn on the hotspot...
[Xperia Arc Android Development] Bazoocaze:
I read the bq27520 datasheet, and seems very cryptic to update the controller firmware.

Bin4ry, how about modifying bq27520 kernel driver to allways report 100% battery status, and leaving the corrupted firmware upgrade to normal OTA process?
[Xperia Arc Android Development] ToMmY_hun:
The official way of updating isn't help us. I tried to update with the official SE updater (dunno its name), but the problem is still here. Why do you think the OTA will help us?
[Xperia Arc Android Development] hellocng:
The phone might not charge if its at 100%. Right now, however, the phone might be charging even if the battery is full. Pick your poison.
[Xperia Arc Android Development] Bazoocaze:
I read the datasheets over and over again, and can say that the Arc is using the bq24185 for charging control, and bq27520 for fuel gauge.

bq24185 controls the charging/discharging independent from system/kernel execution, simply "eletronically" monitoring cell voltage and maintening the LiPoli cell in the safe zone (~3.3V to 4.2V). This way, in the case the system software run beyond repair, the charging process still mantain the cell in the safe zone. bq24185 has no firmware/software, and runs "eletronically". The status of the bq24185 can be read by kernel via I2C bus.

bq27520 controls the fuel gauge, monitoring current (mA) consumption, battery voltage, battery charge, time do charge/discharge, and reporting back this calculated/monitored values to the kernel/system via I2C bus. bq27520 has a firmware, and writable flash area that maintains some log of battery monitoring data necessary to calculate the params.

Corruption on the bq27520 firmware and/or writable flash area may lead to inability of the chip to report battery status to the kernel, but dont prevent the correct charging/discharge of the battery (while the bq24185 functions correctly, and I bet its one of the most simply but reliable component of the phone).

The 0% issue seems to be caused only by bq27520 (responsible for reporting % status), as some users report that the battery is still charging / discharging normally.

This way, a hypothetical bq27520 driver reporting allways 100% to the kernel doesnt seems to compromise the safety of the charging proccess, while still allowing normal using until battery voltage drops bellow lower threshould, shutting-down the phone without warning until next charge.
[Xperia Arc Android Development] morenoro:
Sorry, but I don´t, I can´t understand all of your knowledges (I´d like it).

So, I think you want to say this problem has solution cause the true problem is in the software that controls the charge level, yes? You are right, the phone works right with 1% patch, it charges and discharges normally (I´ve been with a charge a day with wifi, bt, ....; till goes off without notice).

Thank you very much, cause if you are right, it means the problem have solution.

Wish Bin4ry can solve it.
[Xperia Arc Android Development] Bin4ry:
Well okay according to this:

http://www.ti.com/lit/ds/slus955a/slus955a.pdf

I am really sure what happend. While downgrading the bq really got a wrong firmware command and this caused a fail flash :/

From the layout i saw in my Arc (i opened it and tried to track the lines) i don't see that SE has integrated the development board into the smartphone board.

I think the only chance to repair this little bastard is to desolder it, build the development board and use TI bqeasy software to reprogram it. BUT i'm not really sure if it is the real solution to this problem. From what i understood the BQ inside the smartphone is only connected via I2C bus, this bus is not repsonding at the moment. With a little luck we are able to reprogram the little bastard with the development board, but there is no gurantee for that.

I think that the best thing would be to resolder a new BQ chip and program the latest version via SE's modified I2C program tool. THIS MAY work.

Regards
[Xperia Arc Android Development] slowadi:
Thank you Bin4ry (and here I speak on behalf of all). But in other words we are finished.
[Xperia Arc Android Development] stu1978:
Thanks for the effort Bin4ry!

Just arranged to have mine collected by collected by Three (UK) as mine is under warranty.

Will it be an issue if the Three firmware has been replaced by a generic one?
[Xperia Arc Android Development] heidality:
What are we must doing next?Service or fix?
[Xperia Arc Android Development] rubenswing:
The Xperia arc supports the MAX17040/MAX17041 fuel gauge. The MAX17040/MAX17041 uses a sophisticated battery modelling scheme called ModelGauge to track the battery's relative state-of-charge (SOC) continuously over a widely varying charge/discharge profile. Unlike traditional fuel gauges, the ModelGauge algorithm eliminates the need for battery relearn cycles and an external current-sense resistor. Measurement and estimated capacity data sets are accessed through an I2C interface

If a kernel patch (see attached file) on the current lines is developed and integrated into the Kernel then you might have a chance of getting somewhere.

The following chips are used in the phone:

Qualcomm MSM8255 – 1 GHz Snapdragon baseband processor

Qualcomm QTR8200 – RF Transceiver

Qualcomm PM8058 – Power Management IC

Micron MT29F8G16ADBDAH4 – 8Gb SLC NAND Flash

TriQuint TQM7M5013 – RF Power Amplifier

ELPIDA 2Gb LP DDR2 DRAM

Maxim MAX17040 – Compact, Low-Cost 1S/2S Fuel Gauge

AKM Semiconductor AK8975 – 3-Axis Electronic Compass

Texas instruments WL1217L-65nm,WLAN(802.11b/g),bluetooth v2.1,fm cores (receive/transmit) in a single chip

skyworks SKY77705S / SKY77701-02 power amplifier module(PAM).

BMA150 ACCELEROMETER -BOSCH SENSORTEC.

APDS9702 MADE BY AVAGO TECHNOLOGIES.
[Xperia Arc Android Development] Bin4ry:
Thanks,

BUT the problem is that we only get I2C xfer error when trying to write to the chipset. So i doubt that it will work. We ONLY can make it a virtual device which always responds a fixed value, because the chipset is not responding to anything. SE devlivered a special i2c firmwareflasher in the phone software, but you always see only i2c xfer error. The chipset does not seem to be in the state to accept any commands. It's just shut off. My hope was to fing a emergency mode, but i haven't found one, not even via hardware modifications.

If i'm wrong please point me there and i will do my best :)

Regards
[Xperia Arc Android Development] morenoro:
Could anyone try that? Maybe...
[Xperia Arc Android Development] rubenswing:
Can u pls extract and provide me the details of /proc/last_kmsg and if you happen to be working on a development env. can u provide the output by running adb bugreport. 99.99% this is a h/w issue and as stated by me previously in these very forums that somehow the s/w has affected the h/w and as far as I know the msm_i2c msm_i2c.0: Error during data xfer (-5) is source coded into the driver of the battery monitor....if and only if a way could be found to jumpstart that. However the Texas Instrument chip in question the bq27XXX that is responsible for the battery monitoring could have either 1. burned during the connecting and disconnecting the charger during the flashing or 2. the driver responsible for the fuel gauge must have got corrupted between the reflashes
[Xperia Arc Android Development] morenoro:
I don't understand anything. Could anyone tell to the ignorant people, like me, if is there any minimal chance to solve this without SE service? RUBENSWING, BIN4RY, please. If really there isn't software solution, a lot of people here will stop the waiting and choose or go to SE or keep the device with 1% patch. Thank you for the effort and thank you if you give me answers.
[Xperia Arc Android Development] shahzaib.khan:
I have to ask the same question:s..we didnt understand this thing so can u both tell clearly that if this is a hard ware fault or soft ware ??.....i hope it doesnt have an hard ware fault because we are using a patch rite ?:s...if this was a hardware fault the patch even didnt workout....
[Xperia Arc Android Development] Bazoocaze:
Sorry, guys. Bin4ry was clear: there is no easy way of recovery for the bricked fuel gauge controller chip.

Better look for warranty, or a workaround, like the 1% patch.

---------- Post added at 05:26 PM ---------- Previous post was at 05:23 PM ----------

There was a (possible unrecoverable) corruption on the firmware of the bq27520 controller, that reports back to the phone the % battery charge status. Resulting in the phone thinking the battery was empty.

-> Chip firmware fault <-
[Xperia Arc Android Development] shahzaib.khan:
Im gonna send my device to warranty on this weekend now...not expeccteddd thiss big ****in problem :s....never going to interfair in the official firmware again cuz it sucks my cell..aaahhh ....
[Xperia Arc Android Development] hellocng:
I dont remember if I had the 1% problem before the Gingerbreak process. What could have Gingerbreak done that broke the fuelgauge?
[Xperia Arc Android Development] Killadude:
That is true its not flashing the firmware that led to this problem, ginger breaking the old firmware led to the problem!

maybe we should check into that!
[Xperia Arc Android Development] mogstabaguette:
I read something about this error during data xfer line in dmesg.. so is my arc "infected" when it's showing this somewhere betweeen the dmesg lines?

m2m_i2c msm_ic2.0: (0076) Error during data xfer (-5)

Or is this normal?

My Arc is working fine.. battery indicator from 0% to 100%, charging, discharging.. just wanted to make sure before i continue flashing anything..
[Xperia Arc Android Development] uyo_kun:
can someone make the 1% patch for .368 or .283 if this doesn't work :D
[Xperia Arc Android Development] aZuZu:
always optimist, ay? :D
[Xperia Arc Android Development] shahzaib.khan:
There must be some thing missin again im sureeee software doesnt make the fault to the hard ware....
[Xperia Arc Android Development] bitsoffish:
my arc is currently on .283

if attempt to go back to .181 for root ill get this problem?
[Xperia Arc Android Development] rscunha13:
Best "solution": hack kernel to always read 100% no matter charge level. Ignoring the faulty chip.

=/
[Xperia Arc Android Development] :
True because we can then do OTA updates to keep root for those with locked bootloader
[Xperia Arc Android Development] shahzaib.khan:
My be the problem would be solve by doin OTA...
[Xperia Arc Android Development] silentxnl:
Negative,

OTA update is the same as updating through yr PC with SEUS i guess.

Which didn't resolve anything when i tried it.
[Xperia Arc Android Development] rubenswing:
I will not concur with that, because I had 0% when I flashed down from 2.3.4 to .181 and I had not rooted and no gingerbreak or anything....I simply flashed down from 2.3.4 that's it
[Xperia Arc Android Development] Bin4ry:
No. i2c error comes from kernel not from firmware! It just says that it is not possible to transfer the data to the i2c bus!

Also i got pm from a person who send his phone to service and they "just" replaced the fuelgauge chip.

I really thing its hardware fault!

Regards
[Xperia Arc Android Development] rubenswing:
I had said that it was coded into the driver of the battery monitor....implies that I am talking about the kernel itself and not the firmware....sorry if I was not clear on that :)

my take was However the Texas Instrument chip in question the bq27XXX that is responsible for the battery monitoring

could have

either 1. burned during the connecting and disconnecting the charger during the flashing

again as I had previously stated that 99.99% this is a h/w issue.

So in short the summary is u need to get the h/w replaced... :(

In case any of u want any further clarification or want to search the forums for something then I would recommend the following to you: ;)

To paraphrase an American idiom, 'Go google, young man'. Read, learn, try. If you fail or succeed, share your knowledge so that others do not repeat your failure, or so that others may also repeat your success.
[Xperia Arc Android Development] Bin4ry:
Yes Ruben, i just wanted to say that i think the same way as you. My Problem is always the language barrier, so it could happen that my words sounds different than i meant them ;)

For further digging into this problem i would need a corupted phone, if i got one i can try to desolder the chip and resolder a new one. But as long as i don't have one, i don't need to search for public availability of a replacement chip.

Also i think for 99% of users it would be BETTER to:

1.) relock bootloader

2.) reflash your stock firmware

3.) send it to service and got it replaced

Regards
[Xperia Arc Android Development] alunboi:
I have just booked mine for repair they are picking it up on Monday my problem is though I have generic global firmware . I am on 3_uk and I dont have a copy of stock firmware . I have searched around but can find it anywhere . Can anyone here help me out or tell me where I can find it . I doubt 3 will fix it without it. Help !!!
[Xperia Arc Android Development] shahzaib.khan:
No the OTA is different because at .181 firmware we use ginger break application for root then we update from OTA and the phone is still remains rooted but if you upgrade your firmware through pc companion the phone will not be rooted anymore so this shows clear difference between OTA update to pc companion update...
[Xperia Arc Android Development] uyo_kun:
so the last answer is repair the phone?
[Xperia Arc Android Development] shahzaib.khan:
Yes may be.....and by the way i want to ask that when i sent my cell to the warranty service should i installed the firmware through pc companion and says that there was a problem or should i give them with 1% bettery patch using rite now?.
[Xperia Arc Android Development] rubenswing:
Your words echo my sentiments too :D

---------- Post added at 10:50 AM ---------- Previous post was at 10:47 AM ----------

Install using pcc or just flash the firmware using ftf file, lock the bootloader if it is open and tell them u r suffering from this red led problem and that's all....keep mum over the rest
[Xperia Arc Android Development] uyo_kun:
if it doesn't work, can someone patch the .368 to 1%?? I really, really need this firmware:(
[Xperia Arc Android Development] meeaaoon:
our last hope was Bin4ry...

anybody knows how much Service center charge for changing the fuel gauge cz i don't have warrenty.... :(((
[Xperia Arc Android Development] yunle:
The chip itself is about 5 bucks according to digikey.com, but my local SE service center does not accept phones without warranty (smuggled phones) :(
[Xperia Arc Android Development] constantinexx:
how is that fits with the " patched roms"

i think if it was a hardware prob would not be fixed through the mentioned patch"

would be ?
[Xperia Arc Android Development] steryman:
I think the patch just "forces" somehow the firmware to say 1%... but still the fuel gauge detects 0%...
[Xperia Arc Android Development] shahzaib.khan:
finally today i sent my cell to the warranty and the approx time of repair is 10 days so now i can only be jus waitin :|
[Xperia Arc Android Development] icet925:
I would be happy with that because I bought mine in a different country and cannot get the warranty... :(

It would be good to have it showing 100% too.
[Xperia Arc Android Development] REAVER117:
Not to hijack the thread, but I'm pretty sure that the problem is the battery. If you swap the battery with a different one the battery level is fixed. The battery level stays correct even if you put the original battery back in.

This wouldn't be a big surprise, Sony tends to put a lot of hardware in their batteries just look at the PSP's Pandora battery hack.
[Xperia Arc Android Development] zombiej79:
trying a diffrent battery dosent work i tried it myself took battery out of mine and tried my girlfriends and hers was charged to 100% but still showed up 0% but i got my replacement phone so im happy
[Xperia Arc Android Development] S//E:
I also tried to change battery to a fully charged from another arc.

Same result as zombiej79 still 0% :-(

Sent mine to repair and its still there (really miss my arc)
[Xperia Arc Android Development] steryman:
Reaver, did you used the 1% patch battery before changing batteries?
[Xperia Arc Android Development] crazymister:
Bin4ry, can you tell me where this chip is located? I might be able to resolder it for users. Then they would only need to pay the chip plus shipment.

Crazymister

Sent from my LT15i
[Xperia Arc Android Development] heidality:
Bin4ry can you made this patch for 368 or 283?
[Xperia Arc Android Development] shahzaib.khan:
its really sucks there is no solution of this problem every one would have to sent their cell to repair service...i sent mine yesterday and they gave me estimated time of 10 days ...
[Xperia Arc Android Development] REAVER117:
No, I had the 0% battery issue for a couple days after downgrading, then I swapped the battery with a backup last night and now both batteries read properly. Sorry, I guess it's just a fluke.
[Xperia Arc Android Development] Ghost_kh_07:
i am living in japan, my arc had 0% and send it to sony ericsson service but they said can not repair it.
[Xperia Arc Android Development] hellocng:
Can you tell us more details like the firmware version, etc.
[Xperia Arc Android Development] shahzaib.khan:
if they cant repait it you have to ask for a new cell its your rite.....