yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Android Development] Dreamisdead:
Great work guys!:)

Can you please add TTL target support to netfilter?

[IMG="netfilter1"]https://hsto.org/files/28d/7fe/031/28d7fe0312a248e4b77e8601901797ab.png[/IMG]

[IMG="netfilter2"]https://hsto.org/files/a29/df9/4d0/a29df94d0c6a4926ba0343422717d2d9.png[/IMG]

With this change I can just do :

and my carrier can't detect tethering anymore since all packets have the same TTL.

I may be not the only person needing this, since many carriers detect tethering based on TTL value

Seems like a trivial and useful thing to be integrated into kernel.
[Galaxy S 4 Mini Android Development] Samerhk:
Unlimited vs limited

I have a samsung s4 mini duos with RR mm rom now i have read the post and search for google and i cannot seem to find which version of the kernel is better for my phone. All i read is with limited version i have to flash something else i dont know where download. Sorry this is prolly a noob question.
[Galaxy S 4 Mini Android Development] :
You can try the unlimited kernel. If your phone boots up normally, you're good to go. But if your phone ends up in a bootloop, you need to flash the limited one. In either case, to make full use of all the features of this kernel you should use Kernel Adiutor or a similar app. You can find these apps in the Play Store.
[Galaxy S 4 Mini Android Development] jhenrique09:
Battery

What is the best configurations of Kernel Adiutor to improve battery life, using RR 6.0 rom ?

Use limited or unlimited version?

3G DS
[Galaxy S 4 Mini Android Development] rosenrotttt:
Unlimited kernel don't work on AICP11. But limited work. Can you fix it?
[Galaxy S 4 Mini Android Development] Samerhk:
Yes, I use Kernel auditor. What i meant by ''downloading something else'' is something i read about ''hardlimit'' or something like that. And thank you for the answer.
[Galaxy S 4 Mini Android Development] denyo81:
Wich version you have downloaded?

I'm on AICP 11.0 Remix Kernel 2.04

unlimited and all fine here.
[Galaxy S 4 Mini Android Development] rosenrotttt:
i9192, AICP11 20160607, Remix Kernel 2.04. I see boot logo "samsung galaxy S4 mini duos", but further loading is not.
[Galaxy S 4 Mini Android Development] denyo81:
Dude, flash the latest version from aicp.

And then try it again.

Or you must flash an older kernel release.

But I prefer the latest from today or yesterday.
[Galaxy S 4 Mini Android Development] rosenrotttt:
I also tried the kernel version 2.03_unlimited and 2.02_unlimited, but it did not help. I'll try again when aicp Update.
[Galaxy S 4 Mini Android Development] denyo81:
Take the nightly from 20160612/11 and Remix v.204

It's better stay up-to-date.
[Galaxy S 4 Mini Android Development] o0chtm0o:
Why don't you try limited first? Did you?
[Galaxy S 4 Mini Android Development] samplebird:
The minimum CPU voltage is 700, though other kernels have successfully tested this device at much lower voltages. Any chance this kernel could have lowered limits in the future? Very happy with the kernel otherwise, thank you!
[Galaxy S 4 Mini Android Development] rosenrotttt:
Where can I get nightly build for i9192?

Limited core works. But it does not increase the frequency of the processor.
[Galaxy S 4 Mini Android Development] o0chtm0o:
Interesting... Same happens to me. Limited works fine but unlimited doesn't. It should be a hardware related thing. Our devices probably doesn't support that frequencies???
[Galaxy S 4 Mini Android Development] denyo81:
Try the remix kernel v.2.02 this working for older Nightlys.

From here you get AICP 11.0 but I'm not sure if device is supported.

http://xdaforums.com/showthread.php?t=3026998
[Galaxy S 4 Mini Android Development] Helhound0:
Dude I'm having graphics issues with some games that used to run smoothly on the stock ROM and Kernel.

But since i moved to Bliss MM they slideshow really bad.

I then installed this Kernel but it doesn't seem to fix the issue.. :/
[Galaxy S 4 Mini Android Development] ModyCZ:
It seems strange to me too. None of the new Unlimited Remix kernel boot my i9195, the old unlimited kernel worked. But since the Limited Remix kernel works, and I can over/under-clock later using Kernel Auditor, I'm happy.
[Galaxy S 4 Mini Android Development] rosenrotttt:
On CM13 i9192 unlimited kernel works.

I checked the kernel version 2.02 does not work.

My device is not officially supported. I use unofficial assembly.
[Galaxy S 4 Mini Android Development] csendre:
Version 2.05 is uploaded, intelli thermal implementation is fixed.
[Galaxy S 4 Mini Android Development] Dreamisdead:
Yo, any chance you include ttl target support ?

I tried compiling module for myself to use, but I guess I need a different toolchain.

I also pm'd [MENTION=5706443]DarkFrenzy[/MENTION]. It could be really useful for people that need it for tethering.
[Galaxy S 4 Mini Android Development] DarkFrenzy:
CONFIG_IP_NF_TARGET_TTL=y
[Galaxy S 4 Mini Android Development] kamikaze702k:
2.04 limited working great on AICP10, will flash latest on next battery cycle. Thanks guys
[Galaxy S 4 Mini Android Development] Dreamisdead:
No ttl target according to cat /proc/net/ip_tables_targets :(
[Galaxy S 4 Mini Android Development] csendre:
Which kernel version are you using (3G or LTE, limited or unlimited)? I will build one for you for testing using the configuration line by DarkFrenzy
[Galaxy S 4 Mini Android Development] Dreamisdead:
Would be great! I'm using lte limited, unlimited doesn't work for me.
[Galaxy S 4 Mini Android Development] csendre:
3g or LTE?
[Galaxy S 4 Mini Android Development] Dreamisdead:
LTE limited
[Galaxy S 4 Mini Android Development] csendre:
Link is here. Test and report back please
[Galaxy S 4 Mini Android Development] Dreamisdead:
Nice! It is working great! :)

Can freely tether now. You can probably add this to config for next releases!

Thank you!

Little off topic.

How can I set this script to run at boot?

#!/system/bin/sh
iptables -t mangle -A POSTROUTING -o rmnet1 -j TTL --ttl-set 64

Kernel supports init.d but when I add my script with correct permissions it doesn't get executed. Do i need to check "emulate init.d" in kernel auditor?

Also do i need to flash something to enable OC over 1728 mhz?

Limited kernel doesn't seem to allow going past that in kernel auditor.
[Galaxy S 4 Mini Android Development] csendre:
Not sure about the script, maybe someone can help.

For OC you have to use the Performance Control app with limited kernel.
[Galaxy S 4 Mini Android Development] Dreamisdead:
I see, doesn't kernel auditor app also enable overclock?

Maybe i need to tweak something there? Right now if i select something higher than 1728 it drops to 1728 after a sec.

Or i need to use different app?
[Galaxy S 4 Mini Android Development] milouk:
Samsung has a thing called hardlimit which doesnt allow OC therefore there are some zip files that override samsungs hardlimit. OR you can use performance control which ALSO overrides samsungs hardlimit. Even though other apps such as kernel audiutor allow OC with the hardlimit present your the frequency will always drop back to 1728 mhZ..
[Galaxy S 4 Mini Android Development] Dreamisdead:
Thanks for info! It seems we can just change limit on fly, like this in terminal as root:

echo 2052000 >/sys/kernel/cpufreq/hardlimit

And zips just add a init.d script, but my init.d doesn't seem to work, anyone else's ok?:confused:
[Galaxy S 4 Mini Android Development] supachris:
Since 2.0.4 the bug with not responding soft buttons after BLN notifications is come again. Before 2.0.4 this was gone...
[Galaxy S 4 Mini Android Development] kamikaze702k:
What are you using to get BLN ?
[Galaxy S 4 Mini Android Development] milouk:
NSTools from play store
[Galaxy S 4 Mini Android Development] csendre:
Does it work on stock kernel or 2.03? All that was added to 2.04 was an improper implementation of intelli thermal which is fixed in 2.05. I don't see how that could affect BLN
[Galaxy S 4 Mini Android Development] supachris:
I will try. Stock cm13 kernel was fully OK with BLN. Maybe it comes from underclocking? I set the min freq to 270Mhz for try. Now I have 384MHz again. At the moment I'm on 2.0.2
[Galaxy S 4 Mini Android Development] Dreamisdead:
Guys, init.d doesn't work for me on 2.05 limited.

Can anyone check? /system/bin/sysinit is in place, and I can execute it, but it does not execute on boot, why?
[Galaxy S 4 Mini Android Development] :
It's not the underclocking. I've set it to 162 MHz, no problem with version 2.02.
[Galaxy S 4 Mini Android Development] kamikaze702k:
2.05 seems to eat more battery life, using same settings as previously but drains much faster.'..
[Galaxy S 4 Mini Android Development] flipeicl:
1+
[Galaxy S 4 Mini Android Development] csendre:
It's one of the commits the CM team added. People on stock kernel also complain about battery drain on latest builds. Hopefully arco will fix it.
[Galaxy S 4 Mini Android Development] o0chtm0o:
I really admire you. You are really committed to what you do in this forum and you are always aware of reading, answering questions and keeping updated ROMS :good: :good: :good:

My respect!! :highfive:
[Galaxy S 4 Mini Android Development] csendre:
Thanks, I am just trying to contribute. For years I was only benefiting, it was time to give back :)
[Galaxy S 4 Mini Android Development] arsm74:
+1 [MENTION=5416372]csendre[/MENTION]....you work is always admired....
[Galaxy S 4 Mini Android Development] csendre:
Remix 2.06

New set of kernels is uploaded.

Changelog:

- TTL support merged into builds

- synced with CM sources, added latest arco commit
[Galaxy S 4 Mini Android Development] supachris:
I flashed the limited, booted OK. I will try if the soft button bln problem is still therw.
[Galaxy S 4 Mini Android Development] supachris:
The soft button bug is still present in 2.0.6 :(
[Galaxy S 4 Mini Android Development] Dreamisdead:
My battery life is ok on 2.06...

And was ok on 2.05, little undervolt (-75) and standart interactive governor.

Can anyone help me with init.d?

Tried everything, scripts do not execute on boot :(
[Galaxy S 4 Mini Android Development] supachris:
Maybe the issue came with 2.0.3. I did not test this for now. I'm back on 2.0.2 since 2.0.6 has this bug also. The stock kernel of 0418 Snapshot also is ok. Strange. Also the wakup from deep sleep is little delayd if the buttons are not working.
[Galaxy S 4 Mini Android Development] milouk:
I believe that this commit arco made screwed the bln.
[Galaxy S 4 Mini Android Development] kamikaze702k:
What soft button bug??
[Galaxy S 4 Mini Android Development] supachris:
Often when BLN is active after a message came in, the buttons are not fully brigth and does not respond until next sleep/ wakeup cycle. This was also all the time in stock cm12.1 Kernel.
[Galaxy S 4 Mini Android Development] milouk:
Sometimes when receiving a notification soft keys become unresponsive
[Galaxy S 4 Mini Android Development] supachris:
Hm, his commit only handles error case, if no device is passed to the functions, but maybe this is the reason for the bug.
[Galaxy S 4 Mini Android Development] milouk:
Yeah i know but its the only commit that has to do with bln and since it was merged the issue occured
[Galaxy S 4 Mini Android Development] o0chtm0o:
Well, I guess someone will have to tell him about that...
[Galaxy S 4 Mini Android Development] csendre:
This commit is to serrano-common, independent from kernel. If this is the cause, the problem would persist with all kernel versions.

Idea; test on my last AOKP build. When I built that I did not add this commit to the device tree. If this is the cause, it should work on AOKP
[Galaxy S 4 Mini Android Development] csendre:
2.07

New set of kernels uploaded

Changelog:

- Added GPU simple governor from f4k sources - tested, works

- Synced with latest CM sources
[Galaxy S 4 Mini Android Development] milouk:
All the GPU/GPU governor issues i mentioned some days ago are gone...brilliant work you did there [MENTION=5416372]csendre[/MENTION] congrats mate
[Galaxy S 4 Mini Android Development] ModyCZ:
Something's fishy about the last kernel. My i9195 lost zero percent of battery since the kernel update. For the last two hours battery graph shows completely flat line. It can't be real. Using todays cm13 snapshot, undervolted -150mV, intelliactive governor.
[Galaxy S 4 Mini Android Development] ModyCZ:
The latest kernel does wonders to the battery life. While idle there are no wakeups, temp around 30C, the phone is noticably cool in my hand. I didn't have any battery drain issues before, but now it looks like the battery would easily last two days.
[Galaxy S 4 Mini Android Development] supachris:
This is strange. In 2.0.2 and CM snapshot kernel the bug is not present. In 2.0.4 and later nearly every time the buttons do not respond. For now I try the 2.0.7 kernel
[Galaxy S 4 Mini Android Development] jake3317:
2.07 has excellent standby results for the battery. I had the phone on flight modus all day yesterday, but switched halfway from 2.06 to 2.07. It now shows a nice flat line.
[Galaxy S 4 Mini Android Development] supachris:
I´m pretty sure, the BLN issue is kernel related. In 2.0.7 the issue is also present. No changes to the rom itself. Now I go back to 2.0.3 for testing.
[Galaxy S 4 Mini Android Development] csendre:
So you are saying that 2.03 was the last time it worked and doesn't work on any version after it? Also, BLN still works on stock kernel? Please confirm
[Galaxy S 4 Mini Android Development] supachris:
I never have had this issue on CM13 stock kernel (snapshot) and 2.0.2 and at the moment I test on 2.0.3.
[Galaxy S 4 Mini Android Development] csendre:
OK. It would help if you could find which is the first version where it stopped. What do you mean by snapshot? There is only one active branch of the CM 13 kernel to my knowledge. Do I miss something?
[Galaxy S 4 Mini Android Development] o0chtm0o:
hehehe... Snapshot is the rom my friend. In kernel related he means that in 2.02 BLN works fine but with the latest kernels is not (2.04, 2.05, 2.06, 2.07).

EDIT:

By the way, the latest snapshot I see is from 2016-04-18
[Galaxy S 4 Mini Android Development] supachris:
The kernel, which is included in the 20160418 snapshot of original CM13. I don´t know if the nightly kernels are the same or others. For now it seems to work also with 2.0.3, but until now there were not enougth messages.
[Galaxy S 4 Mini Android Development] supachris:
It seems to be the change from 2.0.2 to 2.0.3 because the last incoming email showed the bug in your 2.0.3 Kernel. I hope this helps. I am going back to 2.0.2 now.
[Galaxy S 4 Mini Android Development] csendre:
The kernel in this snapshot is crazy old, not helping at all. Since then the Cm etam switched to a new kernel source, this is why we had to build a new remix from the ground up. I need to know if BLN is still working on the latest stock kernel. I built both versions (I don't know if you are on 3G or LTE), it is in this folder. Please flash your version and let me know if BLN works or not. This will tell me if it was a CM commit or our own that messed it up.

---------- Post added at 11:56 AM ---------- Previous post was at 11:49 AM ----------

If this is the case then a CM commit messed it up because from 2.02 to 2.03 we did not add or change anything. It was a sync with CM sources and we merged 7 commits from the CM team. Please flash the stock kernel and verify, BLN should not be working on stock either if this is the case
[Galaxy S 4 Mini Android Development] supachris:
I flashed the stock kernel and will now test it. I'm on LTE
[Galaxy S 4 Mini Android Development] kamikaze702k:
The latest kernel is amazing, really good progress happening, devs you need to start accepting donations for appreciation, I've mentioned it before and now again, I need to give back too
[Galaxy S 4 Mini Android Development] supachris:
The 4th incoming Telegram message caused the BLN bug on your stock kernel build. So the issue must be inside the CM sources, I guess...
[Galaxy S 4 Mini Android Development] csendre:
Are you sure it is not the ROM causing an issue instead of the kernel? I never paid attention to BLN but today I laid down the phone on my desk in front of me and all notifications showed up just fine. I am on latest AOKP and remix 2.07 on a 9192 Try a newer CM13, AICP, AOKP, Bliss, Temasek or something of your choice.

I suspect this commit is causing you trouble, and if I am right, you will have to use more recent versions of rom. After this was implemented, older remix kernels (2.02 and below) stopped working with newer roms and perhaps there is a backward compatibility issue as well between 2.03+ remix kernels (where this commit was merged) and older roms.
[Galaxy S 4 Mini Android Development] supachris:
I let the ROM all the time on CM13 latest snapshot. But maybe you are right, and they changed something in kernel and rom and due to this the newer kernels are incompatible with older roms. But I like the pure cm and I am not a friend of nightlies...so I think I will better wait until new snapshot....

Nevertheless I thank you much for your hard work on this kernel.
[Galaxy S 4 Mini Android Development] csendre:
Don't think that there is much difference between the snapshots and nightlies. CM13 is at a stage now where all releases are fairly stable.
[Galaxy S 4 Mini Android Development] Sarcastic Warrior:
Do you guys know any tweaks to use with this kernel?
[Galaxy S 4 Mini Android Development] csendre:
You'll have to be more specific. What is your goal?

---------- Post added at 10:30 PM ---------- Previous post was at 10:00 PM ----------

It is best giving back by helping with feedback, finding solutions to problems, propose improvements and generally anything you can do to help us make this kernel better.
[Galaxy S 4 Mini Android Development] kevinarol93:
Awesome kernel for this device

I want to thank you for your work, just a thing I can't install the unlimited kernel just the limited, when I try to install the unlimited my phone stops where it say "Samsung Galaxy S4 mini" and nothing happen, with the limited version I can set diferent cpu frequencies with Performance control, if this helps you my phone is i9190

(sorry for my bad english)
[Galaxy S 4 Mini Android Development] Sarcastic Warrior:
Like this one:

http://xdaforums.com/android/software-hacking/tweak-l-speed-v1-0-02-02-2015-t3020138

With multiples improvements.
[Galaxy S 4 Mini Android Development] matesurano:
[MENTION=5416372]csendre[/MENTION] Hi, I am trying out Exodus for s4 mini Dou's with remix kernel v. 2.07 , so far things are looking good. But there is one problem with the ROM, in call volume and in call speaker volume is also very law. I tried to increase it with sound setting in kernel auditor . but nothing changed. Could you please look into this or ask k2wl to do so.

.,....by the way just to bring into your notice.... AOSPA have put an update with bug fixes. We need smooth ness of aosp based ROMs(like Exodus) for our device.
[Galaxy S 4 Mini Android Development] csendre:
You have to ask for this in the Exodus thread, this is a ROM feature, it has nothing to do with the kernel. Volume settings are part of the audio HAL and included with the serrano-common repo. Theoretically volumes should be the same in Exodus as any other ROM using the same serrano-common repo but only who builds the rom can tell what is he using and what settings are implemented.

---------- Post added at 06:52 AM ---------- Previous post was at 06:51 AM ----------

This is simply an app for tweaking that uses features like the one we included in the kernel. Try it.
[Galaxy S 4 Mini Android Development] shadyasker:
What tweaks to use for power saving and performance together in kernel auditor ?
[Galaxy S 4 Mini Android Development] glkanth77:
Yup ur correct exodus rom is having low volume problem
[Galaxy S 4 Mini Android Development] matesurano:
Of course its a rom problem. It happens with the default kernel also. I just asked you if anything could be done from your side. I will ask this in exodus thread, lets c what the dev says..

As always...... Thanks.
[Galaxy S 4 Mini Android Development] supachris:
Finally I switched to cm13 nightly and 2.0.7 kernel and will try the bln.
[Galaxy S 4 Mini Android Development] csendre:
Check out this post
[Galaxy S 4 Mini Android Development] supachris:
It seems that you were right. With 0621 nightly and 2.0.7 there seems to be no issue so far...thanks a lot. Great work!
[Galaxy S 4 Mini Android Development] matesurano:
Yeah already saw that. But i got confused seeing the mixer xml file. Couldn't figure out which value to increase and how much......lolz. Although i tried increasing some values by guess work but it didn't change anything.
[Galaxy S 4 Mini Android Development] csendre:
Remix 2.08

New set of kernels is up. No change at our end just synced with CM sources.
[Galaxy S 4 Mini Android Development] Sarcastic Warrior:
Cs always present in every topic of s4 mini. Thanks a million.
[Galaxy S 4 Mini Android Development] noradtux:
Just to report, Remix 2.08 (unlimited) doesn't boot for me. Goes into Cyanogen-boot-animation, device gets hot.

Back at 2.06, which is working perfectly for me.
[Galaxy S 4 Mini Android Development] lOtz1009:
both limited and unlimited working with my serranoltexx.
[Galaxy S 4 Mini Android Development] csendre:
Flash the limited
[Galaxy S 4 Mini Android Development] noradtux:
Limited 2.08 is working :)
[Galaxy S 4 Mini Android Development] whyhere:
Gt-I9195 with Resurrection Remix 5.7.0. .After installing kernel 2.08 unlimited, the boot process became very slow and the RR boot animation laggy. After experiencing two random shutdowns, I went back to 2.07 unlimited.
[Galaxy S 4 Mini Android Development] kamikaze702k:
2.08 limited ate my battery so fast

AICP10
[Galaxy S 4 Mini Android Development] Quimicax:
Diff Limited Vs Unlimeted?
[Galaxy S 4 Mini Android Development] denyo81:
Why you not change to MM Bro?

I'm currently on exodus 6.0 but AICP 11.0 runs good, too.

+1
[Galaxy S 4 Mini Android Development] kamikaze702k:
I'm comfortable on AICP10, zero issues at all, no headache, maybe in future I'll try MM again
[Galaxy S 4 Mini Android Development] Lux-Heaven:
Hey,

I would like to know if you could add the veno tcp algorithm in the future?

And how is the progress with the interactive GPU governor?

Btw, I love the kernel.
[Galaxy S 4 Mini Android Development] Quimicax:
I Have Similar Issue

In This Case No Random Reboots Ni Shutdown Only Very Slow And Laggy Boot.!

2.08 Unlimted In Temasek Rom 9.1 (i9195)
[Galaxy S 4 Mini Android Development] lOtz1009:
RR 5.7.0, limited/unlimited 2.08, no issues. serranoltexx.
[Galaxy S 4 Mini Android Development] denyo81:
What your recommendation settings in this section?
[Galaxy S 4 Mini Android Development] supachris:
The BLN issue appeared again in combination of CM13 20160622 and 2.08 kernel version. Strange. For now I'm back on snapshot and 2.0.2 as this is nerve racking...
[Galaxy S 4 Mini Android Development] csendre:
Flash AOKP if you feel like experimenting. I would be curious if you have this issue on AOKP as well because for me it works flawlessly on a duos
[Galaxy S 4 Mini Android Development] :
I'm running CM 13 nightly 2206 and Remix kernel 2.07 on my I9195. BLN works just fine, no issues. I've installed Performance Control in combination with BusyBox Pro (smart install). Don't know what you use to activate BLN, but maybe it's related to Toybox. Have you tried Performance Control and BusyBox Pro?
[Galaxy S 4 Mini Android Development] supachris:
For two days I had 20160622 and 2.0.7 kernel and all bln notifications worked well. Then I changed to 0622 and 2.0.8 and one or both of this crashed the bln again. At the moment I do not have the time to try other combinations, sorry.

---------- Post added at 09:25 PM ---------- Previous post was at 09:21 PM ----------

For two days I had 20160622 and 2.0.7 kernel and all bln notifications worked well. Then I changed to 0622 and 2.0.8 and one or both of this crashed the bln again. At the moment I do not have the time to try other combinations, sorry.

I use NSTools.
[Galaxy S 4 Mini Android Development] coldgin_:
Hi ,

Setting those values as 128 / 256 is usually fine