yashsingh1/xdaforums huggingface dataset:
[Xperia Arc General] Bazoocaze:
Hello,

I'm working on the 4.0.4 0% battery friendly stock Arc Kernel. I expect to release a test version this weekend. :-)

Besides this, I'm working on the FuelGaugeApp too. I planning to add some new/requested features, and them release it on the Market to easy app updates.
[Xperia Arc General] Bazoocaze:
Hi,

This is my first compilation of patched stock kerrnel for ICS 4.1.B.0.431 firmware.

:)

ARC: boot.img.4.1.B.0.431.lt15i.7z

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

NEO: boot.img.4.1.B.0.431.mt15i.7z

http://www.mediafire.com/?4so293y7o899kwa

The NEO build was constructed using ramdisk & boot.img from Arc, so please test this an report back if it works properly.

Hope it works :D
[Xperia Arc General] lungocphu:
I just want to say that you are the great

Thank you very much
[Xperia Arc General] davird:
just my .01 cents at work here.

Has anyone with this nasty 0% issue tried flashing firmware's that are exactly the same to their SI number at the back of the phone?
[Xperia Arc General] memoHDCV:
Thank you soooooo Much Bazoocaze !!! :D

Regards
[Xperia Arc General] :
It works! :):):) Thank you Bazoocaze
[Xperia Arc General] E2xD:
I Hope somebody can do it for locked bootloader toi
[Xperia Arc General] davird:
anyone tried jtag to fix this problem?
[Xperia Arc General] Bazoocaze:
JTAG doesn't help. bq27520 fuel gauge chip communicates using i2c, but actualy it was in an invalid internal state that render i2c communication inoperative, so you can't flash a new firmware on the fuel gauge.
[Xperia Arc General] heidality:
Hi Bazoo.Thank you for your solution,but i want ask you..If i want use your patch should i delete dalvik cache and other caches before install?

Thank you for your attention.
[Xperia Arc General] Bazoocaze:
Hi.

If you are allready running stock Android 4.1.B.0.431 just flash the new kernel and you will be OK. :-)
[Xperia Arc General] nayanasri:
WOW, that is a great news Bazoocaze ... :)

Thanks in advance ....... ;)

---------- Post added at 03:48 AM ---------- Previous post was at 03:40 AM ----------

Thank you very much.

By any chance anyone have "ICS 4.1.B.0.431 firmware" mediafire link ?

upload.to is 7-8kbps and giving errors for me ... :(
[Xperia Arc General] Bazoocaze:
It's allready on the first post :)

ARC ICS 4.0.4

LT15i_4.1.B.0.431_Generic Central Europe 1 (cust_1247-1041).7z

188Mb

http://www.mediafire.com/?6jrtwqvn2f9mj1d

For NEO please someone send me the link and I will download and reupload to MediaFire.
[Xperia Arc General] sanchit:
hi, i am using the trinity kernel .....so could i flash this 0 % friendly kernel directly on my phone ?
[Xperia Arc General] nayanasri:
Got it ... cheers ..... downloading now ....

Also after many hours LT15i_4.1.B.0.431_Generic Global World is completely downloaded.

What is the difference between "Generic Central Europe 1" & "Generic Global World" ?

Regarding battery patch: so, now all I need to do is flash one of this LT15i_4.1.B.0.431 in to Arc and then flash your Kernel from first post.? right?

I am using this battery patch on my Arc with GB for over 6 months now, without any issues. (other than phone switched off suddenly when battery became empty :D )

So I need to be sure about these files before flashing again .. ;)
[Xperia Arc General] Bazoocaze:
Yes :)

-Flash stock firmware

-Flash kernel patch (boot.img)

-Install FuelGaugeFix app for battery % updates.
[Xperia Arc General] Bazoocaze:
I don't know for sure the inner works of trinity kernel, but I think it's works flashing the 0% kernel patch. You only need to have the same version of firmware and kernel patch (4.1.b.0.431).
[Xperia Arc General] nakedfakeer:
ICS for neo

a big :good: to bazoocaze ! i flashed my neo with stock ICS 4.0.4 and bazoocaze's patched ICS kernel and it works !!! fuelgauge 1.6 works without a hitch but an upgrade with custom charge level would be nice. Bazoocaze thanks again.
[Xperia Arc General] Bazoocaze:
Here is the new most recent Fuel Gauge Fix app (v.1.6.2), for you to test and report back if it works properly:

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

Changes:

- New menu option "Configuration"

-- Set battery full [on/off

-- Update battery % [on/off]

-- Battery capacity: 1000 to 5000 (1500 is the default setting)

-- Hardware current consumption (per hardware setting)
[Xperia Arc General] heidality:
Thank you.can you hide icon from status bar on/off?and can you repair crash when for example i play games fuelgauge stopped or crash.

Thank you for your attention.
[Xperia Arc General] nayanasri:
Thanks Bazoocaze :)

I've successfully flashed a 4.1.B.0.431 rom and 0% patched boot.img. All working fine. :victory:

One question though, I can't root my 4n using a kernel though. After install this > (http://www.4shared.com/file/G9D3aawP/LT15i_41B0431_kernel.html) , 0% patch is gone :(

Am I missing something ?

Edit: Nevermind, Successfully rooted using http://xdaforums.com/showthread.php?t=1330314 method :)
[Xperia Arc General] 8BaLL.:
cm9 dont have the patch inbuilt in the kernel..........
[Xperia Arc General] miksa86:
What about battery fast go down

Hey i do evything and my phone work normal, but battery go down very quickly about for 6h.

I see on Fuel Gauge Fix the battery is 56% but the phone turn off and flash red light when i like to turn it on.

How can i fix this problem?

I use Xperia NEO MT15

Android v.4.0.4

bn.4.1.B.0.431

kernel. 2.6.32.9-perf jose@mintvm #2

Thanks
[Xperia Arc General] armadasaxon:
10% stop charge

Why when i do a full charge,once it reaches 10% it will automatically stop charging?

I then have to unplug the charger,and then it can only charge fully.
[Xperia Arc General] raspug:
the **** works

hey man cheers great work.i downgrade my xperia neo mt15a to NEO-GLOBAL-3.0.A.2.181 try to root with gingerbreak and my phone battery meter start showing 0% so i try all kind to flash all kind of roms stock/custom but it's still show 0% but this thread help me out 100% i flash just 3 files and my xperia start showing 85% charge then i use the FuelGaugeFixV16,with the help of these 3 files(boot_ics_v1_1/\,\- FuelGaugeFixV16 and

this Tweaked ICS 4.04.Idid'nt use this bq27520-kernel-driver so i want to know do i have to flash this kernel bq27520-kernel-driver to use fuelgauge1.6 cause i did'nt,but my phone is show charge 100% so thankkk again to everyone who's a part of the project u guy are great keep up the good work if i was rich i would have donate a bundle to you guys but all i can say i thanks you guys ****in rocks.
[Xperia Arc General] nakedfakeer:
Fuelgauge fix 1.6.2

hi bazoocaze, these are my observations on my xperia MT15i. earlier with gb 2.3.4 i had to fully charge my phone once every night in accordance with fuelgauge fix 1.6 status showing battery percentage as low. since i upgraded to the stock ICS and fuelgauge fix 1.6.2 what i notice is that even though fuelgauge shows me that the charge is down within 24 hours of full charging, i can still use it by merely setting the charge status to set to full. now i am able to use my phone for three days before it needs full charge again ! thats an amazing leap but what i understand is that a full charge charges the battery completely but the power drain as calculated by fuel gauge is incorrect as it shows the battery status as drained by 24 hrs. whereas the phone lasts for three days. i have seen the two configurable settings in fuelgauge, the 'battery capacity', 'hardware current' but i am clueless as to how to configure them.

@armadasaxon & @miksa86

try this:

let your phone run out of power completely (keep using it till it shuts down abruptly and the led starts flashing red when you try turning it on). plug in your charger and wait for few for few seconds, it would turn on by itself and show the offline charging animation. power on the phone and let the fuelgauge fix start up. go to fuelgauge settings and click 'start full charge' and let the phone charge to 100 %.

tip: if you are using fix 1.6.2, go to configuration and remove tick of 'set battery full' option. this ensures that charge percentage is not falsely set to 100% in case of charging failure or abrupt stop in the process!!
[Xperia Arc General] miksa86:
Fuel Gauge Fix app (v.1.6.2)

Where i can find Fuel Gauge Fix app (v.1.6.2) this vesrion i have v.1.6 only.

Thanks
[Xperia Arc General] danazor:
4.1.B.0.431 battery fix for locked bootloaders

hey guys i have good news for locked bootloaders. they can use ICS with their 0% battery phones.

>>>use Overlo4d's technique. http://xdaforums.com/showthread.php?t=1683957

>>>Change only step 2. use attached files for step 2

i tried my xperia arc its working perfect. fuel gauge works fine..

Special thanks to :)

Bazoocaze for this guide and fuel gauge

Overlo4d for his technique

DooMLoRD for rooting toolkit

zdzihu for battery fix files
[Xperia Arc General] kennethtse:
the phone can not boot into fastboot mode, ( when press "menu" key & plug into USB , it shows charging ) , how can i flash the kernel ???
[Xperia Arc General] amankumar2508007:
Install a working fastboot

THE included kernel doesn't include a working cwm so you need to install a working cwm .it can be done in two ways

1. either install the attached bootcwm.img and then root 4.0.4 with rootxperia.zip and then again using fastboot install the boot.img(you have this) :confused:

2. if you have rooted your device and enabled usb debugging then extract the included cwm-install.rar and double click the install-cwm1.cmd if you are having xperia arc AND FOLLOW the on screen instructions. :good:

PRESS THANKS BUTTON IF I HELPED
[Xperia Arc General] Bazoocaze:
Now you have custom charge level on the lastest FuelGaugeApp.

I see what I can do. For the crashing issue, please reinstall Stock ROM and flash patch to see if it works nice again.

Thanks. :-)

Please you all ask the CM team to include the bq27520 patched kernel module on the CM9.

You have a drain issue. Please try to use battery monitor Apps to figure out what's going on.

I recommend you:

- CPU Spy: to see clock MHz usage and Deep Sleep time.

- BetterBatteryStats: to see apps that keep wake the CPU, and activated hardware consumption.

Also, please try to do a full 2 hour (stock charger) charge, to make sure your battery is plenty of energy.

The kernel has some safety measures that disable charging process in case of overcharging / overheating / lack or % changing / others. Thanks to the dead fuel gauge chip, we cannot know for sure what is stoping the charge process - the only solution in this case is to reconnect the charger and restart the process. Anyway, I will do some more research on this, to see what I can do to help.

Thank you!

The bq27520 patched kernel driver is embedded on the patched kernel, so if you flash the patched kernel you allready have the bq27520 patched kernel driver.

You can use the "battery capacity" setting to tune your phone usage:

- First, monitor the drained capacity until your phone shutdown from power shortage.

- Them, change the "battery capacity" setting for a value near to, but less than, the value of the drained capacity calculated from 100% (battery full) to shutdown.

- This ways the battery % will be calculated based on your new battery capacity.

It's on the page #106 of this thread. :)

Thank you for sharing. :)

Your must unlock your bootloader, or use the locked bootloaders solution by zdzihu (see first post, only GB), or the tips above.

Thanks for sharing. :)
[Xperia Arc General] mantous:
It's not working :s

---------- Post added at 06:46 PM ---------- Previous post was at 06:42 PM ----------

It's not working , explain more please .
[Xperia Arc General] jasongs:
Hello... Need help here...

I flash the stock ICS firmware and the patched kernel via fastboot but i am stuck at the sony logo... If i just install the Stock firmware it will boot but with the 0% battery..

Am i missing something??

Thanks
[Xperia Arc General] Bazoocaze:
0% Patch for Locked Bootloader :victory:

- Now this is the recommended method to patch the fuel gauge driver. Use the patched kernel method only if this method does not worked for you.

- You can use this patch if your bootloader is locked (not fastboot) or unlocked (have fastboot).

- You still need to use the FuelGaugeFix app to have online battery % updating (the package have a script that installs it for you).

- You need root and busybox to apply this patch.

- Watch out for the kernel/firmware version and this patch version. Only ICS.

- I don't know for sure if this patch prevents OTA. You take the risk. :confused:

- You can try to use this patch on a custom ROM, if it does not have integraded kernel patch. The best choice is to choose an allready patched custom ROM (ask your dev for patch support).

- Patch resids in the system partition, so if you change your system partition, you may need to reapply the patch.

Requisites

- Rooted device. If you have an unlocked bootloader device, you can root your device using this method: http://xdaforums.com/showthread.php?t=1871981

- Busybox installed (latest version). You can use FlashTools to install busybox.

- Stock firmware (you can try with custom ROMs if you wish - no guarantee it will work).

- Press the thanks button on this forum :)

How to install

- Root your device

- Install busybox (you can use the busybox that ship with the FlashTools)

- Install ADB drivers for your device (you can use the drivers that ship with the FlashTools)

- Connect the phone to PC via USB cable and wait for driver installation

- Decompress the file from this post to an empty directory.

- WINDOWS users: double click to execute the install_patch_win.bat

- LINUX users: execute the file install_patch_linux.sh

- Read the information on screen

- If you read "OK", congratulations, it works.

- If you read "ERROR", I´m sorry you are out of luck :crying:. Post here the info for us to help you.

- Install the Fuel Gauge Fix Android App. Play Store: https://play.google.com/store/apps/developer?id=Bazoocaze or

- WINDOWS users: double click to execute the install_apk_win.bat

- LINUX users: execute the file install_apk_linux.sh

- Enter FuelGaugeFix app and start the service.

Downloads

- ICS 4.1.B.0.587 ARC LT15i / NEO MT15i:

version 1.0:

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

OLD :eek:

.587 v1 old

http://www.mediafire.com/?7524o8jmmmcgtmu

- ICS 4.1.B.0.431 ARC LT15i (should work with Neo too):

version 5.0:

http://www.mediafire.com/?4zbvv4dd6dc3cyl

How to remove Patch and App

- Connect the phone to PC via USB cable and wait for driver installation

- Decompress the file from this post to an empty directory.

- WINDOWS users: double click to execute the remove_patch_win.bat

- LINUX users: look into remove_patch_win.bat and figure it out what to do.

- Read the information on screen

- Uninstall the FuelGaugeFix app

How to report errors

Please, collect the output from the patch execution (all text) and post here in the thread.
[Xperia Arc General] mantous:
Error
[Xperia Arc General] Bazoocaze:
What is your device model, firmware type (stock/custom rom), firmware version, and kernel version, please.
[Xperia Arc General] mantous:
I have the Xperia arc LTi15 locked bootloader with the 0% battery issue, i'm just a beginner and i'm not too familiarized with this things if you can explain all the procedure for me i'll be thankfull .
[Xperia Arc General] Bazoocaze:
There are 120 downloads of the locked bootloader patch, so if think it's working for somebody (perhaps someone can really confirm it's working).

This way, I think the problem may be you device configuration.

Please make sure you have this on your phone:

- Android ICS version 4.0.4 (menu configuration / about the phone / Android version)

- Sony firmware version 4.1.B.0.431 (menu configuration / about the phone / Version number)

- Your phone must be rooted

- You must have busybox installed with the latest version (you can use flashtools to install busybox)
[Xperia Arc General] Bazoocaze:
Hi,

I updated the patch script with extensive debuging messages to help figure out what's wrong with the patch applying on your device. Please test with the patch version 2 you can find on the updated patch post:

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

Paste here the results from the patch execution to help debug the process. ;)
[Xperia Arc General] mantous:
Result :

/system/bin/sh : /system/bin/su: not found
[Xperia Arc General] Bazoocaze:
:confused:

Has your phone rooted, and have you installed Busybox?
[Xperia Arc General] mantous:
Yes, for sure. I can access to the root with Root Explorer it means it's rooted.
[Xperia Arc General] DanhThanhTam:
I spent 3 days using the new 0% stock kernel. Now I realise that this drain too much my battery!
[Xperia Arc General] coralman:
good

Thanks ~~~ it really work in my arc with 0% battery :good::good:
[Xperia Arc General] xdragon78x:
ERROR :((
[Xperia Arc General] errIO:
[Q] FXP 130 kernel with 0% battery fix ?

I've spent weeks looking for FXP 127 ~ 130 Kernel with Bazoocase 0% battery fix.

I found an old FXP 107 with patched battery driver but Mobile Data and Wifi was not working in CM9 RC2.

If anyone has a FXP 130 Kernel with patched battery driver please upload it. Thanks !

Or teach me how to patch it.

THANKS !!!!
[Xperia Arc General] K9999:
INFO: sysfs entry not found: /sys/class/power_supply/bq27520/capacity1

INFO: patch needed

DETECTED: device:Xperia NEO model:MT15i firmware:4.1.B.0.431 android:4.0.4

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

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

rmmod: delete_module 'bq27520_battery' failed (errno 2)

insmod: init_module '/system/lib/modules/bq27520_battery.ko' failed (Device or resource busy)

ERROR: insmod bq27520_battery.ko failed.

Need some help

It is rooted.
[Xperia Arc General] Bazoocaze:
Thank you. I will work on that issue.
[Xperia Arc General] Bazoocaze:
It's difficult to debug this without a failed phone to test. Sorry. :(

Please test the version 3 of the patch. Thank you.
[Xperia Arc General] K9999:
I'll try it when i get home thank you
[Xperia Arc General] jasousa:
Cm10 fxp131

Hi,

It is possible create bq27520_battery.ko to CM10 FXP131 (JellyBean)? Without this module I can't user this ROM.
[Xperia Arc General] heidality:
Bazoo can you optimize fuelgauge app..fg app eat many ram 8mb..and can hide icon in status bar?

Thank you for your attention.
[Xperia Arc General] K9999:
460 KB/s (4718 bytes in 0.010s)

2147 KB/s (153941 bytes in 0.070s)

1879 KB/s (153941 bytes in 0.080s)

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

INFO: patch needed

DETECTED: device:Xperia NEO model:MT15i firmware:4.1.B.0.431 android:4.0.4

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

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

rmmod: delete_module 'bq27520_battery' failed (errno 2)

insmod: init_module '/system/lib/modules/bq27520_battery.ko' failed (Device or r

esource busy)

ERROR: insmod bq27520_battery.ko failed.

Press any key to continue . . .

Kernel version 2.6.32.9-perf BuildUser@BuildHost #1
[Xperia Arc General] Bazoocaze:
Thank you for your patience.

I figured out whats wrong with the module loading (I made a parcial brick on my fuel gauge to better debug the driver loading ;) )

Now it must work: http://www.mediafire.com/?u45taktd4djpmbp

Please report back if it run OK for you (and press the Thanks button / donate if you like it).
[Xperia Arc General] Wonko69:
Hi just tried the download.

Didn't work for me. Also the linux script does not work so had to change the commands and run them one at a time. But when I tried to run the script i got the following error:

~/Downloads/FGFixLockedBootloader41B0431/files$ ./adb.linux shell /data/local/tmp/fgpatch

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

INFO: patch needed

DETECTED: device:unknow model:anzu firmware:IMM76L android:4.0.4

ERROR: incorrect firmware version. Target 4.1.B.0.431, detected IMM76L.

ERROR: invalid or unknow device found.

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

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

cp: can't stat '/data/local/tmp/bq27520_battery.ko--': No such file or directory

ERROR: failed to copy module to /system/lib/modules/bq27520_battery.ko

When I tried running the command like in the file, it cant find su eventhough I'm running CM9 RC2.
[Xperia Arc General] blacktel:
Welcome. I come from Polish :)

2 days trying to run my Xperia Arc.

I have uploaded all my root ics 4.0.4, uploaded busybox, locked bootloader. I have uploaded a fix Fuel, in the options I see software that loads everything, but the hardware options battery capacity is still 0%. After disconnecting the charger once the phone is turned off. Help what am I doing wrong: (

Thank you and best regards
[Xperia Arc General] Bazoocaze:
I see what you are trying to do. The patch was intended to run only on stock firmware, but I made some modifications to try to run it on custom firmwares (no guarantee it will works).

version 5.0:

http://www.mediafire.com/?4zbvv4dd6dc3cyl
[Xperia Arc General] Bazoocaze:
Ok, now we are on version 5 and I fully tested it on my self-partial-fuel-gauge-bricked Arc device, and it worked fine, so you can install the patch on your devices (stock firmware) and it will work:

version 5.0:

http://www.mediafire.com/?4zbvv4dd6dc3cyl
[Xperia Arc General] jasousa:
Hi Bazoocaze

It is possible compile bq27520_battery.ko-MT15 to CM10 kernel? My request makes sense? Or it must be a built-in kernel patch?

Thanks
[Xperia Arc General] Bazoocaze:
Yes, your question makes senses. The kernel modules (.ko files) are bind to the kernel compilation they are compiled for, so you should compile a version for every different kernel version. To compile for CM10, I must download CM10 kernel sources, prepare another android environment, configure kernel, compile, prepare the driver, compile the driver, prepare a patch bundle, and distribute all this.

But I don't want to spend my time on this, specialy because it's way easy to CM10 team integrate the patch on their kernel. I recommend you ask CM10 team to integrate the kernel patch.

Anyway, you can try to install this patch and see if it works with the CM10 kernel.
[Xperia Arc General] jasousa:
Hi,

Thanks for your answer.

I just try your patch with CM10 but don't work.

I wil try ask to CM10 team.

Abraço :)
[Xperia Arc General] Wonko69:
Just to let you know it didn't work.. But I'll give it at try with another boot.img from the Free Xperia Project.

The error I got was permission denied, which is kinda strange since I'm root.

/Wonko
[Xperia Arc General] K9999:
THX Bazoocaze version 5.0 worked :)
[Xperia Arc General] miksa86:
Something goes wrong

Hello

I use FuelFix 6.1 and then 6.2 but today is death day :)) my Neo dont like to charge the batery i try 147385818491 times and dont like only blink RED light.

What can i do ??????

Thanks
[Xperia Arc General] phantnang:
Bazoocaze, please help me!

I sent a email to you, i want you to rebuid the APK with my configuration and option. have you received my email?
[Xperia Arc General] wwanders:
I have read the entire article, but it was not clear to me, so I was wondering if the 5.0 patch works or not with CM9 with 0% battery issue.

Would someone clarify to me?

Thx

Edit: fixing notification.
[Xperia Arc General] sanchit:
so cm9 kernel already has your battery patch?

and i can flash their kernel without problem?? :confused:
[Xperia Arc General] wwanders:
Well

I've tried without success.

FXP 130 and Doomlord CM9 kernel. I used the patch and even in that way it doesn't work.
[Xperia Arc General] sanchit:
so how will i use CM9 rom now ?
[Xperia Arc General] wwanders:
I don't think you'll at least by now.