[Q] Battery Query - Tilt, TyTN II, MDA Vario III Android Development

I dono how many have noticed this and discussed about it, i cudnt find it anywhere.. so here i'm posting it.. when i have android installed it shows i got 40% or so battery and wen i install windows on nand after wiping out android frm nand (which takes max 10 mins) in windows it shows battery is 0%.. and it shuts down
I mean in android its 40 or above and in windows its 0? is windows reading wrng battery status or android mistaking somewhere?

arvinchugh said:
I dono how many have noticed this and discussed about it, i cudnt find it anywhere.. so here i'm posting it.. when i have android installed it shows i got 40% or so battery and wen i install windows on nand after wiping out android frm nand (which takes max 10 mins) in windows it shows battery is 0%.. and it shuts down
I mean in android its 40 or above and in windows its 0? is windows reading wrng battery status or android mistaking somewhere?
Click to expand...
Click to collapse
Battery tick count calculation is different in both OS (I think, maybe). Though there is no effect on battery backup if you fully charge batteries whether in android or in WM.
I had 63 % of battery once when I tried to move back to WM. I got battery on 7% in WM first boot after installation. I fully recharged and my phone lasted 3 days, same as the time span I get on Warbyte's donut.

Yes, battery accumulated charge measurement is different in windows and linux. Usually this is not a problem for NAND users, but it is annoying for HARET users.
The battery charge accumulator in Windows has a value about 2.2 times as high as in Linux. So, in Linux, 2160 means the battery is full, but in Windows, full is about 4752. When your battery is 30% full in Linux, that is 30% of 2160 = 648. When you boot back into Windows, 648 = 13%. Maybe it's not that simple, but we don't have a lot of data.
When changing from Windows to Android or Android to Windows in NAND, it is best to pull out the battery between flashing and rebooting. Both operating systems detect this and recalibrate the battery level based on voltage.
The same advice is given when returning from Android to Windows, with Android running from HARET. Pull out the battery before rebooting to Windows, and the battery calibration will be correct.
However, when booting into Android using HARET from Windows, there is no opportunity to pull the battery. We had two choices: either force a calibration in the Linux kernel at bootup, or adjust the Windows charge level by the factor of 2.2. I chose the latter, and implemented an optional kernel parameter haret_divisor. This parameter has a default value of 0, but when you are preparing a haret boot, atools gives it a value of 2200. When Linux boots with haret_divisor nonzero, it adjusts the accumulated charge register by 1000 / haret_divisor, effectively dividing it by 2.2. Since I had very little empirical data backing up the value of 2.2, I made it adjustable.
I hope this explanation helps. Again, for your case, reflashing NAND between Windows and Android, please pull out the battery before the first boot of the new operating system. It is not sufficient to open the SIM card door: you have to actually take out the battery, so that the circuitry detects a reset.

Related

Kaiser Battery Status [kernel mod]

NOTE: I don't post kernels here anymore: look for my changes in the standard kernel now.
This thread is still useful for battery discussion, if you like.
I have gotten tired of seeing my battery go from 90% to 15%.
Why can't it go smoothly from 100% down to 5% or less, and back up again?
Why does nbheditor have to apply a 1.6 multiplier for battery capacity?
Can we get the temperature sensor working?
I'd like to get this fixed, and would welcome discussion.
First, in the new or old kernel, the battery status is managed by the file:
kernel/arch/arm/mach-msm/board-kaiser-battery.c.
I have several proposals:
a) Change the default KAISER_BATTERY_RATING to 1350, since the equations really do work out correctly, that the rating should match in mAh. Note: in the kernel, that's 2160 = 1350 * 1.6.
b) Add a thirty second maximum for voltage and current, before using them to guess the battery level. At first I used averaging, but maximum works better for old batteries.
c) When booting from HaRET, scale the battery level because Windows does it different. I don't understand how Windows does it, but I have figured out a scale factor that works.
d) When the ds2746 reports that it has lost power, assume that the battery may have been changed, and do a coarse recalibration based on voltage and charge current.
e) Eliminate the minimum of 15%: let the meter go all the way to zero.
f) Allow battery level to be set to any value at any time.
g) Report what the kernel thinks the capacity should really be.
h) Use ds2746 units directly since nbh-editor already scales mAh to units.
Also, questions:
1) How to convert the thermistor resistance (I think it is aux0r) to temperature?
2) Would be nice if the dynamically-adjusted capacity could be stored in flash. I don't know how to do that, but I know how to report it.
3) Should we have an option on the boot menu to manually set the battery level?
I have edited the new 2.6.34 kernel to act as I propose.
Since the modules must match the kernel version you are using, I have included modules separately.
Warning though that, although it seems to work properly for me, it might do bad things for you, especially to your phone's battery. In particular, the Polaris needs to be tested since I don't have one.
NBH file: for NAND install. Use nbheditor to edit, but put your battery's capacity under "advanced settings". For attempt #6, you can use the standard setting.
ZIMAGE: for HaRET install. Edit your default.txt to contain:
board-kaiser-battery.battery_capacity=2160 (your true battery capacity in mAh * 1.6)
board-kaiser-battery.haret_divisor=2200 (use a WinMo -> android scale factor of 1000/2200)
CAUTION: The 2.6.25 NBH images probably don't work. I'll have to learn how to make them!
NOTE: Attempt #7 and later are in the standard kernel, so are no longer posted here.
just setting this up on Incubus26Jc's Super FroYo 2.2 [Deodexed] [RLS15] [9/3/10]. I will let you know how it goes.
WOW, I´m glad somebody finally took this matter as serious as it is I´m not saying that others guy in here haven´t provided advice on this, it is just that nobody, afaIk hadn´t come with a "downloadable" solution, the only thing close to a real fix to me was to use the nbh editor and put the recommended capacity for my battery, it helped a lot to be honest cuz I used to get no more than 15 minutes of battery life, and after that I can use it for a few hours, unless I turn wifi and bluetooth of course, then it gets down to 15%, well I hope this really works cuz I´v been strugling with this for more than a month and I love android so much that I flashed on nand even though I knew about this problem, and I was about to give up on this, (was I?), thanks for this, I hope we get good results!!!
Isn't it that the latest kernel for froyo is 2.6.32? Is that your own build?
I wanna try your version. So far, how does all features? How is it compared to DZO's kernel?
More power!
Ok so I had lockups with Incubus26Jc's Super FroYo 2.2 [Deodexed] [RLS15] [9/3/10], I am loading up dzo's current Froyo and his 9-9-10 kernel for some base testing then I will install your kernel and updates and test again.
So, how do I install this? i mean, do I:
1- flash the new nbh.
2- install theandroidupdate.tar
done? I mean, do I have to do the whole "calibration dance" with it again or something? Or after i do this it will (in theory) perform as normal as it should? btw my battery is about a month old, so I guess if i put 2000 in advance mode, (not mah) it would be ok, right?
ps: I have donut installed, so I guess it might not work, but heck I´ve got to try this anyways, so I´ll go ahead and install it, in case it works, would you be able to tweak a donut kernel for us?. thanks in advance.
zack, how is it?
so far with dzo's latest froyo build and the attached kernel and update things have been very stable, however the battery is at 100% constantly. hopefully this will change as the battery is drained and recharged.
The kernel is dzo's with the experimental battery file.
Not ready for prime time. If your configured capacity is wrong, it gets calibrated as you run, but the calibration is not remembered when you reboot.
Sent from my Full Android on Vogue using XDA App
I'm looking for opinions on the individual questions in the first post. Especially, does anyone know how the kernel can store battery_capacity s it remains persistent after reboot?
If you search dmesg output for ds2746 you can see what the current capacity is.
Sent from my Full Android on Vogue using XDA App
I´ve installed it and after a while of letting both wifi and bluetooth on, it finally died and showed me 1% left and powered down all by itself, I had never seen 1% left on android, so that´s a good thing I guess, but after I connected the charger it started charging just fine, but in the console after typing dmesg it tells me that the battery has 4079mv and 54/3200 units, but I think that if the battery has 4079mv, it means it is fully charged, am I wrong? if anybody reads this please confirm this because I put it is still charging I don´t want my kaiser to blow up on me, lol. thanks.
ps: while charging it isn´t showing the amber led, but it has a red blinking led as when the battery is completely empty and not charger is connected (but in android the battery icon has the charging animation).
elander said:
I´ve installed it and after a while of letting both wifi and bluetooth on, it finally died and showed me 1% left and powered down all by itself, I had never seen 1% left on android, so that´s a good thing I guess, but after I connected the charger it started charging just fine, but in the console after typing dmesg it tells me that the battery has 4079mv and 54/3200 units, but I think that if the battery has 4079mv, it means it is fully charged, am I wrong? if anybody reads this please confirm this because I put it is still charging I don´t want my kaiser to blow up on me, lol. thanks.
ps: while charging it isn´t showing the amber led, but it has a red blinking led as when the battery is completely empty and not charger is connected (but in android the battery icon has the charging animation).
Click to expand...
Click to collapse
Do not worry. Nothing will happen to your phone. Electronic circuits inside the battery takes care of it. You have to repent attention to the current charge (mAh). When the value falls below 200mA, then the battery is full.
I've had two crashes (phone totally frozen, unresponsive) when on charger and full battery. Probably a coding error somewhere in this experimental file.
I'm also wondering which phone models use this source file?
Do some of them perhaps have different resistor values?
Do we have any historical information about why 10M Ohm was chosen as a resistor value, rather than 15 or some other value?
Millence said:
Do not worry. Nothing will happen to your phone. Electronic circuits inside the battery takes care of it. You have to repent attention to the current charge (mAh). When the value falls below 200mA, then the battery is full.
Click to expand...
Click to collapse
Thanks for replying, I know that the battery has some sort of sensor built in that tells the OS when it is full, but since we are dealing with calibration here (a.k.a I don't know when it is full or empty) I kinda freaked out a bit there, but thanks to your answer I feel (a little) relieve, the thing is that it's been plugged for more than two hours (I had to unplugged it cuz I had to return home from work) and dmesg still says something like: 4180 mv 145mah 50/100 (1604/3200 units) so when you told me about the current charge below 200mah you meant the number that appears on dmesg right after the (4180)mv? in this case it is 145mah, if so, does that means that the battery is already fully charged? cuz according to android it is only like 52% full. should I leave connected or should I unplug it (it is already unplugged just in case,lol). thanks.
It depends. It looks like your battery currently has 1002 mAh of charge, out of 2000 mAh. I doubt that you have a 2000 mAh battery. If you really have a 1350 mAh battery, you are more like 75% full.
I chose a lower limit than 200 mA for when the kernel thinks you are 100% full based on charge, since my phone charges at under 200 mA when connected to a computer, regardless of how full it is.
Please include what kind of phone you have. Otherwise I will assume you have a Kaiser.
n2rjt said:
It depends. It looks like your battery currently has 1002 mAh of charge, out of 2000 mAh. I doubt that you have a 2000 mAh battery. If you really have a 1350 mAh battery, you are more like 75% full.
I chose a lower limit than 200 mA for when the kernel thinks you are 100% full based on charge, since my phone charges at under 200 mA when connected to a computer, regardless of how full it is.
Please include what kind of phone you have. Otherwise I will assume you have a Kaiser.
Click to expand...
Click to collapse
I do have a Kaiser, and I do have a 1350mah battery, and as you said on the first post I edited the nbh to 2000 capacity using the nbh editor, so did I misunderstand first post and instead of 2000 capacity in advance mode I should have put 1350mah in simple mode, or should I have put 1350mah in advance mode in order to make android recognize the capacity of my battery? cuz as I see it now it seems it is the other way around now, cuz before android used to think that the battery was full when in fact it wasn't and now even when full android thinks it is not.
Put the battery rated capacity (1350) in the advanced setting, so it won't be multiplied by 1.6.
The conversion from dmesg units to mAh is: 625 x units / 1000 = mAh. Probably dmesg should show mAh so we don't have to calculate.
Sent from my Full Android on Vogue using XDA App
I am trying to use this kernel with cyanogen build, but it does not boot.
When I start haret it hangs. It moves the staus bar to the bottom of the screen and then freezes. (I can only reset via stylus os sim card cover)
The files I have in andboot are:
zImage-2.6.32-froyo-06-09-10_22 - the original zImage
initrd.lzma
zImage - the zimage with the battery fix
androidinstall.tgz - cyanogen install pack
androidupdate.tgz - update for the battery fix
startup.txt - modified for the battery test (zImage name and battery capacity)
haret-for-kernel-2-6-32.exe - haret
my startup.txt file is:
Code:
#alloctest 0x2000
set RAMSIZE 0x08000000
set RAMADDR 0x10000000
set FBDURINGBOOT 0
set MTYPE 1553
set KERNEL zImage
set initrd initrd.lzma
#
# The following kernel parameters are useful
# ppp.nostart - Set ppp.nostart=1 to disable starting the ppp connection on boot
# msm_sdcc.msmsdcc_fmax - The maximum frequency (in Hz) used by the SD controller
# pm.sleep_mode - The mode used when the phone is off
# 0=Power Collapse Suspend, 1=Power Collapse, 2=Apps Sleep,
# 3=Slow Clock and Wait for Interrupt 4=Wait for Interrupt
# Default is 1, use 1 for best power savings
# board-htckaiser.panel_type - Panel type used to power the panel off and on
# 0=Don't power off the panel (Default)
# 1=Sony 2=Topoly 3=Topoly (probably just the same as 2)
# lcd.density - Defaults to 160, 128 shows more on screen
#
set cmdline "ppp.nostart=0 pm.sleep_mode=1 mddi.width=240 mddi.height=320 no_console_suspend board-kaiser-keypad.atttilt=2 board-htckaiser.panel_type=1 hw3d.version=1 board-kaiser-battery.battery_capacity=1350 board_htckaiser.pmem_size=4 board_htckaiser.pmem_adsp_size=1 clock-7x00.a11=500"
boot
do I need to use another haret or initrd?
yesterday I left the phone connected to the charger all night and when I woke up (about 5hours and 30 minutes later) it had the green light turned on so it means that it got charged full, and dmesg gave something like this: 4180mv 28mAh and 100/100 (2076/2076 units) I gotta tell you, I had never seen such "low" values on units, its kinda strange, anyways I unpluggued it and went to work, so here I am, I´ll report back in a few hours after I stress this thing a bit to see if it really got all the "juice" the battery can take.
ps: I haven´t tried putting the 1350 (MAh) in advance setting, because since it says that it is charged (I know it may still be wrong) I decided to give it a go to see how it works with the current settings, after finishing testing this, I´ll try with 1350.
I don't know the HARET problem, sorry. Everything you are doing looks right to me. Perhaps you need to wait until this experiment is mature enough to be in a dzo kernel. Sorry!
Sent from my Full Android on Vogue using XDA App

XDAndroid and Touch Pro 2 battery life

I just started running the latest (not sure what it is, but I got it this weekend - 10/30/10) version of XDAndroid.
I am a little disappointed with the life of the battery... I charged it fully last night and drove to work with it in the car charger. I don't take my cell phone into work, so I put into airplane mode and left it in a cool area (like have always done with the same phone running WinMo 6.5.) I checked to make sure there were no apps running also.
When I went out for lunch, I was surprised to find that the phone was still warm and the battery indicator was down 25%. After lunch (I did not even use it) the phone was warning me that it only had 15% life left (and it was still warm.)
I put it into airplane mode after lunch - we'll see where is stands on my way home, but my guess is that it will be completely dead.
The same phone running WinMo 6.5 (and the same battery) can last for days like this...
Is this a common problem? (I have not found anything to this effect other than the battery meter being unreliable.)
Is there something I could check or do?
I am using the app to launch the OS and it has my over-clocking set at "Medium" ("Hi" froze my phone.) I'm planning on trying "Normal" tomorrow to see if there is any difference in battery life.
thanks in advance,
Jordan
There's gotta be something running in the background, otherwise the phone would be cool.
Make sure you're completely up to date - some of the bundle packages have old pieces in them. Sometimes it's OK, other times it means your build is very outdated.
I dropped back to the overclocking level before medium, made absolutely sure that all processes were stopped, and the battery was completely dead. It had been on charge until around 10:00 and in Airplane mode with all processes stopped. I checked it around 5:00, but the battery was already dead, so I don't know when it actually died.
Format SD card using any other third party program like Panasonic SD Formatter or what have you > Go here http://sites.google.com/site/androidport/downloads/archive and download any old Android build (Except for Sense 2.1) > Manually update kernals and rootfs > Uncheck Ovclock (Or take out the OC command line in the startup.txt and check the manual startup.txt from the launcher app) > Boot.
You should have great battery life now and phone should stay cool and go into deep sleep (Green LED light).
So are you saying that overclocking is causing the battery life to drain quickly? I can turn it off with the installer that I am using.
jordanthompson said:
So are you saying that overclocking is causing the battery life to drain quickly? I can turn it off with the installer that I am using.
Click to expand...
Click to collapse
Well it would stand to reason that OVERclocking a processor would degrade battery life & stability.
well to be honest you are not going to get great battery life out of android on the tp2...yet. On WM with normal use I get about a little over a full day, android max is like 7-8 hours. The battery life has made great strides though recently and I'm sure will eventually be usable for a full day.
Try a program from the market called juice defender, it literally doubles my battery life when running android, should help with your heat issues as well
Thanks very much for the helpful advice - I'll look for it tomorrow and let you know how I make out
iamterence said:
Format SD card using any other third party program like Panasonic SD Formatter or what have you > Go here http://sites.google.com/site/androidport/downloads/archive and download any old Android build (Except for Sense 2.1) > Manually update kernals and rootfs > Uncheck Ovclock (Or take out the OC command line in the startup.txt and check the manual startup.txt from the launcher app) > Boot.
You should have great battery life now and phone should stay cool and go into deep sleep (Green LED light).
Click to expand...
Click to collapse
Is it really necesarry to manually update the kernals and rootfs or can sov's XDAndroid startup utility be used to update them?
slapshot30 said:
Is it really necesarry to manually update the kernals and rootfs or can sov's XDAndroid startup utility be used to update them?
Click to expand...
Click to collapse
Its not really necessary, but you'll know for a fact that your build's up to date. Thats what I do anyways.
iamterence said:
Its not really necessary, but you'll know for a fact that your build's up to date. Thats what I do anyways.
Click to expand...
Click to collapse
Am I correct with these steps on how to do it manually?
1) Download the latest kernal and rootfs that you want to update
2) Unpack the rootfs file to desktop and copy it into andboot and rename it rootfs and delete the old one.
3) Unpack the kernal to the desktop and send the module into andboot but DO NOT rename (Delete old).
Rename the zImage file to just zImage and put it into andboot and delete the old one.
lemeiux1 said:
well to be honest you are not going to get great battery life out of android on the tp2...yet. On WM with normal use I get about a little over a full day, android max is like 7-8 hours. The battery life has made great strides though recently and I'm sure will eventually be usable for a full day.
Try a program from the market called juice defender, it literally doubles my battery life when running android, should help with your heat issues as well
Click to expand...
Click to collapse
My tp2 oc'ed at 768 runs for days in android. maybe its cuss i got the rhod400?
immson said:
My tp2 oc'ed at 768 runs for days in android. maybe its cuss i got the rhod400?
Click to expand...
Click to collapse
Days? In Android?!? You must not be doing... anything. Plus have every radio turned off or something.
Wistilt2 was saying he was getting around 36 hours at peak, but that was basically all sleep.
I get 10 hours if I'm lucky, but lately it's just been dying out of nowhere and shutting off completely. Not sure what's up with that...
lemeiux1 said:
well to be honest you are not going to get great battery life out of android on the tp2...yet. On WM with normal use I get about a little over a full day, android max is like 7-8 hours. The battery life has made great strides though recently and I'm sure will eventually be usable for a full day.
Try a program from the market called juice defender, it literally doubles my battery life when running android, should help with your heat issues as well
Click to expand...
Click to collapse
The settings in that app are kind of confusing. Which settings do you use and do you use the free version or paid version. It seems some features are blocked out on the free version, do I really need the ones blocked out?
Manually Updating XDAndroid & Power Management
slapshot30 said:
Am I correct with these steps on how to do it manually?
1) Download the latest kernal and rootfs that you want to update
2) Unpack the rootfs file to desktop and copy it into andboot and rename it rootfs and delete the old one.
3) Unpack the kernal to the desktop and send the module into andboot but DO NOT rename (Delete old).
Rename the zImage file to just zImage and put it into andboot and delete the old one.
Click to expand...
Click to collapse
Your post may seem OT but since current updates can be related to better power management its very relevant.
1) Yes, if you are getting:
Kernels & modules from dev glemsom: http://glemsom.users.anapnea.net/android2/htc-msm-linux/
Rootfs from dev stinebd: http://files.xdandroid.com/rootfs/
2) After unpacking / extracting rootfs-xxxx.zip either on desktop or Rhodium (using 7-Zip for WM [it's Free]) rename it "rootfs.img"
3) Yes. You can also unpack / extract the kernel & module archive htc-msm-linux-xxxx.tar.bz2 on Rhodium using 7-Zip for WM.
Equally important is using latest XDAndroid System. If your using Sov's Startup utility (make certain your using latest version as of this post 1.3.1) and his latest "reference" build, not Blazin, you will be current with the latest XDAndroid System [2.2] [25-10-10] (Oct. 25, 2010) FRX02 aka system.ext2 NOTE: If you update the system file you will need to delete the data.img file and that means loosing all your configs, downloads, & customizations. Using Titanium Backup makes this a little less painful.
Battery life is directly related to how you use your device. Some power hogs include overclocking, videos, and services such as GPS, WiFi, Data, & Voice. Many concerned with extending battery life underclock. Personally I don't subscribe to OC or UC.
arrrghhh said:
Days? In Android?!? You must not be doing... anything. Plus have every radio turned off or something.
Wistilt2 was saying he was getting around 36 hours at peak, but that was basically all sleep.
I get 10 hours if I'm lucky, but lately it's just been dying out of nowhere and shutting off completely. Not sure what's up with that...
Click to expand...
Click to collapse
mine too, i updated it like half a month ago. i guess somehow it glitched and had super battery. anywhere from 6 to 8 hours is what i get until out of no where, nothing.
jordanthompson said:
I just started running the latest (not sure what it is, but I got it this weekend - 10/30/10) version of XDAndroid.
I am a little disappointed with the life of the battery... I charged it fully last night and drove to work with it in the car charger. I don't take my cell phone into work, so I put into airplane mode and left it in a cool area (like have always done with the same phone running WinMo 6.5.) I checked to make sure there were no apps running also.
When I went out for lunch, I was surprised to find that the phone was still warm and the battery indicator was down 25%. After lunch (I did not even use it) the phone was warning me that it only had 15% life left (and it was still warm.)
I put it into airplane mode after lunch - we'll see where is stands on my way home, but my guess is that it will be completely dead.
The same phone running WinMo 6.5 (and the same battery) can last for days like this...
Is this a common problem? (I have not found anything to this effect other than the battery meter being unreliable.)
Is there something I could check or do?
I am using the app to launch the OS and it has my over-clocking set at "Medium" ("Hi" froze my phone.) I'm planning on trying "Normal" tomorrow to see if there is any difference in battery life.
thanks in advance,
Jordan
Click to expand...
Click to collapse
As long as I observe, in my case at least, the screen's backlight never turns OFF. The screen became black, but the light behind it is always ON, the only way to see this is in complete dark, otherwise all you can see is a black screen. Try it. In my case I'm shure this is at least one reason for short battery life under xandroid on my tp2. Interesting under windows the screen backlight is turning OFF in stand by mode.
As long as I observe, in my case at least, the screen's backlight never turns OFF. The screen became black, but the light behind it is always ON, the only way to see this is in complete dark, otherwise all you can see is a black screen. Try it. In my case I'm shure this is at least one reason for short battery life under xandroid on my tp2. Interesting under windows the screen backlight is turning OFF in stand by mode.
Click to expand...
Click to collapse
I'm know what you mean i also have this same problem. When I first loaded Android 2.2.1 onto my SD card the sleep mode was working correctly for around 1 week or so. During that time I had a few crashes of Android, due to applications etc, and now its like u said. The screen is black but still 'on' in sleep mode.
Sent from my MSM using the XDA mobile application powered by Tapatalk
Just to add another field report...
I installed the "Battery Left" Widget, wich logs battery life and calculates an average. I'm always running on 3G or even WiFi if I am at Home and my average is about 30 hours a charge. If i'm doing nothing it gets this maximum battery life. But in normal day use with writing an email sometimes and doing a call it's about 10-12 hours. If i am at work and i use Navigation between my customers (between 1 and 3 hours one way), i always charge the phone while navigating and deactivate GPS when i'm not using it, i get 10 hours with a full charged battery at the morning. Currently i'm using the 11/24 kernel and the 11/08 rootfs modified to fit my german keyboard layout. Furthermore i'm using the newest combination of [ACL]'s tweaked 3D Driver and gralloc. No overclocking (no need for that, caus android is running good at stock speed) and pm.sleepmode set to 1.
Hope that is not a useless reply
Cheers
Hi sounds Nice.
Can u send me your updates files ?
German keyboard is nice for me.
Mit freundlichen grüssen

[Q] Batery life and where to instal android

Hello.
I've just installed android on my HTC Tytn II (Not so Super Froyo Release).
It is very nice but the battery life is very short. I don't think that i can manage for one day without recharging. I think a couple of hours just. Is there something i can do to improve this? When i entered the #*#*4636*#*# it says that the android system is the one that keeps the processor running when in stand by. what can i do?
And another question. How is it better to install. On nand system and data? For now, i've installed data on external data.img. But there is not much room for aplications. Is it better if i install data on sd partition? And if so....how do i do that?
blacki3 said:
Hello.
I've just installed android on my HTC Tytn II (Not so Super Froyo Release).
It is very nice but the battery life is very short. I don't think that i can manage for one day without recharging. I think a couple of hours just. Is there something i can do to improve this? When i entered the #*#*4636*#*# it says that the android system is the one that keeps the processor running when in stand by. what can i do?
And another question. How is it better to install. On nand system and data? For now, i've installed data on external data.img. But there is not much room for aplications. Is it better if i install data on sd partition? And if so....how do i do that?
Click to expand...
Click to collapse
If the processor is still running while in standby then that means you have a widget or program running that's preventing the phone from going to sleep. When you install an app in Android always look for "Prevents Phone from Sleeping" where the app installer says what the app requires to access.
Also, as I have said in the help thread, there is nothing you can do about the battery life. It's Kernel related and being investigated, so until that time unfortunately battery life is very short because the phone's CPU while not in standby runs at 100% speed, unlike all other android phones which decrease their CPU speed and voltage when they are idle (sitting at the home screen or even checking emails).
Also, if you are installing into a data.img file on your SD Card, you should have about 256MB of usable space in /data, if you are running out of space with just a few applications, then you are still installing on NAND, as it only has about 90-100MB available depending on how you have your NAND partitioned, please verify that you have fstab set correctly in atools and re-flash your firmware so that it reads the /data partition under data.img instead of NAND p3.
BEst thing to do if you are wanting to install /data on SD Card (or data.img), is have /system on your NAND for best performance when Android is loading from boot. For quick performance, you should have /data and /system on NAND. For more space and stability, go with /system on NAND and /data on either SD Card partition or data.img.
Thank you for the answer.
I have another problem...when i'm recharging the phone...it says that it is fully charged at 90%.
blacki3 said:
Thank you for the answer.
I have another problem...when i'm recharging the phone...it says that it is fully charged at 90%.
Click to expand...
Click to collapse
That means there is a incorrect battery calibration number in the kernel. Run atools and check under Battery Settings > Advanced Settings. If you have a 1350mAH battery (noted on the battery itself), input 2160 units.
If you have any other type of battery, take that battery's mAH and multiply it by 1.6 to get the battery units. If the battery continues to stop at 90% after making that change, and the battery is old, then the battery may be losing it's charge and can only sustain up to 90% of it's core charge.
Thank you. now i'm trying with 2160 set in atools. i will inform you if something is wrong
Another question. How can i see the battery status in %?
i think now it's ok. but still the battery life is very short. and somethig is keeping the android from sleeping but i don't know what. when i enter in the *#*#4636#*#* it says that the "android system" is the one that prevents from sleeping.
And another question. What is the difference between panels. If i am installing with panel 1 the screen looks very bad. Now i've installed with panel 3 but i don't see any difference from panel 2. It is ok that i've installed with panel 3 or should i use panel 2?
I need to know how you set your phone up, including kernel, system/data partitions, which build you used, what radio you're using, anything that could help me investigate further.
I have 2 AT&T Tilt phones, one for daily use and the other for testing purposes only. (nice to have friends with connections, I got them both for free).
My current "daily use" phone will use about 1/2 battery per day with moderate use (texting/Pandora/phone calls) and will last 3 1/2 days if I just let it sit in standby. 3G is enabled and I use Rogue Tools to O/C to 480. I get almost no FC errors and everything works as it should. (The only FC I get is with ADW, which I press "wait" and it comes right back). I was able to set up my phone on the wireless domain at work and ported my work email to it.
Again, I would need to know what you're running as it sounds like your phone is not actually "sleeping" when it should.
PoXFreak said:
I need to know how you set your phone up, including kernel, system/data partitions, which build you used, what radio you're using, anything that could help me investigate further.
I have 2 AT&T Tilt phones, one for daily use and the other for testing purposes only. (nice to have friends with connections, I got them both for free).
My current "daily use" phone will use about 1/2 battery per day with moderate use (texting/Pandora/phone calls) and will last 3 1/2 days if I just let it sit in standby. 3G is enabled and I use Rogue Tools to O/C to 480. I get almost no FC errors and everything works as it should. (The only FC I get is with ADW, which I press "wait" and it comes right back). I was able to set up my phone on the wireless domain at work and ported my work email to it.
Again, I would need to know what you're running as it sounds like your phone is not actually "sleeping" when it should.
Click to expand...
Click to collapse
So...the radio is 1.70.09.1 or something like that, the latest 2.6.32 kernel. android build is valentine. I am using system on NAND and data on data.img. now i can use the phone for a full day of use but i have other problems. when i charge the phone it freeze and white screen appears. Usually i left for charge at night so in the morning i find it with white screen.
Can u please tell me what are you using so i can use to?
Thank you in advance
Battery life
blacki3 said:
So...the radio is 1.70.09.1 or something like that, the latest 2.6.32 kernel. android build is valentine. I am using system on NAND and data on data.img. now i can use the phone for a full day of use but i have other problems. when i charge the phone it freeze and white screen appears. Usually i left for charge at night so in the morning i find it with white screen.
Can u please tell me what are you using so i can use to?
Thank you in advance
Click to expand...
Click to collapse
I've the same problem of battery life, can you tell me how to improve the fix for this issue...thanks

[Q] The Good and the Bad of battery life

I have been able to get 28 hours and 3.5+ hours screen on time out of my Galaxy Nexus (OEM extended). I have also barely made 8 hours of battery life. The difference seems to be whether or not Media Storage/Media Server is running. When it is running, I lose 10% battery per hour even if I don't touch the phone. If it is not running, I lose 1% or less of battery per hour (by less I mean I've actually seen my battery remaining INCREASE). I can get 20+ hours of battery life by simply force closing Media Storage, clearing the data used by the process, and rebooting the phone. If I let it run, I need my charger ASAP. I have seen posts about corrupt image files or .dat files. This is a relatively new phone for me so I don't have many of these file types. Could it be possible that one or more are corrupted? Is this the only possible way that Media Server gets into the Wake Lock state? I am running Codebase Android 3.8 and Franco r300 nightly. Any help or suggestions will be appreciated.

Wrong state of charge calculation by android

I've i9195 with stock battery and rom, all was normal. Then I replaced it with double sized battery+new back cover. Not a microUSB batterycase. After many cycles and weeks of use it still didn't calibrated to new capacity. Fully charged battery lasts about a day and phone shuts down. If I switch it back ON after couple of minutes - I see 50% charged and can use phone another day.After second 'full discharge' I'll have about 15% more. All techniques for 'calibrating' battery with deleting batterystats doesn't work. Charge, off, remove bat, wait, place it back - either. /sys/class/power_supply/battery/uevent have string POWER_SUPPLY_ENERGY_FULL=1940000000 and it is always the same. So phone simply downcount from this level and tells that charge is 0% while voltage is about 3.7v. Interesting that "energy_full" file has number of 3880000000 but it seems that it's not used in calculations.
After all I installed CWM, root, cyanogenmod 11 and used it for about a week. SAME problems, except that "energy_full" is 1940000000.
I want to solve this very much, I can program or recompile kernel, if needed. It's pm8921 charger ic there. Maybe this number was programmed in it in factory mode or smth. Maybe threis a way to correct it. Thanks in advance.
Same here with stock-rom, CyanogenMod and MoKee's rom.
I think the only way will be to recompile the used kernel with the correct value of 3880000000 instead of 1940000000 in file "drivers/power/pm8921-bms.c" in kernel sources (function "calculate_fcc_uah", part "scalefactor". Scalefactor has to be change into scalefactor *= 2.
Huge work for a little problem...
Instead of making any advanced config, have you tried this little app (needs root privileges)?
https://play.google.com/store/apps/details?id=com.nema.batterycalibration
After migrating to CM11 my battery was draining very fast. I used this app and it apparently fixed a part of the issue (battery still drains fast, but not as fast as before).

Categories

Resources