yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] :
Yeah, so it's basically doing the exact same thing that it is on this one then.

I'm starting to think it's an issue with the app on mm maybe.
[Nexus 6 Android Development] apophis9283:
Tried fixing Synapse, then tried bypassing the stability check. No matter what I did, it still performed the check. Next to having an actual app dev look at it, we are out of ideas
[Nexus 6 Android Development] str8str:
****, well voinx mentioned that we could get with the dev of kernel auditor and have him support our great kernel something so that it supports all the new settings and that .

Straight Shooter
[Nexus 6 Android Development] Mr_S:
Yeah knew that but was to lazy to recheck it!
[Nexus 6 Android Development] apophis9283:
I thought it was the kernel causing these issues. So I did a test. Reset to a commit on OCT 20th. That was back when we were Vortex. It worked back then. I compiled and flashed and still same issue.
[Nexus 6 Android Development] str8str:
So what are we saying here?
[Nexus 6 Android Development] apophis9283:
An app issue as far as I can tell. I reverted back to Vortex, I know it worked then. But sadly it did not. Everything points to the app
[Nexus 6 Android Development] str8str:
OK what do you think about the idea of using kernel auditor?

---------- Post added at 18:39 ---------- Previous post was at 18:39 ----------

My settings always stick using it
[Nexus 6 Android Development] apophis9283:
You all are more than welcome to use whatever you like. If you dont want to use synapse, and use KA. just flash the kernel and leave UKM out of it.
[Nexus 6 Android Development] str8str:
Your not picking up what I'm throwing down. Voinx mentioned to me that we could possibly get what's needed to use kernel auditor and not miss out of the custom settings that we do rite now that are only available if we use synapse. I don't personally know how it's done or I would but he does apparently.
[Nexus 6 Android Development] :
Yeah, he tells you exactly how to do it in his github repo.

So basically... All of the information that's needed is in UKM (another good reason that I was working on trimming out the features that we didn't use). Actually, I'm pretty sure that this is already in KA.... But like I said, it was just a quick dirty example.

So, lets take Simple GPU Algorithm Parameters for example (not sure if it's in KA or not, just picked something at random)

The request should go like:

Section: GPU

Feature: Simple Governor Tunables
Description: An add-on for MSM Adreno TZ GPU Governor. Developed by faux123.

Tunable: Enable
Sysfs: /sys/module/simple_gpu_algorithm/parameters/simple_gpu_activate
Values: 0 or 1

Tunable: Laziness
Description: Adjusts the number of times the governor skips ramp down requests. Higher = better performance (more battery drain).
Sysfs: /sys/module/simple_gpu_algorithm/parameters/simple_laziness
Values: 0-10 (step 1)

Tunable: Ramp Threshold
Description: Adjusts the threshold to ramp up or down GPU frequencies. Lower = better performance (more battery drain).
Sysfs: /sys/module/simple_gpu_algorithm/parameters/simple_ramp_threshold
Values: 0-10000 (step 1000)

All of the information for this was taken directly from: https://github.com/team-vortex/HSB-UKM/blob/mm/data/UKM/config.json.generate.gpu

It's really just a matter of figuring out what isn't in KA, then filing an issue on his github to see if he'll code it in. By formatting it like this, it would probably give you the highest possible chance of getting it added.
[Nexus 6 Android Development] str8str:
OK great. So what I'm gathering is your not interested in doing it you want to stick to synapse? But if I or someone else wants to that's what to do? I'm trying to see where your coming from. The reason I suggested kernel auditor is cause of all the issues your having with synapse and ukm not working together to get your desired result. I figured since you mentioned it as an idea that you were going to look into it as an option. Whatever you think it's your show.
[Nexus 6 Android Development] :
Personally, I don't bother with either app.

I put the settings I want to tweak into a script, after flashing a rom update, I just copy that script back to /system/su.d

Dealing with the apps is alot of hassle imo.

The only reason I put any effort into UKM in the first place was to make it easy for the end-users.
[Nexus 6 Android Development] apophis9283:
Updated to version 2.9 and UKM to version 5
[Nexus 6 Android Development] str8str:
What happened to the developer of synapse did he quite updating his app? Would be nice to have his input on the issues
[Nexus 6 Android Development] :
He had a commit a couple months back... Then quite a few months before that.

Unfortunately, the way 6.0 handles permissions, the app needs to explicitly request them anywhere that it needs them as well as waiting and handling the response. Currently, synapse isn't doing that and will need a bunch of rewriting to do so.
[Nexus 6 Android Development] str8str:
**** someone should pick up where be left off if he's not going to continue with it. Î

It comes from a good floor plan

Straight Shooter
[Nexus 6 Android Development] fedef12evo:
why not use stweaks instead of synapse?
[Nexus 6 Android Development] :
In theory, it would work since it also uses the UCI interface.

However, it hasn't been updated since 2012. So it would also need to be updated to reflect the access rules in MarshMallow as well. Though depending on when it accesses storage during boot, it might work.

Have you tried it and does it work?

Edit:

Apparently, it doesn't like ukm's uci support.
[Nexus 6 Android Development] apophis9283:
Happy Thanksgiving to everyone.
[Nexus 6 Android Development] DreamFX:
You too! Happy Thanksgiving!
[Nexus 6 Android Development] apophis9283:
Im probably going to revert the last gpu commit. Somethings up with it. sometime today look for a 2.9.1
[Nexus 6 Android Development] Mr_S:
Synapse works flawlessly with hydra, could it be ukm causing issues.

Just a punt!
[Nexus 6 Android Development] :
Doubt it.

Not sure how you have it working flawlessly with hydra. It was still tossing the same errors in my logcat when I tested with various Kernels on clean roms (hydra being one of the ones I tested).
[Nexus 6 Android Development] apophis9283:
Do me a favor, reboot, as soon as you can open synapse and hit logcat. Post a link to it here
[Nexus 6 Android Development] str8str:
Guess he didn't want proof
[Nexus 6 Android Development] Harry44:
Does anyone know if powered OTG Y adapters work with this kernel.
[Nexus 6 Android Development] apophis9283:
OTG cables work. So you shouldnt have an issue. if you do let me know
[Nexus 6 Android Development] Harry44:
I'll flash it.

But the Y otg cable is different. They take in power, charge the device and allow usb through put. It has to be enabled in the kernel. Below is the cable in question. If not Ill just fork your source and add it in.

[IMG="OTG"]http://i.imgur.com/XJ7AcLg.jpg[/IMG]
[Nexus 6 Android Development] :
If you have the commits necessary, just link them and they can get added in for everyone.
[Nexus 6 Android Development] apophis9283:
If it doesnt just link me to the commit, ill add it
[Nexus 6 Android Development] Mr_S:
Give me a chance ffs!

I do have 8 kids

Edit...strange thing,I rebooted and got hit with something about Json parsing,twice. After killing the app I went into synapse and it loaded with the last settings to be applied tick and cross!

I hit logs

https://www.dropbox.com/s/i4ochgagfp00n9j/logs-2015-11-27.16.51.09.zip?dl=0
[Nexus 6 Android Development] jolly_roger_hook:
Could you post a template of the script you use so others could make their own?
[Nexus 6 Android Development] apophis9283:
I just looked at your log. You are on marshmallow right? Theres not one error about it not being able to read the database are you using f2fs?
[Nexus 6 Android Development] apophis9283:
I got it so the database error is no longer in logcat, still not setting settings. Ill keep looking into it
[Nexus 6 Android Development] :
Yeah, I just haven't had a chance. I'm going to make one with all the tunables then probably change the zip flash script to check for it in the sdcard to reinstall it for you when flashing the kernel.
[Nexus 6 Android Development] miguelito18:
[MENTION=4392154]apophis9283[/MENTION] nice kernel mate!

Wondering if you could tell me your go to settings for awesome battery life plus good performance. Thanks :)
[Nexus 6 Android Development] apophis9283:
Thanks, yoinx has been amazing in getting this kernel where its at. Hes the other guy who works on the kernel. Sure ill update post 2 again with settings i use at some point today
[Nexus 6 Android Development] miguelito18:
[MENTION=4392154]apophis9283[/MENTION] [MENTION=4231562]Yoinx[/MENTION] thank you both :p
[Nexus 6 Android Development] :
Alright. I managed to get this working. It took a good part of the day... and I think it turned out to be a bit unwieldy/daunting. But all in all, I think it should be pretty well explained through the comments.

It doesn't include CPU Voltage tuning, but honestly, I don't believe in tuning that anyway.

http://hastebin.com/oxiwafecor.vala

The only issue that I've found is that it runs fine once after boot. If you run it a second time though, it will force a reboot. Not really sure why and it doesn't make sense to me that it would... So yeah... Don't run it more than once. I imagine that one of the tunables it's setting doesn't like being tweaked on the fly via script.

You can use this by any of the following methods. Make sure to set it's permissions to 0755.

/system/su.d/ folder (create it if it doesn't exist)

/system/etc/init.d

Or use something like SManager to run it from another location.

I was thinking about making the kernel zip automatically restore this to /system/su.d However, I think it would be better to leave it up to the end user to move it for a few reasons...

1. The script needs to be tweaked for the end-user's preferences.

2. If you leave this script installed when switching to another kernel, it could cause lots of issues.

One of the other nice things about doing this via script like this... Is if you find a combination of values/settings that you think performs really well, it's extremely easy to share your *exact* configuration with others... You just upload your modifications, and once the other user uses your copy of the script, they get the same values you used.

If you use the copy attached to this post, make sure to rename it from HSB.txt to HSB.sh (shouldn't matter, but better to play it safe).

*edit*

It's possible that I missed things. If I did, please let me know.
[Nexus 6 Android Development] apophis9283:
Ive posted in post 2, right below the op. Had to change some gpu frequencies around. You can always find it there, in post 2
[Nexus 6 Android Development] str8str:
Kernel auditor will let you load it thru initd as well and you can set a delay if you wish. Thanks

Also there is an app called universal initd that will allow you to run initd scripts on command
[Nexus 6 Android Development] apophis9283:
I found it better to use script manager. So instead of using su.d or init.d use the app to run it as root and on boot. Then you dont have to re copy everything everytime you flash a new rom
[Nexus 6 Android Development] str8str:
So is that script usable the way it is? Just copy it over set permissions and run?

---------- Post added at 19:07 ---------- Previous post was at 18:40 ----------

Never mind it works as is. I tried it via initd and works great. Thanks
[Nexus 6 Android Development] :
You're going to want to tweak it though. Most of the values are mostly stockish. Some things are set to what I use, but not many.
[Nexus 6 Android Development] str8str:
OK just basically change the echo values to 1 on the ones you want to enable

---------- Post added at 20:23 ---------- Previous post was at 20:15 ----------

What does uncomment to use mean?
[Nexus 6 Android Development] :
Yeah, just change the echo value to something that the comment says it's valid.

A commented line just starts with #. Remove the # from the line with the command of you want to use it.

For the setprop values, you can actually add any build prop tweaks like that instead of having to modify the build prop after each rom flash.. If there's any build prop tweaks that you use.
[Nexus 6 Android Development] str8str:
Got it cool.
[Nexus 6 Android Development] apophis9283:
Been messing with synapse source. It no longer says synapse boot failed, it fc's on first boot. after that its normal. Its still not holding the settings. ill keep playing with it
[Nexus 6 Android Development] apophis9283:
So Ive increased the timeout, done everything i could trying to give it more time to access the database.

I even added READ_EXTERNAL_STORAGE. So this is what it all boils down to. The app can write to the internal sd card no issue. Reading from it seems to be a whole nother issue. Ive tried playing with permissions as well. I would need an app developer to help. Im sure theres something going on with code to make it able to read the databases. As of this moment, Im out of ideas. I will keep trying
[Nexus 6 Android Development] apophis9283:
I think i found the problem. Not sure how to fix it yet. I have to wait to run it against Yoinx
[Nexus 6 Android Development] esl43:
I think there might be issues with MSM limiter,for my cpu clock is always limited to 960MHz in the previous build,and729MHz now,which is correct the clock set in MSM Limiter.Morever disenabling the MSM Limiter fixs the problem.

And there is only one cpu online .at a low frequency,making it lags a lot.

I'm on the newest chroma. HSB2.9.1and UKM5 .and I attached the logcat ,what may I do to help ?
[Nexus 6 Android Development] apophis9283:
What app is that? What app are you using to control your cpu, synapse?.If synapse we have live information in synapse, does that widget match what you see in synapse?

What hotplug are you using?

See my attached screenshot mine is the same in msm limiter
[Nexus 6 Android Development] fedef12evo:
It is true msm limiter is the only thing that take me away from using this kernel
[Nexus 6 Android Development] apophis9283:
If you dont want msm limiter use kernel auditor. It doesnt support it, or you could simply uncheck the checkbox for msm limiter and it wouldnt use it.

Thats a poor excuse for not using the kernel when there are ways to achieve what you want
[Nexus 6 Android Development] fedef12evo:
i tried to disable it in synapse, but when i reboot, phone boots with only one core active and max freq of 960, so i have to wait like 10 minutes,it is the time that take to apply on boot on synapse using only one core and 960 mhz max freq
[Nexus 6 Android Development] apophis9283:
Dont have thise issue. an if you disabled msm_limiter. Then the issue lies else where

Also, you said it boots with one core. msm limiter doesnt have such setting.
[Nexus 6 Android Development] apophis9283:
I have pure stock android source for MM. Im just gonna rebase the damn thing
[Nexus 6 Android Development] Mr_S:
Wow,,,dedication. respect
[Nexus 6 Android Development] buckmarble:
If I may offer a word of advice, since I have seen you rebase more than once, take baby steps. Add the basic stuff first, run for a day, once you know it's good, add one or two more advanced things at a time and test. This way you can debug once and be done instead of hunting for a needle in a hay stack when something isn't right. This is good we do it on elite kernel and has worked very well for us in creating a rock solid product.
[Nexus 6 Android Development] apophis9283:
:)

Everything is technically fine. I have been through all the code and it has to be the app Synapse. Ive tried editing the source since its open source. ATM I have no issues. Im rebasing, cause I want to take a better look at everything. My LP version ran amazing. We decided to use staright MM source instead of just "upgrading" lp source.
[Nexus 6 Android Development] fedef12evo:
Is it possible that is thermal problem? Like threshold too low? I ran into similar issue when i tried intellithermal on benzo kernel, freq stuck to 960 even with low temperature
[Nexus 6 Android Development] esl43:
I use PERFMON by chainfire to monitor the cpu clock and use synapse to set cpu clocks.My issues is the same as fedef12evo that only one core online at a low clock.

I'v tried to reflash plenty times but at no time it correctly works no matter HSB kernel nor volte on MM.
[Nexus 6 Android Development] apophis9283:
Well im rebasing the kernel. If at all at least im cleaning up the source.
[Nexus 6 Android Development] sefurd:
I ran into the single core boot problem as well. I was on the latest build, previous build did not have the issue.
[Nexus 6 Android Development] str8str:
No I think he removed it. Also you can just edit it in thermal engine shamu conf
[Nexus 6 Android Development] apophis9283:
NVMD I will be uploading a new test build
[Nexus 6 Android Development] fedef12evo:
phone boots fine,but with 2 active hotplug, bluplug and zen decision,so it boots with only 1 core active,2649 max freq,then i deactivate blu plug,turned screen off and on again and now it is fine with zen decision
[Nexus 6 Android Development] apophis9283:
I have another test coming. Ill kill zen by default

Edit, must have been settings carried over. I just looked at zen. Its off

Better yet, im gonna disable blu plug by default and use zen as default
[Nexus 6 Android Development] apophis9283:
Test build #2

Test kernel 2 = https://www.androidfilehost.com/?fid=24269982087008941

HSB-UKM = https://www.androidfilehost.com/?fid=24269982087008942

The UKM is the same as test 1 just reposting it
[Nexus 6 Android Development] fedef12evo:
yea, now it boots with zen decision, much much better,now just change default governor to interactive or something aimed performance, conservativex is very bad, installing synapse, opened it and phone reboots, tried 3 times lol cant open synapse
[Nexus 6 Android Development] apophis9283:
I changed it in the any kernel to use dyninteractive. Great governor
[Nexus 6 Android Development] fedef12evo:
phone reboot when i change governor in synapse, if i change it in kernel adiutor it is all ok
[Nexus 6 Android Development] apophis9283:
Works fine here. I set everything up in op but didnt realize that im missing gpu stuff. give me a bit
[Nexus 6 Android Development] apophis9283:
OP updated to Version 3.0. HSB-UKM updated to Version 6.

Even if you have downloaded the kernel or ukm recently I highly suggest re-downloading UKM V6 and HSB kernel Version 3.0 from the OP

About using Synapse. Its flawed. Some people have issues, some dont. As I do not run the app, I cant do anything about it. There is a thread just google it and there you can voice your issues
[Nexus 6 Android Development] apophis9283:
Here is where you can voice your opinions about Synapse app

http://xdaforums.com/android/software/zip-synapse-script-universal-kernel-t2736986/page298
[Nexus 6 Android Development] str8str:
I thought you did use it that's why all the work being put into ukm I thought. Isn't ukm for synapse?

---------- Post added at 22:57 ---------- Previous post was at 22:38 ----------

Just flashed the latest and all I can say is wow. Everything defaulted where it should it's fast and very smooth. No complaints here
[Nexus 6 Android Development] apophis9283:
Probably more to come tomorrow. Yes we do provide a modified UKM for those who choose to use Synapse, even though values arent kept after reboot. Since the issue lies in Synapse, I cant offer a guarantee that it will work properly. So I have linked the Synapse thread so those who have issues may take the issues up with Synapse dev
[Nexus 6 Android Development] str8str:
Cool

---------- Post added at 00:03 ---------- Previous post was at 00:01 ----------

OK so ukm is useless unless your using synapse
[Nexus 6 Android Development] apophis9283:
Pretty much. Im hoping enough people request an update for synapse
[Nexus 6 Android Development] str8str:
I posted on there a few days ago hoping to get some attention. Hopefully he starts up again
[Nexus 6 Android Development] fedef12evo:
Just let US use stweaks instead of synapse
[Nexus 6 Android Development] KonoeKyon:
First time trying out this kernel, I'm on the 3.0 build just flashed it a hour ago. Everything seems to be working well so far.. Except for frequency step 2880MHz. It shows up as a usable frequency, but does not show up under the voltage table. All other usable frequencies show up though.
[Nexus 6 Android Development] :
Use whatever you want.

You'll need to create stweaks files though as it doesn't work with the uci from ukm. It wants it in really outdated spots and layouts.
[Nexus 6 Android Development] apophis9283:
fixing it now, should work
[Nexus 6 Android Development] apophis9283:
Heres the deal, this test build has quite a few more commits that the last. I would love to label it 3.1 but I at some point didnt add 2880 frequency to everything it need to be added to in apq8084.dtsi. When I did I had to screw around with voltages. So takes this build with a grain of salt. Ive been running it for a bit doesnt seem unstable but I would watch out for any significant battery drain not saying there will be but.....

Sorry for the inconvenience

If you seem to have any issues with this build just post your issue here

Test kernel = https://www.androidfilehost.com/?fid=24269982087009482
[Nexus 6 Android Development] apophis9283:
No one is saying you have to use synapse. If you dont like it then dont use it. To be honest I dont like the attitude, trying to emphasize US. I dont have a gun to your head telling you to use Synapse.

On a side note, I changed some tinables around for DYNAMIC_INTERACTIVE since its now the default governor
[Nexus 6 Android Development] fedef12evo:
in kernel adiutor no control on arch power and gentle fair sleeper, no emphasize on us, just keyboard use capital letter as us (united states) LOL
[Nexus 6 Android Development] apophis9283:
I see what your saying but thats not how it works. Me and Yoinx build the kernel, we went the extra step to add what we have to UKM. I dont think either of us have the will to try and support every single kernel app out there. I dont think any other kernel dev for the n6 has even bothered with ukm. So feel special. I wish I could fix Synapse. It just didnt work out. I use synapse because for the most part I never reboot anyway. Sorry if I came of a little rude, but look through all the other kernels, do they offer what we have or even offer ukm for synapse? We do the best we can, thats all anyone can ask for.

About the test kernel I will probably edit the voltages again
[Nexus 6 Android Development] apophis9283:
HSB kernel build V-3.1 is up for download. Merged a bunch of new commits. Also frequencies and voltages are fixed. They were a little out of alignment and 2880 wasnt properly done in apq8084. So all the frequencies and voltages are where they need to be. 2880 is now in voltages, thanks to the user for pointing that out. Enjoy

Everything I see is in great working order. 3.1 should be good for everyone to use for a few days. Im gonna take a small break and Yoinx will be busy himself, doing what he does.
[Nexus 6 Android Development] KonoeKyon:
Thanks for the quick updates, the test build worked however in 3.1 2880 isn't showing under voltages again.

---------- Post added at 09:45 PM ---------- Previous post was at 09:39 PM ----------

Looked at the commit, looks like you missed pvs 7
[Nexus 6 Android Development] apophis9283:
It shows in mine because i have a different bin number. Ill fix it and re-issue V-3.1
[Nexus 6 Android Development] KonoeKyon:
Thanks! :highfive:
[Nexus 6 Android Development] apophis9283:
Ok, I now have it all fixed, i promise. Updated the op V-3.1 link with the fixed 3.1. Enjoy.
[Nexus 6 Android Development] KonoeKyon:
Sorry to be of trouble again, it shows up fine but the voltages are all out of whack unfortunately. Looked at the commit again and it looks like all the tables are the same for each CPU pvs bin. Thanks again for the updates and sorry to have delayed your break.