yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] synace:
I've updated my 99sabermod script to automatically rename the files when the kernel is detected or restored. This all probably requires a reboot afterwards of course, but it's still easier than using adb, sideloading, or running something locally manually, or even remembering that it needs to be done.

Log example after adding kernel:

I/Sabermod(15686): Running /data/local/userinit.d/99sabermod via /etc/init.d/90userinit.sh
I/Sabermod(15687): Sabermod Kernel Running 3.4.106-franco.Kernel-SaberMod-r216.2-CM
I/Sabermod(15688): Sabermod Kernel Found, Moving /system/bin/mpdecision -> /system/bin/mpdecision.bak
I/Sabermod(15692): Sabermod Kernel Found, Moving /system/lib/hw/power.mako.so -> /system/lib/hw/power.mako.so.bak

Log example after removing kernel:

I/Sabermod(15629): Running /data/local/userinit.d/99sabermod via /etc/init.d/90userinit.sh
I/Sabermod(15630): Sabermod Kernel NOT Running 3.4.106-franco.Kernel-SaberMod-r216.2-CM
I/Sabermod(15631): Sabermod Kernel Not Found, Moving /system/bin/mpdecision.bak -> /system/bin/mpdecision
I/Sabermod(15635): Sabermod Kernel Not Found, Moving /system/lib/hw/power.mako.so.bak -> /system/lib/hw/power.mako.so

/data/local/userinit.d/99sabermod source

#!/system/bin/sh
# place script in /data/local/userinit.d/*
# called by /etc/init.d/90userinit.sh

unameStr=`uname -r`;

log -p i -t Sabermod "Running /data/local/userinit.d/99sabermod via /etc/init.d/90userinit.sh";

if [[ "$unameStr" == "3.4.106-franco.Kernel-SaberMod-r216.2-CM" ]]; then
log -p i -t Sabermod "Sabermod Kernel Running $unameStr";

if [ -f /system/bin/mpdecision ]; then
log -p i -t Sabermod "Sabermod Kernel Found, Moving /system/bin/mpdecision -> /system/bin/mpdecision.bak";
mount -o rw,remount /system
mv /system/bin/mpdecision /system/bin/mpdecision.bak
mount -o ro,remount /system
else
log -p i -t Sabermod "Previously moved /system/bin/mpdecision -> /system/bin/mpdecision.bak";
fi

if [ -f /system/lib/hw/power.mako.so ]; then
log -p i -t Sabermod "Sabermod Kernel Found, Moving /system/lib/hw/power.mako.so -> /system/lib/hw/power.mako.so.bak";
mount -o rw,remount /system
mv /system/lib/hw/power.mako.so /system/lib/hw/power.mako.so.bak
mount -o ro,remount /system
else
log -p i -t Sabermod "Previously moved /system/lib/hw/power.mako.so -> /system/lib/hw/power.mako.so.bak";
fi

else
log -p i -t Sabermod "Sabermod Kernel NOT Running $unameStr";

if [ -f /system/bin/mpdecision.bak ]; then
log -p i -t Sabermod "Sabermod Kernel Not Found, Moving /system/bin/mpdecision.bak -> /system/bin/mpdecision";
mount -o rw,remount /system
mv /system/bin/mpdecision.bak /system/bin/mpdecision
mount -o ro,remount /system
else
log -p i -t Sabermod "Already exists: /system/bin/mpdecision";
fi

if [ -f /system/lib/hw/power.mako.so.bak ]; then
log -p i -t Sabermod "Sabermod Kernel Not Found, Moving /system/lib/hw/power.mako.so.bak -> /system/lib/hw/power.mako.so";
mount -o rw,remount /system
mv /system/lib/hw/power.mako.so.bak /system/lib/hw/power.mako.so
mount -o ro,remount /system
else
log -p i -t Sabermod "Already exists: /system/lib/hw/power.mako.so";
fi

fi
[Nexus 4 Android Development] zaclimon:
[MENTION=2713164]synace[/MENTION], it looks fine, you would need to keep this file in handy because you would need to restore it every time you flash a nightly from cm.

Nice to see that this problem is resolved either way. :)

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] blusydays:
Hi [MENTION=4217103]zaclimon[/MENTION], did you here about that new toolchain "Hyper Toolchains" ? It's from the devs of Sabermod, and it's a mix of Linaro and Sabermod.

Maybe you can try it ^^
[Nexus 4 Android Development] zaclimon:
That's interesting, I might try sabernaro in the near future to compare it's performance compared to regular sabermod. :)
[Nexus 4 Android Development] blusydays:
If you want a beta tester, my N4 is ready ;)
[Nexus 4 Android Development] zaclimon:
Unveiling: Quanta Project!

Hi guys, as you may know by checking the thread regularly, I've been making an app that could alleviate the process of tweaking the settings of SM-Franco while not having to download xxx number of apps and to not tweak xxx number of files.

Today is the day you have been waiting for. As my gift for Easter, I announce the Quanta Project!! :)

This project is separated into 2 elements:

Quanta Kernel and Quanta Tweaks.

- Quanta Kernel: SM-Franco is no more! (Well, still based upon it) It's objective will remain the same as SM-Franco at the moment which is keeping the things simple and clean whilist having a good performance and battery life. So far I'm thinking about it's current list of features but the only thing I probably would change is the fact that it will be compiled using GCC 5.0 (if everything goes correctly)

- Quanta Tweaks: This and FKU will be both the only companions you need in order to have the best experience with the kernel. You can use FKU to tweak your CPU, GPU and other related settings while Quanta Tweaks will let you customize this particular kernel's related settings. For lollipop users, it is mostly Material Design compliant. (minus the animations because I'm still a noob) It still supports KitKat for users not ready to make the jump to Lollipop yet.. XD

(Those marketing works doe.. :eek: )

It's now available in the Play Store here:

https://play.google.com/store/apps/details?id=com.zaclimon.quantatweaks

It's been a nice experience to try creating an app and I hope you will like it!

I would like to thank [MENTION=4778194]TheDarkDefender[/MENTION] and [MENTION=4467696]AndyYan[/MENTION] for testing.

Enjoy!! :)
[Nexus 4 Android Development] blusydays:
Quanta is a great name. Downloading now, will report later ( I'm going to sleep :D )

You won't try to compile with SaberNaro ?
[Nexus 4 Android Development] zaclimon:
I've tried with SaberNaro 4.9. I had a compiler error related to the compression method I am using on the kernel so I ditched it. Later on, I tried LinaMod 4.9, I had better results and the system was much more stable. That said right now, I'm currently testinc UberTC 5.0 and damn that thing is smooth. Still when downclocked at 1.2 GHZ, I feel as if it was at 1.5 GHZ. XD
[Nexus 4 Android Development] aviz1911:
I'm proud of you Junior Franco ;)
[Nexus 4 Android Development] kol1124:
Only that's a shame that We haven't still franco for 5.1 roms :(

But anyway - it's amazing app :)
[Nexus 4 Android Development] yochananmarqos:
There's neither a 5.1 ROM nor a kernel released for our device yet. Any existing custom ROM's based on 5.1 are using 5.0.1 BLOB's. You can use this kernel with them.
[Nexus 4 Android Development] raSHOREY:
:( help

I was too excited for this but I'm getting forces closes. The app isn't ready to open. I am on PA alpha 2 & 216.2. Thanks in advance
[Nexus 4 Android Development] Fenvarien:
[MENTION=4217103]zaclimon[/MENTION] Thanks for your hard work and for providing this great kernel! [emoji4] Quanta Tweak is working just fine here, no FCs or other hiccups. CM 12 with SuperSU and 216.2 kernel version.
[Nexus 4 Android Development] jimyiak:
Will be new version of this kernel?

sent by nexy 4
[Nexus 4 Android Development] Fenvarien:
Just check this post (only one page back): http://xdaforums.com/showthread.php?p=59918740
[Nexus 4 Android Development] zaclimon:
Hmm can you send me a logcat when it tries to open? It may be possible that I forgot something. I tested it with simple aosp, euphoria, cm and chroma and I didn't have any FC's. Worst case, if you didn't have the good kernel, you would only reach the device status screen.

At first, I wanted to release it when 5.1 would be released but I always had that holiday release schedule thing going on so I wanted you guys to try it. (even though you may have all stuffed yourselves with chocolate XD)

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] blusydays:
The app works fine for me on CM12, but IMO you should add more kernel settings, except the ones that are specific to franco's app, as the performance profiles and the Per-Apps profiles for example.
[Nexus 4 Android Development] txuki2005:
Interesting....

Thanks!

Merci!
[Nexus 4 Android Development] zaclimon:
I would but pretty much all the features are here so far. The role of Tweaks isn't to make it another kernel manager just yet. Up to now, I've thought of adding a Ext4/F2FS converter and an updater but that's all I think I can add.

Also [MENTION=6386509]raSHOREY[/MENTION] I've fixed the PA issue. Should be available in the next hours in the play store.
[Nexus 4 Android Development] alexandreantunez:
Is it anykernel? I know that Franco´s isn´t.
[Nexus 4 Android Development] zaclimon:
Yes it's anykernel, so you can flash it on top of current 5.1 ROMS.
[Nexus 4 Android Development] alexandreantunez:
Thank you, sir. I will.:good:
[Nexus 4 Android Development] atulclassic:
i don't why but the device is blacked out after tweaks are applied and rebooted.

I can see that the screen lights up in the back but there is no image..its totally black..and this happens only after settings are applied automatically after boot..before that everything boots up fine.
[Nexus 4 Android Development] Fenvarien:
It's working great here. You need to provide some more details about your setup. Which ROM, do you have any other kernel tools installed, init.d scripts etc.? Did you flash your ROM's stock kernel beforehand? Please remember that this is needed with an anykernel flash.
[Nexus 4 Android Development] zaclimon:
Have you put the brightness mode to exponential? If so try to set it back to linear and see what happens. It may be possible that exponential may not work nicely with your device at boot.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] svnhvn:
Did the download links dead?
[Nexus 4 Android Development] zaclimon:
The links are fine but it can happen that BasketBuild becomes sluggish sometimes.. -.-
[Nexus 4 Android Development] svnhvn:
Did you by any chance have mirror for latest release?
[Nexus 4 Android Development] zaclimon:
Here you are:
[Nexus 4 Android Development] svnhvn:
Thank you!!
[Nexus 4 Android Development] emanuele1986:
Is possible to set the kernel without trickster mod or other kernel manager?

Thanks
[Nexus 4 Android Development] fr3quency:
Why if I may ask? Trickster is pretty awesome. And it only uses... 5-10mb of ram? It's not crap like Synapse+UKM where some settings don't stick or fail to do so.
[Nexus 4 Android Development] Fenvarien:
+1

Or use Kernel Adiutor as a very nice and clean alternative to Trickster. It works great with this kernel and alongside with Quantum Tweak: https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor
[Nexus 4 Android Development] 22sl22:
Just flashed this kernel because some users recommended it in the Chroma rom thread, upon flashing my storage is all messed up. I am well aware of the SD Card bug where after flashing it appears that there is nothing on the phone. In Data-Media-0, everything looks ok. However, when you go to storage-sdcard0, the folder can't be accessed so none of the apps are working because they can't access the directory. I know that if I do a factory reset in TWRP the issue should be fixed but is there any way to transfer files just in case I lose anything?
[Nexus 4 Android Development] blusydays:
Dirty flash the rom, that should resolve this issue and revert back to stock ( chroma ) kernel.
[Nexus 4 Android Development] zaclimon:
Are you feeling it guys?

http://www.androidpolice.com/2015/04/13/ota-link-174mb-android-5-1-update-build-lmy47o-for-nexus-4-is-rolling-out-now/

Kernel source is up as well, let's just wait for Franco now... :)
[Nexus 4 Android Development] icu64:
Just a fair warning he said it will be a while, he does know about it though
[Nexus 4 Android Development] ferrocene:
Can't wait, love this kernel! Is it compatible with chroma?
[Nexus 4 Android Development] emanuele1986:
Yes but i make only the undervolt and is unuseful to use a kernel manager for me
[Nexus 4 Android Development] zaclimon:
Yes, you can use it without problem with chroma. :)

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Nexus 4 Android Development] ΦDroid:
New franco kernel version :)

Factory images too!: https://developers.google.com/android/nexus/images#nakasijop40d
[Nexus 4 Android Development] zaclimon:
Saw it earlier, the update should come by the end of the week. (I'll try to work on it tomorrow :) )
[Nexus 4 Android Development] blusydays:
The update will be compiled with what ? :)
[Nexus 4 Android Development] ferrocene:
Is this an anykernel kernel?
[Nexus 4 Android Development] mdaamir1989:
Post #451 answers your question.

Although il paste the link for you.

http://xdaforums.com/showpost.php?p=59954202&postcount=451
[Nexus 4 Android Development] zaclimon:
Quanta Kernel

Hi guys, as I've said last Easter, The Quanta project consists of 2 elements. Today is the release of the second major part of it. While keeping the same "philosophy" as Sabermod franco.Kernel, I also want to keep it stable and bugs free. To ensure so, I rebased completely again the kernel source to be sure that I wouldn't include some old weird commits again.

Here I present you Quanta Kernel :D :

- Compiled with the latest UBERTC 5.0

- All the same great optimisations you loved from SM-Franco + more

- Updated F2FS drivers (with new mounting flags so you can feel a whole new beast)

- Tweaked performance profiles (I found that they weren't as much optimised as I would like to)

- Support for android-keyboard-gadget (you can now use your device as a keyboard/mouse for your computer)

- Reverted the 192 MHZ CPU freq as it was causing more negative than positive results

V1 is based upon Franco's r217 release for mako.

Here are the download links:

AOSP Download

CM Download

- I recommend that you should go to your

stock rom's kernel before flashing this

. For Chroma users using the Franco's kernel build. Please flash stock kernel beforehand.

- If you're using F2FS, flash stock kernel but

reboot to recovery directly after and flash Quanta

as it does have a different ramdisk as opposed to SM-Franco.

I won't change the OP right now as I do not have enough time yet. I'll left a link to this post at the top of the OP so you can download it without searching it at the moment. The OP is now modified.

Enjoy! :)
[Nexus 4 Android Development] Persechini:
to clarify a few things before I flash it, just to be sure they are in cluded in the "+more". Does this version still includes ziddey's usb-otg patch (for mako) and kexec support for multirom (mako and flo, when it gets released)?
[Nexus 4 Android Development] zaclimon:
The + more indicates that there are more optimisations than the one on SM-Franco. (hence why it is on the same line) Though Quanta still have all SM-Franco features. (usb-otg and kexec support are still here)
[Nexus 4 Android Development] GaboWinter:
Hi [MENTION=4217103]zaclimon[/MENTION], awesome work here, congratulations, just a little question, Quanta still has the dt2w support? Honestly I'm not a hard user of kernels, I don't mess too much with settings but dt2w it's a must for me.

Thanks in advance
[Nexus 4 Android Development] zaclimon:
Yeah don't worry, it still has dt2w inside and you can still use it without any problem.

It might be best to use the kernel with Quanta Tweaks to get the best experience. [emoji14]

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] GaboWinter:
I'll do that for sure, thanks a lot!
[Nexus 4 Android Development] coffeecore:
[MENTION=4217103]zaclimon[/MENTION]

You're a beast, this is what I belong :p :victory:

Edit: Should I use conservative or interactive?
[Nexus 4 Android Development] coffeecore:
Working really good here on Chroma, nice name by the way ''Quanta'.
[Nexus 4 Android Development] txuki2005:
Finally! Great!

Congratulations [MENTION=4217103]zaclimon[/MENTION].

Thanks for all ;)
[Nexus 4 Android Development] iskandar1023:
super UC to 1026 MHz and still running smooth :victory:

Chroma+Quanta is super
[Nexus 4 Android Development] jokermithun:
hello friends

from where can i get flashable stock 5.1 kernel zip file????:confused:
[Nexus 4 Android Development] zaclimon:
You can use Flashify to flash stock kernel. [MENTION=373732]cofee[/MENTION]core I still prefer conservative over interactive but they're both good governors.

[MENTION=4880721]iskandar1023[/MENTION] I've thought of keeping the power saving profile to 1026MHZ but I thought that it wouldn't be fast enough for those not on Chroma. (It is at 1242MHZ at the moment. You should see with F2FS :o) I might consider UC it again to 1026MHZ XD

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] Fenvarien:
Awesome, thanks for your hard work! :)
[Nexus 4 Android Development] iskandar1023:
i didn't know too if it's able to UC even more than 1242, then i try and still running fine :silly: i even UC the GPU too 200MHz :silly::silly:

and if i can limit online core to 3 cpus i'll do that too :silly::silly::silly:

i want to try F2FS but too lazy to backup my data :rolleyes:
[Nexus 4 Android Development] MtG92:
I don't know what everyone's experience with dt2w has been, but every time I use it there's always the occasional edge freeze, where the edges don't respond to touch, which causes me to have to reboot the device in inconvenient situations (at times) in order to be able to use it. AFAIK this is a known issue with the current dt2w implementation. However I never experience this with [MENTION=3750240]stratosk[/MENTION] 's implementation of dt2w. [MENTION=4217103]zaclimon[/MENTION] what are your thoughts on this? Is there a fix in sight, or is this issue even fixable? Do you know what the root of it is, or why it isn't present in other implementations? Thanks.
[Nexus 4 Android Development] zaclimon:
I don't use DT2W enough so I can't confirm that there are input issues. I thought that restoring the 384 MHZ as default wouldn't pose any problem anymore. Maybe I was wrong. Do you still have that issue while using Quanta?

By checking the source code of stratosk, I could see that he implemented a wakelock into his DT2W driver so the touchscreen will stay enabled and that DT2W will work without problem.

From what I see on mckael's implementation, when you choose bottom or top, the margins aren't included. Also there are no wakelocks so maybe when you try to tap, the kernel suspends so it doesn't register any taps anymore. Though there is still a way that the device wakes up when tapping because I don't have issues when trying it. I'll try to investigate this, though if stratosk offers multiple areas for DT2W, I might consider it.

Another option would be to modify mckael's implementation but I wish I could know more about C so I could fix this issue quickly. :(
[Nexus 4 Android Development] GaboWinter:
Well, in my limited experience, the main issue (for me) with this implementation is the unresponsive screen when I try to wake the device, always required several touches to wake, I know that the 192 MHZ frequency was an issue but also happens now, before return to this kernel I was in another one with the stratosk implementation and never happen, as you said, this must be because the wakelock, could be possible test a build of Quanta with stratosk implementation?
[Nexus 4 Android Development] Flaggusp:
Zac than you for the kernel.

I tried the new Quanta Kernel but for what I've seen there's no option for fast charge, is it normal?
[Nexus 4 Android Development] zaclimon:
As I said, I might consider it if it offers multiple areas and not only center for example. Another solution might be to implement a wakelock into mckael's implementation so there are no issues anymore.

Arghh I was sure that franco included it... -.- I'll add it in the next version.
[Nexus 4 Android Development] MtG92:
Yes, unfortunately I still had this issue with r216.2, the one with the 384MHz step as minimum.

I'm afraid [MENTION=3750240]stratosk[/MENTION] dt2w only triggers with centre tap, but I don't know if it's possible to modify it or something...
[Nexus 4 Android Development] zaclimon:
Yeah though r216.2 was a bit weird because even though 384 was set at minimum, the device was still sleeping at 192. I completely reverted the 192 commit for Quanta. The absolute minimum is 384 at the moment.

It takes some taps to wake the device but I don't have any issue hmm...
[Nexus 4 Android Development] MtG92:
Well in that case I'll give it another go. A new Chroma build should be coming soon, I'll clean flash it with Quanta and test it :)

although I usually have the unresponsive edge issue after like a couple of days of usage, it can be somewhat "random" so to speak
[Nexus 4 Android Development] zaclimon:
Ohh I may have misread something up. The edge issue you have is while using the device or trying to wake it? If it's during the usage of the device, it might be a different story.

Also you will be satisfied with Chroma. The thing is zippy quick. :p
[Nexus 4 Android Development] MtG92:
It's trying to use the device. I'll randomly wake it and suddenly I can't swipe from the edges, or swipe up from the bottom...
[Nexus 4 Android Development] betacheer:
Just a quick question.

When I want to use this kernel with Chroma on F2FS, do I have to just Flash it in order (ROM,Gapps,Kernel,SuperSu,SEPolicy) or do I have to wipe cache in between?
[Nexus 4 Android Development] zaclimon:
Hmm that's definitely weird, I've seen a fix somewhat related to unresponsive screen in the stratosk driver. I'll try to see if I could apply or make something similar.

You should be able to not wipe cache and still get it working but it might be better to convert /cache to F2FS. That's what I did and it works flawlessly.
[Nexus 4 Android Development] mdaamir1989:
If and when u decide to make changes to Mckael's implementation i would love to test it for you :)

But till then can if you could consider a request from all of us and add stratosk's DT2W implementation we would be grateful :)

Would love to come back to this kernel .

Thank you for your work towards our device :)
[Nexus 4 Android Development] iskandar1023:
So if i only format /cache to F2FS still giving a decent improvement?

I'm too lazy to format /data, really.?

posted by mako
[Nexus 4 Android Development] zaclimon:
Definitely not, as most of the operations are made on /data, this is mostly the only partition you want to convert.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[Nexus 4 Android Development] ferrocene:
Fantastic kernel, works great with Chroma.

I'm having a small issue waking the phone from the power button...I'm often pressing it 8 times or so before the screen turns on. I don't use dt2w, can I disable that feature? I'm sorry I forget what program is used to manager settings.
[Nexus 4 Android Development] mdaamir1989:
DT2W doesnt interfere with your phones hardware button afaik , maybe your power buttons dead ? Then i guess u might want to leave DT2W turned on :P

But anyways Quanta tweaks from google play store is the app you are looking for :)
[Nexus 4 Android Development] ferrocene:
I had figured they weren't related.

I just had someone call me, and my phone rings but the screen never turned on. I had to hit the power button then swipe right to answer. Weird, I'll do more testing.
[Nexus 4 Android Development] zaclimon:
V2

Alright guys, you spoke. I managed to do it as quick as I could, and here it is:

Quanta V2:

- Replaced McKael's DT2W implementation by Stratosk's (even though I liked McKael's way)

- Added Fast Charge

- Tweaked a little bit the performance profiles again (If you do depend on it, flash back to stock kernel, otherwise it's not necessary)

As for Quanta Tweaks, an update for Stratosk DT2W should be coming in the next hours. I'll leave the apk down here so those who want to install it while it's not yet on the Play Store may do so.

As for the near future regarding Tweaks, I have to redo the interface backend (looks like I was doing something wrong) so there may not be an update for a little time. Though so far I find that it accomplishes it's goal quite nicely and simply. [emoji14]

Both are available on BasketBuild.

Anyways, Enjoy! :)