yashsingh1/xdaforums huggingface dataset:
[Xperia Arc General] jjm34:
Quick question, because I haven't been able to find a definitive answer for this:

I recently got an Arc S / LT18i, and its firmware version is 4.0.1.A.0.266 (Android 2.3.4; stock version, carrier-branded, no OTA updates offered). I haven't flashed any other version yet and I understand that flashing newer versions would not cause the fuel gauge issue. My question is that if I flash a newer ROM version (such as 4.0.2.A.0.42, or a custom one), could the fuel gauge issue affect me if I reverted back to the 4.0.1.A.0.266 stock ROM later? Or does it really only affect downgrades to much earlier ROMs such as 2.3.4 or 2.3.3?
[Xperia Arc General] lungocphu:
The same to me, I put charge 3hours and phone only use 6 hours when I'm sleeping.

Maybe It only charge 15% (from 85 to 100%)
[Xperia Arc General] SoraHaru:
Yes!! I think so.

---------- Post added at 12:29 PM ---------- Previous post was at 12:18 PM ----------

Can you make a 1% Patch (like FW in DOCOMO).Maybe we can use 1% patch in the latest FW with a fully charge ^^....!!!!!!!
[Xperia Arc General] itachi naruto:
one was when someone called to the machine after about 15 minutes from the end pin, square with this situation about three times despite new charge:(
[Xperia Arc General] masray:
http://www.kuaipan.cn/index.php?ac=file&oid=27760954909392899

What I post is a firmware modded by Sony Ericsson production engineer for NEO,with running this the battery will be detected and indicated in software mod, but this firmware can only be flashed to the NEO 【engineering machine】，i tried,and the flashtool shows aborted, so how can you refer to also flash our NEO with this version?

Only provide a reference here. Maybe using Fastboot?

In addition, I would like feedback about 85% of the battery indicator has some questions on charging, red one will automatically stop. Very annoying,Can you modify the charge to [21%]? We donot know Linux, although aware of ways.
[Xperia Arc General] phantnang:
I think so. phone stop charging after about 20 minutes even battery low!

please fix, Bazoocaze !

if battery show 1%, it's full charged but some app will not working as: vellamo...how do fix this:mad:
[Xperia Arc General] steryman:
@masray: It's easy, all you have to do is to enter the next command in a terminal emulator(if you have one) in ur phone: echo 21 > /sys/class/power_supply/bq27520/set_capacity

21 represents the percentage of the battery you want to be set.
[Xperia Arc General] itachi naruto:
instructions carefully you can ,I did like you but not running .please
[Xperia Arc General] JMSpurs:
I think the problem is that the firmware wasn't flashed onto the chip properly. This has made the chip unusable. If only we could flash different firmware onto the chip???
[Xperia Arc General] itachi naruto:
help you make the mod 22%:(:(
[Xperia Arc General] SireJoe:
Are any of the devs on here able to directly communicate with the i2c chip at all? is there some form of work around that would allow this to be possible? I assume that if we cannot talk to the chip directly, we would not be able to reflash it.

Its like it was cut off with software then rendered useless because it will no longer talk with the rest of the board. Its like its a sub component of a main component, and once screwed up with the wrong software its made useless.

You'd suspect though, that you'd be able to remove it, reflash it, and then reinstall it. But that would be pretty useless in the end I think.

So unless someone can get info, talk to, manipulate in any way the I2C chip, I think it may be impossible to fix via software alone.
[Xperia Arc General] steryman:
What about a recovery image from a working phone? Did anybody tried to flash one on a 0% problem phone?
[Xperia Arc General] JMSpurs:
Maybe if we developed a patch for the i2c board to force/allow it to communicate with the chip we could re-flash the chip and start again?

Because the i2c bus is working fine right?
[Xperia Arc General] SireJoe:
From what I am gathering from smarter people than I, yes, the board is working, just not communicating its actual progress. Otherwise I would assume the phone would be dead all together.

But how do you patch something you cannot communicate with? I would think the only people who could even try to attempt that would be SE, the people who created the phone in the first place. But they dont seem to either care, or are (currently) unable to.
[Xperia Arc General] JMSpurs:
What if we developed a patch that changed the i2c bus and therefore forced it to communicate with the fuel gauge chip.
[Xperia Arc General] phantnang:
thanhk u, i set battery 20% with TermialEmulator: "echo 20 > /sys/class/power_supply/bq27520/set_capacity"

it work but it return 85% when reboot.
[Xperia Arc General] srebar:
Same thing, after making it show 50%, after reboot it still shows 85%.
[Xperia Arc General] SireJoe:
I guess the only question is, is it possible to do so, and if so, why havent they done it yet! :)
[Xperia Arc General] JMSpurs:
I would try myself. I just don't want to be responsible for breaking anyone's phone and I'm not particularly knowledgeable in this area :/
[Xperia Arc General] Bazoocaze:
Hi, I'm back.

Mates, the best way you can help is to post output logs, like srebar did. My phone isnt faulty, therefore I cant verify and debug your complains on my own. And read the FAQ on the first post (and the full thread) - its annoying that peolpe make the same questions and speculations over and over.

Also, I did like to thank you (steryman, srebar, SireJoe, JMSpurs, among others) that are trying to help me or others with this annoying issue, or trying to contact Sony for an official patch. Its a shame that no one with linux kernel and C skills wants to help me with this.

-----

About the i2c bus / fuel gauge issue, think of it as a pendrive without USB connector: you cant write to nor read files from. Simply.

The first 2 tests in this thread (v1 and v2) are tries to rescue from dead the fuel gauge, but its not responding to our commads. Its not an i2c bus issue, because i2c is simply an abstraction for a digital 2 wire shared connection beetween devices. There is no configuration mismatches possible, because its too simply. The fuel gauge has its internal firmware screwed up by the rom downgrade, and you cant flash a new firmware to fuel gauge without i2c communication. Maybe someone does some kind of magic and bring back fuel gauge to communication, but I dont hope so.

Until there, in simply words:

The fuel gauge is DEAD.

Fuel gauge is Game Over.

No continues left.

RIP fuel gauge.

Let it go.

If you still want to keep trying on i2c and fuel gauge recovery, let us start another thread, to keep things clean about this thread and our effort to circunvent the dead of fuel gauge, and another thread with magical tries to ressurect fuel gauge. I can guide you how to start compiling Kernel and changing fuel gauge driver, if you want.

-----

About the current issue:

The charger has a safety timer that disables charging in case of malfunction on charging process. I will see what I can do to inform the charger that our charging is nice. The DOCOMO 1% doesnt help, simply because I cant put my hands on this patch, nor test it on my device.

Until there, if one of you can try to mimic the growning of battery % during charging, to see if the growing % keeps the safety timer away from triggering. I think of 1% each 5 minutes must be enough, but you can try with different values. Test and report.

Also, if one of you doesnt have this issue, please report back for us to see if its a rom or another issue.

The guy with voltimeter can help, too. In normal operation, the battery needs around 3 hours to charge from 0% (~3600mV) to 100% (4200mV). You can measue and report the voltage that the phone without fuel gauge shutdown (I think it will be around 2800 - 3000mV), and also the voltage growing during a 3 hours charge.
[Xperia Arc General] srebar:
I'll appreciate if you can write a small guide how to compile a kernel, I am willing to try everything to fix that gauge. Have a lot of spare time now, until... february, then im going on a sale for 2 months and i hope i'll find somekind of solution to partly fix the fuel gauge. Also I will ask a friend who is with a lot of knowlage in linux and C to help out. If he can figure something out i'll make him drunk for the next 2 months :D

Thank you again for everything you did. : )
[Xperia Arc General] danielnghk:
Thanks!!

:)

Thank your work, truly!!

Someone have a solution (I am not test it). Maybe it is a miracle.

http://xdaforums.com/showpost.php?p=18869350&postcount=469
[Xperia Arc General] Bazoocaze:
I analysed battery_chargalg.c and seems to be that the battery % not growing is causing a safety timer expiration. I cannot test my self, but if one of you can test and confirm this, we can go directly to develop v4 patch to solve this eigther.

I will be wating for your report, testers.
[Xperia Arc General] danielnghk:
What is the steps to test it?

I am a beginner.
[Xperia Arc General] Bazoocaze:
Ok. You must be running on patch v3.1

Find a terminal emulator for your phone on Market (like this: https://market.android.com/details?id=jackpal.androidterm).

Install an run it - a terminal console will apear.

Put your phone to charge, and at each 5 minutes, you must fake the battery % growing, using the following command on terminal emulator:

echo 86 > /sys/class/power_supply/bq27520/set_capacity

and 5 minutes later:

echo 87 > /sys/class/power_supply/bq27520/set_capacity

and so on until 100%

Between every % update, on android look in Configuration / About phone / Status / Battery Status and see if status is Charging or Discharging. Battery Status must stay "Charging" until 100%. Report back what happened.

If possible, post here the adb log out (file output.txt):

adb shell dmesg > output.txt
[Xperia Arc General] slowadi:
Thank you for your work Bazoocaze ... you are the best:)

It's great that we can use 2.3.4 FTF, but our phone is charging only 15%

Could you make a patch with 11% ... so we could charge the battery fully !?!?!
[Xperia Arc General] Bazoocaze:
I want to get drunk, too. :p

First, download the kernel source for Xperia version .283. The developer thread of Kalled from Sony (search on developer thread) has some instructions on how to compile the kernel.

This is the direct link to download Sony kernel sources:

http://developer.sonyericsson.com/wportal/devworld/search-downloads/android?cc=gb&lc=en

For the ARM compiler, download the CodeSourcery arm eabi compiler version 2010q1.

https://sourcery.mentor.com/sgpp/lite/arm/portal/release1294

Install the compiler on Linux (You can use a virtual machine if you have Windows - use Virtual Box or VMWave Player, both are free for home use).

Next, follow the guide on Kalled thread to select phone version e compile the Kernel. In the end of compilation, you get a zImage file, that is the Kernel. When you hit this point, call me and I show you how to generate boot.img from zImage and ramdisk.
[Xperia Arc General] Bazoocaze:
Just as I write before, the safety timer only allows some time (27 minutes) of charge untill triggering, therefore lowering the battery % doesnt help.

Try to fake battery growning and see if safety timer doesnt trigger. If it helps, then we can make an android package that automatically fake % growing.
[Xperia Arc General] srebar:
Thanks for the quick tutorial Bazoocaze. I'll do it tomorrow morning, because i'm going out to celabrate my friends wedding and I don't have any time today. Thank you again for everything you've done for us, i'll install Linux on my machine first thing in the morning. I hate using virtual machines. : )

Edit: Ok started dumping my ARC, tomorrow i'll kompile a new kernel with sony's source and with a working driver inside to see what will happen, talked with my friend just now, he thinks that it MAY happen, hope he's right. I'm not giving any hopes to anyone, i'm just experimenting and hoping that the little *ucker will start to work properly again. : )

Edit 2: strange, when i make a dump via adb it skips the whole sys folder... will try tommorow again, gotta go now.
[Xperia Arc General] JMSpurs:
Might as well take a look and see what I can do. Try and make a way to allow the phone to communicate with the broken firmware of the fuel gauge chip.
[Xperia Arc General] FiDra:
Hi guys,

It seems that the phone is still charging even there is no "charge indicator" on the battery indicator.

I've tested myself:

- Used the phone for a day to drain battery.

- Plugged the phone in to the charger.

- After some minutes I plugged the phone in, the charge indicator disappeared.

- But I just left it for 2 hrs.

After that, I've unplugged the phone and used it.

It lasted for 8 hrs included about 5 hrs of playing music in the background through headphone.

In my opinion, if the phone only charged for 15%, it can be lasted for that long (8 hrs with 4 hrs of media).

So, I think, it is good to use every day with charging once a day :D

Thanks Bazoocaze!
[Xperia Arc General] bennie520:
thanks

thanks,i'm using the v3.1 now,can you realize to display the actual battery by software? somebody can do it,but the ROM only support NEO test phone(not for sale).

h t t p ://sebbs.it168.com/thread-340329489-1-1.html

you can be used as reference.
[Xperia Arc General] FiDra:
Hi Bazoocaze,

I've recharged my phone again, and the phone refused to charge after some minutes charging.

I've try as you said and found that the phone continue to charge when I change the battery level.

So, please help us to make a package that can change the battery level automatically.

If so, I think there should be an auto-drain battery package too :).

Thank you so much!
[Xperia Arc General] steryman:
Ok guys so what happens if I flash a boot image containing CM7 Kernel and Doomkernel ramdisk(this patch)? Are there risks of bricking?

Later Edit: tried now, I get error at flashing it...

Later Edit 2: Please Bazoocaze, patch FXP043 Kernel too! I really want CM7!
[Xperia Arc General] phantnang:
who can do this to temporarily charging battery with phone?
[Xperia Arc General] Bazoocaze:
This cant be done by software. See the FAQ on first post.
[Xperia Arc General] Bazoocaze:
Ok, then for now on I will work on v4 - but this cant be done in Kernel.

So I will work on an Android APK that runs in background and will decrease / increase the battery % controlled by the presence / absence of the charger. That will be a poor guess, sorry.

For a later version, I did get some ideas to aproximate the battery status based on peripheral usage (screen / wifi / cpu), that will make the % show varing with the usage.
[Xperia Arc General] Bazoocaze:
Sorry, but I cant do this. I dont have the time, nor the unlocked bootloader / faulty device to keep testing on CM7.
[Xperia Arc General] shahzaib.khan:
Bazoocaze plz jus focus on v4....
[Xperia Arc General] steryman:
I will test it for you. And... can't you just add the bq27520 folder in /sys/class/power_supply? So just to use set_capacity in terminal whenever I start the phone? I tried to copy the whole folder to my pc but I get permission denied at set_capacity and some other files.
[Xperia Arc General] Doom1978:
Guys has anybode check his /sys folder? There are so many sub-folders in the /class/power-supply/bq27520/device/driver0-0055/.....

Are the folders links to the other folders? When I click to one folder I get to the same folder but as sub-folder. Is this correct???
[Xperia Arc General] Bazoocaze:
The /sys folder is a virtual filesystem created in memory by kernel drivers and modules to expose functionality to user space programs. It doesnt exist on disk, only in memory.

The set_capacity virtual file is part of the patched bq27520 driver, to help debug the patch. The file is not present on normal kernels (like CM7).
[Xperia Arc General] steryman:
Yes, I observed, that's why I tried to copy it on my pc then to try copying it in cm7 /sys/class/power_supply folder... Hope you'll still have some time to patch cm7 kernel too or at least tell us how to do it..
[Xperia Arc General] shahzaib.khan:
Just find the perminent solutionnn.....or the patch which shows correct bettery :p
[Verizon Droid Incredible 2] nixxx0n:
Htc Droid Incredible 2 :

Today i tried to use my camera but black screen appeared, i restarted the phone and nothing. It worked for a few pictures after i took out the battery and restarted the phone. Now every time i want to take a picture i have to take out the battery and restart phone :mad: So i wanted to ask you guys what would be the solution? Flash to another ROM? I didn't install anything, everything is stock. Camera worked good for 2 months just today stoped...

software : v2.3.3
[Verizon Droid Incredible 2] rlrhk:
same with my wife's phone. Anyone got a fix for this?
[Verizon Droid Incredible 2] chattguy:
If you're running an AOSP GB ROM (which you probably are if the camera sucks) then do what I did and found the MIUI camera .apk file. You have to install it in your system folder, so be careful to rename it to whatever the original is, and remove the original camera .apk file.

USER BEWARE: I am not sober this evening. My advice should be taken with extreme caution. That being said, it worked for me on the OG dinc1, so I'm guessing it wouldn't be much different now.
[Verizon Droid Incredible 2] nixxx0n:
I tried everything :( Instaled few ROMS (Zeus,MIUI,HD,CM) problem with camera stays... tried to install miui camera on stock rom worked for 10 minutes and then black screen again:mad: i guess is hardware problem, but i'm in europe now can't go to verizon store to return it. Maybe some other solutions?
[Verizon Droid Incredible 2] TheAtheistReverend:
How about Camera360? I use the paid version and love it!
[Verizon Droid Incredible 2] nixxx0n:
camera360 uses the stock app(which doesn't work) so it is the same problem...
[Verizon Droid Incredible 2] TheAtheistReverend:
Well, hot dog! :eek: Never knew that one.

You learn something new every day, don't ya?

I'd still try it though. Just cuz.
[Verizon Droid Incredible 2] nixxx0n:
It looks like sd card was causing problems with camera,as soon as i remove sd card camera works when i put the card back it works for 10 minutes and stops :S (I tried 3 different cards). For the last one hour camera is working (i instaled Skyrider Zeus ROM) but don't know for how long. Is there some app to mount unmount sd card from home screen, i don't want to open case to take out sd card every time camera not working?
[HD2 Android Q&A, Help & Troubleshooting and Genera] ryan123459:
I wanted to flash my HD2 with android to NAND but checked my bootloader and it was SPL3.03.

So do I need to downgrade somehow and if so how?

or what are the other options thanks.
[HD2 Android Q&A, Help & Troubleshooting and Genera] samsamuel:
Bootloader - Hspl4 - 2.08.hspl

done.
[HD2 Android Q&A, Help & Troubleshooting and Genera] ryan123459:
thanks for the reply just tried that and it says critical error.
[HD2 Android Q&A, Help & Troubleshooting and Genera] the_blade:
Its very sipmle.

1. shutdown phone.

2. Power on and hold volumedown button (you see 4 color loader)

3. plugin usb cable to computer and wait for install driver

4. run hspl4

5. chose SPL 2.08.HSPL from list and next you see information about hd2 hack and restart phone when finish

6. task29

7. install MAGLDR113_DAF

8. make task from your prefered rom

I suggest use http://xdaforums.com/showthread.php?t=1166948

For me is the best now :)

GL
[HD2 Android Q&A, Help & Troubleshooting and Genera] blakphoenix:
download hd2 toolkit from the forums. install HardSPL, select 2.08 and it should unlock your phone. then install MAGLDR, proper rom partition and then choose preferred rom and install on sd card. go into ad recovery after rebooting phone by holding down end button and install rom
[HD2 Android Q&A, Help & Troubleshooting and Genera] htc2018:
download hd2 toolkit from the forums. install HardSPL, select 2.08 and it should unlock your phone. then install MAGLDR, proper rom partition and then choose preferred rom and install on sd card. go into ad recovery after rebooting phone by holding down end button and install rom
[Xperia Play General] Deoxlar:
www.talkandroid.com/68012-ics-in-the-works-for-the-xperia-line/

It's not too early to say that SE 's poor customer support days are over. They are working on ICS updates to their single core devices already. I am sure we've already been really satisfied with the bundle of updates being rolled up by SE, but this is incredibly good news.

Also added from the other thread.

http://m.engadget.com/default/article.do?artUrl=http://www.engadget.com/2011/10/20/sony-ericsson-bringing-ice-cream-sandwich-to-xperia-handsets/&category=classic&postPage=1

Please stop posting old news about the updates. SE confirmed that they will start working on ICS After the source code was released.
[Xperia Play General] Cat_On_Droid:
i honestly wasnt expecting ICS for SEX devices :o
[Xperia Play General] juxtapose519:
I'm still mad about the face unlock thing. No James Bond retinal scan? Lame.

Good news though. It's about time SE got with it.
[Xperia Play General] TheCraig:
Awesome, Really gives me confidence that SE is not that bad after all, Never been a fan of using another ROM, As I love Sony Ericsson's, I will use another ROM once the Xperia Play is no longer updated or supported by SE which I hope never happens while I use an Xperia Play as my primary device.
[Xperia Play General] Nhialor:
I always had confidence in SE. <3 this company and their phone. Now, if only we could get it as stock ICS and not with their UXL overlay. Maybe with ICS it'll be much better looking, have to wait and see
[Xperia Play General] Leraeniesh:
Which probably means Verizon Plays wont get ICS till 2014.
[Xperia Play General] AndroHero:
It will be google pushing ICS, they will want most top end phones on ICS so they can start ending support for older OS version :p
[Xperia Play General] antispiral:
Verizon version came as vanilla gingerbread so we might even get it sooner. Late 2013 or so seems about right!
[Xperia Play General] vans2:
Yes, SE were very quick to release a statement about this.

Asus have also said that they will be upgrading the Transformer to ICS. This is all a lot different from when Honeycomb was released.
[Xperia Play General] dodgersbru:
is this avaliable only in november?
[Xperia Play General] TheCraig:
I would say December maybe, Maybe Jan 2012
[Xperia Play General] DeadlyDazza:
I'm still waiting for an ota on the latest build, UK generic.
[Xperia Play General] vans2:
From using Google the best I can work out is that in a Dutch language blog SE Netherlands said that they will be upgrading all the 2011 Xperia phone to ICS.

However, SE told Slashgear that no decision has been made

http://www.androidpolice.com/2011/0...o-bring-ice-cream-sandwich-to-xperia-devices/
[Xperia Play General] Deoxlar:
My article was posted and confirmed a few days ago. They announced it after the launch of ics. Please don't link an article from almost two months ago saying it's not confirmed.
[Xperia Play General] vans2:
I accept my timing error but I will link whatever article I think is relevant
[Xperia Play General] Deoxlar:
Your timing error is what made the article irrelevant though. Your outdated article greatly contradicts the new one that SE made ... making people believe that there is no such ICS update when really SE confirmed the updates after the launch of ICS source codes.

It's like positing an article about the Samsung Galaxy Nexus telling people it's a 8mp camera and not 5mp but using a 2 month old article as reference....
[Android Software/Hacking General [Developers Only]] jeitzen:
Was hoping that I could gain a little assistance in rooting my ThinkPad tablet.

Or even a good guide to using an exploit to root 3.1 Honeycomb.

The ThinkPad has an unlocked bootloader.

Any documentation or recommended reading, to help me accomplish this is a big help.