yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Original Android Development] andip71:
New stable and new beta

Hi all,

finally we have a new stable release of the kernel in version 2.0.

At the same time, you will find a brand new beta, which is a completely rebuilt kernel, done from scratch based on latest sources again.

This means: As clean code as possible.

I would encourage you HIGHLY to use already the new beta, and not the stable.

Also I finally decided to drop Linux upstream in all my kernels (OPO and S5) as it is proven again in the past months, it has absolutely no material advantages but cause other things to break and create a sh**tload of work for me every time. So it is useless, and no upstream is also closer to stock.

So, here we go (both for stable and latest beta):

Version 2.1-beta1

Note: Only for CM nightlies of 14.05. or newer (and custom roms having these new changes in)

08.06.2015

Completely rebuilt from scratch again, based on latest CM12.1 kernel repo branch sources

All functionalities of latest stable version 2.0 contained

No Linux upstream anymore as per close-to-stock objective

Version 2.0 stable

Note: Only for CM nightlies of 14.05. or newer (and custom roms having these new changes in)

08.06.2015

zzmoove governor updated to version 1.0-beta7a - bugfix release (credits to ZaneZam)

Fixes for zzmoove relax profile (credits to ZaneZam)

Ramdisk updated to first official CM12.1 nightly of 06.06.15

Enjoy

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
Beta installed. So far so good. Samsung G900M.

Not sure if you saw. But if not let me ask again, is it possible to modify the App to change kernel?

Features:

- To show CPU usage/sleep so you know better what is happening with the tweaks (graphics like on Kernel Toolkit).

- Separate governors if possible on the menu within 3 categories: Bat. Saving, Performance, Balanced.

Sorry if you already saw it. Just want to double check with you.

Thanks
[Galaxy S 5 Original Android Development] andip71:
Hi,

the first one would mean a lot of work to have nice graphics. Yes, possible, but quite at the end of my list of enhancements as this is more cosmetic. I prefer to put functional stuff in as long as I have ideas.

The second one I do not understand. There are already presets available that also change governors and governor profiles.

Not 100% sure what you meant...

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
Sorry I didn't know it was a lot of work. :) Thought it could be an API and some graphs to throw in the code. Something like Kernel Toolkit in the first page. That way it is easier to understand what changes are affecting CPU core online. :)

For who is not from the android or linux world some times doesn't know what conservative, intelliactive, performance, lionheart, etc means. Off course some are more easy to understand than others.

What I mean is to have for example:

Battery Saving

- Conservative

- Powersave

- zzMoove

Balanced

- Intellidemand

- Ondemand

Performance

- Performance

- Interactive

- Inteliactive

Something around those lines.
[Galaxy S 5 Original Android Development] Gassity:
Switched to zzmoove again on the latest beta, got an immediate freeze followed by reboot (

***

Got reboot even on interactive with the same setup as on the previous beta with which I haven't had any problems.
[Galaxy S 5 Original Android Development] Pollie81:
I switched to the latest beta a few hours ago and again it's running great! No issues with zzmoove but i never had any on previous beta's..
[Galaxy S 5 Original Android Development] !crazy:
Are you stil using same UV values?

It doesn't have to mean nothing that you didn't have reboots before on older betas. Maybe UV didn't work properly, or some changes in governors or other pieces of code happened in the meantime... Maybe lot of services/apps stated working at the same time now, what could cause a peak and reboot with UV... Just guessing...
[Galaxy S 5 Original Android Development] MaLiXs:
In my opinion undervolt should not be use unless we have a good way to test it ... and this is not with our device that we should do that kind of test with the thermal restriction..

undervolt will not do a big difference on battery. It can even give more battery cunsomption caused by the instability
[Galaxy S 5 Original Android Development] theelle:
[MENTION=947981]Lord Boeffla[/MENTION], using tasker, there is a way to disable/enable dt2w? So to disable during a phone call (and get sensor works good) and enable at the end. Because the dt2w works fine except this issue during call...
[Galaxy S 5 Original Android Development] andip71:
Yes, sure.

Simplest way: Create to profiles in Boeffla-Config, one with and one without d2tw.

Then you can use tasker to switch between the profiles. How this can be done is explained in FAQ on the kernel homepage.

Or you can write directly from Tasker to the sysfs file controlling d2tw. If you need the path to the file, then please remind me again tomorrow. I am away from my development machine at the moment.

Andi
[Galaxy S 5 Original Android Development] theelle:
Ok, the path is the best solutions if you can. Now try with profile.

Edit. find the path. is that right?

/sys/devices/f9924000.i2c/i2c-2/2-0020/input/input2/screen_wake_options

So i use this to stop dt2w:

echo 0 > /sys/devices/f9924000.i2c/i2c-2/2-0020/input/input2/screen_wake_options

and this to enable:

echo 3 > /sys/devices/f9924000.i2c/i2c-2/2-0020/input/input2/screen_wake_options

And if screen was on all right, using tasker when incoming or outgoing call the proximity sensor (disabling dt2w) wotks good. But rest the issue when screen was off and incoming call, i don't understand why.
[Galaxy S 5 Original Android Development] Gassity:
So you think if the device consumes less power it would... consume more power?)

It could be related to everything, I try with different setups.
[Galaxy S 5 Original Android Development] andip71:
Yes, correct, mate.

Andi
[Galaxy S 5 Original Android Development] theelle:
any tips for same problem with screen off? seems that i can't disable dt2w when screen off and incoming call...
[Galaxy S 5 Original Android Development] andip71:
Cant tasker do that too? When screen is off and call comes in, disable d2tw already?
[Galaxy S 5 Original Android Development] theelle:
I do exactly like you said, but sensor not working. I can't understand why...
[Galaxy S 5 Original Android Development] andip71:
I cannot answer that question anymore without digging into the code, sorry.

And I will not have the time very soon to do that.

Andi
[Galaxy S 5 Original Android Development] theelle:
ok
[Galaxy S 5 Original Android Development] MaLiXs:
that only my opinion based on my experience over few device (gnex, s3, moto g, and now the s5) and as a pc overclock error. If tue the voltage is to low for the frequency it would create instability. This instability mean more usage on cpu, sod and ultimately a crash.

I just think that undervolt doesn't give much results to be considered as a good option to save juice
[Galaxy S 5 Original Android Development] andip71:
Yes, this is neglectable.

Andi
[Galaxy S 5 Original Android Development] Gassity:
Well I just relied on a simple logic) I'll try now without any undervolting on interactive gov
[Galaxy S 5 Original Android Development] MaLiXs:
Finally the Lord have spoken!
[Galaxy S 5 Original Android Development] andip71:
Well, I said this many many times. Probably even on a daily level once in one of the various threads :)

Sometimes undervolting even makes it worse, by causing some system instability which consumes more power to try and get stable again.

Andi
[Galaxy S 5 Original Android Development] MaLiXs:
Yeah I saw this on every kernel thread...
[Galaxy S 5 Original Android Development] iamnotkurtcobain:
And system becomes laggier..
[Galaxy S 5 Original Android Development] dr460nf1r3:
Maybe a dumb question but why include it in your kernel then? lol
[Galaxy S 5 Original Android Development] andip71:
For some people it helps to keep the phone cooler when under heavy load.

And it was always in, so guess what people say when I just remove it? (ok, honestly I do not really care, but still it is useful for some)

And I do not say it will not help at all with battery life, when properly adjusted. But it is almost neglectable and the potential system instabilitis overweigh by far any smallest battery improvements. Just think about one hot reboot, this takes more power for the startup again than you could ever save with uv.

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
My question on battery life would be the same. If it barely helps the preset for battery life does -50mV which seems aggressive. I thought that was for helping battery life.
[Galaxy S 5 Original Android Development] andip71:
Undervolting is more to introduce new problems than help with battery :D :D :D

As said, some might have good usage for it when very carefully adjusted. But in general, no. Stay away from it when you want to have a properly working phone. There are good reasons why manufacturers select voltages that work on almost all devices, regardless of SoC quality.

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
Yeah,

I am away since I had a lot of issues with other kernels before (4 reboots in an hour).

So I don't do anything with it anymore. Just mentioned because I am testing the preset for Battery Saving in your App. :laugh::good:
[Galaxy S 5 Original Android Development] !crazy:
Regarding UV, OC etc., people forget, or even don't know, each peace of MPU/CPU is different. It is a consequence of the technology used, and way they all are made.

Same with desktop/server CPU. Let say they start series of 2.8 GHz six core units. These won't be tested for higher frequencies. If they satisfy 2.8 they are good. Some peace will hardly run 2.8 but if they succeed, they are in. Some pieces will run it with easy, and these can OC with easy.

I have first generation Nexus 7, and it is one of the few examples which can run 1.7 GHz (with easy, no overheating.) CPU, and over 650 MHz GPU. This is quite above default frequencies, and I'm thankful to people who made it possible to use that, because it is a quite different device from the one I bought.

Same is with UV.

From my experience 50 mV are not much. True, some devices cannot handle it, but most of my devices were able to handle that (GN, S4, N7, Note 3 or 2,dont remember which one, lost both of them). S3 had issue with it I think, and for S5 I am or sure, since I have not even tried yet.

Regarding any benefit, I would say it is symbolic. In case device is capable of going significantly deeper than 50, it can maybe give you a half hour per day, and help with overheating. It also depends on usage, but most devices are resting idle most of the days.
[Galaxy S 5 Original Android Development] iamnotkurtcobain:
I never oc and uv. Phones are fast by default now. The OS needs optimisations. The S5 is powerful enough.
[Galaxy S 5 Original Android Development] !crazy:
People are telling that story all the time. If processors of my devices can run faster without issues, and if I can enable them to do so, so I will. Makes often more sense than buying a new device. And bit more performance is always welcome when it is free.

There will always be useful apps which could run faster. It is not only about Operating System optimisation.

Further all software in the world needs optimizations, on desktops, servers,and smartphones. And it will always be like that. One would require incredibly capable masterminds who know every bit, every transistor of a cpu he/she knows everything about, and very good assembler skills, and even than, there would be place for optimisation. In general, the truth is, hardware is cheaper. That is why developers like to develop with script languages, garbage collectors etc. In hundred years, we will have 200 times more powerful hardware, and same this situation.
[Galaxy S 5 Original Android Development] Pangadaywalker:
Got my first reboot just now.

zzMoove Governor

Profile: Battery Extreme Yank (no UV)

300mhz-2.4ghz

Zen

Internal: 2048

External: 2048

hotplug: zzmoove native default

GPU: 27-389mhz (powersave).
[Galaxy S 5 Original Android Development] andip71:
Selinux?

Hi all,

just got an input from a user who claims, he has no reboots anymore when selinux is set to permissive and not enforcing.

So maybe some can give that a try.

Hint: When you want to switch SELinux on or off just as an one-off activity, do it on the first page of the Boeffla Config app (checkbox).

If you want to have your setting sticky, even surviving reboots, go into the Boeffla Config app settings -> kernel startup options -> configure here how it should start up.

Maybe some people can give it a try and report.

Thanks

Andi
[Galaxy S 5 Original Android Development] Pollie81:
Ooh, could be indeed..

I never had any issues but I'm using permissive mode because of viper4android.
[Galaxy S 5 Original Android Development] mareis1973:
I had one Reboot while using permissive and zz

Gesendet von meinem Samsung Galaxy S5 mit Tapatalk
[Galaxy S 5 Original Android Development] Gassity:
mine was always permissive. now on aicp rom, no reboots since installation (2days) on th samee set-up
[Galaxy S 5 Original Android Development] mrstabs:
So far I've had no reboots or anything. Using standard settings.
[Galaxy S 5 Original Android Development] Pangadaywalker:
Changed to permissive to see. Let you know if any other reboots happen.
[Galaxy S 5 Original Android Development] ScratMan38:
Using 2.1 beta 1, with default settings except Boeffla Sound, no reboot so far.
[Galaxy S 5 Original Android Development] Pangadaywalker:
Just had another reboot:

OnDemand Governor

Profile: Battery Yank (no UV)

300mhz-2.4ghz

Zen

Internal: 2048

External: 2048

hotplug: Optimized

GPU: 27-389mhz (powersave).

Multi Core Saver: NO

Selinux: Permissive
[Galaxy S 5 Original Android Development] andip71:
Something is not right. With Ondemand, there is no battery yank governor.

Also we need: Kernel version, rom version. Ideally a debug info file.

I get more and more to the point, it is not triggered by kernel but a combination of other factors.

As I know so many people that never had a reboot ever, me included. But yes, I do not use my S5 on a daily basis, so my usage is only very light.

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
Sorry. Not battery yank, it was Standard.

Not sure what happen, and the memory was clean. I was going to open a light weight application and the phone froze and restart.

Now I will have zzmoove governor, battery plus, only 1024 for memory and zzmoove native default. Let's see.
[Galaxy S 5 Original Android Development] andip71:
Kernel version?

Exact rom version?

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
Boeffle-Kernel02.1-beta1-cm12.1-g900f-20150608

Disabled both options now.

Also something is weird, after the reboot my kernel is getting stuck on 1.5ghz for minimum CPU and therefore draining my battery. Already rebooted the phone and didn't help?? Any ideas?

Also the phone is not going on deel sleep? Only 10% since I didn't touch the phone.

---------- Post added at 10:08 AM ---------- Previous post was at 09:35 AM ----------

For the Deep Sleep I think it is Dropbox. It is synching all folders since I had yet another problem with pictures. I think once it finishes it will come back to normal.
[Galaxy S 5 Original Android Development] andip71:
You need to use BetterBatteryStats app to find out what keeps your phone awake (and your CPU frequencies high).

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
Already did. It is dropbox. Believe it is recreating all folders. And my WiFi is not the best. Let's see if it will finishes any time soon.

---------- Post added at 10:57 AM ---------- Previous post was at 10:32 AM ----------

On the lock cpu, dropbox just pop up saying it finshed synching. :)

Guess the phone is back to normal. Waiting on the reboot. Hopefully we can pinpoint the issue.
[Galaxy S 5 Original Android Development] iamnotkurtcobain:
I'd say 320 is Samsung Stock gpu frequency.
[Galaxy S 5 Original Android Development] andip71:
Hm? That is news to me. But also a nice test to put it on 320.

Was just an idea...

Andi
[Galaxy S 5 Original Android Development] andip71:
New beta

Hi all

new beta for you.

Version 2.1-beta2

Note: Only for CM nightlies of 14.05. or newer (and custom roms having these new changes in)

11.06.2015

BFQ scheduler updated to version v7r8

Removed some compiler tweaks

ext4 tweaks commit time reduced

Temporary removed dynamic filesync for further investigation

Changed kernel start script to optimize loading of default settings

Ramdisk updated to first official CM12.1 nightly of 11.06.15

Enjoy

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
Installed and testing with 0611.

Appreciated.
[Galaxy S 5 Original Android Development] iamnotkurtcobain:
Could you include this in your next version?

http://review.cyanogenmod.org/#/c/100859/
[Galaxy S 5 Original Android Development] andip71:
Sure I could. But this is a cosmetical issue. Don't expect anything functional, you will not notice any difference.

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
Anonther reboot. Man this is getting quite frequent now.
[Galaxy S 5 Original Android Development] andip71:
On 11/06 nightly?

As I never had a single reboot ever, I start wondering whether the affected people use something that the non-affected ones do not use. I mean: settings, apps, frameworks, mods etc etc.

I would be really interested if a fresh (!!!) installation of 11/06 nightly with latest kernel and default settings cause reboots for you too (no xposed or other nasty things of course!).

Because if this is a yes, I will stop S5 kernel development straight away as then this is not making any sense anymore.

Andi
[Galaxy S 5 Original Android Development] Gassity:
went from interactive to zzmoove again + uv + xposed. Will see how it goes
[Galaxy S 5 Original Android Development] iamnotkurtcobain:
Please don't leave S5 kernel development :(
[Galaxy S 5 Original Android Development] Pangadaywalker:
I was on smartass and GPU was 200-389. I will try to install the 0611 again and not install the kernel and see if the reboots will happen.
[Galaxy S 5 Original Android Development] andip71:
Not likely, but slowly this whole "I have a reboot" topic gets too much for me.

I would understand if I had reboots too, but I have not.

And every day new factors come up... people on old roms having problem, when they upgrade it works. People using all that nasty things like xposed, messing around in internal settings etc.

So, it is so normal people face issues when not all is fitting in that very complex ecosystem.

I am tired of reacting to "I had a reboot" messages more and more. But also cannot ignore them, this is not my personal profile and behaviour.

But currently I for sure spend 2 hours per day just to understand what people do, looking into some logs if they send it etc. etc. I cannot keep that level for much longer.

Good thing, I am away over the full weekend, so the next two days I will just read and not say anything :)

Well, do that. Although it is not a correct comparison again, as default kernel does not run with smartass gov.

The only almost correct comparison is to run Boeffla-Kernel with default settings (= interactive, just like stock kernel).

Andi
[Galaxy S 5 Original Android Development] htb2050:
I have been following this thread for a few days now and majority of the people having reboots are probably running some kind of UV or apps which modify the system files like xposed. I am running default nighty and no system modifications whatsoever and running the default settings and never had a single reboot.

As Andi says that try the kernel without any system modifications or UVs and see how it goes.
[Galaxy S 5 Original Android Development] andip71:
Thanks... there is some hope :)

And even I would suggest a fresh install, especially when there was another custom kernel installed before. We know there can be nasty dependencies.

Andi
[Galaxy S 5 Original Android Development] Pangadaywalker:
Im not rubbing any Apps like that and no UV. Usually trying to get some battery life. That is all. I can use interactive but it takes to much juice. Im back to conservative to see if it gets better.
[Galaxy S 5 Original Android Development] iamnotkurtcobain:
I have an idea for all people with reboots. Give me 1 hour...
[Galaxy S 5 Original Android Development] ScratMan38:
Still no reboot since 2.1-b1 using default settings (no OC, no UV, interactive standard governor, default schedulers, default LMK, etc...).

Now using 2.1-b2 since it's release, and have no issue.
[Galaxy S 5 Original Android Development] mareis1973:
I have no reboots either with beta 2[emoji106] Keep up the good work Andy danke für alles

Gesendet von meinem Samsung Galaxy S5 mit Tapatalk
[Galaxy S 5 Original Android Development] Gassity:
So, got a reboot (lol) on zzmoove. Went back to interactive. Btw it was fresh install.

Now I'll test uv+xposed on interactive.
[Galaxy S 5 Original Android Development] k4bbe:
Hi Andi.

I was having reboots a couple of weeks ago. (Sent you logs etc).

You asked me to do a couple of things:

1. Completely Fresh install of Cm12 nightly.

2. Interactive governor (default)

3. And Remove the xposed modules that I had still installed even though the framework wasn't installed.

Since I did that... Not a single freeze or reboot at all. Beforehand it was happening at least 5 times a day.

So as you suspected... It was something in MY setup causing the reboots and not the kernel.

I only bought an S5 because you started developing a kernel for it also Having used your kernel on the S3.

Thanks for the kernel, the advice and support. It's all second to none ??
[Galaxy S 5 Original Android Development] andip71:
Cheers!

This is the kind of message that I need as well from time to time :)

Thanks for sharing, much appreciated.

Andi
[Galaxy S 5 Original Android Development] iamnotkurtcobain:
I'm REALLY thankful for all your kernel updates and your great ambitions. You always have an open ear for the users and that is awesome.

PS: Danke und schönes Wochenende :)
[Galaxy S 5 Original Android Development] andip71:
Thanks a lot.

And also have a nice weekend to all here.

Note: I will be not around this weekend (and the next 2) to visit my wife in her rehabilitation center.

So basically I will read a bit, but not be close to my PC from tomorrow morning to Sunday night.

Cheers

Andi
[Galaxy S 5 Original Android Development] iamnotkurtcobain:
All the best to her and of course to you ???
[Galaxy S 5 Original Android Development] HorstiG:
All the best for your Schatzi!

HGT - S5 G900F - Oneplus One - Tesla TTL7
[Galaxy S 5 Original Android Development] MaLiXs:
I never got any reboot on this kernel, I'm running now on zzmove performance 300-2457 zzmove default hotplug no uv stock gpu and 1574 touch boost

And my device has never been so fluid!
[Galaxy S 5 Original Android Development] iamnotkurtcobain:
To ALL people with reboots on this kernel:

-don't use xposed

-don't uv

-don't oc

-set gpu min to 320 mhz

-use default hotplug

-try interactive governor if you have constant reboots

-if all fails make a fresh cm12.1 install
[Galaxy S 5 Original Android Development] htb2050:
Just curious, How much improvement in battery life do you get by that? I am on interactive completely stock and get standby drain of around 1 percent per hour and usually can easily get 3-4 hours sot with 15 hours total time and this too on a non genuine battery.