yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] faux123:
Open Beta may not be stable and may cause issues with your phone!

By loading open beta you have agreed to:

1. To report all random reboots with associated /proc/last_kmsg

2. To provide feedback on errors or bugs with detail phone information such as ROM, kernel version, and apps

3. Participate in Forum discussions for the beta software with others without FLAMING each other or post useless information such as:

a) Phone doesn't boot (without providing any additional information, ROM versions etc)

B) phone is too hot (without providing any additional information, ie OC freq, UV etc)

The Open Beta system is designed to have the community help each other and the developers. This way, all potential bugs are flushed out so the final released version will be stable and error free. The more actively you participate in Beta Testing the better the final product will be (you are really helping yourself to create a better community software).

If you do NOT agree with the statements above, DO NOT load my Open Beta software.

Kernel 004 Open Beta Build 4

https://twitter.com/#!/faux123/status/188706241571336192 (BETA is always Ultimate Edition with everything turned on unless stated otherwise!)

[ build 4 ]

Fixed 2D GPU stuck clock issue reported by users

Oh, Added Sense 4 FrameBuffer compatibility (Thanks to Team Virtuous!)

[ build 3 ]

Major logic tweak to browsing detection for intellidemand to be even smarter and more responsive to gaming demands.

[ build 2 ]

Minor logic tweak to intellidemand

[ build 1 ]

Patched old HTC bluetooth stack to latest CAF baseline

Enabled BT SCO options

Enabled BT RFCOMM options

Intellidemand Governor tweak:

Introducing Smart Core Management :D

Automatic offlining of 2nd CPU core while Screen is ON.

Scenarios:

1- While Screen is ON > 3 min, and average load of the CPU is < 35%, then CPU1 will be taken offline.

2- While Screen is On, if average CPU load > 35%, CPU1 will be Online and both CPUs max frequencies will be limited to 1.13 GHz Max

3- While Screen is On, After both CPUs' Max is limited to 1.13 GHz, when the average CPU load has dropped down to less than < 25%, then both CPUs Max freq will be restored to 1.51 GHz Max (then go back to scenario 1).

-- for 3D Games or GPU intensive apps, both CPUs's max frequencies will be restored to 1.51 GHz and both CPUs will be online.

NOTE: DO NOT use BENCHMARK APPS to compare my kernels to others. All those are ARTIFICIAL benchmarks and mostly measures CPU raw performance. If you insist to use those to compare kernels then set to performance governor before comparing for Apple to Apple comparison.
[HTC Sensation] sjknight413:
YES!

finally sense 4 compatibility :D

thanks faux, gunna test nowwwww!
[HTC Sensation] X46X:
Unstoppable!!! :D Thank you faux!
[HTC Sensation] Vineares:
I can hardly keep up with these releases!
[HTC Sensation] DarkPrinceByWWW:
Flashed 004b4 and set intellidemand as governor by system tuner.

It seems like both cpus are still scaling between 384MHz and 1,51GHz as the first core is going up to 1,51GHZ just bei system tuner beeing on :(

Just a second after a screenshot is made, cpu0 goes up to 1,51GHz :/
[HTC Sensation] sjknight413:
Why do you need to use system tuner?

you should need no such program with this kernel as intellidemand is set automatically on boot as are all necessary clocks. Try using it without a clocking program.
[HTC Sensation] HunnyBearLewis:
Two quick questions to clarify something for me :)

If the screen is On and the average CPU load is < 35% but it hasn't been 3 minutes yet, does that mean CPU0 and CPU1 are both on and have a max freq of 1.5GHz?

In regards to scenario #2, is that average of "greater than 35% cpu load" an average over a specific amount of time like scenario #1 or does the limiting to 1.13GHz kick in immediately when condition is met?

Thanks in advance, it's always interesting to read about your kernel features and try them out.
[HTC Sensation] Zer0r:
Confirm very good battery life with no noticeable performance decreasing. It becomes very much like iPhone 4, which performance/battery life is really good.

The problems with car dock charging are gone, but still not stable "in dock" mode detection. Checked twice on stock kernel - everything is working. Wierd...

Good job, Faux123!
[HTC Sensation] faux123:
Two quick questions to clarify something for me :)

If the screen is On and the average CPU load is < 35% but it hasn't been 3 minutes yet, does that mean CPU0 and CPU1 are both on and have a max freq of 1.5GHz?

Yes, the 3 mins grace period you have FULL performance to do any quick tasks.

In regards to scenario #2, is that average of "greater than 35% cpu load" an average over a specific amount of time like scenario #1 or does the limiting to 1.13GHz kick in immediately when condition is met?

The average load is calculated during the 3 mins grace period. Once the average load in the grace period is > 35%, then both CPUs max clock will be immediately kick down to 1.13GHz. (> 3 mins, you are now doing something that's not a quick check of phone status, now you are running an app of sort).

If the average load of the grace period < 35%, then this is called

Screen On Idle

(somehow you have screen on but the average load is very low), then intellidemand will turn off the 2nd core while leaving Max freq for primary core @ 1.5GHz.

Thanks in advance, it's always interesting to read about your kernel features and try them out.

Intellidemand logic may seem quite complicated, but it's not really difficult. Just need some explaining to get the concept.

Quick Summary:

Screen On (during grace period ~3 min) - FULL DUAL CORE PERFORMANCE @ 1.51 GHz

Screen On Busy ( > 3 min grace period, Average Load > 35%) - DUAL CORE operation but @ 1.13 GHz Max

Screen On Idle ( > 3 min grace period, Average Load < 35 %) - SINGLE CORE with cpu0 @ 1.51 GHz Max, cpu1 OFF

Any 3D or GPU intensive apps - FULL DUAL CORE PERFORMANCE @ 1.51 GHz Max

Screen OFF - SINGLE CORE with cpu0 @ 594 MHz Max, cpu1 OFF
[HTC Sensation] DarkPrinceByWWW:
Intellidemand is not turned on by default, so i just used sytem tuner to test this new governor. I also can set it by init.d sript as desired governor ;)

@faux123: Thank you for the clarification :)
[HTC Sensation] sjknight413:
I can assure you it is...

I'm sure faux will back me up on this too.
[HTC Sensation] marseillesw:
Just to chime in on this, I know that whenever I flash this kernel coming from a different one, on demand is the default gov and I have to change it to intellidemand. Btw, system tuner pro is a pretty powerful app with many more capabilities then just changing governors and clock speeds. So whether or not u use it for cpu performance reasons, it's a good app to use regardless
[HTC Sensation] sjknight413:
Well i'm always swapping between bricked and faux, and when i switch to faux's intellidemand is always the default governor.

are you using clocking apps to check your governor?

check it through /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor with root explorer or by typing:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

into terminal emulator.
[HTC Sensation] DarkPrinceByWWW:
Virtuous Inquisition comes with Sebastians kernel onboard. After flashing faux kernel, the ondemand governor seems to remains as default one.
[HTC Sensation] sjknight413:
ahh i see, guess there may be something funky up with inquisition then. works fine with all sense 3.6 roms and running it fine on ordroid sense 4 now.
[HTC Sensation] evilged:
Renaming or editing /system/etc/init.qcom.post_boot.sh will stop it being set back to ondemand every boot.

G
[HTC Sensation] DarkPrinceByWWW:
This file contains pretty much stuff. I would prefer to write a new script to set intellidemand as default governor as mess up this file.
[HTC Sensation] faux123:
I am pleased with kernel 004 beta build 4, I will let this build go for a while for stability and battery performance testing. (Call this release candidate)

when I have more free time, I will start looking at the USB stack some more to see what I can do to get otg working eventually.
[HTC Sensation] MuertoKo:
Flashed :)

Let's check if I don't get non-kernel reboots this time so I can properly check your kernel :D Is there a posibility that we see diferent versions of your intellidemand? I mean, tweaked to different frequences or so?

Just never used the GB version that I've read about so no idea on where is intellidemand limit!

Will report tomorrow about battery life, heating, performance and so on!
[HTC Sensation] PaulGiz:
So far, I can't argue with this. Beta 4 is seamless, stable and transparent.

Pn
[HTC Sensation] zimphishmonger:
Wow man, just wow. The simplicity yet thought behind method of clocking is incredible. Thanks for taking the time to innovate for us sensation users. U could have left us after picking up ur gnex, certainly glad u decided otherwise :)
[HTC Sensation] baste07:
had 003 mainline from 1.5 days... working perfeclty on ARHD 6.6.1 XE
[HTC Sensation] evilged:
As far as I can see the file its not needed for the proper operation of fauxs kernel, but you can just # out the lines for ondemand and mdprecision & thermald. Most of the lines refer to other devices anyway, that's why I just rename it.

If you flash one of the kernels that need it it will usually get overwritten anyway.

With the new beta I'm getting 5ma in screenoff which is amazing, just like my old HD2 but with much more power :-).

G
[HTC Sensation] MuertoKo:
Can you tell us what is your set up for 5mA? That looks impossible to me! Always 36mA as minimum!

Rom, version, UV, OC, radio...?

Thanks!
[HTC Sensation] baste07:
flashed 004Beta4. looking good so far
[HTC Sensation] Pikaraph:
I'm able to get -3 to -8mA with ARHD 6.6.1 and faux 4b4.

I have no facebook or twitter crap nor mail sync, only weather each 6 hours and no wifi enabled (I enable it when needed for market and other things).

I cleaned my rom with RomCleaner 3.4 and a custom file where a choose to remove lots of apps and bloatware.
[HTC Sensation] evilged:
Running virtuous inquisition with service pack, WiFi on, 3g data on, push from exchange using touchdown, imap sync hourly, facebook, Twitter and weather widget sync as usual.

I try to limit the programs that run at boot and set it lowest to 192 and under volt a little, but past that its down to fauxs great kernel :-)

G
[HTC Sensation] baste07:
what app do you use to get the reading?
[HTC Sensation] Hawke84:
That's not possible the app for reporting is maybe outdated or is.t reporting correctly... About -30ma is the best..
[HTC Sensation] asesino:
Running VI 4.0.1 this kernel is superb. 003u.
[HTC Sensation] Pikaraph:
Battery Monitor Widget from 3c
[HTC Sensation] baste07:
thanks i'm going to give it a go
[HTC Sensation] evilged:
I use 3c's battery monitor plus checking with current widget, my old HD2 was capable of 5ma on gingerbread so I don't see why it should be impossible. Of course the readings could be wrong but the battery level and life seems to agree with the readings, either way I'm happy.

G
[HTC Sensation] Pikaraph:
Same thing for me, my HD2 running Enegry Rom 3.15 has -2 ou -3mA when idle.
[HTC Sensation] Hawke84:
Sensation uses more power generally when idle
[HTC Sensation] MuertoKo:
Reboot with latest beta!

Let's see if it's kernel or device problem ;)

As usual for testing no OC or UV and intellidemand working

http://db.tt/xtCO6AKb
[HTC Sensation] kdm06:
[Arhd 6.5.2 xe] [004b4]

I'm getting similar figures ( 3 to 10 mA idle) I am not sure if it is accurate yet. I will monitor a number of cycles to check the battery life to see if it is correct.
[HTC Sensation] baste07:
yeah, i think its better to use phone normally and see how it goes
[HTC Sensation] kdm06:
[Arhd 6.5.2] 004b4

Oh also, I find intellidemand noticeably smoother for the UI in this release. Do other people have the same experience?
[HTC Sensation] sjknight413:
Not necessarily, when i was on sense 3.6 i found it lagged at the bottom of lists, especially scrolling to the bottom of the app draw,
[HTC Sensation] kdm06:
I tried my best there to replicate this but could not notice stutter. Perhaps I have fewer apps. I did notice it in the previous releases when moving between home screens but did not mind if it gave better battery. In this release I can not detect any stutter what so ever.
[HTC Sensation] PaulGiz:
Yup, me too. I'm still trying to find a flaw in b4, but I can't.
[HTC Sensation] Hawke84:
Same ive been trying to find problems but really are none!
[HTC Sensation] faux123:
Kernel 004 Build 4 idle ;)
[HTC Sensation] DarkPrinceByWWW:
After renaming init.qcom.post_boot.sh and rebooting, the default governor is now intellidemand and the lowest cpu-freq is 192MHz.

@faux123: Could you maybe take a look at the attached file? Are there any settings which could get in the way with your kernel?

I have really big issues with Virtuous Rom, since the default kernel was set to Sebastians kernel. Often, if I start Plants vs. Zombies, the app just freezes and I have to wait about 30 seconds until the phone goes back to the home screen. On the home screen, it reacts normally. After flashing 004b4, I wasn't able to play the game, only after switching to ondemand governor and underclocking the cpus to 1,2GHz.

After renaming this file, the first game start is the same and I have to go back to the home screen, kill and restart the game and then I finally can plat it. It's totally weird and it also happerns with Sebastians kernel :(
[HTC Sensation] GuyAdams:
Seriously faux, I've gone from my Sensation with your kernel to a new One X and its killing me with its battery life!

I'm tempted to send you my One X so you can get to work on it ;)

Sent using Tapatalk
[HTC Sensation] faux123:
When HTC release their kernel sauce + if I have the phone, then I can work on it :cool:

My policy, no phone no kernalz!
[HTC Sensation] MuertoKo:
O_O can't do this with my sensation xD

Rom apps tweaks using? Wifi? Signal?

That is just Awesome!

Btw I watched my own last_ksmg some posts before and think it's same problem of the other day that wasn't kernel related isn't it?

Any idea on what could it be? :(
[HTC Sensation] faux123:
There's something wrong with your ROM or app.. definitely not kernel because none of you logs showed any errors caused by the kernel :(

[34295.191223] Disabling non-boot CPUs ...

[34295.191741] msm_pm_enter

[34295.191741] msm_pm_enter: power collapse

[34295.191741] msm_rpmrs_show_resources: resource pxo: buffered 1, value 0x0

[34295.191741] msm_rpmrs_show_resources: resource L2_cache: buffered 1, value 0x0

[34295.191741] msm_rpmrs_show_resources: resource vdd_mem: buffered 1, value 0xc0032000

[34295.191741] msm_rpmrs_show_resources: resource vdd_dig: buffered 1, value 0xc00321f4

[34295.191741] msm_rpmrs_show_resources: resource rpm_ctl: buffered 0, value 0x0

[34295.191741] msm_mpm_irqs_detectable: cannot monitor 0000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000

[34295.191741] msm_pm_enter: limit cf8989c4: pxo 0, l2_cache 0, vdd_mem 500, vdd_dig 500

[34295.191741] msm_rpm_dump_stat: 198794, 25350277ms, 18246, 21865615ms, 0x0, 0x0

[34295.191741] sleep_info_m.0 - 58056781ms, 58044661ms, 0 1 1324 500, 0x0 0x0

[34295.191741] sleep_info_m.1 - 58057167ms, 58056134ms, 0 0 0 500, 0x0 0x0

[34295.191741] sleep_info_m.2 - 57388517ms, 57391724ms, 0 1 1842 500, 0x0 0x0

[34295.191741] CPU0: msm_pm_power_collapse: change clock rate (old rate = 594000)

[34295.191741] msm_watchdog_suspend

[34295.191741] [R] suspend end

No errors detected

So maybe it's time to nuke the ROM and start from clean....
[HTC Sensation] evilged:
Hi attached your file but commented out ondemand, 384Mhz, mdprecision & thermald.

See if thats sorts your issue.

G
[HTC Sensation] MuertoKo:
Superwipe, firmware, rom and kernel ;)

Thanks for cheking anyway! Before Nuking my rom... 004b4 will be same as 004 RC maybe? Just to wait for RC before cleaning everything :P
[HTC Sensation] joaquinf:
V 004b4 is rock stable for me, intellidemand is doing his thing brilliantly and batt life is just awesome. Phone runs cool even under extreme gaming sessions (~55 C). UI is fluid and responsive. Not to mention near-to-no draining when idle. For me, this is the best faux version so far.

No uv, oc, cpu apps ... Just plain intellidemand magic + arhd 6.6.0 and anker battery.

Thanks again faux.
[HTC Sensation] PaulGiz:
+1. I've got EVO 3D battery instead of Anker.
[HTC Sensation] DarkPrinceByWWW:
Thanks :-) Will try tu use the rom without this file. If it still won't working, I'll use your file ;-)
[HTC Sensation] GuyAdams:
Seriously doubting my move to the One X with posts like this lol ;)

Sent using Tapatalk
[HTC Sensation] Solar_:
55 degrees Celcius? That's frigging hot! I'm worried when my phone is 46 degrees Celcius.
[HTC Sensation] joaquinf:
Well ... Playing shadowgun or mc3 ive reached +70 C in gingerbread (using faux too) and in ics using different kernels. So 55 C after 30 mins of 3d games is a win for me ... In normal use, when im not playing my phone stays ~38 C, thats cold operation imho considering that average temp in my city is around 25 C all over the year ... Welcome to the tropic :D you must know about sunny days solar :D
[HTC Sensation] baste07:
What do you use to get batt temp?
[HTC Sensation] MuertoKo:
Battery widget or current widget ;)

I prefer current but many people here uses the other one :)
[HTC Sensation] TheEyes:
I'm using it to undervolt the CPU. Is there a better way to do that?
[HTC Sensation] baste07:
That's the same app i use to UV, but doesn't stick after a reboot
[HTC Sensation] TheEyes:
In System Tuner, go to CPU->Voltage->Boot settings (bottom right button)->Re-apply CPU settings. I have it set to "On boot completed" and it seems to work; I have no idea if the init.d script would be better or not.
[HTC Sensation] baste07:
you're lucky, i am unable to make it stick. either on boot or init.d
[HTC Sensation] PaulGiz:
I don't know why it's not sticking, but -- there is no reason to undervolt this kernel.

With the screen off, you're getting -5 to -9mV drain. You're not going to reduce this by undervolting 2% or so.

With the screen on, you're using so much power for the display itself that a few percent UV will effectively do nothing.

A little UV does nothing, a lot of UV will make your phone actually run hottter.

Again, we're set in our ways, many of us have been doing the same things forever, some of us since the Hero or Sapphire, so we keep doing it. Not necessary.

P.
[HTC Sensation] baste07:
i usually under volt by 25 to 50 mv every time... i guess it's a force of habit regardless of ROM and Kernel =)

but good point, i'm going to give 4beta4 a go without any "tweaks"
[HTC Sensation] vernon092487:
Hi Faux,

I am trying to download Kernel 004 Open Beta Build 4 but I am not able to using the link you provided. Do you have another link for it? I would really love to test it.

Thanks!
[HTC Sensation] theintelligent:
Use init.post_boot.sh file to se the undervolting values.
[HTC Sensation] baste07:
should there be a voltage section in that file? or do i have to enter a new section?

i checked that file and there's no section for voltages
[HTC Sensation] GuyAdams:
Try this one;

http://faux.androidro.ms/Pyramid-ICS-sense-004b4.zip

Sent using Tapatalk
[HTC Sensation] PaulGiz:
Add the code. Full instructions in OP of this thread. Worked for me when I used to uv.

You can mke a UV file to stick in init.d folder.

#!/system/bin/sh

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

where -50000 means -50mv overall. You can change this value.

Call it something like 90uv and put it in init.d folder.

P.
[HTC Sensation] theintelligent:
Check the Sensation section, add it in that file.

Or simply add at the last line.
[HTC Sensation] baste07:
thanks!

---------- Post added at 09:33 PM ---------- Previous post was at 09:13 PM ----------

great! thanks! it worked. i updated the post boot file. for some reason the file in the init.d isn't working for me.

but now i've gotten it to work. undervolted by 50mv. and see how it goes battery and stability wise.

now i can uninstall system tuner... was using it for freq, governor and voltage tweaks. now i don't need to run it any more via app, one less app to load.
[HTC Sensation] MuertoKo:
Take a look with Current widget too please.

I just realized while Battery Monitor says -7mA idle on current widget it shows 40mA....

Any idea on why and what one is correct?

Btw after nuking ROM and all no reboot for now ;) 70% after 5 hours playing Beats hope it keeps like this!

THANK YOU!
[HTC Sensation] kdm06:
Hey faux,

Bit of an odd one. I was listening to music on and off all day with my headset. I was just coming home and went to listen to some more but the connection with my headset was no longer there and on the phone it was stuck on the blue tooth turning on and was unresponsive. I will upload the error log when I figure out how. Pastebin? Arhd 6.5.2 xe 004b4
[HTC Sensation] faux123:
kernel 004 beta build 4 has a new BT stack. I've upgraded HTC's old stack to the latest CAF version while keeping Sense's customizations. I am interested in your issue. I have feedback from others who claimed the BT is better than before, you are the first to have an issue with this new stack.
[HTC Sensation] kdm06:
Hey faux. It has been pairing much more reliably with my headset, Sony mw600, since I started using 004b4. Up to the issue I had today it was perfect.

Here are my logs around the time I noticed the error. They are a bit of a mess but the error seems to be around

18:48:22.

http://db.tt/RXeEqaBZ

The issue solved by a restart of the phone. Working great again. I tried restarting the headset but it made no difference.

Hope this helps and thanks for a great kernel.

K

[Arhd 6.5.2 xe] [004b4] [Bluetooth headset Sony mw600]
[HTC Sensation] zimphishmonger:
Confirmed on my GFs sensation, BT is def working better. Less skipping and stuttering, cant comment about lack of connection or issues connecting to devices as I havent had any of those issues. What's really impressive is it barely even skips when screen off and locked at 594 mhz :D Cant give you anything technical, but Ive been experimenting w/ BT and A2DP for around a year now trying to get it working 100%, and this is def a step in the right direction. All my previous phones had this skipping issue as well so seems the CAF BT stack is an improvement.

That being said, Ive had 3 different cars with all those phones so the BT issue def is related to the phone and NOT the car head unit.
[HTC Sensation] inzaghi75:
Hi faux i have flashed your latest beta kernel. It is f......g smooth. Is it possible to integrate the beats driver and codecs from chad?

Sent from my Sensation using Ordroid Sense 4 and Tapatalk 2
[HTC Sensation] :
I've been running the 4b4 almost since it was released and I've had no problems so far. No reboots, no weird disconnects (of any sort) that I've noticed, nothing at all. My bluetooth always worked well, so I can't say if any issues were fixed.

One request, if it's possible, and while you're in the BT stuff anyway: when the A2DP connection is idle and has to wake up, there's a bit of a lag for the wakeup. So if I'm doing navigation via my headset, I'll get "...miles, turn left" (Because the BT wasn't awake for the "In point five...") I don't know if this is a difficult fix, or if it's even in the code area(s) where you're working, but I just thought I'd ask.

Thanks!
[HTC Sensation] zimphishmonger:
REMOVED
[HTC Sensation] faux123:
Chad is under NDA with HTC, so unless he builds the module for my kernel there is no way to enable beats.
[HTC Sensation] faux123:
My driver update is just that. BT is composed of number of components all have to work together. Kernel driver is just one of them, you also have frameswork and external bluez stack. What you are asking for is in either bluez or sense framework.
[HTC Sensation] :
Alright, thanks for the explanation!
[HTC Sensation] snake4fun:
How Can I check if the second core is offline with Display is on? I use kernel 004b4!

Gesendet von meinem HTC Sensation XE with Beats Audio mit Tapatalk