yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] str8str:
New build running good so far. I think the switch to saber mod was a good move. Also do you guys install synapse to system or leave it on internal?
[Nexus 6 Android Development] :
We don't install synapse at all during the install. When it's installed from the store is installed as a user app. Whatever you do with it from there is up to you.

Ukm installs mostly to /data with a script on the system partition.

Personally, I ditched actually using synapse awhile ago. I can't ever get it to apply settings on boot for me. So I just setup a settings script that tasker runs like 5 seconds after boot (this is cleaner than su.d for me, as that appears to run before the init scripts finish). The only reason I will have it installed is for testing UKM changes.
[Nexus 6 Android Development] jcrompton:
[Kernel][HSB][SM-6.0][MM-V-1.3][11-6][HSB-UKM-V-2][Tons of features]

Could you share your script for those of us less knowledgable script writers?

I've seen some elsewhere but the syntax always messed me up

PS. Is anyone able to get Synapse to save a configuration or profile? I can't get that to work either
[Nexus 6 Android Development] jcrompton:
Hey thanks !!!

I'm very sure you could bored with my questions really quickly .... it's purely lack of knowledge -- apologies

Firstly - I know where the system/etc/init.d folder is but I'm not sure how to find or best access the system/su.d directory :confused:

I know it's probably simple but could you briefly explain your method

Secondly, the syntax for ALL the other settings that have been mentioned here is pretty foreign -- I have attached the only files I can seemingly extract from Synapse (when I tried to save [MENTION=4392154]apophis9283[/MENTION] settings , for example --- his setup is a bit more complicated). Is there a way to turn either of these files into script files -- is the syntax even close to right ?

I'm not asking for you to do any "work" -- but if you have a minute just take a look. Thanks!!!
[Nexus 6 Android Development] :
No, it's fine. XDA is about learning. Questions, where people are trying to learn something never bother me. It's the posts from people who don't want to put any effort into learning and just want to be spoonfed everything that annoy me.

Those are the methods for synapse to set those through uci(ukm).

Basically. All of the ones that have full sysfs paths (the boolean, adreno and generic ones), you can just remove the first command, that's just the ukm action file that it's calling (you can read that file at /data/UKM/actions). Take the value after the = and that's your echo value.

So like

adreno_idler /sys/module/adreno_idler/parameters/adreno_idler_idleworkload=5000
boolean /sys/module/adreno_idler/parameters/adreno_idler_active

Would become

echo 5000 > /sys/module/adreno_idler/parameters/adreno_idler_idleworkload
echo 1 > /sys/module/adreno_idler/parameters/adreno_idler_active

The boolean ones are 1 if you want it on and 0 if you want it off. But that ukm action for boolean only toggles it... If it was 0 and you run that boolean action it becomes 1. But if it was 1 and that runs it makes it 0... Not necessarily what you want. But just making it a straight echo 1 will always turn it on.

For su.d its not always made by default. The supersu daemon checks for that folder. If it's there it runs any scripts in it, just like init.d... But somewhat more reliable. Just create the folder and set it to 0755.

Edit: the really short ones for io and intellithermal is have to look at those actions. They're probably holding the sysfs paths for those in the actions.
[Nexus 6 Android Development] jcrompton:
That's awesome

Thanks
[Nexus 6 Android Development] :
No problem. If edited the other reply, but I think I did it to late.

The short commands in your file for like io and intellithermal, you'd have to look at those actions in ukm. They probably have the sysfs path in them, but those ones you'll have to look at, they aren't all in that one file you posted. They essentially made a script to alias the sysfs path and accept the values.

Hopefully that makes sense.
[Nexus 6 Android Development] apophis9283:
fixed most of the governors. Preservative needed to be fixed bad as it relies on the frequency table we use.
[Nexus 6 Android Development] jcrompton:
So obviously in feeling pretty stupid right now but when I try to run a script like yours for example using a script manager I get errors...... And I don't think it's executing at all

What the heck am I doing wrong?
[Nexus 6 Android Development] :
It's the script running as root?
[Nexus 6 Android Development] :
Can you post the script you're trying to use then?
[Nexus 6 Android Development] jcrompton:
I copied your text above and pasted as a text file. Copied into the directory and changed permissions. Then with root Explorer removed the .Txt
[Nexus 6 Android Development] :
The extension doesn't matter, but it should be .sh

Try opening terminal emulator, cd-ing to the directory with it. Make sure to su, then run it with ./scriptname

It should work fine, if you copied the entire script I posted. Then only catch being that if you're trying to use it in another kernel (for some reason) not all of those paths will exist.
[Nexus 6 Android Development] jcrompton:
So really strange. If I open the script file I've named HSBoot1.sh and select all and then paste into my terminal emulator the script appears to work (notice appropriate changes in Synapse when I open it) .

However the script does not work if I try to just reboot with it in the system/sh.d folder. . . It also will not work if I try to run it with Script Manager or just Execute it with Linux Script Handler (in root Explorer) .

Any better ideas on how to automate the process since Synapse will definitely not hold the settings upon reboot. . Synapse boot gets canceled every time
[Nexus 6 Android Development] jcrompton:
Sorry forgot photos
[Nexus 6 Android Development] :
Umm...

Why would you select all and paste it into the terminal? In some terminals the copy paste might execute each line as a command, but not all do. I can't really speak on why some would and some won't.

It's a script. You run it with ./scriptname from a terminal emulator.

If you have supersu installed, it should run from that folder, I'm not sure why it wouldn't. Make sure it's su.d all lowercase and that the folder is set to 0755 as well.

Beyond that, I'm at a loss for why it won't work for you.
[Nexus 6 Android Development] jcrompton:
Hey thanks for trying to help

Here are screenshots of trying to run the script with the terminal emulator

For some reason I'm doing something wrong

Any ideas from the screenshots here?

The reason I did the copy and paste all at once is because for some reason it worked and it was sure better than one line at a time. But I'm still looking for something even more automated.
[Nexus 6 Android Development] :
No idea. I don't use that emulator. And honestly, given all the exports at the top... I don't trust it not to be an issue with that app. Especially if it can't find the file in that directory. Try an ls in there to list the files and see what it thinks that it is named.

Try the terminal emulator by Jack palevich on the play store... That's generally considered to be the go to emulator.

*edit*

So, I made this quick video of how it's supposed to be in adb. I sent it to apophis9283 first, but he said it's hard to make out the text, so hopefully you can read it.

https://youtu.be/-_k3KE_z8qg

basically. This is through adb (the only truly reliable shell imo). It's a quick change to the script path, ls -l to show the permissions. Cat the script to show it's contents. Exceuted it. The cat'd a few of the paths it sets. Changed one, cat'd it show it changed, ran the script again, cat'd again to show the change.

At this point, I'm pretty sure I'm out of ideas for you. Hopefully it helps though.
[Nexus 6 Android Development] str8str:
Yes some people have no issues with it but I'm the same as you can never get it to stick. Thanks
[Nexus 6 Android Development] jcrompton:
Thanks again

The YouTube was helpful

If you guys could look at these screenshots you can see that something is really weird because I've just fine a very abbreviated script and I get this weird response of no such file or directory

You can see my ls command

Then my cat command

Then when I try to execute it screws up!
[Nexus 6 Android Development] :
Sent you a pm.
[Nexus 6 Android Development] Andromendous:
Ok. Im a little confused here. Should I flash chainfires supersuboot img after flashing aosip, then this kernel?
[Nexus 6 Android Development] mp3geek:
Any movement on F2FS support?
[Nexus 6 Android Development] :
It won't hurt. However, we include his Sepolicy binary... so it shouldn't be needed. I was able to flash directly over AOSiP without any issues.

Honestly, I hadn't put any effort into it. F2FS has always seemed like more trouble than it was worth. However, it wouldn't be hard for us to work in support for it I don't think. I'll talk to Apophis9283 and see about adding it into the mix.
[Nexus 6 Android Development] str8str:
I think you flash it before if anything but you shouldn't need it.
[Nexus 6 Android Development] apophis9283:
Ill get to it if i get time tomorrow. I have the commits. Shouldnt be an issue to pull it in to MM

Edit: I will have a build for you to test tomorrow.
[Nexus 6 Android Development] mp3geek:
If you need any testing done, I'll be willing to try it out :)
[Nexus 6 Android Development] jcrompton:
Guys you know I really appreciate your help and work..... And I know you've not been able to reproduce some of my issues

But after all the issues with trying to get a script to work (since Synapse is so squirreley and won't save ssttjngs) on my AOSiP ROM I tried a complete fresh install of Cataclysum

I had exactly the same issues

There just has to be some unseen issue with the latest combo of UKM and kernel
[Nexus 6 Android Development] :
Can't be. The video I posted was running both of them on cataclysm.

Ukm would cause the issues that you're having. Those paths are created by the kernel directly, on boot. They're also checked in the UKM scripts to generate the pages when called by synapse.

There is literally no way that you could be getting the errors that you're getting, but for synapse to generate the pages for the items that you're getting file not found errors for. If it's finding it, you should be able to as well.

Maybe try using a root browser and browse to some of the paths? It's gotta be something that you're doing wrong in terminal.
[Nexus 6 Android Development] jcrompton:
I don't doubt that you are right but some combination of what's on or in (maybe demon possessed) has caused a problem beyond that. Last night I did a full wipe and then reinstalled a fresh install of Cataclysum. Immediately flashed the latest HSB and latest UKM. The phone did not not loop but did that not to completion and then immediately shutdown.

Re wiped and reflashed without HSB and booted like a charm.

I have a feeling there is some little something wrong...... Because this is beyond the problem of my Linux incapabilities
[Nexus 6 Android Development] :
I'd agree, except that ukm works and synapse does (albeit with the boot failed message). The only thing that didn't seem to be working is the script you're running and the terminal commands directly.

I can't reproduce, so not sure how to help you.
[Nexus 6 Android Development] jcrompton:
I understand but in this case the ROM wouldn't boot.... It powered down upon boot
[Nexus 6 Android Development] :
You have some app incompatiblity then... Like the last guy with that issue who had another kernel management app that caused kernel panics because of something that it was trying to set.

So far, almost every issue that's been posted by people that we weren't already aware of.. Has been user error.

Your issue, is impossible to reproduce. So it's highly unlikely to be a kernel issue. Though, without being able to test directly on your device (since you're the only one with issues like you've posted) we can't help you.

I don't want to be a ****... And feel like I've offered all the help I can through numerous posts here and briefly on hangouts. But, I can't reproduce your issue, nobody else has a similar issue. I'd really appreciate if you stop making accusations about this kernel causing the problems that your seeing. Unless you know of literally ANYONE else experiencing similar issues, that didn't end up being something that they were doing wrong.
[Nexus 6 Android Development] apophis9283:
Kernel version 1.4 is out, op updated. F2FS should work now. Enjoy!
[Nexus 6 Android Development] jcrompton:
Yes your help was greatly appreciated ...

I'm not sure that it will be particularly helpful for the thread but for sure I am talking about another issue that is for sure not related (or at least directly) to our discussion yesterday. The issues that I was talking about here involved a clean wipe (everything except Internal Storage) , clean install, NO APPS (except gapps) and a fresh boot. With HSB --- boots but then immediately shuts down. Without HSB boots just fine.

In this case there is no user error -- I have flashed thousands of ROMs for many years. But certainly I understand that you can't reproduce this --- so no big deal.

Time will tell. I try some later versions. Obviously there is something about my phone (hardware or partitions wise) that is a part of this issue.

Your help and work is appreciated
[Nexus 6 Android Development] apophis9283:
I will be removing DYNAMIC_HOTPLUG. Its similar to another one we have. I will find something new to replace it
[Nexus 6 Android Development] jolly_roger_hook:
I used to love this kernel but ever since the move to MM every time I flash it doesn't matter what I do what setting I set up it only allows one of the cores to run and my max cpu speed will change at random to whatever it feels like anybody else having any issue like this
[Nexus 6 Android Development] :
Sounds like the issue I'm trying to get to the bottom of with intellithermal.

Can you open a terminal and do "dmesg | grep thermal"

and tell me if it's spamming about a ton of thermal throttles?
[Nexus 6 Android Development] jolly_roger_hook:
Yes there is alot
[Nexus 6 Android Development] :
Yeah figured.

Intellithermal has been acting a little erratic for me too. Limiting when it shouldn't at values below what I had set.

We're going to be removing that, and probably converting over to franco's thermal driver (same one being used in hellscore) to try and resolve this. We should have a build out later on.
[Nexus 6 Android Development] jolly_roger_hook:
Sounds good thanks for the reply hope all goes well in the next build
[Nexus 6 Android Development] mp3geek:
Well, I had some drama's when I flashed 1.4, It didn't boot. F2FS seems to be broken on it

It got worse, I couldn't get back to recovery afterwards, and re-flashing recovery via fastboot didn't work either. Took me most of the afternoon to get it fixed :|
[Nexus 6 Android Development] DreamFX:
I know it's been said before. But F2FS on phones is terrible! It's unreliable, no noticeable difference in speed, the file system corrupts itself for no reason, and sometimes it just refuses to boot. This is why it never took off mainstream for phones. There isn't a single reason IMO for a kernel dev to support it or anyone to use it. I have a lot or experience with it and I recommend everyone stay far away!
[Nexus 6 Android Development] jolly_roger_hook:
I'm still trying with no luck to get some kind of setting in synapse to stick every time I do I reboot and reopen to check and it will say something about the settings being reset click cancel now

---------- Post added at 12:21 PM ---------- Previous post was at 12:18 PM ----------

As well why would you want anything developed by Sammy and not ever had a stable release on your nexus device anyways
[Nexus 6 Android Development] :
I've had this problem with synapse since I've started using it... Even though I have the option to apply on boot unchecked.

If you look through synapse, it highlights the setting that changed. Would you mind doing that before hitting the check or x? I'm curious if there is any consistency.

I have that thermal thing fixed now but trying to make some things tunable. Apophis may put out a build with the static thermal control, then another one when it's tunable.

As for F2fs... It wasn't tested. Not sure why it was released before being tested... But really, neither of us use it, not do I intend to use it. So it's a lot of copying/formatting just to test. That probably won't happen until the weekend.
[Nexus 6 Android Development] apophis9283:
I reverted those commits and pulled in what Bezo core uses
[Nexus 6 Android Development] jolly_roger_hook:
I've gone back to kernel auditor as well as despair kernel as I can't get any kind of settings to work without insane lag on this kernel took me almost 45 mins just to get through the setup wizard when I had to reset my phone. All the lag made it take forever I'm hoping this kernel gets back to how it was it was the best I have ever use so many setting and choices made it great
[Nexus 6 Android Development] apophis9283:
Trying to figure out where its coming from. Pretty much this is my lp kernel using mm as the base. It s tough because its hard for me to believe its one commit. Im going through each commit as we speak. It cant hide forever

i used what benzo had for f2fs. So theres no reason it shouldnt work as long as you have a modified recovery to use f2fs
[Nexus 6 Android Development] mattlowry:
what settings are you guys using for this kernel? I realize everyone is probably doing something different and not everything will work for everyone.
[Nexus 6 Android Development] evolishesh:
Is this kernel comparable with Viper4android?
[Nexus 6 Android Development] Psych0t1c20:
Well idk. I took my charger off just now and it dropped to 99% in half a minute. What are some recommended kernel settings for battery life?
[Nexus 6 Android Development] apophis9283:
thats actually not bad, I know this isnt my specialty but if I remember correctly the battery charges to 100 then stops charging so the batery doesnt blow. Its been at least a year since ive read anything about it. Ill google it later to make sure im not giving you bad info
[Nexus 6 Android Development] apophis9283:
Kernel is now cooked with Linaro 6.0 instead of Linaro 5.1
[Nexus 6 Android Development] apophis9283:
Im trying to find hard limit in another github
[Nexus 6 Android Development] 875295391:
There is a problem with battery reading！The first picture is that i am using vortex kernel,then i change to benzo kernel.it is normal.Can you fix it？？
[Nexus 6 Android Development] apophis9283:
Mine looks fine. Ill look into it. not sure if i will, i cant use my phone as something to test against

Ill try something in the next build
[Nexus 6 Android Development] apophis9283:
Im rebasing the kernel

Please wait while I improve the kernel
[Nexus 6 Android Development] MrSplaat:
That sounds normal to me.

A phone will use a small amount of power even with the screen turned off, but in some cases wakelocks could also drain the battery more than normal. I had a problem a few weeks ago where my home network sent packets to my phone resulting in a huge drain every day. Did some troubleshooting, managed to isolate the packets and found the program that caused this issue. In my case, rx_wlan_wake was the wakelock that drained my battery.

So if you're experiencing abnormal drains, check wakelocks with BetterBatteryStats or Wakelock Detector. Disable some wakelocks e.g. with Kernel Adiutor, under Misc.

Edit:

When it comes to good battery settings, ZZmoove with profile 2 or 5 and msm_hotplug works great for me.
[Nexus 6 Android Development] jolly_roger_hook:
I'm guessing no link till the new ones out?
[Nexus 6 Android Development] apophis9283:
Yeah, Im getting it done pretty quick. Today was my day off so, hopefully I can get a release tomorrow
[Nexus 6 Android Development] apophis9283:
I jumped back to the original kernel. To rebase and make verything work, I would have to cherry pick everything anyway. So I will just try to fix as I go along. Or I may abandon the project. I realized early on not too many people were interested in this kernel anyway
[Nexus 6 Android Development] Psych0t1c20:
Don't abandon. There's still people interested regardless. I sure am. I was looking forward to flashing the update.
[Nexus 6 Android Development] apophis9283:
I may take a day or 2 away. I just forked another kernel. Maybe ill have more luck with it
[Nexus 6 Android Development] wrongway213:
Honestly, you made a few comments that made it sound like people would be best to wait for the impending update man.. I think you might have scared your interest away by not being as confident in your kernel chops as you are in your build skills due to inexperience. Not my project obviously so I hope it's understood I mean this only to be helpful, but my advice to you would be to just take it easy on being a perfectionist man, not every feature under the sun needs to make it into the first release.. let people see something stable up and running for a bit and interest will come. Or totally drop the project of course if you want, that's obviously your call, I just think you're misguided thinking people have no interest... this is a Nexus and you're building a Linaro kernel with mad features, lol. If it works alright, people will flash it.
[Nexus 6 Android Development] apophis9283:
Gonna rebase the kernel. Bliss doesnt need me roght now anyway
[Nexus 6 Android Development] DreamFX:
Don't abandon you have a great start of a kernel that has more features than anyone other. I support you.
[Nexus 6 Android Development] mattlowry:
I also enjoy using your kernel.
[Nexus 6 Android Development] apophis9283:
Im trying a new base.Hopefully i have better luck
[Nexus 6 Android Development] jolly_roger_hook:
I'm glad your on top of it this could be the number one go to kernel I believe im behind you all the way on this I'm sure you will get it
[Nexus 6 Android Development] :
If you'd like, I can send a test kernel to you that should resolve the thermal throttling that you were getting, to see if that behaves any better. It should.

I flashed it last night myself and is running a lot better. I honestly think a lot of the stuttering was from intellithermal, because it was erratic and also hooked the gpu clock as well.
[Nexus 6 Android Development] jolly_roger_hook:
Sounds good I'd love to test it out
[Nexus 6 Android Development] apophis9283:
Not worried at it being tested. Next build should run better