yashsingh1/xdaforums huggingface dataset:
[Galaxy S5 Mini Original Android Development] digu16:
So, I've tried again. Now it works.

I don't kwow what was going wrong 4 weeks ago. Perhaps it was the problem that I've flashed the kernel at first before I've made the buid.prop tweak??? Or the writing of file wasn't successfully??? Or???

The following way works fine:

First I I've changed the build.prop, than I've flashed the kernel, than I've rooted and at last I've installed the synapse App.

Now I'm testing undervolting.

Thank You for the kernel and your sercive!
[Galaxy S5 Mini Original Android Development] minh việt nam:
Added support for gpu control

Added support for gpu control
[Galaxy S5 Mini Original Android Development] minh việt nam:
broo
[Galaxy S5 Mini Original Android Development] zpk787:
Hello, how's that coming along? I would like to try your kernel on 5.1.1. I couldn't get f2fs to run with spookcity's kernel for some reason. Even with 6.0.1 that kernel only works with f2fs if I first get it working with your kernel, then flash over it. Maybe it's somehow related to supersu patching the boot image, I don't know. I can probably build it myself if you provide the sources. 6.0.1 was buggy or inconvenient for me in a couple of ways.
[Galaxy S5 Mini Original Android Development] CurtisMJ:
You can get the Lollipop sources from the Github repo on OP actually. I used source control, so you'd just need to check out the repo on the commit right before "Initial MM merge" which would be hash 3d601b9. I no longer have the device in hand to test though :(
[Galaxy S5 Mini Original Android Development] zpk787:
Alright, I built an image and it works with 5.1.1 fine. F2fs still doesn't work though, I format /data and /cache and it boots into a message saying that data partition was damaged (samsung's interface, so at least /system still works). It's supposed to work on 5.1.1, right?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Did you apply the ramdisk patches from the repo before repacking? F2FS requires a patched fstab.
[Galaxy S5 Mini Original Android Development] brAvEiitoOr:
Hola ;) I have problems reinstalling Magisk after installing the kernel. Should I use SuperSu instead of Magisk?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
That's not a lot of information to go on sorry. There shouldn't be any specific issues though. This kernel would also be pretty dated at this point which can cause issues with firmware compatibility. What is the exact problem you're facing trying to install Magisk?
[Galaxy S5 Mini Original Android Development] brAvEiitoOr:
I see. It could be that, but I don't want to install a custom ROM, looks very unstable. So, i use this kernel.

Magisk Manager doesn't open. I can´t use apps that needs root. I'll try to do a logcat with ADB, the app CatLog doesn´t work without root
[Galaxy S5 Mini Original Android Development] tcsabina:
Hello all,

I am desperately looking for a custom kernel where USB OTG is enabled by default. I have a G800F with none responsive screen, and I want to get my contacts and memos from the unit.

I tried this kernel, but still, I cannot unlock the screen with a connected mouse.

Could anyone confirm that this kernel is forcing USB OTG without anything?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Hi there. As per post #3 OTG is unfortunately off by default. I don't know where I've put my device at this point in time so I can't test a build with it enabled by default... You might want to try compiling a build yourself and testing?

The relevant commit is here

https://github.com/CurtisMJ/g800f_custom_kernel/commit/3d601b9a24df09251f5605ea2c5f1b829753bfdb

You would change otg_cable_type in arch/arm/mach-exynos/sec-switch-kmini.c to POWER_SUPPLY_TYPE_OTG and that should work
[Galaxy S5 Mini Original Android Development] tcsabina:
Hi Curtis,

Ok, let me give it a shot...

I need to setup my environment. Is this a good start?: https://xdaforums.com/galaxy-s5-mini/development/howto-custom-kernel-tutorial-t2985775
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Yep. Of course you'd just need to clone the source repo for this kernel instead getting it from Samsung
[Galaxy S5 Mini Original Android Development] Tom_Nook:
is anyone have MM version? links dead and i dont see any kernels for TW MM ):

upd: ok, spookcity for custom quite works

upd2: no, works bad -- dont have /sdcard mount
[Galaxy S5 Mini Original Android Development] Flavien125:
Hello, problem with dt2w it's resolved ?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Do you mean the power drain? To clarify: power drain is inherent to this type of feature and will be present on any kernel which supports it. Deep sleep inhibition was the goal, it's not a bug, more of a compromise. Perhaps it can be avoided but currently I have no time to develop, sorry.
[Galaxy S5 Mini Original Android Development] Flavien125:
Hello , my problem with your Kermel is battery drain.. ( sorry for my bad english)

I use ZzMoove with synapse

default setting Just put Zzmoove

Dt2W Disable
[Galaxy S5 Mini Original Android Development] CurtisMJ:
So the most likely cause of the battery drain is your installed apps or ZZMoove. Assuming your installed apps are not the problem, you must know that ZZMoove's initial behavior favors performance over battery life. You can check where it's balance was over time with the following command entered into the terminal emulator:

su -t cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state

With output like:

1500000 1508383
1400000 334307
1300000 234903
1200000 460470
1100000 899851
1000000 238698
900000 108179
800000 100418
700000 94197
600000 10806125
500000 1760732
400000 173243

Or by using a system info app such as Kernel Adiutor , look under "Frequency Table"

If your numbers are actually normal, then it is a bug, please collect a kernel log and PM it to me using the following command

su -t dmesg > /sdcard/kernelLog.txt

(will store log on internal SD)

Otherwise

You can change the balance by setting the "profile number"(there are a lot of options, I know) value under the options for CPU governor. I recommend the "Battery Extreme" profile, which is represented by the number 3. See my info post in the beginning of this thread for more info on ZZMoove.

In the end, ZZMoove is a performance orientated governor and will generally use more battery than the Samsung optimized defaults.

Your English is perfectly understandable ;)
[Galaxy S5 Mini Original Android Development] DaNxMaKiNa:
Hi Curtis, there are some disabled functions on Synapse. It's an error or simply these functions aren't implemented?

NgeH vo' SM-G800F Tapatalk yllo'
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Sorry, I didn't realize the "sed" command was non-standard, and I thought the other kernel devs were crazy when they embedded busybox into their ramdisk. :p Please install and run the following app, sorry for the troubles.

https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
[Galaxy S5 Mini Original Android Development] DaNxMaKiNa:
Ok, and thank you for your work :)

NgeH vo' SM-G800F Tapatalk yllo'
[Galaxy S5 Mini Original Android Development] Flavien125:
Hello , I is not the same number .. I sent you in PM log.tkt
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Log looked fine. I sent instructions on how to resolve the one issue I found. You may notice that 1.5ghz is active for by far the longest time. You either need to switch back to "interactive" or change ZZMoove's profile as mentioned in the last paragraph of my previous answer to you. Hope all goes well!
[Galaxy S5 Mini Original Android Development] Flavien125:
Hello and thank you for your answer. but

I have not found, how to change ZzMoove to Battery Extreme (https://github.com/zanezam/cpufreq-governor-zzmoove/blob/exynos/cpufreq_zzmoove_profiles.h#L14-L39)
[Galaxy S5 Mini Original Android Development] CurtisMJ:
The numbers represent profiles

In Synapse:

So a number 3 means "Set the profile to Battery Extreme"

You must enter the number of your desired profile into the marked field, then Save. After you have saved, restart Synapse, then save again. The profile should then be applied.

The field appears near the bottom of the CPU page.
[Galaxy S5 Mini Original Android Development] Flavien125:
Wtf I don't have Oo
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Some of those tunables aren't even supposed to be there. Hmm, run the following command in a terminal, post the output, then reboot.

su -t ls /sys/devices/system/cpu/cpufreq
[Galaxy S5 Mini Original Android Development] Flavien125:
here is the result
[Galaxy S5 Mini Original Android Development] CurtisMJ:
There is the problem. Intelliactive's tunables are still active. There is some problem I'm still tracking where tunables get locked. Please reboot and only change the governor once per boot. When you change it again, reboot and let synapse re-apply.
[Galaxy S5 Mini Original Android Development] Flavien125:
Goood!

thank you for your work and for your followed and sorry for my lack of knowledge and my bad English
[Galaxy S5 Mini Original Android Development] luckyaceman:
sorry, i can't find here the last official rom 800F , like XXU1****.
[Galaxy S5 Mini Original Android Development] CurtisMJ:
The title means that any ROM version that starts with	G800FXXU1 should be supported

For example, the latest ROM as of now is G800FXXU1AOI1

and the one before is G800FXXU1AOG2

Both should be supported.

Samsung hasn't actually updated the kernel sources for a very long time. The latest kernel version is actually G800FXXU1ANL1(this custom kernel is at this version) and that version has been included in every ROM version up to this point. As a result, this custom kernel should be universally supported by the ROMs. The only real change between ROMs is some SELinux policy changes in the ramdisk, but I usually update them along with my own releases anyways.
[Galaxy S5 Mini Original Android Development] luckyaceman:
thx , Curtis! is flashing kernel before installing rom or after?

(why there is 12 verb tenses in your language ? :):):) )
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Sorry for the delay. You should flash the kernel *after* installing the ROM as Samsung ROM packages typically include a kernel image which will be flashed along with the ROM(and will overwrite the custom kernel)
[Galaxy S5 Mini Original Android Development] luckyaceman:
i just tried to do this conversely :)

---------- Post added at 05:09 PM ---------- Previous post was at 04:35 PM ----------

i do not understood , how works double tap? what i have to do to awaked phone? to give a knock ? or touch? i did it, but it whatever sleeping.
[Galaxy S5 Mini Original Android Development] DaNxMaKiNa:
¿Do you have Synapse installed?

If not, install it from Play Store. If you have it then check the "Enable Double Tap 2 Wake" under the extra features tab.

The DT2W feature works by tapping twice on the same point of the screen (the phone will not awake if you tap on different points).
[Galaxy S5 Mini Original Android Development] PsyLluminat 23:
Dear Sir,

I think your Kernel is very awesome, with some of the best features from other devices. Could you please think about adding a few lower CPU steps (300mhz, 200mhz) to save even more power and OC the GPU to 600mhz like the Kernel from Dj_Steve or even explain how to do this things by myself?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
https://github.com/CurtisMJ/g800f_custom_kernel/network

As far as I can tell, the below variant of DJ_Steve's kernel is based off one of the latest commits of my own. The only change I've made since then was to remove "Intelliactive"(was a bit buggy). If you want these specific tweaks I suggest using DJ_Steve's kernel instead: http://xdaforums.com/galaxy-s5-mini/orig-development/kernel-tweaked-tw-kernel-oc-uv-t3264972.

If you miss Synapse, you can use the AIK utility to repackage DJ_Steve's kernel with my ramdisk. http://xdaforums.com/showthread.php?t=2073775
[Galaxy S5 Mini Original Android Development] Picard0147:
Thank you for this great kernel, Curtis :good:

OTG works well for usage what I want (USB flash disk and Bitcoin TREZOR), I haven't tested nothing with higher consumption and don't want to do so in future.

Possibility to change CPU frequency and voltage is also usefull, now after underclocking and decreasing voltage it looks like that I'll be able to use my phone for two days without charging and what is important without visible loss of CPU power. Possibly some fine tuning may bring better results, now it's just of new possibilities.

I just have one question: Can you recommend some good alternative (for your kernel) to Synapse? It's well aranged but saving of settings is hell...
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Unfortunately there is nothing else I know of that can use Synapse's interface to the kernel effectively. The only other option, I think, would be to design your own solution for reliably applying settings at boot. One possibility is by using the kernel's init.d functionality and the scripts Synapse would have used(located in /res/uci_p/actions) to make your own script set the desired settings. E.g, to set the governor at boot:

#!/system/bin/sh
#Set CPU Governor
/res/uci_p/actions/cpuset gov zzmoove
#Set ZZMoove profile
echo 3 > /sys/devices/system/cpu/cpufreq/zzmoove/profile_number

(I made init scripts run pretty late into boot, so any settings changed shouldn't be overwritten)

Also, if you're planning on ditching Synapse anyways, you may wan't to try DJ_Steve's TardisKernel. The G800F variant is currently based off of this one(Lollipop one likely won't) and is heavily tuned and improved and has all features of this one.
[Galaxy S5 Mini Original Android Development] bobbobagan:
Is it normal to get a Samsung security notice pop up in the notification tab after installing this kernel?

I get a message in my notification window every few minutes saying "unauthorised actions have been detected. Restart your device to undo any unauthorised changes."
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Yes that is pretty normal. KNOX hashes both the kernel and the recovery and warns the user if they have changed, not to mention this kernel has been modified to allow root apps to disable SEAndroid, which I can't imagine it is very happy about either. The notifications can be safely ignored, there is no malicious code in the kernel. You can use Wanam Xposed to disable them or freeze the app that carries them(it has a different name in LP and KK, long tap on the notification).
[Galaxy S5 Mini Original Android Development] bobbobagan:
No worries, thanks for letting me know.
[Galaxy S5 Mini Original Android Development] digu16:
latest version of Curtis Kernel ?

Hallo,

I have tryed the Tardis Kernel made by DJ_Steve.

Unfurtunately it is not stable. Wake up from Deep Sleep is sometimes a Problem == NO GO. Undervolting is a Problem.

Applying without any adjustmenst (without undervolting) brings no advantages for battery life. I disabled most of google services, KNOX, most of Samsung apps. 42 apps in RAM says the 360° Security app. Energy saving is on and sreen brightness is a little bit under 50%. Device inkl. battery is 11 Month old.

So my battery life with Stock Kernel is 48 to 60 hours (per day about 3 calls for 5 minutes, 20 minutes internet surfing (not LTE), 20-30 minutes for SMS or Whatsapp).

I woud try your kernel. Perhaps it is more stable then the Tardis Kernel, Perhaps there are advantages for battery life.

Where can I get the latest version?

Thanks
[Galaxy S5 Mini Original Android Development] CurtisMJ:
The device should not misbehave so much, even with TardisKernel's tweaks, other configuration issues might be present. Anyways, you can obtain my kernel from the downloads section of the the devDB header which should be above this thread(you may need to load it in a web browser). You can flash the downloaded package in Odin. Id be quite interested if this solves your issues(as id imagine dj_steve would be as well), would you mind reporting back in a while on the results? Also keep in mind the lollipop variant is not complete.(will try release an update tonight)
[Galaxy S5 Mini Original Android Development] digu16:
I have tested. But I'm not happy.

Kernel starts with interactive govenor. Adjusting to zzmoove does not work. After reboot the app setCPU says that "interactive" is working. Voltage controls says the same.

No lower frequencies of 200/300 Mhz and no undervolting is possible. Not with setCPU app and not with the app "Voltage Control".

After the kernel changing the apps need "root" via SuperUser app again. If I get the apps root, the apps sometimes make trouble. Voltage Control stops often and Titanium Backup app stops. After four or five times it works with root rights.

So there are no advantages for me (battery life) and I changed back to stock kernel G800FXXU1AOE3.

The stock kernel is the better choice for me. Stable after disabling some things like Knox. High battery life after disabling some apps/services (especially google services exceptionally google maps and youtube) with root and Titanium App.

But for other users could be an advantage with the custom kernel.

Nevertheless thank you to CurtisMJ
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Sorry for your troubles and thanks for reporting back. I guess I should have taken other kernel control apps into account apart from Synapse :p
[Galaxy S5 Mini Original Android Development] Andrea224:
Hi, I flashed this kernel and it works (DT2W, OTG, OC to 1.5GHz)but something doesn't work, like Boeffla sound engine, Wi Fi after boot or reboot need to re-insert the password. How I can fix them?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Boeffla Audio can only be configured via Synpase. Adding official Boeffla interface support was quite involved, so I decided it was not worth if I'm only going to port a single feature from the Boeffla kernel. Also note the feature only operates on the device's own DAC, so bluetooth/usb audio is not supported. Application of Boeffla settings can also be delayed by a second or two when audio starts playing.

About WiFi issues, see this post:

http://xdaforums.com/showpost.php?p=65568464&postcount=10
[Galaxy S5 Mini Original Android Development] Andrea224:
Wi Fi now works but I don't understand how to enable and use Boeffla Audio.
[Galaxy S5 Mini Original Android Development] nico_vo:
I have a problem with synapse.

I get always have reboots 1/2 minutes after booting, when a toast notification pops up saying that synapse boot has been completed.

Any advice?

Thanks in advance,

Nico
[Galaxy S5 Mini Original Android Development] CurtisMJ:
In Synapse, on the "Sound" page is a checkbox called "Boeffla sound status" (Original dev's words :p ). Checking it will enable the engine. It's primarily DAC tweaks though, so expect changes to be subtle.

Synapse is applying some setting which crashes the kernel. Most likely voltage. You should clear Synapses data in recovery and start again(delete the relating folder in /data/data using TWRP's file manager. Don't forget to mount Data!)
[Galaxy S5 Mini Original Android Development] turbotorsten:
Sorry if I am just to dumb, but I can't use D2TW (doesn't work (am I doing something wrong?) and I don't know how to enable if (if I have to))

Could someone help me?

Thank you
[Galaxy S5 Mini Original Android Development] nico_vo:
Download synapse app and enable it from extra features
[Galaxy S5 Mini Original Android Development] turbotorsten:
Thanks
[Galaxy S5 Mini Original Android Development] co-moi:
is there a possibility to flash the custom kernel to a rooted device?
[Galaxy S5 Mini Original Android Development] Bogeyof:
For sure, you should flash it with Odin, but after flashing kernel may be your TWRP is not working anymore. I made a tar with both elements (kernel and recovery) and flashed it together, that worked...

This kernel is rooted, but you have to be rooted before flashing also...
[Galaxy S5 Mini Original Android Development] co-moi:
Oh damn i misunderstood the first topic I've read please do not root befor flashing. So I will now go to flash TWRP 3.0 than I will go to make a backup after this I'm going to flash the custom kernel and the twrp again. Could this work?

And than hopefully I'm possible to use Xposed and Busybox!
[Galaxy S5 Mini Original Android Development] Bogeyof:
Should work, but after flashing recovery, you should directly boot in recovery, don't boot system...

You could do by removing battery after flash and boot with vol "up/home/power" pressed, release power at first logo...

In recovery, don't confirm root question of TWRP at reboot to system!
[Galaxy S5 Mini Original Android Development] Andrea224:
There is still the problem with the audio?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
There should be settings for controlling audio in Synapse

EDIT:

Are you perhaps missing BusyBox? You may need to install it from the Play Store

https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
[Galaxy S5 Mini Original Android Development] Andrea224:
Thanks man! I just enable sound settings like yours in Synapse and it works well! You are amazing!
[Galaxy S5 Mini Original Android Development] turbotorsten:
Dies this support Ethernet via USB-OTG?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
USB network modules were not built, sorry. For reference, only USB input(eg. mouse, keyboard), storage(flash drives) and audio(USB DACs and speakers) modules were implicitly selected for building.
[Galaxy S5 Mini Original Android Development] turbotorsten:
Is there a way to add it to a kernel that is not to complicated? (For me)
[Galaxy S5 Mini Original Android Development] CurtisMJ:
If you know how to build the kernel you can try build with this flag. Android likely wont use the adapter by default though. In this case the following guide I quickly Googled might help (sorry, will have to buy an adapter to confirm support).

http://xdaforums.com/galaxy-s6-edge/general/enabling-ethernet-usb-otg-t3220476

You might be able to find better guides via your own searches.
[Galaxy S5 Mini Original Android Development] Andrea224:
Does it support f2fs filesystem?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
F2FS support is present but the ramdisk mods needed to mount /data as F2FS are not present in any released versions. The latest sources can support this though, I just haven't released a build yet due to time constraints with a new job. I have some free time now though, would you like to see a build?
[Galaxy S5 Mini Original Android Development] Andrea224:
So, if you have some free time, can you develop a debloated and deoxeded Touchwiz 5.1.1 rom? Or an S7 porting rom?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Not that much free time :D URWSoft's debloater works for that though. The S5 Mini ROMs of late are pretty much directly based on the original S5 ROMs, though I still wouldn't recommend telling it to replace any apps. I'll release a kernel build anyway...
[Galaxy S5 Mini Original Android Development] Andrea224:
Thank the same.
[Galaxy S5 Mini Original Android Development] CurtisMJ:
Update complete. Please read the OP for info on changed root policy
[Galaxy S5 Mini Original Android Development] Andrea224:
Thanks so much. I will try it.
[Galaxy S5 Mini Original Android Development] Andrea224:
[MENTION=5278223]CurtisMJ[/MENTION] What's your daily driver? TW or CM13?
[Galaxy S5 Mini Original Android Development] CurtisMJ:
TW ATM
[Galaxy S5 Mini Original Android Development] Andrea224:
I can't use this kernel with root: it reboots after a bit. Why?
[Galaxy S5 Mini Original Android Development] Oleggluk:
Have you thought to make this kernel for СМ13 from CTXz and hennymcc? (Google translation)
[Galaxy S5 Mini Original Android Development] Abde77:
the phone still block , or a black screen , I wipe data / cache