yashsingh1/xdaforums huggingface dataset:
[HTC One S] Zarboz:
You can but it would be best to just replace with the correspondig file from your Rom as the only reason its there was to over come cpu1 running away a Long time ago. Now we have mpdec we don't need the mod to the file
[HTC One S] Zarboz:
DO NOT DELETE IT

Download your Rom unzip and grab the original from there
[HTC One S] fantasist:
great, that's what I was just doing, just extracted venom 1.0 and going to replace the file now, will then test with kernel tuner and let you know how it goes. :)
[HTC One S] germandude68:
I got badass to stick now after reboot on both cpu's. I've installed the latest version of kernel tuner, checked the init.d on reboot in preferences. Then I went into Venom Tweaks and checked also Apply on boot. Rebooted and both cpu's are still showing as badass.
[HTC One S] fantasist:
Original file attached for people who need it.
[HTC One S] germandude68:
Thank you man. Actually I found it in the 1.0 version too, but after looking through the script from the ROM it shows Ondemand as well.

I'll do a few more reboots tomorrow to see if what I did before keeps sticking. The last reboot as mentioned above did stick. :D
[HTC One S] fantasist:
I've replaced init.qcom.post-boot.sh with the original one from venom 1.0 rom and tried to use kernel tuner to change the governor, still nothing sticks...
[HTC One S] Zarboz:
see if you can get one from stock stock

viperrom tweaked theeirs
[HTC One S] Zer0r:
My imperssions on it - very smooth, stable and battery efficient! As for 24 hours now. I had problems with flashing it from TWRP, but sine I flashed it with fastboot - I hadn't any problems, and battery life is really great!
[HTC One S] fantasist:
thanks Zarboz, after tweaking kernel tuner for a few days, I couldn't get it to stick at all... unlucky...

at the moment I added uv, sweep2wake and edited governors in init.qcom.post-boot.sh, everything works perfectly haha, I know it's not ideal, i'm gonna let it stay for a day or 2, just to enjoy the kernel. I get awesome screen on hours and performance with your zpower :), badass for 2 cpus, mpdecision, uved 50, 75 and 100, no glitches, no random reboot. :)
[HTC One S] ausaras:
I have been using Android Tuner for changing governors. Governor selection sticks, if you use apply on boot complete.

Kernel Tuner doesn't make governor stick even with apply on boot complete.
[HTC One S] germandude68:
But Kernel Tuner is sticking for me now.
[HTC One S] snwman:
Right so guys just to make it easier for people who want to use this kernal and have settings stick how about someone post on how exactly to get them to stick rather that going through 20posts. OR zarboz could you post it on the op page just till a more easier soloution is found
[HTC One S] germandude68:
As posted one page back and not sure if it works for you, but that's what made it work on my phone. First uncheck "Apply on boot" in Venom Tweaks and reboot. Then:

I've installed the latest version of kernel tuner. In Kernel Tuner I set the governors for both cpu's, checked the init.d on reboot in preferences. Then I went into Venom Tweaks and checked also "Apply on boot". Rebooted and both cpu's are still showing as badass.

Kernel Tuner download page:

http://kerneltuner.pedjaapps.in.rs/downloads/

Note: download the file and rename .htm as .apk
[HTC One S] nola78:
can you post your script pls?i have trouble with kerneltuner on stock tmo rom..
[HTC One S] Arijum:
Hello Zarboz,

i really appreciate your work. I'm so fascinated about your work, that I started focusing on kernel development. Currently I'm developing for some microcontrollerprojects. I hope the step into linux isnt going to be as difficult as I think. Anyway, linux is awesome :D

Further I tried out your newst kernel. Ive got some issues with your previous one, after two weeks.

The Problem: As you can see some red dots appeared in the status bar. After each screen change they appear in another form, sometimes they dont appear at all. But sometimes there are really allot. When I swipe over it, like when I use quicksettings etc. they disappear.

What I did: I did a fulllwipe and reinstalled my custom rom and flashed the kernel several times. No change, even when using the fastboot method. Undervolting deteriorates the issue. Overvolting (+25mV) makes it quite better, but still some issues. After installing Stock Rom+Kernel this problem didnt occured. But still the same when coming back to Viper+Your Kernel.

My specs:

ViperRom 1.20

Undervolted -25V

Underfrequenzed to 1025Hz

CPU1 and CPU0 on

Sleep2Wake on

Hope you have any solution for my issue. Thanks in advance.
[HTC One S] fantasist:
I have attached my edited init.qcom.post-boot.sh in the rar. However, you should know that it is not recommended by Zarboz to do this and I have no experience in coding, I just followed my instinct and echoed some stuff & changed permissions for some files which may not be right for you.

Below is the specific part that I edited or added in the sh file:

echo "badass" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

echo "badass" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

echo "1300 1250 1225 1200 1175 1150 1125 1112 1100 1100 1075 1075 1050 1050 1000 975 975 950 950 925 925 875 875 850 850 800 750 700" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

chmod 777 /sys/android_touch/sweep2wake

echo "0" > /sys/android_touch/sweep2wake

echo "1" > /sys/kernel/msm_mpdecision/conf/enabled

chmod 444 /sys/kernel/msm_mpdecision/conf/enabled

---------------------------------------------------------------------------------------------------------

I use the 2.1G version, badass for cpu0 & cpu1, (however, when I started testing for the 1st a few hours, cpu1 went back to ondemand, then I tried to use badass for cpu1 and made it read only, then cpu1 stopped going offline, so I added "chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor" in there and made sure mpdecision was enabled then I changed it to read only (when mpdecision is on, cpu1 can go offline). I think sweep2wake is cool to play with for a few days, but it's not ideal for me at the moment, sometimes it takes 5 to 6 tries wake the screen, so I just echoed it off.

I hope you can make your own version of this, it's working well for me now.
[HTC One S] germandude68:
Hi Zarboz, second day on the latest 1.8ghz kernel and I see some good improvement battery wise.

15 hours 30 minutes with 18% left and 2 hours 45 minutes screen time. The screen % that used to be so high is below 60%. I'm using badass governors on both cpu's. I'm sure in the next few days the kernel should settle even more.

Thank you so very much. You've done a great job!

Edit: LOL...wow, while I clicked the Submit button after writing the message above, at that same moment just had a pretty strong earthquake.
[HTC One S] Zarboz:
try to raise your min clock from 192-384

can you please PM me i was actually just looking for testers with the graphics problem

its my goal to fix it this weke
[HTC One S] Zarboz:
it is more efficient to place your initialization code in this .sh rather than a init.d because this runs before the system starts

init.d is right post boot

so you have better chance of it working in the init.qcom.post-boot.sh
[HTC One S] fantasist:
thansk Zarboz, it's good to know that. Learning something new everyday :). A following up question, why don't people develop those system tuners to directly change the values in the sh?
[HTC One S] Arijum:
Please check your PMs. I'm interested.
[HTC One S] germandude68:
Is it wise or worth it to set a higher value in powersave_bias (in kernel tuner)? I been reading it can make the device laggy. The default value is "0".
[HTC One S] Zarboz:
the file isnt really the same between roms so they do it with init.d to cut down on room for error

so that consumers dont complain lol
[HTC One S] snwman:
Already tried that man but cheers for the help...
[HTC One S] Sneakyghost:
Sorry no time atm. Maybe another time. Maybe you can fix these inconsistencies on the Kernel-Side inbetween? Not everyone is having it but a few. So... thanks mate..
[HTC One S] Zarboz:
i can it will be a few days
[HTC One S] Zarboz:
This is the reply i got from the developer of the app guys
[HTC One S] JCreations:
@Zarboz: I also had the graphics problems with my One S. They swapped my board due to an audio problem and now all glitches are gone with your kernel. So i asume that there are some differences in hardware.
[HTC One S] fantasist:
Hi Zarboz, what settings did you use to achieve that very high quadrant score?

I can barely achieve 6000 with 2.1G, badass on 2 cpus and noop scheduler.
[HTC One S] Zarboz:
Turn mpdec off put both cores on performance or asswax set the min and max clock to 2.1ghz

It was only to see how hard I could push it
[HTC One S] mliou:
Hey Zarboz, thanks for the continuous update on the kernel. The version before the current one, I flashed the boot.img you provided and I see less graphical glitches compared to the current one. I tried it with vsync on and off but still some glitches.
[HTC One S] shokuhawan:
Is sweep2wake works? I tried both version on stock rom and nothing happened

---------- Post added at 04:55 PM ---------- Previous post was at 04:54 PM ----------

Does sweep2wake works? I tried both version on stock rom but nothing happedned
[HTC One S] Zarboz:
i have been doing some research and seeking out other dev's opinions on the error and i think its the GPU/Bus speed

but the thing is when i use stock GPU clocks / files and dependancies you guys still report the tearing and streaking

so im unsure of what would cause this........
[HTC One S] germandude68:
Hello Zarboz, is it normal for SmartassV2 to be stuck on 1.8ghz on cpu0? It's doing the same on cpu1, but the good thing it goes offline when needed coz of mpdecision. Just wanted to check if it's normal, as I can watch it now through Kernel Tuner.

When I use for example badass, it fluctuates on both cpu's, which I would probably expect.
[HTC One S] Zarboz:
could be the revision of smartassv2 i used
[HTC One S] ausaras:
What about the launcher used?

I used Apex 1.3 once and had graphic glitches. Switched back to Apex 1.2.5 and no graphic glitches.

Now, I am on 1.3.4 beta, no graphic glitches.

The graphic glitches might not be kernel related.
[HTC One S] Zarboz:
i know what they are but have no solid proof yet

and its starting to look more and more like HTC just failed at coding libs
[HTC One S] germandude68:
Is it going to hurt or damage the cpu if it's permanently static sitting on 1.8ghz?
[HTC One S] Zarboz:
i wouldnt really reccomend have your cpu at max speed
[HTC One S] sherry478:
how is sweep2wake coming along?
[HTC One S] Zarboz:
I need a dev who can write c algorithms from scratch because we have to re engineer s2w to work an entirely different way

It will be a while (unless the man im talking to now can shed some light on this for me :D)
[HTC One S] yamakouwxga:
This kernel dependent mksh permission?
[HTC One S] Sneakyghost:
Bullish1t!

SmartAss is supposed to behave like every other governor and regulate the frequency. The only governor keeping it up at max continuously is "performance".

This spiking up and staying there is part of the problem we are talking about since release.

First, settings seem not to stick, second, the cpu stays at max.

This is something to do with the permissions of the files and folders where the settings get stored and with klin's kernel the right folder couldn't be created. Only the latest SetCPU could.

So it's partly the permissions and partly the control app. It might also be the mount of system. Not sure. But it's definitely the same crap as with klin's.

The cpu stays at max because the settings files are missing.

sent with a home button bug...
[HTC One S] Zarboz:
really

i can show you the source and why that is due to the revision used :D
[HTC One S] Kestr3l:
How to Flash?

Gesendet von meinem HTC One S mit Tapatalk 2
[HTC One S] mliou:
Depends on your hboot.
[HTC One S] :
Hide in a bush in the park wearing nothing but a rain mac and jump out when a woman walks past, then open your jacket and jiggle.
[HTC One S] pirlano:
flashing zip via recovery cause a bootloop for me

flashing img via fastboot works ok, but i have no scripts
[HTC One S] Sneakyghost:
You sure about SmartAss 2 staying at max being normal behavior? I seriously doubt that.

I don't need to see the source code as I can't read it but if you use common sense you will know that that makes no sense at all. If the cpu stays at max the whole purpose of the governor is reduced to keeping the speed up, which ultimately equals it to "performance" then.

Can you explain how that makes sense?

sent with a home button bug...
[HTC One S] Raptylos:
Just in case you missed it, kernel tuner is now available in version 3.2. Restore settings on boot complete now works like a charm.

My results so far for today is a screentime of 3h47min, time since charge is 1d3h21min and still 31% juice left.

Used with 2/3 of 3g and 1/3 of WLAN, about 40min of phonecalls and of course some reading in Xda, webbrowsing and chatting.

Settings of kernel are 1.7Ghz for both CPUs with badass governor, undervolted in a raising table from 700mV@192MHz up to 1125mV@1.7GHz

Thanks Zarboz, this is awesome.

---------- Post added at 12:44 AM ---------- Previous post was at 12:29 AM ----------

I think, he means that he implemented a faulty version of smartass v2. The behavior is not supposed to be like that and Zarboz is aware of that bug.
[HTC One S] germandude68:
Yeah this is definitely a faulty version of Smartass2, as I did not see the permanent spike before.

Something weird happened yesterday, which had me restore my phone. I selected OndemandX from Kernel Tuner and after this it just kept freezing and reboot on it's own. Later on when trying to reboot, it just got stuck on the bootup animation. Wiping dalvik cache and stuff wouldn't work for me to fix it.
[HTC One S] Zarboz:
I am revising badass and mpdec as I can consistently hit quads of 6600+ with mpdec on hitting avg of 15 hours battery life 3-4 hours screen on time
[HTC One S] Zarboz:
Like I said its the version of smartassv2 I used lol
[HTC One S] pirlano:
a cool feature is amoled calibration :D

my One S got a ****in' green tint and HTC won't change it :/
[HTC One S] germandude68:
Actually, Zarboz, I start to like badass a lot and have been using it quite frequently. Battery life has been going down for me, but that could have been because of tinkering around with the phone a lot lately :P

By the way, did you see any profiles for voltages like it says in the log for the Kernel Tuner 3.2 update? I couldn't find anything.

Finally the settings stick after reboot with the latest version. :D
[HTC One S] Zarboz:
set its phase 2 freq to the equivilent of 1.2ghz and its stage 3 freq to 1728000

you will be amazed at the smoothness
[HTC One S] germandude68:
You mean you set it in your new badass gov version that's going to come with your update? Haha...so sorry, I'm not sure how to set it yet what you've described. Is there a way for you to share a profile for Kernel Tuner that I can plug into my device?
[HTC One S] germandude68:
You mean in here right? Which number do I need to fill in for phase 2 frequency and which for phase 3 frequency?
[HTC One S] snwman:
So used the new version of kernal tuner. Settings stuck was using on-demand x and after first reboot both CPUs showed it sticking but then I got reboot after reboot. I had adjusted voltage to -50 before setting governors. So once I got it to stable again I set the voltage to -25 but same thing happened.

So zarboz is ondemandx buggy I used it with venom tweaks for last few days with no problems. Now I'm using badass on both CPUs and -25 voltage and no sudden reboots
[HTC One S] germandude68:
I don't know what's wrong with ondemand X, but it totally screwed up my phone. I'm sticking with badass for now. The battery even with several reboots today and using the screen on for longer periods of time seems to be doing well.
[HTC One S] Sneakyghost:
My phone has a reddish tint since it got a new screen. My wife's, which has its original screen, has a cool blueish white like it couldn't be any better.

I wonder where your greenish tint comes from.

sent with a home button bug...
[HTC One S] Zarboz:
Updated OP with the newest one I am running guys. Let me know if graphical problems still occur on this one. This build is made with the newest linaro toolchain 4.7-2012.10 downloaded from http://www.linaro.org/ it has been run with their optimized build setting. Soon I will add ARM topology stuff as well as some other things
[HTC One S] germandude68:
Thank you Zarboz. Installed and ok so far. I see what you did with the badass kernel for phase 2 & 3 frequency. Wow...the device cools down fast.

I'll keep testing a bit more.

I have a question, sometimes I see the screen flicker at times (like the screen goes black for a second, but comes right back). Doesn't happen often and mainly when the device just started up. It happened to me for the past few kernel installs. Is this normal behavior?
[HTC One S] Hopie:
hey, i flashed your new kernel. i set max to 1,5ghz. but system tuner shows max speed 1,13ghz!?

settings are at 1,5ghz

governor is badass

at asswax, both cores stays at 1,5ghz

Sent from my HTC One S powered by maximuS
[HTC One S] germandude68:
I'm seeing the same with 1.8 max. Seems the device is a bit laggy.
[HTC One S] raulillo88:
The link is down at last for me

Enviado desde mi VilleDroid_v1.1 usando Tapatalk 2
[HTC One S] :
Any chance of someone posting the 1.8 boot.img please?
[HTC One S] Rampage:
You're the man Zarboz!!

Now with the latest build of the Ville-Z Kernel are all of the graphic glitches gone :o :victory: :highfive: :good:
[HTC One S] Zarboz:
I typoed when punching in the Timeout for mpdec Change it to 1000 and ramp up to 95 with. Sample rate of 125

These will be set on my end for next release
[HTC One S] Raptylos:
Ignore post
[HTC One S] Hopie:
where´s this option?
[HTC One S] Zarboz:
Please use.kernel tuner or manually edit the files in

/sys/kernel/msm_mpdecision/config/
[HTC One S] Sneakyghost:
Hey Zarboz mate,

What's the value "timeout" called in kernel tuner?

I have difficulties identifying the right parameters here. Where exactly was that typo?

sent with a home button bug...
[HTC One S] germandude68:
Same here Zarboz. No idea what values go where from Kernel Tuner.
[HTC One S] Hopie:
i use kernel tuner

i doesn´t find timeout and ramp

under mpdecision:

service start delay: 500

sleep time: 10000

up threshold (load): 30

(time): 250

and the same for down
[HTC One S] Zarboz:
sleeptime -> 1000

up threshold load -> 95

up threshold time -> 125
[HTC One S] germandude68:
That's odd, after changing those settings cpu0 is between 380400 to 1134000. I think before it was between 192000 to 1134000.

Shouldn't it start from 192000 as that's what I think is setup for default when flashing your kernel? Is it also not supposed to go higher than 1134000? I remember before in the last version, badass was able to go up to 1897000 (or something like that). Seems the device is still a bit laggy.

Edit: after a reboot, the device is even more laggy and choppy, especially on the homescreen. Setting are still everywhere the same in Kernel Tuner. One thing I noticed also is that the percentage of the cpu load seems to be much higher and doesn't wanna go down to lower %.
[HTC One S] Hopie:
it change automatically from 192 to 384 after few minutes.

with asswax is a higher speed possible, but it stay it on it. on both cores.

i don´t have lags
[HTC One S] Zarboz:
in /system/etc/init.qcom.post-boot.sh

look for the min frequencies

and update them from 384000 to 192000
[HTC One S] :
Pretty please?
[HTC One S] germandude68:
Done Zarboz and working. Would you please kindly explain if badass is designed to only go up to 1134000 rather than to the highest at 1890000? I think the other had the same question. By the way, smartassV2 is now normal as well and not stuck on the highest freq.
[HTC One S] Zarboz:
i tried to change the settings for badass kernel side so you wouldnt have to tweak the governor for performance (it was designed for battery life by teh author:showp1984)

not as much power but i find with tweaking it can give a great balance
[HTC One S] germandude68:
The CPU load is still very high with badass. Constantly between 67% - 100%, even though I'm not doing anything with the device.

The previous kernel version, badass had a very low CPU load and no lag.
[HTC One S] Zarboz:
this was due to the alteration i made on my end
[HTC One S] fantasist:
Zarboz, I found there is a new init script called 31mpdec, but the location is wrong. Is that your intention? And why echo off mpdecision?

#!/system/bin/sh

echo 0 > /sys/kernel/msm_mpdecision/config/enable

Should be enabled instead of enable.

Another thing is the gpu clocking, mine shows both 2d and 3d are maxed at 200 under kernel tuner

---------- Post added at 04:41 PM ---------- Previous post was at 04:36 PM ----------

Can you also teach us on thermald pls?
[HTC One S] Zarboz:
Kernel tuner is printing the wrong selections if you don't touch the gpu clocks in kernel tuner they will be set the right way on boot
[HTC One S] mliou:
So Zarboz, for badass the freq only go up to 1134000?
[HTC One S] Roman441:
S2W works best with Kernel version ....238.s2w

all other have problem with s2w when phone on deep sleep
[HTC One S] Zarboz:
This is due to mpdecision. When i figure out how to rewrite the entire s2w function to work around the keypress of back home and recent apps we wont have that problem.. (and itll work on the soft keys)
[HTC One S] atego177:
2wcr call recording

Any news developments
[HTC One S] Zarboz:
not yet
[HTC One S] Sneakyghost:
Zarboz mate, SmartAss 2 is working for me when only cpu0 is set to it and cpu1 is set to BadAss. If both cores are set to it, cpu0 goes to constant max and cpu1 switches off.

Can't you figure out this sh1t mate? It's really doing my head in. SmartAss 2 is always best balanced with performance and battery. I really want it. Can I help figure out the problem somehow?

sent with a home button bug...
[HTC One S] Zarboz:
edit your qcom.post-boot.sh with the governor you want as default

this is going to be a option in the installer soon
[HTC One S] Zarboz:
Zoooom
[HTC One S] v3n3:
Dont know if that allready happened to someone, but when waking up the Phone using the Power-Button it takes 1 to 2 seconds for the Screen to wake up.

Max-Clock: 1,8Ghz

Min-Clock: 192Mhz
[HTC One S] DrRyder:
Damn son. What are you using to get that? I'm thinkin' of coming back to Sense and getting back on this kernel. I enjoy the Jelly Bean AOSP, but I enjoy the faster speeds of this kernel.

Never would have thought that AOSP would get a lower Quadrant Score than Sense.
[HTC One S] Zarboz:
https://www.dropbox.com/s/5l75npxhpcwlbya/2012-11-04_16-28-02.png

https://www.dropbox.com/s/ibqw4logbaa3qef/2012-11-04_16-27-52.png

https://www.dropbox.com/s/ulgcchnfefnpyz5/2012-11-04_16-27-39.png

https://www.dropbox.com/s/d6ix8mb84b0npmq/2012-11-04_16-27-34.png

https://www.dropbox.com/s/s57qusofgfungc6/2012-11-04_16-27-29.png

https://www.dropbox.com/s/x3lnyu7wwfy1m6m/2012-11-04_16-27-26.png

https://www.dropbox.com/s/ex3wy5vhn571b32/2012-11-04_16-27-10.png
[HTC One S] nola78:
i use twrp and dumlock,but the installer hangs at 10% ,can you release a fastboot img with s2w off and stock freq?
[HTC One S] DrRyder:
God damn. That thing must fly. How's battery?

Also, do you have a boot.img uploaded for the 2.1 Ghz kernel? I just downloaded the RUU for stock and am about to go back to it, root, and all that good ****.
[HTC One S] Zarboz:
i have an updated method from xhausx that is working on all One XL hboots

i want to let a few of you guys try it here first before its a full release

PM me if you cant flash my zip in your recovery due to hboot
[HTC One S] DrRyder:
In that case, count me in, bro. You know I'm on 1.14 and always have problems flashing your kernel zips. So, let me get some of that and I'll test it out for you in just a little bit. Gotta put my recovery back and flash RUU 2.35 first.