yashsingh1/xdaforums huggingface dataset:
[HTC One S] show-p1984:
GPU Overclock is available, you can use it using the kcontrol_gpu_msm.ko module in /system/lib/modules/.

How to insert it:

https://raw.github.com/showp1984/kcontrol_gpu_msm/master/README

The Sysfs tuneables are in /sys/kernel/kcontrol_gpu_msm/ after you inserted it.

This allows you way more than just simple overclocking.

If you want to echo stuff to iolevels and pwrlevels beware that you can only change one entry at a time. So to change entry 0 (the first) just echo "0 valuehere".

eg:

echo "0 100" > /sys/kernel/kcontrol_gpu_msm/kgsl_iofraction

or:

echo "4 33" > /sys/kernel/kcontrol_gpu_msm/kgsl_iofraction

etc...

Also: changing the highest powerlevel will not automagically oc your GPU, you will also have to raise the kgsl drivers max clock, since it will not use any powerlevel above this value:

echo "450000000" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
[HTC One S] gelo01:
It's just so complicated for me.. :o
[HTC One S] sepsep 21:
Ohh. Tnx. But I didn't understand:(o_Oo_Oo_O. Sry. Can you do it yourself plz. Sry.
[HTC One S] show-p1984:
I may extract the GPU part of KControl and put it up on bricked.de for free with ads.

But it shouldn't be hard to follow these steps I posted, should it? :)
[HTC One S] sepsep 21:
Tnx a lot.
[HTC One S] usaff22:
As showp said, it isn't really hard to create an init.d script. Why would you want GPU OC anyway? All it does is make a benchmark 10 points better and deteriorate the life of your chipset. If your phone dies 2 months later, don't come running :rolleyes:
[HTC One S] sepsep 21:
Just want to play fast and furious 6 not for benchmarking.
[HTC One S] gelo01:
Or you could just use setcpu, set a profile for ff6, use performance as governor and deadline as i/o. Then set the max freq to 1512MHz so that it'd be locked to that freq when you're gaming. That's what i did in real racing 3 and nfs most wanted, and both run smoothly with just rare fps drops..
[HTC One S] sepsep 21:
Sry show-p but Im noob can you just upload the modified module. Sry again for my bad english.
[HTC One S] show-p1984:
The modified module?

The module doesn't need to be modified, it was built during the kernel build process, thrown into the zip and is working perfectly fine. Just insert it.
[HTC One S] show-p1984:
Ahem.

http://xdaforums.com/showthread.php?p=45473893#post45473893
[HTC One S] Microphone:
Finally :)
[HTC One S] kira411:
Hi [MENTION=4195844]show-p1984[/MENTION],

I saw llabtoofeR has released Sense 5 android 4.2.2 for HTC One S. Could you please build the custom kernel that enable Sweep2wake for this ROM?
[HTC One S] gelo01:
edit
[HTC One S] AKToronto:
Yay Kcontrol! Great work as always ShowP... Truly though it seems the work of a dev is never complete and often thankless too. Not sure if sources for 4.2.2. Kernel for One S have been posted but yes it seems the first stable ROM and stock kernel have been posted... Im sure the requests for a 4.2.2. Update for Bricked will be coming in :)
[HTC One S] show-p1984:
I will check if a quick merge is possible, otherwise this might take a week or two. KControl takes precedence now since it was pushed aside for other stuff far too often.
[HTC One S] pirlano:
i think this can be useful:

https://github.com/anoane/ville-4.2.2-sense5-evitaul_porting/commits/master

:)
[HTC One S] show-p1984:
I will just diff both sources tomorrow and see if the changes are minor enough to allow a merge. (What would disqualify this: a re-base and too many files touched that I have modified)
[HTC One S] AKToronto:
No worries . Very much appreciate the work on Kcontrol (as well as everything else you do). Its been working well for me so far and I really do like the Kcontrol interface. Let's you make changes real easily and it does appear to stick after reboot. Will report any serious bugs but ok so far.

---------- Post added at 08:22 PM ---------- Previous post was at 07:55 PM ----------

Actually one small thing. I have my cpu 1 overclocked at 1728. On reboot it seems like kcontrol increases this to 1836...not sure if others are experiencing this?
[HTC One S] show-p1984:
I would say that this is impossible :p

gimme:

adb shell
su
cat /data/data/de.bricked.kcontrol/shared_prefs/de.bricked.kcontrol.sharedprefs.xml | grep _scaling_
[HTC One S] kant1988:
Can I flash this kernel with s-on ?
[HTC One S] gelo01:
Yes mate! Just follow these instructions by [MENTION=4195844]show-p1984[/MENTION] to properly install this kernel:

1. flash zip.

2. stay in recovery after flashing the zip

3. adb pull /tmp/newboot.img

4. adb reboot-bootloader

5. fastboot flash boot newboot.img

6. fastboot reboot
[HTC One S] AKToronto:
Actually it looks like it may have been another app interfering. No worries on that.

But just noticed an interesting things re voltage control. Not sure if voltage control sticks? Seems to go back to defaults after boot... Also may be interesting to note, I had undervolted before installing kcontrol. Now when I hit the reset button it resets to my undervolted values. Works for me since I like the profile. Either way some time in the future, having the option to save voltage profiles may help ppl. Should I still pull the info above for this issue too?
[HTC One S] show-p1984:
For voltage sticking you need to have it ticked under settings, which is separate from the frequency toggle to protect people from applying 'testing' voltages on boot accidentally. (which could be unstable)

For applying voltages another file is responsible:

adb shell
su
cat /data/data/de.bricked.kcontrol/files/saved_cpuvdd

This file won't exist if you have reset to defaults. In light of your recent post that you launched KControl with non-stock settings and it remembered them as the reset voltages, the issue is this:

When you launch a section of KControl for the first time it saves everything it is reading in that section into a file: def_name.

If you click reset within that section KControl will reset everything to those saved values and reset the shared_prefs used to apply on boot to -1, the boothandler will then ignore that. (Voltages are an exception: It saves your modified frequencies to the above mentioned file saved_cpuvdd because it makes more sense for this number of shared_prefs, keeping in mind that those values could change every kernel flash. Resetting will delete that above file.)

The boothandler will not restore settings that have been 'reset' to their saved values, because we operate under the assumption that the settings KControl reads on first launch are actually the ones from the kernel and we don't want to mess with them if the user selected "reset".

For you this happens now:

If you reset the frequencies, your previously modified settings are restored immediately, because KControl has read them on first launch. It will ALSO DELETE the saved_cpuvdd file because you wanted to go back to stock.

The boothandler will launch on boot, check if you want to restore vdd and if the file saved_cpuvdd exists, which, in your case, is not the case. It therefore will just skip this section.

To fix this behavior with what you currently have (this is not an app bug): just hit apply once in the cpuvdd screen when you have reset to defaults. (the file saved_cpuvdd will be created and the boothandler will find it)

To have the intended function of KControl: reset it's data, prevent any app from setting anything and reboot. (The quickest way to get clean stock kernel settings back is still a reboot) When you now launch KControl it will save the actual stock frequencies and everything will work as intended.
[HTC One S] AKToronto:
Just curious if anyone would know whether HTC will have to release their official sources for HTC One S 4.2.2. kernel? I know the source above (in my quote) is a port and has a few bugs (same with the ROM ports too, which I think still need in call volume fixed, etc)

Im just curious bc it seems the unofficial 4.2.2. One S ROM from LlabTooFeR may never be officially released... So I dont know if HTC is under an obligation to still post official 4.2.2. kernel sources?
[HTC One S] show-p1984:
KControl is available on Google Play!

Here is the link:
[HTC One S] yooouuri:
[MENTION=4195844]show-p1984[/MENTION]

Are you going to make a kernel for 4.2.2 (2.15 HBOOT)

It would be awesome!

:D
[HTC One S] AKToronto:
Two new exp builds of this kernel are up! Seems like its something to do with sound control
[HTC One S] AKToronto:
Hi [MENTION=358990]show[/MENTION]-p184

I was playing around with flar2's kernel source for Sense JB 4.2.2, running off 2.16 hboot (with the firmware upgrade, it has a slightly new partition layout). I added a bunch of commits from your JB kernel, and mainly was interested in advanced ThermalD management and kernel based MpDecision.

In order to get it to boot, I also had to disable intelidemmand.

I was able to get a bootable zImage, but then another challenge occurred... Everytime I would reboot my phone, my data partition would get corrupted, forcing me to do an advanced reformat in TWRP (formats everything including sdcard). That seemed to be the only issue. If it booted, it ran just fine.

Here is my github https://github.com/AKToronto/IronBorn2

Not sure if something in the kernel is enabled by default, that may be causing this?

Anyways I know you are busy (and thx for the KControl updates I keep seeing btw!), but if u had any ideas off the top of your head that would be great.

Anyways, any help or advice you could give would be great. In any event, it was just something I wanted to use until (or if) you were able to update this amazing kernel. No big deal either way, just thought I would ask for your opinion, and any ideas as to what would cause something to work, but only not work after a reboot...

AK
[HTC One S] light_n_roses:
Hi snow!

I'm still using your kernel with viper 2.2.0 ROM on my HTC One S, recently I have change my battery from 1650 with the battery of the One X+ which is 2100 mah, I have red here http://xdaforums.com/showthread.php?t=1888741&page=54 that some people are suggesting that this thing need to modified at kernel level because otherwise will keep seing the battery as a 1650 mah capacity. Do you think that you could add this option to your kernel?
[HTC One S] FalconFour:
Old thread, but much appreciated work - just hope anyone's still out there to help out.

Currently using Viper OneS 3.1.3 on Android 4.2.2 with Sense 5. I tried downloading the stable kernel from the link in OP, sent it, installed it without errors. When I rebooted, I got the HTC splash screen for a few seconds, then the screen went blank and stayed blank (/off, though can't tell the difference on an OLED). The power button would immediately trigger a vibrate pulse or two - couldn't find a pattern to vibrating short, long, once, or twice. If I hold it, it'll vibrate twice before flashing the button lights, then it'll go full vibrate just before hard-powering off. Like it got stuck in a diagnostic/recovery mode instead of booting.

I got it working again by booting recovery and restoring my last night's backup of system, boot, and cache... but I'd really like to give this kernel a try to help resolve some overheating and performance issues (specifically involving Google Maps navigation). Any tips on what I've got wrong? I tried searching the thread for clues like "vibrate" and "viper", but all I've got are people that are successfully running it but trying to work out some runtime quirks... :/
[HTC One S] cannondaleV2000:
i think there have been ramdisk changes since the last release of this kernel. and showp is not supporting the ville anymore. use flar2's kernel. it is more up to date
[HTC One S] Zarboz:
this is why mine sticks

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

i use that flash method along with a "any kernel style" installer

this menas that it live compiles a boot.img using your old ramdisk and my new kernel
[HTC One S] germandude68:
Thank you for the info Zarboz. Yesterday I selected 1890mhz Max and so far this morning the battery is been alright. I have to say the UI you created to install the kernel is totally amazing. You're absolutely a great developer!
[HTC One S] Zarboz:
Coming tomorrow
[HTC One S] germandude68:
Awesome Zarboz. Looks like you worked on the battery issue. Very good stats in your screenshot! Can't wait to test it.
[HTC One S] devgee:
Viper Rom update has been released, can't for the kernel update wohooo ^_^
[HTC One S] Rampage:
I can't wait too :D

If I helped in any way please hit thanks
[HTC One S] Zarboz:
Gotta grab another hd all mine are full of work.. this evening when I get all the compiling done
[HTC One S] Closed Source Project:
Guys, what did Z's screenshot say? XDA wont show attached thumbnails for me.

On another note, anyone know how to fix thumbnails not showing up? (PC, Chrome, one day they just randomly stopped appearing?).
[HTC One S] invasion2:
It was just pretty good battery life! :D
[HTC One S] Phantom Pt. II:
This is what it showed.

dl.xda-developers.com/attachdl/0967ede3c80b7298620b99616d03f0b0/5070736d/1/3/7/9/2/6/4/uploadfromtaptalk1349485614186.jpg
[HTC One S] Rampage:
Yeah your pictures don't show ...

If I helped in any way please hit thanks
[HTC One S] ickedmel:
Looking forward to the new release can't wait :)
[HTC One S] germandude68:
Can't wait either for the new update from Zarboz. First installing the Viper OneS update after breakfast and then waiting for Zarboz update :D
[HTC One S] germandude68:
My fingers are itching coz of keeping pressing the refresh button...LOL

Is the update still coming today, Zarboz? :D
[HTC One S] ickedmel:
Same here buddy
[HTC One S] Zarboz:
sorry my son is getting sick so i got delayed till he fell asleep im wrapping up now
[HTC One S] germandude68:
No problem, Zarboz. Family and health comes first!
[HTC One S] Elloco305:
+infinity
[HTC One S] germandude68:
...and data icon issues :P
[HTC One S] Elloco305:
Lmfao. Epic.
[HTC One S] FalconFour:
Thanks! I looked over ElementalX while I was sorting through alternate kernels, but I didn't like that most of the features list seemed to be made of things I didn't want/need - like sweep2wake, pocket detection, GPU overclocking, HDMI, "optional" fast charge (stock kernel in Viper uses an automatic/adaptive fast charge that's the best I've seen)... I have enough trouble keeping my phone from waking/unlocking in my pocket as it is :/ But I'll give it a try, as it now seems to be the next best option. :)

Really like the features list on this kernel - specifically the improved MP-Decision system. I'll keep looking around for another choice if this one doesn't work out - I'm still getting a handle on how kernel choices interact with ROMs.

update: Wow, well... maybe the ElementalX feature list needs some expanding! Impressed by the installer options to allow underclocking (I set mine to 1.35GHz since my biggest problem is overheating), though I miss the lighthearted feel of Bricked's installer. Booted dang fast and seems to work great so far. Thanks again for the tip - seems like a good choice!
[HTC One S] cannondaleV2000:
yeah no problem with elemental x and you can enable and disable stuff as you wish on setup in aroma
[HTC One S] javelinanddart:
Hey [MENTION=4195844]show-p1984[/MENTION] I looked at your edit_ramdisk.sh and i don't think it removes the governor overrides. It modifies init.mako.rc for cpus 0,1,2, and 3. Does it still work? I would guess not because we don't have an init.mako.rc or cpus 2 and 3.
[HTC One S] show-p1984:
Indeed, that was an old copy and paste fail from before I switched to an auto-generating script after kernel compilation.
[HTC One S] javelinanddart:
Ah ok :)

I used part of that script to remove governor overrides in AOSP ROMs for the One S. I removed CPU 2 and 3 and changed init.mako.rc to init.qcom.rc
[HTC One S] sherry478:
When will the update be posted?
[HTC One S] Elloco305:
I heard hiskid was sick so maybe hell ignore his kid to bring it out in a few minutes because shoot, a kernel comes first. :)
[HTC One S] Rampage:
Now a joke about the data icons has to come... But I don't have one in mind :D

If I helped in any way please hit thanks
[HTC One S] Zarboz:
my bad guys i fell asleep in mid compiling last night tryin to get the little mans tummy to feel better

2 more versions to compile and then zip up i will post this afternoon but im going to be on a hot spot so bear with me prease
[HTC One S] Zarboz:
well somehow i broke the source last night.... have to step backwards till its fixed...
[HTC One S] Elloco305:
No rush bro.

Though insomniac compiling never ends well. :P

Hope you kid feels better soonm
[HTC One S] Zarboz:
somehow im failing xz compression while producing the zImage...

thats whats crazy

i think that virtual machine just got full

time to make another
[HTC One S] snwman:
Whenever you get it done man take your time every member should know that it takes time to get this things right and sometimes things can go wrong... Be here waiting for it:good:
[HTC One S] Elloco305:
You shkwing off that it's building, your gtalk or your hp??? :P
[HTC One S] germandude68:
Oh man, breakfast was good. Morning everyone...LOL.

How's the kid, Zarboz? Hope he feels better soon!

Hey I got another data icon joke, guys. Lately I noticed my H always shows G. Is this normal? Has this issue already been addressed? You know, I was too lazy to search and I don't wanna read 500 pages, but man my data icons suck...hahaha
[HTC One S] Zarboz:
http://db.tt/o6b5xEqb

Nandroid of what I'm running

2.1 GHz ver

This is the only one I got compiled before I broke stuff
[HTC One S] germandude68:
Is this one good to install, Zarboz? Or should we wait for the actual fixed version?
[HTC One S] Zarboz:
its the one i have been posting screenshots from

:D
[HTC One S] germandude68:
Cool Zarboz, then it's the right one...hehehe. thank you for your valuable time and hope your son is getting all better :D

---------- Post added at 11:31 AM ---------- Previous post was at 11:29 AM ----------

Oh darn, I got to wait for your full zip first since I can only install from my phone (don't have a PC), as it only has the boot.img for download. :(

Is it possible to drop your boot.img into your last version zip and sign it and then install it?
[HTC One S] Zarboz:
what recovery are you running if you have twrp i can give you my backup of the boot.img

or

if you use clockwork you can just make a backup and replace your boot.img with this one
[HTC One S] Elloco305:
Post the zip. Lmao

If you want of course. Haha

How's your son, man?
[HTC One S] germandude68:
I have twrp. I could not find a way to install the boot.img. Sorry for not knowing, since I'm still new to HTC.
[HTC One S] ickedmel:
Graphical glitches on your nandroid back up.
[HTC One S] germandude68:
LOL...of course not the zip file for the boot.img. I was looking for the zip file to install the whole package like in the OP. But I have never run into just getting the boot.img and am not sure yet how to deal with the boot.img just doing this from the phone (since I don't have a PC).
[HTC One S] Elloco305:
Hopefuls in an hour ill be able to fast boot the img
[HTC One S] germandude68:
Then I better wait for the official package like in the OP.
[HTC One S] Elloco305:
If I get to my pc before Z ill try and post a flashable zip of the boot for you.

Unless you just rather wait for the whole aroma set up etc
[HTC One S] germandude68:
I appreciate that dude. Although it's nice to have the whole aroma setup UI, since I can select my stuff. I wonder what mhz the CPU has been set to by default with the current boot.img file.
[HTC One S] Zarboz:
What Rom are you on that's not an error with kernel but rather the instructions being sent to the gpu
[HTC One S] ickedmel:
I'm using the latest viper 1.2.0. Could it be a hardware error? Guess I'd have to wait to see if anyone else has issues trying out that boot.IMG
[HTC One S] invasion2:
Looks like ViperOneS because of the themed statusbar. I could be wrong.
[HTC One S] ickedmel:
The last error the hw.composer thing I had on fusion also but didn't see those issues error codes before with the GPU. So not sure if maybe it's just my phone or some others have it too.
[HTC One S] Zarboz:
its just odd to me because the GPU portion of OC has been removed in that version

so nothing should be effecting your graphics
[HTC One S] Zarboz:
I just got it building

wow

cant move source to a "external" harddrvie in vmware

it didnt like that at all

cant believe that was the problem all along

posted new update guys

let me know how it is
[HTC One S] Rampage:
Well thats weird...

when i flash the new version 2 of the kernel i dont get any errors, but when i boot up and take a look at settings-info, the villeZ kernel does not show up, but instead just the default one by viperOneS. And in venomtweaks i only get the stock governors too.

Heres what ive chosen in aroma:

max 1,5ghz

ThermalID yes

min 192 ghz

... already tried to install the kernel again, but it doesnt work for me.
[HTC One S] ickedmel:
Zarboz thanks for your release. I have a question do you believe I will have the same issues from the nandroid backup on stock speed install ? Are they basically the same thing?
[HTC One S] thunder87:
@crayzyboy

flash again with twrp, didnt work on first try... second time flashing worked and shows up in settings/kernel ;)

hope i helped

Sent from my HTC One S
[HTC One S] Rampage:
... Yeah I already tried a second time, but I'm going to do it a third time. I'll report back tomorrow.

If I helped in any way please hit thanks
[HTC One S] Zarboz:
The only diff between posted and the nandroid i posted is some sweep2wake debug messages to help me set stuff up (nothing youd see unless you looked in your dmesg or in /sys/android_touch/sweep2wake" ) lol

posted version includes the changelog and has no GPU OC (just like my nandroid)

there is no veritable reason for needing GPU OC on this unit
[HTC One S] Zer0r:
Just installed V 2.0 with 192-1.7 frequencies. So far - so good. Everything went flawless, and right now is working without any lags and glitches.

I am on ViperS 1.2.0.

Great job, ZarboSS!!! :))
[HTC One S] ickedmel:
Same issue here trying to install stock nothing happens. Stock speed. It says It's installed but actually hasn't. I'm on hboot 1.09 and twrp 2.2.0
[HTC One S] snwman:
Just flashed new version, set for z power 2.1ghz and rest default but what is thermalid
[HTC One S] sherry478:
just installed z-power 2.1ghz was good for the first hour then. out of nowhere all the graphical glitches started appearing again. my phone isnt hot 34'C and i didnt install any new apps on my phone. what could it be?
[HTC One S] thunder87:
try flashing 1.7... the 2nd time i flashed 1.7 ghz not 1.5...maybe there is anything wrong with 1.5?
[HTC One S] ickedmel:
Thunder thank you. I flashed the 1.7 and everything installed properly I'm thinking the 1.5 has an issue.
[HTC One S] Zarboz:
hmmm

very odd
[HTC One S] ickedmel:
I'm having.graphical glitches also I'm on 1.7 speed. So might not just be me.
[HTC One S] Zarboz:
no idea

this version has GPU OC removed
[HTC One S] ickedmel:
Aww poopies alright well thanks bud.
[HTC One S] Zarboz:
nandroid a backup and try from fresh install

when i went through my viper tweaks and changed one of them to force render to the GPU i get MAD graphic glitches
[HTC One S] mliou:
Have the same issue, graphic glitches using viper to control CPU.
[HTC One S] Zarboz:
I don't understand why I've taken out all GPU OC that was the point of this release
[HTC One S] Elloco305:
Also check under settings - developer options - force gpu

It isn't only in venom tweaks. :)
[HTC One S] ickedmel:
It's off.... And I'm pretty sure by default It's off in venom tweaks and in HTC. So unless someone turned it on it would be off by default. I still have the graphical issues though seems not many have the problem. I must be one of the select unlucky few choosen by the devil :p
[HTC One S] SnowToad:
Have you changed anything that would fix the problem of this kernel disabling sound for me before? cheers
[HTC One S] ickedmel:
I selected then deselected 2gpu rendering and restarted my phone and once back up everything force closed on the phone. did fix permission and wiped nothing and factory reset still same issues had to do a full wipe and reinstall everything. Maybe that's a ROM issue.