yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] PaulGiz:
http://xdaforums.com/showpost.php?p=17496558&postcount=14815

You're welcome!!:D

P
[HTC Sensation] TOMWALK:
Faux, what battery monitoring app is this that you're using?
[HTC Sensation] ifti_a:
I made a new file in the folder danmarson suggested

Here it is

#!/system/bin/sh

#==========================

# init.d script for Andriod Revolution HD

# Undervolt Script

#==========================

echo "-25000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

Rebooted and it worked

Note the 1 is missing is that a mistake or shall I add it ?
[HTC Sensation] faux123:
Yours is correct. Don't change anything.
[HTC Sensation] Hawke84:
I'm gonna leave phone on all night with a fresh battery. See if I can pin this drain down.

Faux is ther any system logs showing apps starting / stopping?
[HTC Sensation] Kohr-Ah:
That'd be a "I fat fingered typing this" mistake
[HTC Sensation] faux123:
Yes and No... problem with logcat is that the older logs will be overwritten by newer entries after a while (I don't recall the exact max size), and because PM requires LONG duration in order to say 1 way or another which makes logcat almost useless.

There are several monitoring apps such as systempanel, watchdog etc from market... but the problem is you never know if by monitoring it also changes its behavior somehow (quantum mechanic's uncertainty principle here ;) )... This is what makes PM debugging difficult in general.
[HTC Sensation] Hawke84:
Hmm ok well ill reboot now, fresh battery and pull logcat first thing tomorrow and save screen shot of usage.

Edit: don't know how to use logcat quick tutorial to get a txt file?
[HTC Sensation] ifti_a:
well ive flashed r2 back

tonight i will see my usage overnight and the drain and also the awake bar...this will help me do my bit.

i havent installed any new apps except play around with fauxclock so i couldnt understand y i had big drain with r3

hope for the best tonight.
[HTC Sensation] faux123:
There are two ways to get a good logcat:

with ADB, you can do:

adb shell logcat > logcat.txt
control-c to stop

or with terminal emulator

logcat > /sdcard/logcat.txt
volume down+c to stop
[HTC Sensation] KingDavid63:
Just wanna say thanks again for all you do bro... your the best at this kernel **** ever since the mt4g days.... my moms still runnin your kernel i put on there 18mo ago.. :)
[HTC Sensation] d3vilskid:
My biggest battery drainer besides voice calling as you can see here is display, even when the screen is off(wondering if its because of gpu ui rendering). Also with the latest kernels cell standby and phone idle are a lot higher than usual in usage.

Sent from my RCMIX powered Sensation.
[HTC Sensation] faux123:
click the graph and get more detail info about awake time vs screen on time
[HTC Sensation] zimphishmonger:
I posted these flashable "scripts" that enable either a 25mv, 50mv, or 75mv undervolt on boot via an init.d script. Figure they'd get some use over here as well. Enjoy!

Quoted from my previous posting

EDIT: Replaced ZIPs with fixed versions on 11/25 7:34a PST, correct permission (777) weren't being set to init.d script. I fixed it to recursively fix permissions
[HTC Sensation] lolpos:
Loving r3 my battery drain isnt bad too when phone is under heavy use! Thanks faux ur awesome and keep up the good work! Btw im rocking energy rom 10/26 and have system tuner pro and faux clock. 1.18 ondemand, undervolt 25, and 50 i/o. I used to have setcpu but dont use it anymore
[HTC Sensation] Sibbi:
OK, battery drain tonight was pretty bad.

I'm not able to track it down. Switched rom, just to check it has nothing to do with it. Didn't make a difference.
[HTC Sensation] Hawke84:
Ok drain overnight. None of it is my use
[HTC Sensation] ifti_a:
This is using r2 release and no fauxclock installed. On Monday night I had fauxclock and daemon both controlling my CPU speeds

Yest I updated my market apps, manual calibration before bed, removed fauxclock and no WiFi or network or Bluetooth and set network to 3g

Hope this helps
[HTC Sensation] MarlinFF:
Looks great! I might revert back pretty soon

Sent from my HTC Sensation 4G
[HTC Sensation] Smintz:
Hey Guys yesterday i flashed thai Kernel

Now i Noticed a massiv Battery draining After Playing a simple Game a few min.

I have monotoring active of system panel.

IT says while playing my CPU Used 100%... I guess its No surprise that my Battery drained so fast. But why IS IT in 100?

Deamon says in wake

min 0,2

max 1,2

Ondemand

Edit in The last 3 hours my battery went from 100 To 40. playing a bit , Some Time in Forums...
[HTC Sensation] orangestrawberry:
23r3. Arhd 4.1.5

See attached. Massive regular drain while screen off.

Faux can you give me dummies guide to the report you want
[HTC Sensation] gvego:
Faux? :D

BTW how about posting undervolt settings by frequency here?

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

Thank You in advance
[HTC Sensation] malybru:
Hi,

Overnight again..

Airplane mode ,No wifi,bt,data.

Checked task manager to make sure no programs were running.

Something kept it awake all night.

Someone suggested 2wcr.

Could not get terminal to set up logcat. :confused:

:)
[HTC Sensation] KingDavid63:
Now that's good ether you used it or not..

Sent from my HTC Sensation 4G
[HTC Sensation] Hawke84:
yeah i dont really understand how to get logcat. from what faux said it sounds like you have to have it running and outputting to a file all the time, but then surely they will keep the phone awake? :confused:

my battery drain was similar to yours and im on the same rom, something is running almost non-stop. i might do a wipe and reflash and leave overnight tonight and see if its something built in (which im guessing it is)

i dont thinkn its 2wcr, well i dont think i have it on mine!
[HTC Sensation] malybru:
Hi,

Version 0.2.3 (Current, Official GB2.3.4)

CleanCache (zcache disabled due to incompatibility with mpdecision, blame HTC )

ARM Patch: Use CTR for the I-cache line size on ARMv7 (better performance)

lowmemkiller: make it swap friendly (better performance)

Enabled inline locks for ARM (performance)

ZSL Driver backport (part 2, CODE ONLY, not enabled)

CPU workqueue optimization (limit some workqueues to single thread)

Conservative Governor minor tweak

patched qdsp6v2 to Set tx and rx flags based on current device

patched display to avoid staging up two pipes at same mixer_stage

patched display to avoid staging up two pipes at same mixer_stage

Added GPU slumber (whenever screen is off, GPU is set to sleep)

Added idle wait support for SMP

Fixed AXI clock bug in GPU

Fixed L2 Cache Synchro bug (better performance)

Updated spin lock code (better performance)

Reduced WiFi voltage to min recommended by datasheet (better battery)

Reduced other sub-system voltages by 5~10% (better battery)

Eliminated unnecessary macro from decompressors (code clean up)

Wind down GPU turbo mode if idling (better battery)

compiled with latest code sourcery (better performance)

Fixed Power Management memory leak

Added 2 way call record capability (thanks to mdeejay!)

Patched wakelock to latest AOSP

Patched audio DSPs

Patched Ondemand Governor for better power savings.

I've got it on mine,using 0.2.3.r3

:)
[HTC Sensation] lolpos:
Anyone got the link to r2 ?i wanna try it out
[HTC Sensation] faux123:
In light of recent battery issues :( I have decided to move up my time table for 024 kernel to address all these issues :( Stay tuned... ugh.. it's 4:10 AM in Los Angeles! Need to stop hacking and sleep...

Caffeine effect gone.... G'night!
[HTC Sensation] Hawke84:
thanks, i need to read more! :p
[HTC Sensation] d3vilskid:
Ok will do starting on a fresh fully charged battery today

Edit: rcmix v9 kernel 23r3 mainline noticed with this kernel fauxclock settings does not stick always reverts back to 1.5 ondemand while I set it to 1.2 conservative. No reboots just screen off and it changes can that be the culprit for phone not sleeping? Testing out extreme edition to see if there is a similar problem.

Can you release a beta 23 kernel based on nohz to see if the battery drain is prevalent in it?

Sent from my RCMIX powered Sensation.
[HTC Sensation] ifti_a:
nothing on no wifi or anything on

not used it all overnight, was asleep....ARHD 3.6.3....R2 Kernel and did manual calib after was charged 100%

tonight i will flash r3 and see that over night too....

hope this helps
[HTC Sensation] Hawke84:
this maybe some settings in your init.post_boot script which is fighting with fauxclock? check whats in that script..

or past in here and someone will translate for u.. :D
[HTC Sensation] d3vilskid:
I don't think so previous kernels didn't do so and since trying the extreme edition my uc and conservative are sticking. Also to note heres a recent pic of ny battery graph.

Edit: this is the same init.post script I use since using faux kernels back when he started

Sent from my RCMIX powered Sensation.
[HTC Sensation] zimphishmonger:
@Faux, Are you still recommending using zram? I am still enabling it via script on boot, and it works fairly well (although I need to see if it slows down after several hours).
[HTC Sensation] faux123:
My ZRAM implementation does not have "slowdown" issues experienced with another kernel :D
[HTC Sensation] faux123:
Due to recent issues with battery drain for 023 kernels, I have moved up the time table for 024 Open Beta (I was going to take a vacation from sensation but I kept getting dragged back due to battery issues).

Remember, OPEN BETA is NOT for everyone and your FEEDBACK is very important to the rest of the kernel users, so please report as accurately as possible.

Treat the OPEN BETA as CM7 nightlies, which means I will accept reports of issues here, but I WILL NOT respond to any requests for features.

When reporting

ALWAYS state

: [ ROM: ARHD 3.6.xx ] [ kernel 024 build-02 ]!

So here it is:

1.56 GHz NoHz => http://www.multiupload.com/RH8XG4NP31 <=

Version 0.2.4 (Beta, ETA Don't even ask..., Official GB2.3.4)

< 01 > (Internal)

< 02 >

NoHz RCU (for battery test)

ZRAM disabled (for battery test, will be re-enabled in FINAL 2 builds to compare)

Intelligent OnDemand Governor (battery saving CPU governor)

-- Built-in Screen Off profile (like SmartAss)

-- Built-in Thermal Management (like thermald) <== NOT YET implemented

-- Built-in Web Browsing detection <== NOT YET implemented

-- Allow tweaks of screen-off policies via sysfs interface <== NOT YET implemented

Disable BCM4329 wake irq when stopped (battery saving fix)

Re-order PPP packets in PPPoLAC and PPPoPNS (VPN bug fix)

PLL clock training with higher frequencies for better stability (stability enhancements)

GPU 2D scaling (code is there but NOT ACTIVATED yet)
[HTC Sensation] moeinf:
what was latest version that do not got battery drain problems?
[HTC Sensation] zimphishmonger:
Anything NOT beta :P We are in heavy beta mode at the moment, so stick with the versions posted in the OP.

@Faux, zram was working fantastic in 23r3, as opposed to other implementations which had major slowdown after several hours. No issues so far.

---------- Post added at 07:47 PM ---------- Previous post was at 07:45 PM ----------

YES!!! I'll disable FauxClock and see how it works. Thanks man! Looking forward to ZRAM and the rest of the tweak to be re-enabled :)

EDIT: First impressions, stable anf fast but not as "snappy" as the previous betas due to zram being disabled. Disabled screen off function in FauxClock. very interested in battery and heat results. Will continue testing and report back :)
[HTC Sensation] Hawke84:
Thx faux u do fantastic work for us all. Trying new beta now.

Did u get any further with what was causing drain?
[HTC Sensation] affliction_emrah:
Just flashed 2.4.

Feels good. Gonna see the drain tonight.

Cheers Faux
[HTC Sensation] MarlinFF:
0.2.2 was great. Just flashed the 2.4 beta and heading to school in a bit.. Will report back
[HTC Sensation] Sibbi:
Will try 2.4 on LeeDroids Rom.

One question, though... Are we 100% sure it is a kernel issue (on sense 3.0 I think I diddn´t have this behavior)? I tested bricked, just to see if it has this issue as well. And I got the same wake while screen off phenomena. Just my 2 cents :)
[HTC Sensation] Hawke84:
[ROM: ARHD 4.1.5] [ kernel 024 build-02 ]

Screenshot attached of 30 min trial of drains, so far so good, screen off and phone sleeps each time. It's a cheap battery so the % drop is normal.

Slightly laggy at times, opening app draw but may just be settling in.

Whatever you did looks promising to gave fixed drain. I'll do more testing, but so far do good. Nice work mate! :)
[HTC Sensation] PaulGiz:
Its going in now.

Thank you!! I know you'll get this licked. What little help we can give you, believe me, you'll get.

P.
[HTC Sensation] malybru:
Hi,

[ARHD 4.1.5 Faux 0.2.4 beta]

Sleep state settings are min 192000 and max 192000.

Do these need to be changed?

:)
[HTC Sensation] Sk1985:
[ ROM: ARHD 3.6.3] [ kernel 023 build-R3 ]!

Faux,

I rebooted my phone and charged it to 100%. Now 6,5 hours later my battery was showing 99% GPS and Wifi and screen off. So this is nice.. I found it really strange that after a reboot there is no battery drain problem anymore.

I wil try your new kernel right now.
[HTC Sensation] yungyeh:
[ROM: ARHD 3.6.4] [ kernel 023 build-R3 ]

This is my battery graph, third cycle after clear battery stat. Noting the voltage declines during airplane mode while I was sleeping.

Compared to my precious post for battery graph on ARHD 3.6.2 with faux 2.1...well see for your self.

http://xdaforums.com/showpost.php?p=18328903&postcount=24135

I will try to recharge my battery, do a reboot and measure again on 0.23 r3.
[HTC Sensation] d.brown:
See above try with beast rom

Hi my name is DloBrown and Im A nightly addict i've been sober for 1 month now ='(
[HTC Sensation] faux123:
I have several request for 1.5GHz Version of my 008 kernel.. I will make one with only 1.5 GHz... Still stuck @ work... I will try to squeeze a new version out tonight...

My phone is ROCK solid with Mike's 2.3.4 ROM @ 1.78 GHz.. Been running all day today using GPS, WiFi Calling etc...

BTW, SmartAss 2.0 (Yes, not a typo, 2.0 will be test and release soon :D ) Major props to Erasmux for his hardwork !!!!!
[HTC Sensation] the_scotsman:
I'm with Faux...Mike's ROM with 0.8 kernel running at 1.78GHz has been rock solid for me, and super quick!
[HTC Sensation] d.brown:
What's your average/sleep mA? Can use battery widget to know thx

Hi my name is DloBrown and Im A nightly addict i've been sober for 1 month now ='(
[HTC Sensation] zimphishmonger:
LOL, How many people need to say it :rolleyes:.....YOU MUST FLASH v.6 PRIOR TO FLSAHING v.7 or v.8, v6 copies required libs while >v6 is the the zImage
[HTC Sensation] bachviet:
Didn't work for me. I had 0.6 kernel with ARHD 3.0.3 and I got boot loop after flashing 0.8 kernel.
[HTC Sensation] the_scotsman:
Strange...I had the same as you, and flashed 0.8 and it worked no problem.
[HTC Sensation] rawrfische:
Faux man I am simply spoiled by your kernel! The phone runs like a dream and FPSE is crazy smooth when compared to the stock kernel. When you release your 1.5 Ghz version of 0.0.8, I'm all over it! Thanks so much for your work!
[HTC Sensation] PhaedraCorruption:
Quick question, are you using the dual core patch from mike along with your kernal on your sensation?
[HTC Sensation] Enzopreme:
Me too....

Sent from my Revolution HD Sensation, and loving every second of it....
[HTC Sensation] Enzopreme:
Worked like a dream for me.... Try wiping cache prior to flashing to 0.8.....

Sent from my Revolution HD Sensation, and loving every second of it....
[HTC Sensation] ttav:
V0.0.8 working fine on Leedroid V2.4.0(flashed V0.0.6 first)
[HTC Sensation] Smiffyboots:
Working perfectly for me as well. Flashed 0.6 then 0.8 (insertcoin 2.3.1)
[HTC Sensation] ijob:
on leedroid too and working fine ;)

just one question

I'm using CPU Master Free & Using 'Performance', OC to 1.5ish. Is this okay?

or should i use 'on demand'?
[HTC Sensation] ijob:
Or should I use Setcpu?

----------

Sent from the back of Michael Caine's Mini Cooper S, holding on for dear life......
[HTC Sensation] Step-han:
Only ondemand is compatible with a dual core right now.

And i prefer SetCPU for manual CPU tuning.
[HTC Sensation] schidddy:
hi m8!

thx for all your great work and the whole lotta time your spending in this!

Without you guys custom ROMs and all these would be half fun!

So could you tell us a bit about your new Smartass 2.0 Kernel? :) Is this forcing both cores to run on smartass governour? And is this kernel going to be fully compatible with 2.3.4?

Much appreciated if you could give us some info :)

cheers dude
[HTC Sensation] B-Man2005:
smartass was always the slowest on HD2 ... is it the same here ?
[HTC Sensation] faux123:
UNINSTALL ALL OC Apps including SetCPU, CPUMaster and others... They are not compatible with my kernels. If you use them, use at your own risk!

Introducing SmartAss V2 by Erasmux!

Erasmux recently updated his SmartAss V2 governor incorporated my SMP patches into his new Version 2. Give it a shot, it is very nice! No need for CPU Profiles anymore!

Introducing Synchronous L2 Operations for 1.566 GHz version. Since some of you cannot run @ my 1.782 GHz full speed version, so I thought I give the lower frequency version a boost also. Now the L2 Cache will run at the same frequency as CPU.

Oh and 1 more thing: ( sounds like Jobs)

Introducing L2 Bandwidth Boost. The older kernels have their L2 Bandwidth limited to 310 MHz, I have boosted this to 360 MHz. This should help to ease the memory bottleneck for higher CPU frequency operations!

I have created 4 Separate Kernels to cater for all different people.

The SmartAss V2 are now my MAINLINE kernels. There's a 1.782 GHz and 1.566 GHz version with L2 Synchcro.

The OnDemand versions are what I called Enthusiast kernels. Also 2 versions with same features as above.
[HTC Sensation] prcek15:
Does v0.0.9 works on Virtuous 1.13 ROM? THX
[HTC Sensation] PaulGiz:
[2.4 beta1][ARHD 4.1.5]

Question: should I be disabling OC Daemon and Virtuous OC (83oc file in init.d)?

I'm guessing we'd like the kernel to take control of clocking. Is this right?

P.
[HTC Sensation] faux123:
You can have your own profile or you can let the governor do it. It won't hurt either way. That's the beauty of the new intelli-ondemand governor.
[HTC Sensation] malybru:
Hi,

Ok ,thanks.

Almost did not recognize you with that new avatar.

:D
[HTC Sensation] zyonee:
Sorry if I'm being stupid, but is your new intelli-ondemand governor merely named "Ondemand" or am I missing something? SetCPU isn't showing anything about "IntelliOndemand" or something similar. My guess is that you edited the Ondemand governor, which is fine by me, but I want to be sure. :)
[HTC Sensation] faux123:
You like ;) My cybertronian penguin :eek:
[HTC Sensation] faux123:
Yes, it is heavily edited OnDemand...

I originally had it as intelliOndemand, then at the last second I changed it back to reduce confusion, but now it seemed to confuse more...
[HTC Sensation] zyonee:
No problem for me. As long as you're doing your great work, I'm not complaining. :D
[HTC Sensation] AlexFlexy:
[0.2.4] [ARHD 3.6.2]

Just flashed this kernel... take a look about battery drain this night.

Have a drain problems with 0.2.3b16, r3, adequate drain with r2.
[HTC Sensation] Hawke84:
Does it really not matter either way at all to performance etc? Is it not better to let governor do the work?

Btw like the new avatar reminds me of penguins! :)
[HTC Sensation] lainemac:
2

Hey faux have you ever thought about having 2 different kernel versions for 3.0 and 3.5? Just a suggestion. Maybe we could have more focus and less confusion if there are two different kernel versions with optimizations for both bases. Because if I'm not mistaken the current beta is geared towards the 3.5 beta, correct?:D
[HTC Sensation] mike1986.:
Thanks man!
[HTC Sensation] faux123:
Actually it's more geared for Sense 3.0 since that's the OFFICIAL release from HTC. 3.5 Sense is still in beta but it seemed most users have switched over to 3.5. Personally, I like the performance of 3.0 the best.
[HTC Sensation] Sk1985:
0.24 kernel is giving me the highest score ever in quadrant 3336. Almost everytime im getting a score above 3000. I never had that before. Im going to sleep now will report tomorrow about the battery drain.
[HTC Sensation] silverdart:
*** just my opinion***

023r_2 (1.56 GHz Sync L2) is such a powerful Kernel! The HTC Sensation is such a powerful phone! (I wish the new kernel would have begin with the 023r_2 base) We have tried to make battery life longer by Underclocking, Undervolting, and turning our internet to Edge instead of 3G/4G.

I believe this is the reason for the unexpected/explained battery drains!

1. I turned my CPU to: AWAKE - Min=384/Max=156, SLEEP – Min=192/Max=384

2. I turned my internet to 4G

3. I did not remove -50000 Undervolt (because I forgot).

After 7hr 41min 35s I was down to 77% bat (only checked what it was doing in the battery area). ***The battery graph is exactly what you were looking for***. I have Juice defender letting input in for 2min every hour and facebook doing its thing every 4hrs.

In my opinion, the drain was due to the fact that when programs needed to SYNC they were severely inhibited from doing this in an expedient manner. Instead they dragged along slowly and thus drained our battery along the way producing the long blue lines in the battery graph. So in essence there was no secret program that we couldn't find that was draining our phones.

*** JUST MY OPINION***
[HTC Sensation] despard:
I'm using ARHD 3.6.4 and faux 123 024b2, just encountered wake up black screen issue
[HTC Sensation] Kohr-Ah:
I agree with your statement and I find 3.0 having less issues

Sent from my HTC Sensation in UR-Quan subspace.
[HTC Sensation] d3vilskid:
Are you flashing the first time kernel first?

Sent from my RCMIX powered Sensation.
[HTC Sensation] faux123:
Quick update:

My setup: 1.56GHz with Intelli-Ondemand @ -75mv with 33 I/O with no screen off profile and:

FB, G+, Twitter, GMail, Hotmail, weather all active with either push or 15~30 update intervals.
[HTC Sensation] remus82:
My phone sleeps well now!!!! 3.6.4 2.4 beta!!! Nice
[HTC Sensation] zimphishmonger:
(beta v25b2) (bulletproof v14 2.3.4)

Been running VERY well past few hours , responsive, stable and no wake issues. Seems to be pretty heavy on battery tho.

Currently still using fauxclock to clock mac to 1.28g, but i disabled screen off profile. Maybe intel-ondemand needs some tweaks for screen off??
[HTC Sensation] Sibbi:
[LeeDroid 4.0.0] [2.4 b1]

Battery drain is still there. Maybe not as bad as before. 6% in 5 hours airplane mode. Had a constant drain of ~55 mA.
[HTC Sensation] g1user101:
Can latest version not betas, work on sense 3.5? Sensay running hhere. What wont work if I flash?
[HTC Sensation] piimp:
Ofcourse it will, just flash the hack first(a lil search will help u here).

Sent by my feau gee
[HTC Sensation] g1user101:
What hack do I have to flash? You mean yhe first time before flashing kernel?
[HTC Sensation] MarlinFF:
From what I see, the drain has been reduced a bit but it is still pretty bad. It dropped 15% in an hour in standby.. even with -50mA drains

Stock TMOUS Rom
[HTC Sensation] lainemac:
So do I. I like some of the new features on 3.5 even though most people wouldn't notice them. But it can't beat the stability of 3.0 right now, being a beta and all. Anyways, I'm using bricked right now and I looked at my battery usage graph and was like a solid grey block. Which means something is on all the time right? So if that is the case it must be an app, right?
[HTC Sensation] faux123:
Correct. With my latest beta, if you are still seeing solid awake bar while screen is OFF, then you REALLY have a rogue app/service running in the background! You need to track it down...
[HTC Sensation] Hawke84:
Rom: ARHD 4.1.5. 0.24 beta 2 kernel

Ok over night testing attached. Wake issue fixed but my drains seem higher AMD lost 75% battery!

Anyone else experience this?

EDIT, sorry i uploaded the wrong pic. corrected now! thanks elvislam for pointing it out..