yashsingh1/xdaforums huggingface dataset:
[Xperia Arc General] rsabluebulls:
0% battery and 'Safe Mode'

i have a bricked arc (LT15i) which also boots up in Safe Mode and i can't get out of the safe mode. the biggest problem is that i can only boot into fastboot and not flash mode, so i am not able to flash a 'clean' FTF using flashtools.

anyone else have the same problem as this? any advise perhaps? would SETools be able to 'unbrick' or take the phone out of safe mode and if so, how do you go about to do this?
[Xperia Arc General] wwanders:
use the fastboot mode in order to place a custom kernel and then in recovery mode upload a cooked rom.

after that you'll be able to upload ftf files normally
[Xperia Arc General] rsabluebulls:
so i can add a custom kernel as you suggest and install a cooked rom (CW/MIUI etc.???) which I can do. after that the phone still boots in Safe Mode and can't start the phone in flash mode either.

is there a way to succefully retrieve the system.sin files from an ftf? because this way i can use fastboot to flash.

thanks
[Xperia Arc General] wwanders:
I'm not sure if I got your point but you can use the custom kernel to choose normal boot and not recovery boot.
[Xperia Arc General] errIO:
Cm9 is stable. Still no 0% patch. I tried to patch the kernel. But I'm stuck on SE logo...
[Xperia Arc General] DanhThanhTam:
CM9 is the best ICS rom now. But how can I instal with my 0% error Arc!
[Xperia Arc General] nakedfakeer:
Kernel for CM9

for guys using neo or neoV with CM9(128) firmware, you can try the alliance kernel mod v1.4 also known as night-elf. this kernel has the 0% battery patch(bazoocaze) incorporated into it and also features a working CWM. i am using this kernel with stock ICS 4.04 firmware and have not faced any problems yet.

check this out "forum[dot]xda-developers[dot]com/showthread[dot]php?t=1566871"

replace [dot] with '.'
[Xperia Arc General] errIO:
Any chance to get fxp 132 source code and patch battery kernel ourselves ?
[Xperia Arc General] errIO:
New .587 firmware is working on our 0% battery Arc with Bazoocaze's patch.

Just replace "431" with "587" in all text files.

I did not tried to do it with CM9 kernel.
[Xperia Arc General] sanchit:
how do we do that ?

---------- Post added at 08:45 PM ---------- Previous post was at 08:43 PM ----------

where are the text files?
[Xperia Arc General] errIO:
www ( dot ) mediafire.com ( slash ) ?4zbvv4dd6dc3cyl

fgpatch and removepatch : Line 17, replace :

TARGET_FIRMWARE="4.1.B.0.431"

with :

TARGET_FIRMWARE="4.1.B.0.587"

It seems that they won't include patch...
[Xperia Arc General] svanteson:
Please feel free to try if you dare... :)

CM9 FXP 135 kernel with the 0% battery fix from this thread.

http://xdaforums.com/showpost.php?p=30729715&postcount=103
[Xperia Arc General] sanchit:
thanks man it is working!! :laugh:
[Xperia Arc General] uyo_kun:
err i want ask this. well you know i always charge my arc overnight, and everytime i charge overnight it didn't show 100% (because i turn off the "show 100%", if no, it just give fake 100%). I glad if next update is to keep 100% but not fake 100% :D
[Xperia Arc General] errIO:
Hi Bazoocaze, is it possible to upload a "FuelGaugeApk" with option to not stop chargin when battery reach 100% ? so it can charge all the night and when i disconnect it on morning i have 100% battery ?

thanks.

Also, when it charges to 100%, it discharge very quickly, it's like -50% in 20 minute.

Thanks.
[Xperia Arc General] SaMo_HoSSaM:
does this patch work with Arc s
[Xperia Arc General] errIO:
CPU is the only difference between Arc and Arc S. So it should work...
[Xperia Arc General] Dilzhan:
it's a noob Q. but i want to ask how to install a Busybox ?? :confused:
[Xperia Arc General] Bazoocaze:
CyanogenMod 9 and 10 with 0% fuel gauge patch:

http://xdaforums.com/showthread.php?t=1763227

Thanks to Svanteson.
[Xperia Arc General] shaymie:
adiedpr taken

+1
[Xperia Arc General] Bazoocaze:
Normally, BusyBox is installed together with the root process. But if you still want to install BusyBox, you can use Flashtools to facilitate the process.

If you recall the first post, I don't recommend leting the phone charging all the nigth.

If you look into the Kernel core, you will see that the charging driver will stop the charging process when the battery reach 100%. You will see too that the charger driver will hold a wake lock for as long as the USB cable is connect, so you will get a battery drain (about 3%/hour) when the battery was fully charged and is left connected on the charger.

However, with the fully functional fuel gauge, the charging process restarts when the battery charge becomes lower than 90%, so in this case the battery charge will stay in the region from 90% to 100% when you left the charger connected.

In the case of the dead fuel gauge, you cannot know for sure whats is the real battery charger level, nor the current charger process state (charging / not charging). This way, you can only guess the charger process state from the connected status (charger connected / disconnected), and this lead to the issue when the battery reachs 100%.

So this is my recommendation: disconnect the phone from the charger when the battery charge reach 100%, to avoid the battery drain from the fully charged battery.

Sorry, but the battery percent will allways be fake, because the "only one" that knows the real charge is the dead fuel gauge chip. Read the previous answer to lern more about the charging overnight issue.

Thank you!

Look for the svantenson compiled CM patched kernel image.

Last day I see an option in the Flashtools to flash using fastboot mode, so you can try to use this option to flash the stock firmware.

Look for the svantenson compiled CM patched kernel image.

For a locked bootloader phone, you will have to install the locked bootloader patch, aside from the Fuel Gauge APK. The Fuel Gauge APK alone is not capable of changing the battery percent without the help of the patched kernel module.

I got your e-mail, fellow, but I feel you are over-complicating a bit the Fuel Gauge utilization. Please, rethink your needs and write here a brief and concise argumentation of the features you think will be important, and may be I can help you with your needs. Don't forget that I have too few spare time to spend on this, and I'm still fighting a health issue that is very annoying and time consuming. Thank you.

Maybe would like to try this:

- Make sure you have correct firmware and kernel versions.

- Flash stock firmware if you are unsure if you have a stable system.

- Leave the phone charging for a while before powering on.

- Make sure you have the correct device patch (Arc / Neo).

- Test if your phone can enter fastboot mode (menu key / blue ligth) and flashtools mode (back key / green ligth).

- If you can get to fastboot mode, flash the patched kernel.

- If you can get to flashtools mode, flash the stock firmware, and then apply the locked bootloader patch.

- Make a 2 hour full charge using the "Full charge" option on the Fuel Gauge APK.
[Xperia Arc General] uyo_kun:
Thanks for the reply anyway, I already glad you make this even I can't charge this overnight :D
[Xperia Arc General] errIO:
No more Xperia for me.
[Xperia Arc General] Dilzhan:
dude its working but now battery stuck on 1% and not charging ...what do i do tell me Plz :)
[Xperia Arc General] memoHDCV:
Is there a kernel with 0% battery issue solution for the 4.1.B.0.587 firmware ? Because I installed that firmware and when I patch it with the ICS kernel the cellphone says there's a new update but its the same fw.

Regards

And sorry for my english :P

Edit: I just saw the previous comments and I'll try the text change. Thanks
[Xperia Arc General] errIO:
" - Leave the phone charging for a while before powering on."

Even if i leave my phone cgarging offline (with Big battery icon), i know ait stops after 20% or something ligne this. Because if i turn ait on, i can play with ait only few minutes .

Is there really no way to restart the charge via software instead of manually replug thé charger ?
[Xperia Arc General] Bazoocaze:
I'm not compiled yet a patch for the new .587 firmware. If you are in a hurry, you can try the text change trick, or wait for the next days for me to remember the compile the new version. :p

To restart the charge via software

1) Open Fuel Gauge Fix app

2) Stop monitor service

3) Go to Android settings - applications - Fuel Gauge Fix - Clear data

4) Open Fuel Gauge

5) Menu button - start full charge

6) Start monitor service

7) Check start on boot

8) Wait 1 minute

9) Connect charger cable

10) Leave phone charging for 2 hours

11) Open Fuel Gauge Fix app

12) Menu button - set full battery

13) Now you have a full battery

For day to day usage:

1) Open Fuel Gauge Fix app

2) Menu button - start full charge

3) Connect charger cable

4) Leave phone charging for 2 hours, or wait for 100%

5) Disconnect the charger

6) If percent is not 100, Menu button - set full battery
[Xperia Arc General] Bazoocaze:
For all the battery patch users:

:laugh: I like to get a lot of questions asked, I try to answear all of them, I try to help all users, I see a lot of downloads of my work.

But I see too few thanks button pressing. :crying:

Look for the locked bootload patch post - it's more than 300 downloads, and it's get a barely amount of thanks.

So, I will ask you:

Is it working?

Are you using it?

Are you enjoying my time and effort on this?

Are you really using this?

Do you still have a deffective fuel gauge device?

Did you like the locked bootloader patch?

Did you like the patched kernel IMG?

Because if you don't need this patch, I will stop spending my time on this. :p

So, if you like the work, please press the damn thanks button. Several times. Every time you get help. Every time you get a new version. Every time you download. Or make a donation if it really helps you. But make sure the dev will know you like his work.

I will wait your answear:

Must I leave this work? I will work on another stuff cool for me.

Must I keep working on this? I will keep updating this thread and helping people, but you must keep pressing the thanks button. :fingers-crossed:
[Xperia Arc General] errIO:
I'm gonna click "thanks" on all your posts. It will take times. But it it will.

In jelly bean we can hide apps notification. 0% batttery is almost a thing of the past.

The ONLY THING we need now to have a "perfect fake battery gauge" is automatically (re)start the charge when phone stops charging (because of overheat or whatever thing that makes the battery stops charging)

(sorry if i speak bad engllish)

http://xdaforums.com/search.php?searchid=69932931 : You know what to do
[Xperia Arc General] Bazoocaze:
:laugh: OK, you win. I will review the charging process (one more time) and see what I can do! Wish me lucky.
[Xperia Arc General] alohajacks:
Maybe I'm an idiot, but here is my error log

***345 KB/s (4955 bytes in 0.014s)

1193 KB/s (153949 bytes in 0.126s)

1073 KB/s (153949 bytes in 0.140s)

INFO: sysfs entry not found: /sys/class/power_supply/bq27520/capacity

INFO: patch needed

[: not found

ERROR: file /system/build.prop not found.

head: not found

[: not found

[: not found

head: not found

[: not found

head: not found

[: not found

[: not found

[: not found

DETECTED: device:unknow model: firmware: android:

[: not found

[: not found

[: not found

[: not found

[: not found

INFO: applying 0% battery issue bq27520 fuel gauge patch (locked bootloader)

INFO: preparing to load module: /system/lib/modules/bq27520_battery.ko

INFO: waiting for driver to settle. Please wait...

INFO: module loaded. Reading battery: 1%

INFO: file allready patched: /system/etc/pre_hw_config.sh

OK: patch success

Instaling FuelGaugeFix APK

899 KB/s (89335 bytes in 0.097s)

pkg: /data/local/tmp/FuelGaugeFixV162.apk

Failure [INSTALL_FAILED_OLDER_SDK]

Press any key to continue . . .****

I'm trying to do this on a Japanese docomo branded so-01c. Do I need to flash a different kernal or rom? After a three day weekend of wandering around in here, I'm more confused than when I started!
[Xperia Arc General] Bazoocaze:
Please, verify this steps:

- Make sure you have Root and BusyBox. You can use Flashtools to install the latest version of BusyBox.

- If you manually edited the some files, make sure you have unix end of line. Notepad and Wordpad usually mess with the end of line of the text file. Use Notepad++ to edit the file, and then select the option Edit -> EOL Conversion -> Convert to Unix (then save) to take sure you have unix end of line on the edited files.

- Try another ROM. The Docomo ROM has shows 1% instead of 0%, and maybe this can be leading to the patch installer fail to install.

Good luck
[Xperia Arc General] Bazoocaze:
Updated the locked bootloader patch to work with the lastest firmware version .587

http://xdaforums.com/showthread.php?p=28871812#post28871812

Please, don't forget to press the thanks button if you like this work!
[Xperia Arc General] alohajacks:
Okay sorry but on the subway now. I changed tft files so I was using global firmware .517. I wasn't able to get root after three attempts, but I could install fuel gauge, do I guess that's progress. Should I be using a different tft file? Where can I get it? I thought the one I had was for locked bootleggers like me! IBM do thankful already for you booze and the xda community. does any need a completely stock DoCoMo Japan ics ROM dump? Is this the wrong place to ask?
[Xperia Arc General] zezo1028z:
help ! My arco is11s (cdma ) use kernel arc of you no network . Please please help me . Thank you

(sorry if i speak bad engllish):crying:
[Xperia Arc General] Wonko69:
Hi,

I've been trying to get my Arc up and running again. But I must admit I'm very confused by the conflicting messages.

I've tried the ARC CM9.1 build, as well as the FXP 137 build. But both give me the error Patch Status: failed (get_capacity) file not found

If I read your posts correctly both these builds should have the patch installed?

If not I hope you can find the time to explain which boot.img I should be rocking to fix this 0% battery erorr.

Many thanks and keep up the great work. It's much appriciated!
[Xperia Arc General] Bazoocaze:
Please follow the steps on first post. There tft download links on first post, too.

Try with stock firmware, WIFI must work. Follow the steps on first post to get patching done.

Patch Status: failed (get_capacity) file not found

This indicates the kernel does not have the necessary kernel patch.

Indeed, both CM and FXP doesn't have the patch. If you want patched CM/FXP please see the link in the first post.

If you want to use a stock firmware, follow the steps on the first post.
[Xperia Arc General] Wonko69:
Dear Bazoocaze,

Please forgive my ignorance. But on the first link you state:

Other versions / ROMs / Kernels

DooMKernel, CyanogenMod, MIUI
The newer versions of this ROMs will have the kernel patch allready embedded on the system.
Simply install the Fuel Gauge Fix app and you can start using your phone.

Could you perhaps be so kind as to specify which link you are referring to about the thread for CM & FXP

best regards

Wonko
[Xperia Arc General] :
Thanks Bazoocaze!

Hi Bazoocaze!

Thanks for 0% Patch for Locked Bootloader!

Although my phone does not have locked Bootloader I used this patch to run latest ICS!

Now I can run ICS 4.1.B.0.587 (stock) and it runs excellent!

BTW: I could not get your patch running for some reason.. So I copied 'fgpatch' and 'bq27520_battery.ko-LT15' to my sd card and using root explorer copied them to temp folder and executed 'fgpatch'. 2 seconds and it was done, automatic reboot and it works!

Thanks a lot! This will work for any ICS version I guess.

And yes my Xperia was rooted and BusyBox from market was installed as well as FuelGaugeFixV162.apk.
[Xperia Arc General] zezo1028z:
stock frimware my phone is 2.3.4 no ics
[Xperia Arc General] Bazoocaze:
Dear Wonko, I'm really sorry. That section have outdated information about kernel patch compatibility. CM & FXP team had dropped support for the battery patch a long ago. Now I updated the first post to reflect this.

This way, consider this: the official versions of CM & FXP does not contain the battery issue kernel patch.

Besides this, the member svanteson compiled a patched version of CM/FXP in this thread: http://xdaforums.com/showthread.php?t=1763227

Fell free to test that version, too. If you have any issues, please notify stanteson in that thread.
[Xperia Arc General] Bazoocaze:
There are GingerBread patched kernel images (for unlocked bootloader phones) on the download section of the first post, for versions .42 and .62.

If you have a locked bootloader phone still using GingerBread, you have no available options to use the workaround patch. Please, if possible, update to ICS, root you device, and then you will have the option to apply the locked bootloader battery issue patch.

Look into the FAQ on the first post to get guide about your options and what to do next.
[Xperia Arc General] errIO:
So nothing new about the patch ?

About the charging process ?

If we can't hide the notification, we can at least make it beautiful.

Battery gauge APK is force closing when in low memory (opening some web pages) but, in CyanogenMod 10 JB, it doesn't force closes anymore (i don't know why, or maybe it just doesn't show the FC box). The FC bug maybe in the notification, not on the percentage in/decreasing process.

If we can't automatically restart the charge via software I must admitt my Arc is good for trash can.

Sorry for not helping at developping, i'm a total newbie on C/C+...

I think the APK does'nt calculate GPU consumption.

I'm not rooting phones anymore. Stock forever. ****g battery...
[Xperia Arc General] Bazoocaze:
A LOGCAT dump can help debug the FC. Whould you mind to send me one?

About the notification, I'm inclined to make an option to hide it. But the notification icon is a resource to make Android doea not kill the App during low memory events - disabling the notification can make the battery updating far less precise.
[Xperia Arc General] U2Endless:
Bazoocaze lot of thanks for your work. My phones was in a box since november, now at least i can use it.

Anyway, for me it's not a good solution, i hate not to know the battery level, i've used my neo for 1 week, and i went back to my old phone. Usually the phone goes off without advice, and this is too much for me. Hope that some day U'll find the full solution for this problem.

Lot of thanks for your Hard Work.
[Xperia Arc General] errIO:
Some applications like LightFlow doesn't need notification to keep running.

Next FC i'll send you the LOGCAT.

On next release, can you make an option to remove the 1% limit, so once the device shutdown properly instead of "low volt panic shutdown" ? Is it possible ? It should give more feeling of a real fake battery gauge. Thanks
[Xperia Arc General] Bazoocaze:
Updated the first post with the unlocked bootloader kernel patch.
[Xperia Arc General] Bazoocaze:
From: http://developer.android.com/reference/android/app/Service.html

A started service can use the startForeground(int, Notification) API to put the service in a foreground state, where the system considers it to be something the user is actively aware of and thus not a candidate for killing when low on memory. (It is still theoretically possible for the service to be killed under extreme memory pressure from the current foreground application, but in practice this should not be a concern.)

From: http://developer.android.com/refere...tartForeground(int, android.app.Notification)

public final void startForeground (int id, Notification notification)

Since: API Level 5

Make this service run in the foreground, supplying the ongoing notification to be shown to the user while in this state. By default services are background, meaning that if the system needs to kill them to reclaim more memory (such as to display a large page in a web browser), they can be killed without too much harm. You can set this flag if killing your service would be disruptive to the user, such as if your service is performing background music playback, so the user would notice if their music stopped playing.

-----

And this is why I think the stopping of the battery charge service is a disruptive event to the user, because the user will get very innacurate battery percent calculation caused by the constant kill events on the service.

Anyway, I will make such option, but I think it can be very disruptive depending on the memory usage of the system.

Yes, I will make such option! :)
[Xperia Arc General] Bazoocaze:
Sorry, there will be no full solution, because it's a hardware failure.

Anyway, the Fuel Gauge app takes some time to learn the battery usage, especially in the first days.

It's important to constantly make full 2 hours charges, selecting the option "start full charge" before connecting the charger, and "set full battery" after disconnecting the charger. Please know that leaving the phone charging at night does not work anymore, because of Sony charging driver issues.

Also, you have an option to tune the battery capacity to match the real capacity / usage. The default value is 1500mA (the real battery capacity) - if your phone goes off at about 1200 (20%), then you can tune the battery capacity option to 1200 and now the battery percent will better match the real usage settings, displaying a value near 0% when the charge count was next to 1200.
[Xperia Arc General] alohajacks:
Can sleep soundly again

Yea!!! I got it to work. thanks to you and the xda crew!
[Xperia Arc General] SaMo_HoSSaM:
can i use this kernel patch

ICS 4.1.B.0.587

ARC: boot.img.4.1.B.0.587.lt15i.7z - 7 MB

http://www.mediafire.com/?jssaye1xm2ohva6

with my Arc s LT18i

and how to ?
[Xperia Arc General] U2Endless:
Thanks U. I'll "train" mi Neo for some days, then...

Thanks again for your hard work!!!! We need more Bazoocaze in this world!
[Xperia Arc General] SaMo_HoSSaM:
i had use it in my Arc s

and didn't know if it work or not with me

phone not charge

please check attached pic

battery status = discharging

thanks
[Xperia Arc General] Dilzhan:
Thank you soo much Bazoocaze sir its working prefect...now my neo is back :good:

but i have a little problem my battery charge reducing very soon between maximum 2 days it's went to 100% to 1% (i'm not heavy user ) so i have to recharge :crying:.... i think my usage must have work in 3 or 4 days .... :confused:

can i get some solution for it ?

sorry for my poor english
[Xperia Arc General] Bazoocaze:
I think that with Arc and Neo battery you can get 1 day of heavy usage and 2 days of low usage. I never got more of 2 days on my Arc.

But if you think you can get more, you can use the CPU Spy app from Google Play to debug your CPU usage. Look for the Deep Sleep time - the more time you get in Deep Sleep state, the more the battery last. On the other hand, if you get too much time on high MHz, you will need to recharge frequently.

Also, you can get from 4 to 6 hours of screen on. This way, the more you leave the display on, the less time you get until a recharge is needed.

Watch out for this and you can get more from your battery.
[Xperia Arc General] tsukikageran:
help!

I'm having a problem - I upgraded to ICS, but can't root- the options I see all require USB connections to be MSC, but my Arc won't let me change to that option unless I unplug the USB cable, which immediately shuts off the phone.

Any suggestions?
[Xperia Arc General] ericchow140:
Thank you.
[Xperia Arc General] Bazoocaze:
Connect USB to the charger, not the PC.

Then Settings -> Xperia -> Connectivity -> USB Connection mode -> MSC or MTP
[Xperia Arc General] errIO:
Overcharge ? APK ?

Hi Bazoocaze.

What will happen if i charge my phone for 8 hours ("Start full charge" 3 times)

Is it dangerous ?

When will you release next APK ? Did you finallly find how to restart charging process via software ?

thanks.
[Xperia Arc General] mikailmohammed:
best kernel for jelly sandwich?
[Xperia Arc General] errIO:
"roms" and kernels are all the same ! Just download stock+recovery.

I'm going back to GB until ICS is fixed by Sony or JB becomes stable.

Did you try listening to music and web browsing at same time ?