yashsingh1/xdaforums huggingface dataset:
[HD Mini Android Development] tzacapaca:
hi codiak

if u know any tips from your HD2 experience on fixing high battery drain pls share it with us :)

i read few things on xda which caused battery drain for HD2,maybe is the same for us:

1.sd card power management must be enabled in WM(so it will go to "sleep" too when phone is in suspend i guess)many guys checked sd card power usage and they had from 5 to 60 mA usage in suspend :O (higher class,higher usage)-->proof: http://xdaforums.com/showthread.php?t=770903

2. there is a key light driver on Android 2.2 which is made before Aug 2010 which is found to be using a lot of power. name of this is lights.qsd8k.so

source: http://xdaforums.com/showpost.php?p=7949689&postcount=42

r0bin pls check if any of this are helpful for u,if not i'll keep searching for a solution ;)
[HD Mini Android Development] -r0bin-:
thanks tzacapaca, i will check your links later.

i already found a cause of battery drain:

r150 "fix" is adding 50mA of drain in suspend mode... because it prevents the usb switch hardware to be deactivated on suspend mode.

i compiled a "test" kernel without this fix, it seems to run better now.

note: in this kernel, the batt computation is available in suspend mode, refreshed every 10 seconds.

you should be able to see the difference now :)

keep me updated if it solves batt consumption in suspend mode, for me it does!

(i get 10mA in suspend mode)
[HD Mini Android Development] tzacapaca:
that was the FASTEST fix i ever seen :eek:

so my result is 26mA in suspend mode,120mA while on

(i guess now results depends on sd card and installed apps since phone doesn't go on deep sleep)btw cpu spy showed deep sleep mode for few sec then dissapeared and most of time CPU stays on 245 mHz,not lower..so thats a draining cause too

ANYWAY WELL DONE ROBIN!!

we are getting closeeeeee :D
[HD Mini Android Development] schlund:
you think, r0bin has tried out, who is wrong ? :)

EDIT: i know you want an explanation, so this vbus hack by cotulla is only enabled on device init to have the possibility for early debugging on kernel. its only set up once.
[HD Mini Android Development] codiak:
Nice! I am down to 5mA on standby (flight mode) with that kernel!
[HD Mini Android Development] tzacapaca:
UPDATE: I replaced card and now i have 4 mA in suspend mode!!!:D:D:D

Thank you Thank you Thank you Thank you Thank you Thank you for this fix robin :D
[HD Mini Android Development] 7ftnick:
r167

Strange, the battery does show precise capacity, but it does hang up on charging and even just in standby mode. Can this be the SD card ? Heating effect still presists although not as bad as before.

But time is okay now )

Thanks for your work, and for letting us experience android )
[HD Mini Android Development] Sak_1:
Wifi not works!!

Says "Error"
[HD Mini Android Development] schlund:
the kernel from r0bin comes without the wifi module, as he has said, its only for testing.

but at least, i can confirm:

i have ~ 5 mA current in suspend (min 4, max 8)

no flightmode, modem on & internet on

its really amazing
[HD Mini Android Development] DmK75:
I used test kernel and consumption is lower than earlier.

After I tested charging, and found bug:

Phone normally charged to 100%, and I disconnect charger.

But after some minutes phone awake and green led turn on.

Phone shows "charging" without plugged charger.
[HD Mini Android Development] hcchua:
Bluetooth not working during make and receiving call

hi r0bin,

Wifi is working! Camera working! 3G is working!

I had tested a few bluetooth handset from stereo to mono.

It able to pair with the devices, and music able to play

on the handset, but no able to transfer the call over the

handset during incoming call or make a call?

The handset have no voice on the speaker and the mic was not

working at all.

I had tested on Jabber, nokia, sony errison handset.

Any ideal anyone?

Thank you.
[HD Mini Android Development] GeForZero:
Can every one teach me to resize internal memory and virtual SD card to install more app and smooth operate? Thank you in advance.
[HD Mini Android Development] tzacapaca:
Well after a night in suspend mode (8 hours) battery consumption was 0% :eek: ,yes 0% :D

I don't know what you did robin but it's unbelievable,this is the best battery consumption i have ever seen on XDA on a ported Android :D

P.S. I also booted in WM to check battery % and there was the same 100%

P.S2. THANK YOU SCHLUND!!!

I owe you a kidney :D
[HD Mini Android Development] tzacapaca:
Ok,now i know what you did and what is r150 "fix" :D lol
[HD Mini Android Development] puxus:
It`s great result! And what about battery usage while using phone?
[HD Mini Android Development] tzacapaca:
I was sleeping last night lol :p

i will post that during today i guess,but anyway this fix is ONLY for suspend mode,power management still need to be a bit more fixed,with phone on i get 100-120 mA right now,HD2 has around the same but it has bigger screen,more powerful hardware,etc..so i think we should have between 50-80 mA :)
[HD Mini Android Development] -r0bin-:
guys, you have to thanks schlund for this, he is the man:

his patch #r167 really affects consumption in sleep mode, once you remove #r150

schlund, thumbs up ;):cool::cool::cool::cool:
[HD Mini Android Development] iPlasm:
Well, That is right.. a ROM good is better than waiting boot :D

but you only answered me the CM6 once, what about Android 2.2? or you can skip this. ;)

> & What about Graphic? it's known.. right? :)
[HD Mini Android Development] tzacapaca:
CM6 it is Android 2.2 :)
[HD Mini Android Development] kostasy:
release 167 its great, but a question I would want to make when release is ready we might make upgrade from windows mobile 6.5 in android ?
[HD Mini Android Development] tzacapaca:
when bootloader will be unlocked
[HD Mini Android Development] schlund:
this will take some more time to build a new bootloader ..
[HD Mini Android Development] schlund:
yes it is, unfortunately the graphiclibraries are propretary and not open source, so this will not be one of our prior issues...
[HD Mini Android Development] BATFINK74:
congratulations to all devs,outstanding work!
[HD Mini Android Development] Michelii:
Sorry, I'm new here. How can I find this folder?
[HD Mini Android Development] iPlasm:
oh not again! :eek:

maybe I should tell you by another way :D OK, forget the CM6

This > http://xdaforums.com/showthread.php?t=1204203 so my Q why it's boots faster 2x ? Is it because without HTC Sence? or what exactly?

Thanks for answer Schlund, :)
[HD Mini Android Development] rastahigh:
Wifi error

Hello all devs ! And thank you for all !! It's an amazing job !

I have install the r167, everything works fine but now the wifi doesn't work , i have a message "error" !

I have installed 4 or 5 times the r167 and i have all the time this bug.

You have an idea for this bug ?? Thank you.

Rastahigh (sorry for my english).
[HD Mini Android Development] Wowser:
Kindly search with your fingertips and READ the forums BEFORE posting your question. One of the developers, -rObin- has posted the answer here.
[HD Mini Android Development] rastahigh:
Thank you , it works, I read the 10 pages of this topic, but I thought the update folder to the root of my SD card to install and not after ... Again sorry I misunderstood the fix.

Rastahigh (sorry for my english)
[HD Mini Android Development] kiretocin:
this is the worst version till now, a lot of laging and freezing
[HD Mini Android Development] tzacapaca:
Lagging and freezing on an OS can be only when it has a lot of bloatware

definition of bloatware for noobs:

Software bloat is a process whereby successive versions of a computer program include an increasing proportion of unnecessary features that are not used by end users, or generally use more system resources than necessary, while offering little or no benefit to its users.

you are pathethic..and your try is the same
[HD Mini Android Development] codiak:
I cannot confirm that. Really snappy and fast for me!
[HD Mini Android Development] puxus:
I am sorry, did you publish it somewhere? Or we should wait? Thanks.
[HD Mini Android Development] -r0bin-:
no, i couldnt do it yesterday, i was trying to fix both drain and usb stability.

i should avoid to mention delivery time as i am always late sorry :D
[HD Mini Android Development] BATFINK74:
defo better late than never tho robin :D

i dont care how long the wait is cause i know its gonna be worth the wait :D
[HD Mini Android Development] farzad22:
Thnx robin Im enjoying alot with this newcomer .. has anyone managed to connect internet via VPN by any chance.. I couldn't do it...Please inform here
[HD Mini Android Development] ¨K¨:
Hello everybody,

first of all, great job devs, I am a big fan!

Unfortunately, it seems I have a problem with battery consumption, I previously used the R134++ for a while on a SanDisk 4Gb class 4 and battery drain was normal (use of phone easily for days on, just like in WM).

But with the latest R167 the batt drain has increased big time!

8 hours in standby and batt is empty… (Bluetooth, WiFi and GPS turned off)

About the update from R134++ to R167, at first I did an update by overwriting the files on the SDcard, when I noticed the huge drain I did a clean install, but same result.

But, to be honest, I am not sure about the “clean install” I performed, all I did was reformatting the SDcard, should I have deleted files on the phone memory as well?

(searched a lot to find an answer on the forum, but can’t find anything on this, sorry)

Thx

¨K¨
[HD Mini Android Development] madmit:
com.android.phone crashed when I tryin' run GPRS.
[HD Mini Android Development] GallardoLP_560:
Can I ask a noob question?

How can I see the how mA my battery is drainning?

Do you guys use a certain program or something?

If so can you recommend me a good/simple one?
[HD Mini Android Development] Cray*:
Try "CurrentWidget" ...
[HD Mini Android Development] GallardoLP_560:
Which is the current widget?

Also I have problem with 3G. I did place the update folder in SD root.

No problem with wifi though :)
[HD Mini Android Development] ¨K¨:
the app is called "CurrentWidget", you can find it on the Android market.
[HD Mini Android Development] Cray*:
Download "CurrentWidget" from Android Market. It automatically updates current current value every minute.
[HD Mini Android Development] GallardoLP_560:
Oh lol! Ok thanks!

Any idea about the 3g though?

It is sayed that placing the update folder on SD card is fixing the problem, but not for me.
[HD Mini Android Development] ¨K¨:
sorry, can't help you with the 3G, I don't use it and therefore haven't tested it.
[HD Mini Android Development] GallardoLP_560:
Thanks anyway. Be happy.:D

EDIT: How can I see how much mA it is using in sleep mode with the current widget program?
[HD Mini Android Development] schlund:
try to place the update folder again to your installed system
[HD Mini Android Development] codiak:
I recommend using Battery Monitor Widget as it as a log function.

Happy logging :cool:
[HD Mini Android Development] Cray*:
Also "CurrentWidget" has a log function. But there's another solution how to find out battery consuption when your phone is in sleep mode even without log function. As we know "CurrentWidget" automatically updates current current value every 60 seconds so when you turn on your phone before the update time you can see how much mA your device consumes in sleep mode.

Of course "Battery Monitor Widget" is another solution and theres a lot of apps in the Android Market. But I think that the "CurrentWidget" has smaller battery consuption than "Battery Monitor Widget". That's my opinion.
[HD Mini Android Development] GallardoLP_560:
Thanks a lot for the replies guys.

Yes I actually found my way through CurrentWidget. I "play" with the seconds!

Also I tried again placing the update folder again, but same thing!

Really don't understand the reason, but oh well. I can live without 3G!

........or can I?
[HD Mini Android Development] farzad22:
VPN was checked by anyone? Please.. its important
[HD Mini Android Development] -r0bin-:
3G fix is there

http://code.google.com/p/photon-android/downloads/list

should fix your issue, keep me updated :)
[HD Mini Android Development] Ciccius:
that's my feedback about r167 + battery drain update

after 8 hours in stand-by, battery level lowered form 66% to 60% with a consumption in stand-by of 15mA. That's GREAT!

3g data is OK

wifi OK

alarm in stand-by OK
[HD Mini Android Development] GallardoLP_560:
.......same problem! :( Makes no sense!
[HD Mini Android Development] GeForZero:
Dear r0bin,

Please you add the App2SD to your build. I cannot move the app to sd.
[HD Mini Android Development] codiak:
First of all: This Thread is dead :)

Second: As Android runs of the SD card, there is no use of moving apps to SD as they are already there :) Have a look here on howto have a bigger data file :)
[T-Mobile Sidekick 4G] madsc13n41s4:
One important question in my opinion... Do any of the custom ROMs out there support SD swap partitions as of yet? I ask as a double-check... As far as my poking around goes I have yet to see anything that represents any of them would. If I'm right, this is a matter of what kernel is in use... Thereby, the real question might be if there's a kernel that supports SD card swap partitions, but I figured I'd be general just incase.

Answers? Questions? Comments?
[T-Mobile Sidekick 4G] sduvick:
Why do you need to use an SD swap partition?

if you really want it, try this:

http://xdaforums.com/showthread.php?t=639234
[T-Mobile Sidekick 4G] madsc13n41s4:
Well I guess one wouldn't -need- to, but it does come in handy.
[T-Mobile Sidekick 4G] sduvick:
I guess I don't use it so I wouldn't know, but that thread should work.
[Galaxy S II Android Development] naser0172:
Mod for JPKG2 Rom (Android 2.3.3)

it's for ODEX rom

Install with CWM

Download...>> % BatteryMod For JPKG2 _By naser0172.zip

Mirror
[Galaxy S II Android Development] Peddi09:
Will this work for KH1 kernel as well?
[Galaxy S II Android Development] naser0172:
No !

you can Use This Link..

BATTERY-MOD][JPKH1-ODEX] % Battery
[Galaxy S II Android Development] plazzTT:
Looks good.

Is there something like this for KH3?
[Galaxy S II Android Development] c3l5o:
I'm also looking for something like this for KH3... If you find something before I do, keep me posted. :)
[Galaxy S II Accessories] iamnivas:
Broke my S2 glass which is one month old and gave it in Samsung Service center for a day to replace it and they are charging $ 150 ... :((((
[Galaxy S II Accessories] chris2busy:
Only??damn are u lucky..guess you didnt damage any other parts of the phone...Next time be more careful when u hold something worth half ur month's paycheck :D
[Galaxy S II Accessories] Tinderbox (UK):
Did you have any sort of protection on your S2 , case or screen-protector, just out of interest.
[Galaxy S II Accessories] Hiroya Fujimiya:
oow, what happened with your SGS2? Do you accidently drop it? Can your give us some picture of broken gorilla glass of yours?
[Galaxy S II Accessories] Schmich:
Gorilla glass protects you from scratching not cracking. I had my SGS1 crack as well and I did lots of research on the best means on to replace it. I found out that most people (all that I saw actually) had the crack starting from the home button. The flaw with the Sgs1 & 2 is the button brings a weak point for the glass to crack. I bet yours cracked from there as well?

It's so weak there that, the hit that made mine crack was so small that I didn't bother to check the phone to see if it got damaged.
[Galaxy S II Accessories] whmcal:
Ouch, that.s a lot to ask for a small piece of glass...but needs must I guess. Had a couple drops with my sg2 but it's my impression that the tough case's raised edges saved the glass. useful obsv of button as weakspot, had no idea - I guess it would be a similar weakness with our friend iphone.

Sent from Samsung Galaxy s2 via Xda Premium
[Desire Q&A, Help & Troubleshooting] gabon3zu:
well i have my htc desire with s-off from alphaRev C7 a weak ago i try to install a custom rom and they say i have TO INSTALL some radio bla bla..to install the radio i have to do it by ADB i try that but is not show me any serial number is just list of devices.

i have a gold card already done,i buy my device from o2 locked but i unlocked after one year by o2 customers etc. program.i try to run unrevoked last one/old one 3.21 no way to work (firmware to new).

then i try to unroot my device by use the stock RUU RUU_Bravo_Froyo_O2_UK_2.14.207.1_Radio_32.44.00.32U_5.09.05.30_2_release_144166_signed.

my ruu is RUU_Bravo_Froyo_HTC_WWE_2.29.405.5_Radio_32.49.00.32U_5.11.05.27_release_159811_signed

at the end of the day i`m stuck on the black screen htc logo and 4 warning triangle in every corner of device.no hboot no recovery nothing.

when i connet my phone to my pc it detect (my htc )this is all.

no ADB no RECOVERY..

i will appreciate any help from u guys i`m so..sad..i can believe i broke my device.

thanks and hope to solve my problem.

i have htc sync installed..
[Desire Q&A, Help & Troubleshooting] bortak:
try using RUU manually:

extract rom.zip from the RUU* and stick it in your C:\

boot into fastboot mode, plug your phone in and open command prompt and type

fastboot erase cache
fastboot flashzip C:\rom.zip
fastboot reboot

*to extract the rom.zip run the RUU (but do not proceed with the process, just open it, do NOT click next, don't even plug in your phone for that matter lol), select "run" from the start menu, then type in %temp%, This will opened a folder with a bunch of files and folders, use the "sort by date" feature, and select "today". there should only be 2 folders left, search inside them and the rom.zip should be in one of them, amongst many other androidy files
[Desire Q&A, Help & Troubleshooting] gabon3zu:
can u say to me step by step please?..because i`m not to sure how to do it.

if u have a msn or yahoo account add me please albastrel_u@yahoo.com
[Desire Q&A, Help & Troubleshooting] gabon3zu:
i did what u say to me but at the end i get:

BRAVO PVT4 SHIP S-ON

HBOOT-0.93.0001

MI CROP-051D

TOUCH PANEL-SYNT0101

RADIO-5.11.05.27

Aug 10 2010,17:52:18

RUU=ORANGE COLOUR .....THIS IS ALL I GET.
[Desire Q&A, Help & Troubleshooting] bortak:
***************************************************

EDIT: NEVER MIND THAT WON'T WORK JUST SAW YOU'RE S-ON

***************************************************

don't use yahoo.. or msn lol...

alright I'll try walk you through it.

0. download the file I attached, and unzip it into your c:\

1. Run the RUU (do not click next)

2. go to start menu and click "run" (or press the WINDOWS key and R as a shortcut)

3. type %temp% This opens up a window with a bunch of files/ folders

4. Use the sort by date function, and select today, there should only be about 2 folders, for me, the first one contains another folder, which contains the contents of the RUU

5. Select rom.zip and put it in your c:\

Once you've done that, turn your phone off, boot into fastboot (press the RETURN button and POWER simultaneously)

Plug the phone in via USB, your Phone should show FASTBOOT USB

Then start Command prompt (start menu, accessories, command prompt)

Type the following commands

cd\
fastboot erase cache
fastboot flashzip C:\rom.zip
fastboot reboot

***************************************************

EDIT: NEVER MIND THAT WON'T WORK JUST SAW YOU'RE S-ON

***************************************************

Sorry gotta bump you on this
[Desire Q&A, Help & Troubleshooting] bortak:
do you get an error after you run the RUU? If so what error?
[Desire Q&A, Help & Troubleshooting] gabon3zu:
not worked at all..

i did what u say but when i use cmd and tipe fastboot .. is say adbdll missing so i copy your file in tools folder i tipe it again and work like that..but still no got.i`m still getting htc logo with all warning triangles on corners..
[Desire Q&A, Help & Troubleshooting] gabon3zu:
if i run RUU normally i get a Error [170]: USB Connection error.
[Desire Q&A, Help & Troubleshooting] bortak:
wait.... you're S-ON and fastboot commands worked for you??

eerrmmm okay.. try

put fastboot.exe in c:\android-sdk\platform-tools

cd c:\android-sdk\platform-tools\
fastboot erase cache
fastboot flashzip C:\rom.zip
fastboot reboot
[Desire Q&A, Help & Troubleshooting] gabon3zu:
not working..but i remember i have a alpharev 1.80 img disc..i will try with this and see what i do...thank u very much for your help..i really need it.
[Desire Q&A, Help & Troubleshooting] bortak:
AFAIK you need to be booted up for that to work.. eerrmm search google for RUU error 170 you might get some answers, I browsed briefly and found a thing or two related but no clear answers
[Desire Q&A, Help & Troubleshooting] orlok:
hello all,

opps! Im in exactly the same position.

I followed a non XDA guide and im stuck in bootloop with leedroid hd.

s-on btw. (i dont have access to a cd so cant use alpha rev. and cannot/will not be able to get access to one either....long story.)

Ive followed the above directions to no avail and with same results.

Anyideas? Im used to flashing RUU's on me winmob devices but got out of me depth on this one.

Can one not put the rom.zip on the sd card and install from recovery?

rgds

LoK
[Desire Q&A, Help & Troubleshooting] gabon3zu:
u will not believe this..i don`t know how i did but....i did it...i`m now

android v = 2.2

baseband version = 32.49.00.32U_5.11.05.27

kernel =2.6.32.15-gf5a401c htc-kernel@and18-2 #1

build number = 2.29.405.5 CL293415 release-keys

software number = 2.29.405.5

browser version webkit = 3.1

i have to go at work in a bit...i don`t have time for this now but i will let u know more tomorrow.
[Desire Q&A, Help & Troubleshooting] orlok:
Hello all,

a quick update,

as i could get into cwm I flashed CM7 (and the required radio first) and i seem to be up and running, albeit without sense (ui or common :) ).

does anyone think i got stuck in the loop because i was s-on with leedroid?

rgds

LoK

--UPDATE--

After much faffing around, i used the revolution beta one click s-off, and have now managed to get back too Standard Tmobile RUU.

Being the sucker that I am, I retried the Leedroid HD rom with no luck (hang on logo)

Using correct recommended radio, ext3 partitioned sd. cwm 2.7.0.5 (or is it 2.5.0.7?) rooted s-off.

Its a shame, I really wanted Sense 3

rgds

LoK
[Galaxy S II Q&A, Help & Troubleshooting] Terens:
what are good setcpu settings? currently i have my main profile at 200-1000 ondemand, and i have 2 profiles: 200-200 conservative screen off, and 200-200 conservative temp>50c

as for the voltages i followed this

1600 MHz - 1425 mV

1400 MHz - 1250 mV

1200 MHz - 1150 mV

1000 MHz - 1050 mV

800 MHz - 950 mV

500 MHz - 850 mV

200 MHz - 800 mV

is there anything i should change for my profiles etc? my aim is to have the battery last as long as possible.
[Galaxy S II Q&A, Help & Troubleshooting] ithehappy:
Not another thread for the same thing,

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

Regards.
[Galaxy S II Q&A, Help & Troubleshooting] aezv:
seems like you got a good CPU, cause mine cannot even set 200MHz voltage to 825mV
[Galaxy S II Q&A, Help & Troubleshooting] 340Stephen:
Kernel: Siyah Kernel v6 beta 4

Rom: Omega Rom v18

Highest Quadrant score: 5177 (Omega Rom v16.2)

Power Saving:

300 MHz - 400 MHz (both 925 mV)

powersave

Normal Use:

300 MHz - 1400 MHz (default voltages)

ondemand

Benchmarking:

1500 MHz (default voltage) - 1600 MHz (1600 mV or it your phone will crash)

lulzactiveq

WARNING:

Setting 1500 MHz to 1600 MHz may cause your phone to crash.

Do not tick "set on boot" option just to be safe.

You have been warned.
[Epic 4G General] Shinydude100:
By the stock Video Player, did you mean on Android? Or Windows?

If Android:

Vital Player

If Windows:

Media Player Classic.
[Epic 4G General] pvtjoker42:
always looking for good info, and this is good stuff. Going to try it out when i get home and see if i have better luck than i've been having getting xvid and mkv's to stream from my network shares...
[Epic 4G General] juami:
If you use GB rom, try diceplayer.

diceplayer can play 720p MKV+DTS with full HW acceleration.