yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] iba21:
you could find it in OP

screen ON:

- dualcore with all cores turned on

- governor badass for all of 2 cores

- min freq at 192mhz for all of 2 cores

- max freq at 1.566ghz for all of 2 cores

- first phase freq at 810mhz for bla bla bla

- second phase freq at 1.188ghz for bla bla bla

- third phase freq at 1.566ghz (is the maxfreq)

screen OFF:

- only core0 turned on

- governor conservative

- minfreq 192mhz

- maxfreq 540mhz

and this is english ;)

simply my script changes the stock setting of badass governor of bricked kernel..

with stock settages, sensation uses ONE CORE, and the second is turned on only when it needed.. sure.. the turning on-off has an huge lag

with my script all of 2 cores are turned on when screen is on..

what's the difference from stock configuration and my configuration?

when you use phone in stock configuration, firstly system uses all of the first core, and than, turned on the second core.. so.. in stock configuration you have a monocore with turbo mode..

with my script you have a pure dualcore with 3 frequency limits.. when stock configuration uses the 100% of the first core, my script uses all cores at about 1/2 of frequency..

if you don't know.. less is the frequency, less is the voltage, lesser and lesser will be the power consuption..

i wrote it 200 times :(

for rookie peoples, all of you have 3 ways:

1) use the stock setting with hight power consuption

2) use faux kernel with highter performance and highter power consuption

3) use badass with my script for the best performance per Watt

i share this because it's the logically of the comunity.. i could create it only for my own :rolleyes:

so, you could try it, if you enjoy my work, press thanks button, if this setting is not good for you, delete it and chose another way ;)

i repeat.. my script changes only the stock SETTINGS of badass governor.. it's not the fault of frequency changing.. my script changes only the NUMERICAL VALUES.. stop..

you couldn't damage you phone ;)

i advise the script of OP page.. the others have little changes of stock value for more performance, sure, more performance = more power consuption

EDIT: if you don't know how cpu works, what is a governor, and how the governor works, it's unusefull to teach what my scripts do.. you have to understand what is a governor and how it changes the frequency of the cpu, and than, you'll understand what is the numbers of my script.. It's not necessary to understand it, simply, use my script with show's great work (the kernel) if you have better power consuption than stock configuration ;)
[HTC Sensation] jaysun3000:
Hmmm is there another way to.start the script other than the linux script handler because I don't have that option?
[HTC Sensation] iba21:
if roms has the ... emh... possibility to use script, it will auto run it at boot..

sure.. not all roms has this feature.. probably, miui doesen't have it.. stock htc's rom too..

the linux script handler is the manual way to run the script

but.. are you using root explorer?

you doesen't have that option because you are using EXPLORER and not ROOT EXPLORER.. the second one is the payd version.. Explorer doesen't have the PERMISSION option.. so.. if you don't give root permission to the script.. system couldn't run it!
[HTC Sensation] dodjob:
Hi,

I'm using ARHD 6.6.4 and I have root explorer (not only explorer)

I can change permissions ( I can also change them with ES explorer). But I don't have the option "open as"

When I restart an check permission on the files the "Group/Write" and "Others/Write" option are unquoted. And of course no "controller" folder.

Do I make something wrong?

Gruß,

H.
[HTC Sensation] iba21:
try to find the init.d permissions by using root explorer

the first code of the script is this

mv /system/bin/mpdecision /system/bin/mpdecision_dis <- raname mpdecision

rm /system/etc/init.d/89badass <- delete 89badass

mkdir /system/etc/init.d/controller <- create folder controller

chmod 777 /system/etc/init.d/controller/controller <- permission

echo "1" > /system/etc/init.d/controller/controller <- controller file

chmod 777 /system/etc/init.d/controller/controller <- permission

as you could see.. if script was runned.. you have to have that folder

i tryed it now.. and.. it works.. :rolleyes:

i.imgur.com/Rzirb.png

if you don't have controller folder... maybe.. or script isn't loaded.. or there aren't the permission of the file

i'm on last ordroid sense 4 (7.1.3)

if you want to install that rom and try if it works on that..

for me it's a permission fault

p.s. i used arhd + insertcoin sense 3.5.. and.. in all roms i used my script.. not badass.. but.. ondemand script.. and.. everytime it worked.. so..i suppouse it's not a rom fault, but, i suppouse you don't do all the thing..

try to delete script.. reboot.. and follow the main guide.. point per point! ;)

umh.. are there other 69 in init.d folder?
[HTC Sensation] dodjob:
thanks for the quick reply.

I did follow all the points ^^ and there is only one "69***" file there (yours)

I will try the sense 4 next week and keep you updated if it's working or not ;)

Thanks again for your work and I will definitively succeed :D

Gruß,

H
[HTC Sensation] iba21:
hope for good news :D

sure.. i'm on ordroid.. and here all is smooth, UI too..

i'm pretty sure you'll love it :D

for the other roms.. when i have some time, i'll try to change to arhd, to try to see if it works
[HTC Sensation] jaysun3000:
So I found a program on the market that I was able to use to execute the file with once copied into init.d and now I do have the controller folder....but still even if this is so and miui doesn't have script libraries will it still not work....there is one file in that contoller folder and its called controller its file size is 0.00k is this right?
[HTC Sensation] iba21:
yep, if you have that file it means script was loaded..

now, you have to turn down the screen, wait 3 seconds, and return in the controller folder.. you have to have the second file called screenoff.. if you don't have that, the script can't switch from screen on configuration (badass dualcore) to screen off configuration (conservative monocore)

you must have that 2 files

http://i.imgur.com/Rzirb.png

p.s. try to open the controller file.. open with text (by using root explorer), if you see a 0 or an 1 number, it's all ok..

in screenoff you must see an OK
[HTC Sensation] jaysun3000:
I will try that now thx
[HTC Sensation] jaysun3000:
Finally got it....I see a 0 for controller and ok for screenoff thx iba
[HTC Sensation] iba21:
ok.. it's working as it have to work :D

you're welcome.. hope you enjoy

oh.. write here some feedback of performance/power consuption plz

p.s. (is my english so bad? you are a pure american..)
[HTC Sensation] jaysun3000:
i will post results soon for MIUI with you script.....i think your english is fine i can understand you....but yeah i only know english....maybe some spanish and korean but thats it and not enough to commuicate in those languages:D
[HTC Sensation] Abaddon:
Works great on pkmn charmander :)
[HTC Sensation] iba21:
i.. emh.. "do" too errors? :p

p.s. where was the problem with script and miui rom? maybe the permissions setted by another tool than root explorer?

pkm is sense4.. ok.. with sense4 we can say the smoothness of UI is ok

with sense 3.6? i suppouse it will be better than sense4 since the sense4 is heavier than the 3.6
[HTC Sensation] jaysun3000:
Yaffs Explorer from the Market has a script excute option the Explorer I use don't have that option and that was my problem all along...I didn't see your the apk you sent me in private message until after I made it work lol
[HTC Sensation] jaysun3000:
Alright the battery life was great on the official MIUI Rom with your script...I must say that it was pretty smooth as well....I'm back on ordroid shniz released yet another update I'm using your script again thanks iba....
[HTC Sensation] iba21:
ehehe :D

thank you for your feedback :D

p.s. are you using the script in OP?
[HTC Sensation] jaysun3000:
Yup using the script in the OP.
[HTC Sensation] ibasarr:
just wondering: is it ok to use GPU low overclock, 3D@300Mhz & 2D@228Mhz & how bad is the on-off lag??!

thanks
[HTC Sensation] iba21:
badass works better with NO overclock.. why? it chose how frequency will be used by gpu % usage.. so.. if you have oc, you have more power % usage, so, it will level up the frequency at highter usage.. it means more lag..

so.. don't use overlock.. it's unusefull..

on-off lag of what? screen on-off? i don't have lag in screen on-off.. conservative to badass setting changes immediately..

if you means about the booting bug.. i can't solve it.. it's an android scripting bug.. at boot up android force only one core, script can't write the new setting, and, you'll have only one core with badass setting..

with the first standby condiction, script will change the badas's settings to conservative with 1 core turned on.. after turning on the screen, script will change the badas's settings to badass with all cores turned on
[HTC Sensation] dodjob:
ooook, I'm Back :)

Installed Ordroid 8.1 on monday and your script today.

I couldn't make the "long press on 69force -> open with -> Linux Script Handler -> Execute" because the option wasn't available...

BUT

After reboot, there is a "controller" folder in my init.d :D

and no lag.. Let see how your script works!! I will keep you updated on my battery consumption.

Thanks for your work!

Gruß,

H.
[HTC Sensation] iba21:
in controller folder do you have 2 files? a controller and screenoff file?
[HTC Sensation] dodjob:
YES :D

And the phone is way less laggy as with stock bricked kernel. It's still not as smooth as with the Sebastian's kernel but already really smoother ;)

Gruß,

H.
[HTC Sensation] aimcr7:
Trying this script just now.

Will give you some feedback later. :)
[HTC Sensation] jaysun3000:
I have a question iba. Once the script is executed and I already have the bricked kernel set on the defaults on badass at ROM flash and say I go into my program SetCPU and the frequencies are different then the defaults do I correct it to 1566/192 or leave it?
[HTC Sensation] iba21:
it's a rom fault.. if rom has PURE rendering UI, you'll not have lags..

sure.. other kernel uses ondemand conception, so, the cpu goes to 1.56ghz everytime..

if you touch your phone, you'll see you'll have overheating with stock ondemand conception + 1.56ghz.. or not? ;)

hope you enjoy my script.. and.. sure.. change rom :D

p.s. do you have OC? with OC badass governor works worst than without OC..

i'm running on ordroid + sense4.. and for me.. the fluidity of the rom is ok.. scrolling of android's home pages is so smooth even if you use "big" and "heavy" widget (like music..)

if you have lags.. try to change rom.. get a fresh install..

DON'T INSTALL SETCPU

, install system tuner only for UV.. don't use OC..

p.s. with ordroid + bricked with stock badass setting (so.. with only one core) i have smooth slidings everywhere..

and it's a sense4 rom.. (it means it's BIG)

oh.. if you are using zram.. delete it.. it decrese cpu performance
[HTC Sensation] iba21:
my advice it to delete setCPU.. it's a daemon witch force the frequency of the cpu, so, it could change the benefit of badass governor by deleting the 3 steps of cpu

if you want to know if badass + my script works, you can download system tuner.. and..

DON'T TOUCH ANYTHING

;)

why? this daemons can change the correct settings of badass governor.. it's too difficult to say if you don't know what is a governor and how it works..

the better condiction is to NOT have that daemon.. so.. use only the stock controller governor of the kernel (my script changes the settings of controller governors as daemons tool do.. my script is a controller governor too a daemon.. but.. you can undearstand it's smaller, it' less invasive than other daemons..

and.. sure.. my script isn't dinamically!

setcpu changes the frequency dinamically as it would do.. so.. it brake the functions of stock kernel's daemon..

mmm.. it's not so easy to teach.. :p

as i said.. don't use this tools.. or.. only use system tuner for UV.. only UV ;)
[HTC Sensation] ibasarr:
i only get the controller file, NOT screenoff file !! what i'm i doing wrong?
[HTC Sensation] moonjak:
Hey, thanks for the script. im liking it with bricked kernel...

testing some UV settings and it seems quite stable with -100mV (8 taps) from system tuner... was wondering does bricked kernel have some default UV?

Allso anyway to save UV settings with system tuner free version over boot?

i see you have -200mV i tried to archieve there but when i go -125mV phone hangs :)... anyways its great combo nonetheless...

thanks for the hard work!

Happy Sunday!
[HTC Sensation] iba21:
turn off the screen and go to the folder.. if you don't see the screenoff file.. it's a permission fault.. try to see if you have root access
[HTC Sensation] iba21:
in system tuner.. chose voltages.. go to cpu tab.. boot setting.. and select "re-apply cpu setting" -> init.d script

reboot
[HTC Sensation] ibasarr:
THANKSSSSS, the script works perfect now!!!

my phone does get hot when i play games....how much UV do you recommend??!

i have bricked kernel and 69force384-1566.zip . rom is Sense-o-Maniac -ICE- v2.9 Sense3.6.

GREAT WORK AGAIN
[HTC Sensation] iba21:
your phone gets hot since you are playing a game :D

when system uses too much GPU, phone burns..

with UV you can't controll gpu voltages, only cpu.. so.. it's the same..

p.s. no-one phone can play a game without overheating

if you don't have O.H. in web browsing without flash (not with browser but with chrome beta or safari beta), it's all ok..it's normally

for 3G connections and gaming, phone burns :mad:
[HTC Sensation] ibasarr:
Alright, thanks again!!!!
[HTC Sensation] chrisrj28:
So I want to be able to add this script to a room before flashing, will it auto activate when flashing or is there something special I need to do?
[HTC Sensation] iba21:
if i understand right.. you'd want to flash this script as you can flash the zram script with recovery zip file.. right?

i don't think there will be problems.. at first boot.. script renames the mpdecision file.. so.. you have to reboot another one time to disable mpdecision loading.. for the other.. if you script has root access, it's all ok..

p.s. how to create zip files? :D

EDIT: now i understand what you say

if you flash the rom by recovery, that rom cleans system partition, so, you'll don't have the script in init.d folder after reboot

so.. you have to "reinstall" the script at every rom flashing
[HTC Sensation] TheUnreaL:
Hi,

I have to say that this script is a very good idea, but there's a little problem that I testes right now with Temple Run, it regards the third phase never used. I user CPU Spy (timer reset before the test), I played Temple Run for 5 minutes and then closed it, then I saw CPU Spy results: the CPU has never reached the third phase, and so never reached the MAX freq (1512 MHz for me: for this max freq I have 0 seconds time usage, that is not acceptable while using a game). I've done a workaround for this test by choosing 2nd phase with 1188MHz and 3rd phase with 1512Mhz but also with this confs 3rd phase NEVER reached (max freq was 1188MHz during Temple Run exec), please do this kind of test for yourself and check it and try to fix, I think it's the only problem with this script
[HTC Sensation] iba21:
for le palanche! :D

do you try the script in OP page?

the 192 1188 doesen't have the third phase.. sure.. it has a maxfreq of 1188

do you use system tuner? maybe it can change the maxfreq to 1188

do you use setcpu?

i'll post some pics of if

http://imgur.com/a/PiYW3#0

p.s. temple run is a game, maybe it doesen't need maxfreq to run smooth..

if i play with tetris, i suppouse, cpu doesen't level up at second phase..

badass goes to nex phase ONLY IF SOFTWARE NEED MORE THAN MAXFREQ OF THE PHASE

so.. if a game uses less than 1.188mhz.. for ex.. 1.187.. badass will not grow up the frequency..

if you have smooth experience while playing the game, lower freq means lower power consuption and lower overheating!

try it.. download stability test.. run it for 1 min.. after that open cpy spy and see ;-)
[HTC Sensation] TheUnreaL:
I used the 384-1566 one, but finally modified by me with 192-1512 with 2nd phase at 1188 and 3rd at 1512, with Temple Run it stays always at 810 and it's not absolutely smooth, it's slugghish, so I put 1188 instead of 810 and now it's better, but it can be better that this, I'm sure...I don't use system tuner, I use Rom Toolbox but I didn't use it for CPU control...btw I'll try the test, how to perform it? Is it an app?

Inviato dal mio HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] iba21:
do you have bricked governor.. right? :p

i'm going to try this temple run..

but.. get a fresh install (it means you have to go to recovery and reinstall the rom, without fullwipe)

after that, download script in OP page, and install it by using the guide in OP page..

and try with that configuration

if system can't load up on the 810mhz it's not a script fault.. my script only changes some numbers, it doesen't execute the governor..

http://imgur.com/a/UDH3g#0

this is what i did in the test.. all was smooth.. and.. the game doesent need too mouch cpu usage..

get a ftesh installation

and.. dont touch the script.. 1566 is the native freq of sensation cpu ;)
[HTC Sensation] TheUnreaL:
Haha of course I have it ;) and I've done exactly what you said (fresh Rom installation, and 69force placed in the right folder with the right permissions)...I think it's a "problem" (better to call it only "setting") of too low frequency scaling based on CPU load, I mean maybe the frequency raise not sufficiently high for the CPU load, but it's only my opinion :), btw thanks for the aswers!

Inviato dal mio HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] iba21:
you can try to put 60 in upthreshold.. but.. it's the same as 80..

buy.. you said you couldn't use cpu over 810mhz.. the "lagghing" problem when badass changes from a phase to the next is another..

you can't change values for that second option, since, badass grow up frequency only if cpu load is more than that freq..

so.. 810mhz is the first phase.. badass turn on second phase only if system needs more than 810mhz (like... 811 :D)

if you put 60 in upthreshold, badass phase grows up faster, but, the phase, not the switching of the phase!

if you put 10 on upthreshold.. system grow up freq at maxfreq of the phase everytime.. it changes phase ONLY if system needs more than maxfreq of the phase.. do you understand?

but.. the lag is minimal..

if you want pure performance.. use faux kernel, but, with that you always have a dualcore with 1.56ghz.. it means.. power consuption + overheating

with my script, system reach 1.56ghz only if it really needs.. in gaming and browsing + flash player.. for other thing.. not.. it means less power consuption..

p.s. do you solve the issue of lagging game after fresh installation?

p.s.2. i playd that game, and, it was smooth as well as it need..

do you have GPU OC?
[HTC Sensation] TheUnreaL:
Yeah I competely got it, before trying the solution that I wrote in the previous post I already tried putting 60 as the upthreshold and indeed nothing changes for the game...so I used my solution and now the game is running good ;) dude, with your script you've done an awesome work in a very simple way, I love the fact it's so easy to change value for better fit my performance + power saving needs, now I gained +15 minutes of screen instead of the normal bricked kernel with interactive governor that I used before this script (but today I kept 3g for almost all the time, I'm sure I'll gain at least +30min thanks to you) and I didn't noticed so bothering lags now ;). I've tried faux kernel v004 and it sucked, lags everywhere and continuous random reboots, impossible to use the phone so I changed to this and found my way ;). And no, I never use OC both for CPU and GPU!

Inviato dal mio HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] iba21:
i'm happy you enjoy it! :D

if you want to put 5 stars in OP.. :p
[HTC Sensation] :
Interesting. I implemented a nice cheap kernel driver which completely replaced the convoluted and expensive mpdecision and which improved performance immensely on the Sensation. The driver has a 'boost' feature to do basically as you are doing with your script and it also hooked into the early suspend API to disable CPU1 when the screen was turned off.

However, to get back to the point, in my testing I found that having both cores online when the system doesn't need them both causes the l2 bus to run slower which reduces memory bandwidth and therefore device performance.

That issue appeared to be caused by the l2 bus speed being based on the clock speed of CPU0, which is independent of the clock speed of CPU1, which causes the issue if CPU1 is the only core which is under load I noticed regularly.
[HTC Sensation] buzzboy:
Congratulations, you made the front page!

Great job OP.

*On a side note, it's good to see Thalamus here. A Kernel legend on my Old Desire with Oxygen.

Regards.
[HTC Sensation] gene_wildhart:
Interesting observation. Wonder if preferring CPU0 over CPU1 and enabling CPU affinity would help in the case where both cores are enabled.

Have you released your code, or is there someplace were we can download it?
[HTC Sensation] TheUnreaL:
Ok found my final conf: 1188MHz 2nd phase and 1350MHz 3rd phase, I tried to play with gpu thresholds in your script but nothing changed: while playing, max freq was never reached but doesn't matter because now it's smooth enough to play @ 1188MHz, but actually I'd prefer to manage to reach max freq (or an higher one) while playing and use yours (810 for 2nd and 1188 for the 3rd) while using phone normally, cuz with your parameters the phone is smooth enough and will waste less energy than mine; I prefer to waste more energy while playing and having your parameters while using the phone normally instead of mine, maybe there's a way to do it? I mean, I want to be "more sensible" to GPU load instead of the CPU load, in order to have high frequencies ONLY while using 3d games (or heavy 2d games) and using your default conf while using the phone in all the other "lighter" ways.

P.S.: I rated 5 stars your thread, and congrats for the article appeared today on the XDA home page =)