[Think Tank] Possible bump charge fix - Droid Incredible Android Development

sibere said:
Like you guys, I was fed-up with the HTC battery charging policy. Picking-up my phone charged to 90% after an overnight was really annoying.
Thanks to the RichardTrip Kernel and Thread, I went for a deeper look at sources. I wanted to have a trickle charge of my phone, even at the cost of a battery wear (not even sure about that tho).
Basically, the Desire stops charging when the battery is fully charged and waits for the level to drop to 90% before recharging to 100% again.
With a very minor tweak in the HTC DS2784 driver, it is possible to change this behaviour in a way that the charge doesn't stop @ 100% but a very small current (close to 0mA) keeps your battery @ 4.2v. I have experimented my little hack on my own desire and I can tell you that it's working perfectly well! I monitored for hours the charging process and the current slowly dropped to very small numbers. HTC_BATT was reporting 0 to 2mA charge and was even letting the battery discharging (-2 to -4mA) to keep it at 4.2v
What you get with this is a normal charge, and when the battery is close to 4.2v, the charging current slowly drops to 0mA. I haven't changed anything else so the battery is still overtemp or overcharge protected.
The file involved is drivers/power/ds2784_battery.c (HTC sense 2.6.32.15 kernel)
Here is the diff (the magic bit ;-) ):
Code:
965c965
< charge_mode = CHARGE_OFF;
---
> charge_mode = CHARGE_SLOW;
972c972
< charge_mode = CHARGE_OFF;
---
> charge_mode = CHARGE_SLOW;
The full code now looks like this:
Code:
} else {
if (htc_batt_info.rep.level <= 99)
htc_batt_info.rep.battery_full = 0;
if (htc_batt_info.rep.battery_full) {
charge_mode = CHARGE_SLOW;
}
else if ((htc_batt_info.rep.guage_status_reg & 0x80) &&
(htc_batt_info.rep.batt_current <= 80) &&
(htc_batt_info.rep.level == 100)) {
if (More_Charge_Extend_Time()) {
htc_batt_info.rep.battery_full = 1;
charge_mode = CHARGE_SLOW;
}
}
Cut& paste this thread to your favourite kernel developer (For HTC SENSE ROMS / KERNELS ONLY. Others seems to be not affected)
I would like to thank Richard for is kernel and is github. (http://forum.xda-developers.com/showthread.php?t=801435)
I would like to thank Mekrel as well, as he showed me the path with his post (http://forum.xda-developers.com/showpost.php?p=8695549&postcount=464).
update: furniel compiled a v5f kernel here http://forum.xda-developers.com/showpost.php?p=9242727&postcount=912
update 2: I built a V5e kernel for you guys just here http://forum.xda-developers.com/showpost.php?p=9279677&postcount=48
Click to expand...
Click to collapse
props to this developer! does anyone know if this would work for our devices?

unfortunately no, i dont think it will work
looks like the same patch i tried
ds2784_battery.c is not used on our phone
the file we would probably patch would be arch/arm/mach-msm/htc_battery.c

invisiblek said:
unfortunately no, i dont think it will work
looks like the same patch i tried
ds2784_battery.c is not used on our phone
the file we would probably patch would be arch/arm/mach-msm/htc_battery.c
Click to expand...
Click to collapse
dang :/
they ported this to the evo? isnt the evo extreamly similar to our phone?

from what i understand (and i may be wrong here) the evo also uses htc_battery.c and not ds2784_battery.c so porting it to the evo shouldnt affect it either
ask them when they build if they have a ds2784_battery.o file after building, if the phone is using it, the .o will be there (it isnt here)

found the thread here
http://forum.xda-developers.com/showthread.php?t=876590

Related

can this improve battery performance?

Change the registry entry as follow:
HKEY_LOCAL_MACHINE/Controlpanel/Power
FullSate=76,change to 99
HighState=52,to 68
LowState=6
MedState=34,to 26
I don't know, where did you get the changes from?
have you tried it yet?
Maybe the battery can be charged more fully by raising 'FullSate' .
I haven't try it.
probably not.
I dont know what it does, but my values are at 11, 26, 51, 76 so different to yours already..
fards said:
probably not.
I dont know what it does, but my values are at 11, 26, 51, 76 so different to yours already..
Click to expand...
Click to collapse
It really works.
I modified the values when battery is at 100%,
and it became 90% ater reset.
Now continue charging.
that sounds me like the standard winmobile battery indicator per-level threshold...
Perhaps FullSate is the level that WM considers battery is full.
So raising the value could make a deep charge.
have you seen this btw...
http://forum.xda-developers.com/showthread.php?t=463905
On further playing I think the values are for the power icon levels on the taskbar.
[HKEY_LOCAL_MACHINE\ControlPanel\Power]
"DynamicChargeicon"=dword:1 ; set to 0 for normal "plugged in" icon when on ac/usb power, set to 1 for blinking battery icon to indicate charging
setting this at 1 makes the plugged in icon flash on and off whilst charging.
avenger2005 said:
Change the registry entry as follow:
HKEY_LOCAL_MACHINE/Controlpanel/Power
FullSate=76,change to 99
HighState=52,to 68
LowState=6
MedState=34,to 26
Click to expand...
Click to collapse
i don't think so,
changing it to 200 will make the battery try to charge untill it's 200%?
so this means that easily someone can make a virus to make our batteries explode!
not that simple, it's stored in the battery
@avenger2005 can you get your phone to 100% now after charging? how long it's staying there?
anaadoul said:
not that simple, it's stored in the battery
Click to expand...
Click to collapse
Yep, that's it exactly. The charging control unit is either inside the battery or inside the phone's hardware. More likely it's inside the battery.
How would you charge the phone when it's switched off and Windows registry settings wouldn't work?
i think its work, used this method from last month and the battery can last 2 hours longer with extra charge reg edit
skycamefalling said:
inside the battery or inside the phone's hardware. More likely it's inside the battery.
Click to expand...
Click to collapse
for hardware devices that anyone can replace the battery it will be inside the battery it self for sure
it stores the information about the full capacity of the battery (which changes by the passage of time) so imagine if it's on the device itself and bought a new battery. you will get the performance of the old one
maybe iPhone have in the device it self as the battery is not accessable by the enduser
(-1) for iPhone
fards said:
probably not.
I dont know what it does, but my values are at 11, 26, 51, 76 so different to yours already..
Click to expand...
Click to collapse
the reason peoples values differ because, the phone is clever. if you charge it often, even when it isnt needed, it will use the battery carelessly because it knows a charge is on the way. if u only charge it 2-4 days at a time then it uses the battery more care full. adapting itself to the way the user uses it.
indy.89 said:
the reason peoples values differ because, the phone is clever. if you charge it often, even when it isnt needed, it will use the battery carelessly because it knows a charge is on the way. if u only charge it 2-4 days at a time then it uses the battery more care full. adapting itself to the way the user uses it.
Click to expand...
Click to collapse
this is not a human body!
it's a mobile device!
it's never that smart, but what you said was right with the NK batteries (the fact not the explaination)
recharging too often will make the calibration of the battery to be inacurate, while recharging when empty will improve it's performance.
that's it.
for Li-Ion or Li-Pol it's a different story.
cheers
so does this really influence the batterylife?

Battery drain Problem [100% to 5, then shutdown]

I am trying to determine if I have a bad battery or it's the Android costing this issue. While using my Tilt I have wifi on and was using the apps (IE: Market, XDA, etc...) the battery indicated the full charge (or what I have left) drop to 5%. Sometime it will shutdown my Tilt first and when I boot it back up it indicated that I only have 5% or less battery power. That is within 5 minutes of use.
Do I need to get a new battery or is this problem with something else?
1. battery dead.
2. software problem. I have bought a tytn II with 30Euro because it had a problem with the battery. resoft and radio update made me happy. i have 2 tytn's working perfectly. one is for testing and the other one for every day use.
cabasse_tronic said:
1. battery dead.
2. software problem. I have bought a tytn II with 30Euro because it had a problem with the battery. resoft and radio update made me happy. i have 2 tytn's working perfectly. one is for testing and the other one for every day use.
Click to expand...
Click to collapse
That is what I am try to determine, if I need to go out and buy new battery.
Battery status in the setting stated that the battery is in good condition.
What did you mean by resoft and radio?
In Android there should be an app called "Spare Parts" in the app drawer. Find this app, open it then select "Battery Information". Leave this up while charging because we need to see at what point the phone says it's charged. Normal charge level for ANY single-cell Li-Ion battery is 4.2 volts, no higher.
Once charged, disconnect charger and watch the battery voltage number. It should drop a little once off charge (maybe 4.1-4.0 volts). If it drops steeply, say 3.8 or less, your battery is bad and needs to be replaced.
It sounds like your battery is dropping WELL below the "rest" voltage sometime shortly after charging, indicating delamination inside the cell, an indicator of over charging.
I've studied quite a bit on how Li-Ion batteries work over the past year so if anyone should know, I would...
Good luck!!!
resoft = new firmware = new OS = etc
radio = 1.70.xx. = that thing required so that your tytn II work with android on it.
PoXFreak said:
In Android there should be an app called "Spare Parts" in the app drawer. Find this app, open it then select "Battery Information". Leave this up while charging because we need to see at what point the phone says it's charged. Normal charge level for ANY single-cell Li-Ion battery is 4.2 volts, no higher.
Once charged, disconnect charger and watch the battery voltage number. It should drop a little once off charge (maybe 4.1-4.0 volts). If it drops steeply, say 3.8 or less, your battery is bad and needs to be replaced.
It sounds like your battery is dropping WELL below the "rest" voltage sometime shortly after charging, indicating delamination inside the cell, an indicator of over charging.
I've studied quite a bit on how Li-Ion batteries work over the past year so if anyone should know, I would...
Good luck!!!
Click to expand...
Click to collapse
This is what I see while charging.
Battery Status: Charging (USB)
Power Plug: USB
Battery Level: 69
Battery Scale: 100
Battery Healthn: Good
Battery Voltage: 4177mV
Battery Temparature: 32.7c
It currently at 70%, I'll report back once it fully charged.
cabasse_tronic said:
resoft = new firmware = new OS = etc
radio = 1.70.xx. = that thing required so that your tytn II work with android on it.
Click to expand...
Click to collapse
I think I have either 1.71 or 1.70 radio (can't really tell sicne I do not know where to look. I have tried different OS (IE: Scoot, Fat Free, etc...) Still the same problem.
One other thing, the phone keep shutting down in the middle of me trying to use it. So, I don't know if it is related to the battery issue I have or not.
Maybe simple solution will be the best solution Back to original system (win6.1) for one day and you will see what causing problems. If everything will be ok that you doing something wrong with android. If not-battery is dead or it is another hardware problem....
@ PoXFreak - After fully charged and the batttery voltage went from 4.2 (4217mV) to 3.9 (3990mV) in less than a minute. And it keeps dropping, after a few minutes it dropped to 3.8 (3808mV - 3855mV)
BeenAndroidized said:
@ PoXFreak - After fully charged and the batttery voltage went from 4.2 (4217mV) to 3.9 (3990mV) in less than a minute. And it keeps dropping, after a few minutes it dropped to 3.8 (3808mV - 3855mV)
Click to expand...
Click to collapse
Check it out friend .
http://forum.xda-developers.com/showpost.php?p=19304818&postcount=2
tomcug said:
Check it out friend .
http://forum.xda-developers.com/showpost.php?p=19304818&postcount=2
Click to expand...
Click to collapse
OK! I disabled the background updates per the link. I'll download the widgit in a few.
look http://forum.xda-developers.com/attachment.php?attachmentid=466379&d=1292559472
klm12 said:
look http://forum.xda-developers.com/attachment.php?attachmentid=466379&d=1292559472
Click to expand...
Click to collapse
So, what is this attachment? Kernel?
klm12 said:
look http://forum.xda-developers.com/attachment.php?attachmentid=466379&d=1292559472
Click to expand...
Click to collapse
What ever that file was broke my wifi.
BeenAndroidized said:
What ever that file was broke my wifi.
Click to expand...
Click to collapse
You need to reinstall distro after such flash, but this time without applying update.
tomcug said:
You need to reinstall distro after such flash, but this time without applying update.
Click to expand...
Click to collapse
OH! I'll keep that in mind. It's a little different than what I am used to. Thanks!
OK! I have flashed kernel 2.6.25. See if that will makes any different with this battery problem.
BeenAndroidized said:
OK! I have flashed kernel 2.6.25. See if that will makes any different with this battery problem.
Click to expand...
Click to collapse
I used 2.6.25 in the past, good one so give it a try . Also, check that app I've shown you few posts ago, it shows battery usage in mA, show me your results, for me it's around 200 mA.
It looks like the battery still drain fast, it just dopped down to 1% and shutdown on me, I will download that apps once I have a chance.
BTW! How do I tell what version radio I currently have? I cannot find that info anywhere. The place where it usually will show me (Baseband version) only said HTC.

need kernal help .cant edit sys folder ?

Ok this is silly .I ordered an andida 2000 mah battery and I can't edit sys/class/power_supply/battery/full_bat . I can't even access it in terminal with Su . I tried to Change the value from 1620 to 2000 and even tried editing subfolders to But it will not stick .I tried in es explorer changing permissions editing then changing them back so nobody can write but it still reverts back .
Is this kernal related ? If it is can kozmik make it avaible to change the value via aroma ?there is only these options 1620 stock .1800 .2000.or the extended at 3500 mah .
I fear this is kicking out and charging to full capacity and that's why most batterys suck in these phones .
Anyone have advice ?
Current setup .- unlocked HTC raider . Holics 1.3 . Kozmik beta 13 . S-off .Jupunbear hboot .TWRP recovery
raidrom said:
Ok this is silly .I ordered an andida 2000 mah battery and I can't edit sys/class/power_supply/battery/full_bat . I can't even access it in terminal with Su . I tried to Change the value from 1620 to 2000 and even tried editing subfolders to But it will not stick .I tried in es explorer changing permissions editing then changing them back so nobody can write but it still reverts back .
Is this kernal related ? If it is can kozmik make it avaible to change the value via aroma ?there is only these options 1620 stock .1800 .2000.or the extended at 3500 mah .
I fear this is kicking out and charging to full capacity and that's why most batterys suck in these phones .
Anyone have advice ?
Current setup .- unlocked HTC raider . Holics 1.3 . Kozmik beta 13 . S-off .Jupunbear hboot .TWRP recovery
Click to expand...
Click to collapse
I tried accessing the "battery" folder using Root explorer, and it caused Root Explorer to FC. (S-Off, pure velocity rom, bell raider)
I have the 2000mah andida battery also, and would like to ask: Is what you're trying to do necessary? What do you expect to happen if you can successfully edit and save the changes to that file?
Well it is part of the hardware files that controls LEDs and etc . What I believe is that it is sensing a full charge at 1620 mah and kicking off . With a green led indicating so. Just like you can leave you phone on the charger all night and it won't over charge it right . HTC has made it in the folders ad. Safety net . Where I'm sure other phones have N auto detect feature .just a thought
raidrom said:
Well it is part of the hardware files that controls LEDs and etc . What I believe is that it is sensing a full charge at 1620 mah and kicking off . With a green led indicating so. Just like you can leave you phone on the charger all night and it won't over charge it right . HTC has made it in the folders ad. Safety net . Where I'm sure other phones have N auto detect feature .just a thought
Click to expand...
Click to collapse
Neat. Interesting... I wish I could help figure this out more.
raidrom said:
Ok this is silly .I ordered an andida 2000 mah battery and I can't edit sys/class/power_supply/battery/full_bat . I can't even access it in terminal with Su . I tried to Change the value from 1620 to 2000 and even tried editing subfolders to But it will not stick .I tried in es explorer changing permissions editing then changing them back so nobody can write but it still reverts back .
Is this kernal related ? If it is can kozmik make it avaible to change the value via aroma ?there is only these options 1620 stock .1800 .2000.or the extended at 3500 mah .
I fear this is kicking out and charging to full capacity and that's why most batterys suck in these phones .
Anyone have advice ?
Current setup .- unlocked HTC raider . Holics 1.3 . Kozmik beta 13 . S-off .Jupunbear hboot .TWRP recovery
Click to expand...
Click to collapse
Not working here either...
EDIT: Let me play around and get back
---------- Post added at 03:20 PM ---------- Previous post was at 03:00 PM ----------
Maqical said:
Not working here either...
EDIT: Let me play around and get back
Click to expand...
Click to collapse
Found It!..... Files permissions are set for READ only change permissions and it saves fine
im trying as well now ..do a little research on some adb commands lol .im surprised no developer has helped us out . would love to maybe just have a script to run
raidrom said:
im trying as well now ..do a little research on some adb commands lol .im surprised no developer has helped us out . would love to maybe just have a script to run
Click to expand...
Click to collapse
I don't think we know if what the OP is suggesting is even necessary for using the 2000maH battery. It would be nice to know that first. Keeping an eye on this one!
LaZiODROID said:
I don't think we know if what the OP is suggesting is even necessary for using the 2000maH battery. It would be nice to know that first. Keeping an eye on this one!
Click to expand...
Click to collapse
I am the OP lol . I emailed HTC dev. But they said we understand your need to get better battery life .but please take a hike basically
raidrom said:
I am the OP lol . I emailed HTC dev. But they said we understand your need to get better battery life .but please take a hike basically
Click to expand...
Click to collapse
LOL woops!! My bad.
http://developer.android.com/reference/android/os/BatteryManager.html
i need a script to be made from this ? its in the android.os .
i did someones suggestion to flash a new battery using the android kitchen and it seems to be better lol .just have to learn a bit of java i guess.and the command isnt in adb .
Hopefully someone will correct me if I am wrong here. But you are right, the /sys/ folder is very kernel related. They are not files that can be modified like normal. I will leave you something to do for homework! Browse the /sys/ folder and find your vibe in a terminal. Now this stuff links to your hardware, you cant open and edit the file. But you can "echo 1 > vibe" replacing vibe with the "file" of your vibe and of course no quotes. Now with your phone vibrating push a 0 to it with ........ echo 0 > vibe. Welcome to an excellent question that delves into linux hardware hacking!!!!! As for the mAH with these newer batteries, I am a lot less clear. Unless the battery has the info encoded to it, it should calculate that value from charge/discharge rate, change in battery voltage & change in time.
edit, should be able to use cat to get info btw ie "cat /sys/class/power_supply/battery/full_bat" will show its full value
Neat.
Running
Code:
cat /sys/class/power_supply/battery/full_bat
produced a value of 1620. I assume that is mAh? I currently have an Andida 2000mAh battery in my phone. Does this mean the phone isn't identifying my battery like a 2000 mAh battery? Or.. does it mean I could be missing out on extra life that this battery could offer?
Again, my normal disclaimer. I am not a pro at these things so my info may be off. The battery life SHOULD be dependant upon the actual capacity of the battery - drain rate. The phone should just monitor the voltage of the battery and shut it off when it reaches a minimum level (Lithium battery tend to not like to take a charge if drained too low). Charging is a different story as it will monitor charging rate, battery V and battery temp (Lithium batteries like to explode when too hot). Back to draining, as the batter drains its voltage drops. Now I have no clue if the OS does some sort of tom foolery and crazy calculation using batter V, capacity & discharge rate to get the percentage, or if it just reports back what percent it is between Vmax and Vmin. If its the former, you should notice its seems to last a long time when its nearly empty. if its the former it should stay slope a little bit the opposite way.
Lastly its a really long winded way to say who cares if it actually lasts longer? If it does not last any longer & reports as 1620 you probably got ripped off.
lamebmx said:
Lastly its a really long winded way to say who cares if it actually lasts longer? If it does not last any longer & reports as 1620 you probably got ripped off.
Click to expand...
Click to collapse
Yeah, it was a cheap eBay battery anyway. Haha... I wasn't expecting too much from it.
In ES Explorer if you go into settings you can change it to explore root (after granting SU permission) and then mount the system as writable. The system file defaults to read only otherwise.
raidrom said:
http://developer.android.com/reference/android/os/BatteryManager.html
i need a script to be made from this ? its in the android.os .
i did someones suggestion to flash a new battery using the android kitchen and it seems to be better lol .just have to learn a bit of java i guess.and the command isnt in adb .
Click to expand...
Click to collapse
Unfortunately, this class just represents values. You can't modify anything in it (no field setters, and the values are all declared "final", which means you can't modify them.) This class gets populated from somewhere else, and is only accessed to get values.
Like lamebmx says, I'm not so sure that value actually matters. Whether or not the 1620mAh value is hardcoded somewhere, batteries charge capacities change over time (ie worsen the older they get), and they are still able to fully charge because the charging and charging rate are based on electrical feedback from the battery charging circuit.
The charger will provide a certain number of volts at a certain regulated current, and time and test the response of the battery. Charging slows as the battery reaches it's max charge. It's logarithmic. Once the change in battery voltage growth slows to below a certain threshold, the charger will kick off. I very much doubt that the software controls the charge sensing. It might control the min and max charge current available (ie fast charge or slow charge) but I don't think it can control when the charge stops.
I might be way off here, but I've never seen a battery charger circuit anywhere for anything that has a max charge dictated by anything besides the actual voltage feedback from the physical battery.

Any interest in kernel patches to speed up USB charging?

Dear all,
As I'm still collecting more posts to reach this silly 10-posts-until-you-can-write-in-the-development-boards-limit I thought about providing useful information
So as I always wanted it I implemented a patched intel_mdf_battery that supports forcing charger currents higher than the environment suggests.
Facts:
When you connect any "real" or "smart" device to a regular USB port, it can only draw 100 mA or up to 500 mA if the host allows. This limits charging speed to about 350 mA at our Razr I (because you have to substract some amount for running the smartphone, in addition there is a ~350 mA cap in the charging chip).
Mostly all current USB ports are able to deliver much more power. In addition, sometimes you want to use a wall charger that does not correctly express its capability to deliver more than 500 mA (by shorting D+/D-).
There comes this handy patch:
By writing to an existing sysfs node for charger control (previously that featured only _limiting_ the total input current to 500 mA), you can now override the input current limit a) to 950 mA b) to 1500 mA (limit given by Razr I hardware).
How to:
Patch your custom compiled kernel with attached patch and install it
write 5 (950 mA) or 6 (no limit) to
/sys/devices/ipc/msic_battery/charge_enable
Charging current will be updated on next status update, usually every 30 seconds. Watch that update in dmesg or just see the actual charging current in
/sys/devices/pci0000:00/0000:00:00.4/i2c-1/1-0036/power_supply/max170xx_battery/current_now (or current_avg for a few seconds average)
In addition I am looking forward to implementing a charge threshold as the battery identifies itself as a 4,35V model. Being charged to 4,35 volts for prolonged time periods has a drastic negative effect on battery life! I wanna have an override because mostly I charge the device every day. Would be a lot better to use the battery from 85 to 35 percent (so max. 4,1V or so) than from 100 to 50 percent.
Is there any interest in those patches published, made nice (maybe a gui control program) or integrated in existing custom mods?
WARNING: I TAKE NO RESPONSIBILITY FOR ANY HARM DONE TO YOUR DEVICES BY USING THIS CHARGE CURRENT OVERRIDE.
YOU REALLY CAN FRY YOUR USB PORT!
(but it is very unlikely. Know about those handy charge-only usb cables that charge at up to 1A? I use them on different kinds of devices all the time and never hat any problem)
Oh, btw, attached patch also patches an ARRAY OUT OF BOUNDS write in original code! I did not look into details but i think that it did not have any effect because there are very unimportand arrays declared directly after the affected one.
thats amazing, great job.
edit: chances fo seeing this on the stock kernel without unlocked bl?
YaPeL said:
thats amazing, great job.
edit: chances fo seeing this on the stock kernel without unlocked bl?
Click to expand...
Click to collapse
Well, the changed are not that hard and so far only implemented as a proof of concept...
Using with stock kernel not possible as that original driver is compiled into the kernel, so overriding it by module loading is not possible.
Awesome!
Have you considered submitting it as a patch to Omar's kernel? github 'link': github.com/oxavelar/XT890-Kernel-Gamma
I always been interested in this kind of stuff. If you didn't read this article yet you'll find some useful information about Lithium batteries :
batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
Setting the limit up to 4200mV instead of 4350mV would approximately reduce by 10% the autonomy and double the longevity. Motorola, as many others, seem to favour autonomy You'll do a great work if you succeed in finding how to do that !
How about USB 3 ? Is the limit still 350mA ? But for USB2 I think there is no point in increasing the limit. They're talking about it here but it lacks of technical details :
batteryuniversity.com/learn/article/charging_from_a_usb_port
Maybe you'll increasing the current up to 450mA, which would be nice actually.
USB 3 should handle 900mA while transferring data. It's close to the official charger (850mA at 5,1V). Could someone tell what current usb3 deliver on RAZR i ?
I'll try to find a way to implementing your patch because i've no idea Good work !
Sorry for my English
a-m13 said:
Setting the limit up to 4200mV instead of 4350mV would approximately reduce by 10% the autonomy and double the longevity. Motorola, as many others, seem to favour autonomy You'll do a great work if you succeed in finding how to do that !
Click to expand...
Click to collapse
Yeah, I know quite good about batteries, thanks Implementing that change is very straightforward and easy, but we will need a nice app to control the settings at runtime.
a-m13 said:
How about USB 3 ? Is the limit still 350mA ? But for USB2 I think there is no point in increasing the limit. [...]
Maybe you'll increasing the current up to 450mA, which would be nice actually.
USB 3 should handle 900mA while transferring data. It's close to the official charger (850mA at 5,1V). Could someone tell what current usb3 deliver on RAZR i ?
Click to expand...
Click to collapse
As the device is USB2, the host port would fall back to USB2 also and announce 500mA capability. All Limits we talk about are total input currents. Powermanagement ICs these days are specially made for requirements with limited input current (no one is really interested in the charge current, limit is nearly always the supply as in laptops or USB devices).
Please reread my first post. We are IGNORING the USB spec and just draw more power here. That is totally fine (although not recommended and in no way guaranteed by me) for most standard usb host ports.
a-m13 said:
I'll try to find a way to implementing your patch because i've no idea Good work !
Click to expand...
Click to collapse
Well, maybe you should not You need a complete build environment for that, should take you a few days if you have never done such things. Just wait for some binary releases.
Interesting idea
Hey all!
I checked my /sys/devices/ipc/msic_battery/charge_enable and it's value is 4.
Well, can I change it manually to 5 or 6? Or it will mess with the phone?
Thanks in advance
AthlonLozano said:
Hey all!
I checked my /sys/devices/ipc/msic_battery/charge_enable and it's value is 4.
Well, can I change it manually to 5 or 6? Or it will mess with the phone?
Click to expand...
Click to collapse
It's supposed to be 4 at default.
Writing 5 or 6 without my patch will not work (will return Value Error). With a patched kernel it will do exactly what stated above, so yes, it will mess with the phone to disable USB charging limit
Please, as always, read before doing anything...
PosixCompatible said:
It's supposed to be 4 at default.
Writing 5 or 6 without my patch will not work (will return Value Error). With a patched kernel it will do exactly what stated above, so yes, it will mess with the phone to disable USB charging limit
Please, as always, read before doing anything...
Click to expand...
Click to collapse
How and where to install this patch?

Battery drains fast!

Hi!
Since last year, I got the problem that my P990 is discharging very fast. Commonly the battery needed to be charged once a day, but now it's twice, at least!
Of course, the first thing I did was to buy a new battery. It's an original LG battery, but nothing changed. I also tried one of these big batteries with 2800mAh, but even that didn't change much.
I tried several CFWs and Kernels, at the moment the phone's running on [4.4.4][P990][AOSPA] ParanoidAndroid 4.6, 2.6.39.4-Kowalski-Stable-M1 Kernel.
The strange thing is, the battery's even draining, when the phone's turned off. If it's charged to 100% and then turned off, the next day, the battery is below 1%, the phone can't be turned on due to the low charge.
I'm not sure, if it's really a software problem, there are no special apps installed, it's just the ParanoidAndroid without anything special installed.
Anyone who could help me, please?
I also suffer battery drain in "doing nothing" mode - deep sleep mostly. I even switch off mobile data. It is not normal the battery to be drained completely for about two days when the phone just stays on the table in deep sleep with mobile data switched off. Anyone could help us?
tonyp final build cm-11-20150703-final-bcmdhd-3.1-p990, firtecy kernel 3.1 exp-5 32MB RH
vanko11595 said:
I also suffer battery drain in "doing nothing" mode - deep sleep mostly. I even switch off mobile data. It is not normal the battery to be drained completely for about two days when the phone just stays on the table in deep sleep with mobile data switched off. Anyone could help us?
tonyp final build cm-11-20150703-final-bcmdhd-3.1-p990, firtecy kernel 3.1 exp-5 32MB RH
Click to expand...
Click to collapse
This phone had the longest stand-by life with temasek CM 7.1, I could go 12 hours and lose only 1-2% which is impossible with current android versions, not my SG4 or my galaxy tab 4 7" do that, they lose 3% idle in just 1 hour.
Also by this time your battery is already over 2 years. Its current capacity may be well half what it used to be when brand new. Buying a new one won't help that much because it might be at around 70-80% capacity at best because of time. Then again 2 batteries are better than 1.
if you can you should get a new phone, they are better in every way and only $150 dollars which is more than what our optimus 2x is worth now-a-days. I use it 24 hours on hooked at the back of my TV as an android TV :silly:
Justray said:
I use it 24 hours on hooked at the back of my TV as an android TV :silly:
Click to expand...
Click to collapse
i was thinking about doing this as well... can you pm me how did you hook it (which rom - i presume some of the older cm's since hdmi doesn't work on newer ones, how do you control it etc...) - thanks in advance
or maybe even better - opening a new thread in general section here and explaining all the things for everyone to see
60nine said:
i was thinking about doing this as well... can you pm me how did you hook it (which rom - i presume some of the older cm's since hdmi doesn't work on newer ones, how do you control it etc...) - thanks in advance
or maybe even better - opening a new thread in general section here and explaining all the things for everyone to see
Click to expand...
Click to collapse
Pretty simple, any stock based rom works great, old GB has HDMI with quality selector, ICS has only HDMI output at 1080i/720p.
I stuck it inside a project box and I screw it behind my TV, used the USB port on the TV to keep it powered all the time but just remember to take out the battery or it will die (puff). Charge the battery to 100% then store.
Caution, not all USB ports form TVs are friendly so do like me and cut the data lines and use only the red/black wires (outer pins in the USB).
Lastly a mini keyboard with touch pad is what I use to control it... and a iPega gamepad for gaming. Doesn't work in GB stock roms so you got to use ICS/CM roms for it to work.
P.M. If you got any doubts
Justray said:
Pretty simple, any stock based rom works great, old GB has HDMI with quality selector, ICS has only HDMI output at 1080i/720p.
I stuck it inside a project box and I screw it behind my TV, used the USB port on the TV to keep it powered all the time but just remember to take out the battery or it will die (puff). Charge the battery to 100% then store.
Caution, not all USB ports form TVs are friendly so do like me and cut the data lines and use only the red/black wires (outer pins in the USB).
Lastly a mini keyboard with touch pad is what I use to control it... and a iPega gamepad for gaming. Doesn't work in GB stock roms so you got to use ICS/CM roms for it to work.
P.M. If you got any doubts
Click to expand...
Click to collapse
good... i'll play with this when i catch some free time... thanks :good:
Which rom exactly did you use? Just need full HDMI Support and stable rom. i dont care about gaming performance or something like this.
Battery problem is such a disaster for android users I have found this nice Best portable chargers and power banks review page here check out before buying one !!!

Categories

Resources