yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Original Android Development] andip71:
Hehe, ok. Now finally you got me (again) and I have to admit, the documentation about the Boeffla-Config app on the homepage is not quite up to date anymore.

One day I need to take 5-10 hours and at least rework the English version for both App and Kernel. Ouch, I am really not in favour of that :(

But to answer your question:

The scripting functionality does pretty much the same than other scripting apps can do:

Now you can execute a series of shell commands by a fingertip.

You can setup up to 5 different script with names, and one additional "start script" that is directly executed after the phone starts and Boeffla-Config loads.

I use the start script for instance to do a CIFS mount automatically to include two drives of my NAS. It is really very convenient I do not need other apps like SManager anymore etc.

You can define, as said, the scripts and either execute them from the Boeffla-Config Scripting screen (in the Action menu) - or you create a homescreen shortcut which brings you a floating window with the options again. Think it is very convenient.

Note: All scripts are executed with root rights, so you have the full freedom.

Just for an example, this is what my mount startup script looks like to mount my personal folder and a public folder from my NAS:

setenforce 0
mount -o remount,rw /
mkdir -p /mnt/cifs/private
mkdir -p /mnt/cifs/public
mount -o remount,ro /
busybox mount -t cifs -o noperm,iocharset=utf8,username=user,password=password //10.10.10.5/private /mnt/cifs/private
busybox mount -t cifs -o noperm,iocharset=utf8,username=user,password=password //10.10.10.5/public /mnt/cifs/public

I put that in the startup script (copy&paste) and... voila. After phone booted up, my drives are available.

If not, I can execute the script manually again from the homescreen shortcut.

There are unlimited possibilities with that scripting.

Hope it is more clear now.
[Galaxy S 5 Original Android Development] andip71:
Well, good information. Maybe I should give it a try and set swappiness to 200 by default for everyone?

Hm, need to try it again once I have stock installed again.

Thanks

Andi
[Galaxy S 5 Original Android Development] MIKEMON:
swappiness to 200 by default

would help many users

I myself have set to 200, without delays and restarts
[Galaxy S 5 Original Android Development] The Peterle:
I changed the vnswap data size to 1000mb with 130 swappiness, and it's running like a charm. The swap size arrive nearly 900 MB in one day on my system and I don't get any overloads. And I have always 300mb RAM free.
[Galaxy S 5 Original Android Development] tommi.a:
I've also changed the vnswap to 1000 (swappiness 130 unchanged) and I get the impression that the list of recent apps appears much faster. Anyone else?
[Galaxy S 5 Original Android Development] Looki75:
I like testing the limits...

I set vnswap to 1500 + swappiness 200

Observed results:

* Incredible amount of free RAM (around 600MB instead of 300MB usually)

* multitasking capabilities literally boosted up

* better resilience of services in memory, no more LMK kicking-in and killing my much needed apps that I want to keep in memory

* overall system smoothness greatly improved (incl. "recents" showing up faster)

Overall, it really feels like I upgraded the phone from 2GB RAM up to 4GB RAM! I'm very happy!!!

So far no side effects that I could observe... Needs further testing.

I had 1 hot reboot, but other parameters - which are better suspects for HR - were tested at the same time (CPU overclocking, GPU overclocking).

Looki
[Galaxy S 5 Original Android Development] ginzo:
I'm trying it too, but with 1900 and 190, just to check a different setting and let's see :) it seems that phone is really snappier as you wrote!! It also have more free ram, at the moment ram occupied is 0,89gb.

This is my personal setting,

let's see how it is going, then I will upload my profile in the other dedicated thread [emoji2]

Ps: Andi, if you need translation for your app to italian language, please let me know and I will be very happy to help you!

Inviato dal mio SM-G900F utilizzando Tapatalk
[Galaxy S 5 Original Android Development] Looki75:
Ok, very clear.

Although I was assuming something totally different! I thought that now we have the ability to control Boeffla-app through scripting. Something like command line functions to control Boeffla-app.

Anyway... I understand now.

Remaining question is: where to you place those script in the app? Couldn't see any dedicated section...???

Thanks
[Galaxy S 5 Original Android Development] andip71:
Well, in the Action menu, there is a new sub menu "scripting".

Is this what you were searching for?

Andi
[Galaxy S 5 Original Android Development] Looki75:
Yep. Ok, I need to donate now! ;)
[Galaxy S 5 Original Android Development] XDAMaxe:
just my 2 cents:

I don't think that vnswap and swappiness doesn't have as much influence as gov and scheduler and other things.

On my side I use intelliactive and noop and there is in fact neither speedup nor less lag after setting swapi from 20 (yes 20!) to 200 (and vnswap from 800 to 1300) - was it really laggy before ? ;)

anyway: there are so much cross-dependencies between settings/tweaking lmk, sysctl, entropy, read ahead cache, gov and scheduler and at least - but imo never fully/alone responsible for lag or speed- swappiness and vnswap. I won't recommend one single option - it's a hell of a bunch of settings you can modify. Remember that your phone is a computer not a toaster :)

As said I'm running boeffla with intelliactive and noop (1024 int and 2048 ext sd read ahead), some sysctl tweaks, lmk 30 40 50 150 160 170, entropy read wakeup 1376, write wakup 8 and I feel it's running like hell and - sure - depending on your individual usage there is sometimes a small lag (i.e. wakeup from display off) - anyway everything could be better but that's how things are and if you're a gamer this all is another story
[Galaxy S 5 Original Android Development] Looki75:
Done! :laugh::cool:

---------- Post added at 03:08 PM ---------- Previous post was at 02:59 PM ----------

It all depends on the usage.

I have about 600 apps (system+user) and I proved that, regardless of frequencies and schedulers and governors... the stock settings for vnswap and swappiness make the phone very laggy under heavy usage (maps navigation + ulysse speedmeter + speed camera app + Tunein Radio + whatsapp). During one of these heavy usage sessions, I had the idea to change swappiness... I put 200 and BOOM - immediately everything is smooth and no more lag. Back to 130 BOOM hello lags again.

Add to that Vnswap 1500 and I gain more free RAM.

Now it's true that under light usage, the phone was smooth also with 900 vnswap and 130 swappiness...
[Galaxy S 5 Original Android Development] The Peterle:
Just a question. Is it possible to remove or separate one app out of vnswap? With a script or something?
[Galaxy S 5 Original Android Development] andip71:
No, not possible.

This is all or nothing, just like in normal Linux.

The kernel does not even know what is in vnswap, it is just memory blocks for the vnswap driver.

Andi
[Galaxy S 5 Original Android Development] Looki75:
Knowledgeable Lord, is there a way to disable dvfs on our s5?
[Galaxy S 5 Original Android Development] andip71:
Honest answer, I don't know. Never tried it.

Maybe someone else?

Andi
[Galaxy S 5 Original Android Development] carbonize:
Not even sure the s5 has dvfs
[Galaxy S 5 Original Android Development] Looki75:
So how can we check if it has it or not?

Yesterday, I further tested the phone on very very high load (yet the vnswap+swappiness thorough testing).

At one point, when the load was very extreme, I could witness very strange cpu freq behavior.

I was looking at 3C app / CPU section which shows to how much CPU min/max frequencies are SET + shows actual current frequencies for each core.

The max value for CPU frequency was changing all the time, going up and down, generally staying down for most of the time.

Talking about the SET frequency. It was looking like someone would setup that max freq sometimes to overclock, sometimes to downclock (oh, I will overclock, oh no let me downclock, oh no I will better run stock, wait a minute I will finally overclock), etc... Really weird. No 3rd party app was playing with settings or filesys at that time. It was purely coming from OS and/or kernel.

I should have taken a video of that, because it is difficult to explain...

So what was that?

Was that DVFS? It does look like Dynamic Frequency Scaling... as the name says...

Or was that Thermal throttling?

The thing is I don't know how DFVS or Thermal throttling should look like...

Does anyone know?

Thanks
[Galaxy S 5 Original Android Development] MIKEMON:
Try out this here

https://play.google.com/store/apps/details?id=ma.wanam.dvfs&hl=cs
[Galaxy S 5 Original Android Development] Looki75:
Thanks but...

The behavior I described above was here with this module activated.

Moreover, I have serious doubts on the fact that this module is working on TW LP, see my post here: http://xdaforums.com/showpost.php?p=61910021&postcount=145

In addition, I tried to deactivate DVFS within the all-in-one module "Wanam Xposed" but again, the describe behavior was still there...

Any other idea?
[Galaxy S 5 Original Android Development] andip71:
If you have very high load, which heats up your CPU, thermal throttling kicks in and reduces the cpu frequency down, and after the CPU got cooler, up again.

Etc. etc.

This can follow the normal control oscillation which as per physics we have in every regulator circuit.

I can only imagine it is thermal throttling.

Mpdecision handles this in my kernel (as per stock), before you ask who is in charge of it and when it kicks in :)

Andi
[Galaxy S 5 Original Android Development] MIKEMON:
I used to 4.4 KK

At this moment I do not use, nor DVFS nor xposed
[Galaxy S 5 Original Android Development] andip71:
Only when you write directly the profile number into zzmoove's system file system.

But it could mess up with your boeffla-config profiles, so it is not really recommended honestly and no guarantees.

Still, you can try it.

However, I do not see the difference here. Applying a Boeffla-Config profile is not slower etc. Just safer.

Andi
[Galaxy S 5 Original Android Development] andip71:
This should only unload when you have different sizes of vnswap in both profiles.

If not, it should not do anything.

Boeffla-Config, when switching profiles, always applies deltas between the settings only.

Just as a hint...

Andi
[Galaxy S 5 Original Android Development] andip71:
By the way, Marco... I just have an additional idea...

Boeffla-Config heavily works with a shell script (/res/bc/bccontroller.sh) when it comes to many things - just like the profile change.

So, you could fire the following script as wel:

/res/bc/bccontroller.sh apply_governor_profile 'zzmoove - battery'

for instance to switch to the battery profile.

Just another idea...

Andi
[Galaxy S 5 Original Android Development] andip71:
And this is exaclty what I meant: when you bypass the config app and applying settings, it is not shown and the potential for a little mess is there.

You have been warned :)

Andi
[Galaxy S 5 Original Android Development] andip71:
Yep. It works.

But keep in mind when you have strange side effects etc... this is an inofficial way.

Andi
[Galaxy S 5 Original Android Development] Looki75:
With all the respect I have for your work Andi, I have to say that switching profiles through Boeffla-Config is not ideal.

When you switch with Tasker, you systematically have the "Applying profile" message in the middle of the screen + the "window top bar" (not sure how to call it) flying around (like being a "transparent" activity opening up)...

Is is very inconvenient at the least. Way too intrusive. If you could apply a new profile totally in the background, it would be way way better...

It could be an option in the settings for example. I can imagine some people like being intrusively informed that a profile switch is going-on...

Thanks for considering
[Galaxy S 5 Original Android Development] andip71:
With all respect I have for your comment, have you seen this setting already in Boeffla-Config?

Here you can configure already what should be shown when applying a profile. Feel free to set it to None.

If it does not work, then it is something else :)

In general, I do not understand why people constantly want to change profiles and settings all the time. I am a strong believer, once a good profile is found, it should work >95% of the time.

And for very special things (like gaming), an additional profile can do it's job.

What I am not believing at all is: When screen is off, apply other settings. This has neglectable benefits in my experience.

If people want to change settings every minute, second etc... then they need to take the compromise and write the settings directly into sysfs. With all drawbacks.

To say it with a car: When you drive and found your perfect seat position, you also do not change it during drive all the time.

Andi
[Galaxy S 5 Original Android Development] Looki75:
I didn't mean to hurt you :) Sorry for the poor formulation.

Yep, you're right... I didn't see that setting! Thanks for showing.

I agree with you about changing all the time profiles. I just need it in a very specific occasion: when battery is below 15% I have Tasker switching to a low consumption profile. Because if I reach 15%, it means that I don't have a charger to use (otherwise I would have started charging at 20%) and last thing I want is to be left without phone (I mean: possibility to call or be called for important things).

This is the only occasion I play around with profiles!

Thanks
[Galaxy S 5 Original Android Development] andip71:
No worries, all is good.

I just remembered, I put a loooot of thinking work into the app in many aspects. Sometimes I just need to remember it :)

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

Hi,

before the weekend, a small preset for you: a new Samsung stock beta kernel !!!

Don't forget to update your Boeffla-Config to latest version 2.1.92 !!

Version 2.1-beta10

31.07.2015

Implemented Boeffla touchkey LED control v1.1.0 (you need Boeffla Config app 2.1.92 or higher for this)

Configuration options:

- current standard settings: LED only enabled when using the touchkeys (time controlled by the rom)

- option to enable LED when touchscreen or touchkeys are used (fully controlled by the kernel, set time in Boeffla-Config)

- option to disable LED always (fully controlled by the kernel)

Swappiness for vnswap default increased to 200 (instead of 130)

Default vnswap devices after a fresh kernel install is now 1000 MB (instead of 1300)

Kernel build process now able to use ccache

Internal build script enhancements

Enjoy

Andi
[Galaxy S 5 Original Android Development] MIKEMON:
Very good work, my friend

touchkey LED control is amazing
[Galaxy S 5 Original Android Development] wackowizzard:
XstreStoLite

☆ Tapatalked with my Galaxy S5 - SM-G900F ☆
[Galaxy S 5 Original Android Development] carbonize:
And?
[Galaxy S 5 Original Android Development] andip71:
And? :confused:
[Galaxy S 5 Original Android Development] ghoster76:
Excuse me, but which vnswap size 1500 1300 or 1000 is better?
[Galaxy S 5 Original Android Development] andip71:
I think, when you ask 5 people you might get 5 different answers :)

I use 1000 MB with swappiness 200 at the moment successfully (that is why I made it also default in newly installed kernels now).

Andi
[Galaxy S 5 Original Android Development] ghoster76:
Thanks for answering immediately my question, so could you please explain, why do you choose 1000 instead 1300 was samsung's stock setting?
[Galaxy S 5 Original Android Development] andip71:
"Feel-good-factor". Not more than that.

There is no scientific way (I am aware of) to determine the perfect size.

Andi
[Galaxy S 5 Original Android Development] ghoster76:
Yeah, it means no need to care about a specific number :thumb:
[Galaxy S 5 Original Android Development] andip71:
Correct, yes.

Andi
[Galaxy S 5 Original Android Development] MIKEMON:
beta10, for me again absolutely okay

Just great pity zzmoove governor that does not work as it should

big thanks to all
[Galaxy S 5 Original Android Development] andip71:
Yes, maybe that will take a very long time.

Although tge slightly older version in the current kernel works stable for me (at least).

Andi

Gesendet von meinem A0001 mit Tapatalk
[Galaxy S 5 Original Android Development] MIKEMON:
Yes, my friend working

But I had frequently delays, but the battery life was great

I prefer stability and performance, and it gives me governor interactive-performance

I have very good results on battery life

depending on on the use of the telephone
[Galaxy S 5 Original Android Development] MIKEMON:
Here my screen

Odesláno z mého SM-G900F pomocí Tapatalk 2
[Galaxy S 5 Original Android Development] tinko975:
How to adjust kernel for maximum performance, no matter battery life. I have two batteries. Just want my tw on steroids ;)
[Galaxy S 5 Original Android Development] andip71:
Can't count anymore how often you asked that question already in several threads...

Do you still think you will get new information? Hmmmm.

Andi

Gesendet von meinem SM-G900F mit Tapatalk
[Galaxy S 5 Original Android Development] tinko975:
Im sorry..
[Galaxy S 5 Original Android Development] andip71:
Nah, no need to be sorry. But I think if people would know more, they had answered you already :)

Good luck

Andi
[Galaxy S 5 Original Android Development] Spacemonkie4207:
Some info here.

http://xdaforums.com/showthread.php?t=3048957
[Galaxy S 5 Original Android Development] festr:
I'm on CM 12.1 and the latest beta kernel. I have only enabled 2G network, wifi, sync on, LED notification on (blinking all night) and I got 10% battery drain during 7 hours. Deep sleep almost all time. Seems like the drain must have come from radio or some other peripherals - Is this expected behavior?
[Galaxy S 5 Original Android Development] andip71:
10% in 7 hours with all you have switched on is a pretty good behaviour.

Andi
[Galaxy S 5 Original Android Development] festr:
I will retest with wifi and sync off. Anyway I remember times on Galaxy S1 with wifi and radio and sync on that I got 1-3% drain over night :D
[Galaxy S 5 Original Android Development] andip71:
Yes, I know. I even managed to have a 1% drain with my Galaxy S3 in 10 hours when I went into flight mode.

However, this is not applicable anymore for the msm8974 platform. Standby drain is higher there.

Andi
[Galaxy S 5 Original Android Development] botski:
Hi andi, I've been experiencing in boeffla app i cannot load the profile. Nothing happens when i tap the profile i choose. Thank you!
[Galaxy S 5 Original Android Development] andip71:
What would you expect?

Not sure what your problem is.

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

Hi guys,

a new beta kernel for Samsung LP stock is available for you.

Version 2.1-beta11

04.08.2015

Note: You need Boeffla-Config app 2.1.94 or higher to use the new features

New governors added: ondemandplus, smartmax_eps and yankactive (credits to Yank555.lu) (Click here for more info)

Enabled a bunch additional tcp congestion algorithms that can be selected in Boeffla-Config app (click here and here for more information)

Have fun

Andi
[Galaxy S 5 Original Android Development] XDAMaxe:
[MENTION=947981]Lord Boeffla[/MENTION]

Wow, dear Andi, what a masterpiece (app+kernel) - 2nd misc. tab with tcp settings & more is perfect, lotsa new govs - bigbig thanks :)
[Galaxy S 5 Original Android Development] andip71:
Yeah, so you have all enough to play with in the next days :D

Andi
[Galaxy S 5 Original Android Development] jazzy7373:
Amazing! Thanks!
[Galaxy S 5 Original Android Development] XDAMaxe:
lol, for sure. But in fact I call it 'hyper-user-friendly' because everyone can choose his own preferred customization for his specific needs.

And as we know you don't use an S5 (G900F) as your daily driver - so that will double the thanks working on a phone mainly used by others :)
[Galaxy S 5 Original Android Development] ginzo:
Dear Andy,

Thank you for your work, I am glad to offer you a beer [emoji2]

I sent an email for the code :)

Inviato dal mio SM-G900F utilizzando Tapatalk
[Galaxy S 5 Original Android Development] andip71:
I put yankactive in just yesterday, I don't have any significant experience yet (to remind, the s5 is not my daily usage phone).

So, you tell me? [emoji3]

Andi
[Galaxy S 5 Original Android Development] camelboots:
new Kernel - battery drain

Hi Andi, I upgrade the kernel yesterday evening from beta 8 to beta 11. I use only standard settings, but I love boeffla sound. One problem since yesterday: the battery goes down down down. With beta 8 the screen on time between 100 and 90% was about 40-50 minutes, now only 15 minutes :( It is only my problem ?

I follow you about three years, at first with my sg3, now with my sg5. Great work. Thanks.
[Galaxy S 5 Original Android Development] andip71:
Check deep sleep rate.

Install Betterbatterystats and check for partial and kernel wakelocks.

Andi
[Galaxy S 5 Original Android Development] Looki75:
Deep sleep rate is one thing.

You could have very good deep sleep, very few wakelocks during screen off and yet have a very poor battery in usage.

This happens for example if you use governors, schedulers, etc... That boost performance... And/or higher overclocking etc...

On my side, after about a week of testing, I established that swappiness 200 is great for multitasking and smoothness but at the price of higher battery consumption while in usage.

Maybe the issue is coming from there?

Cheers
[Galaxy S 5 Original Android Development] Looki75:
Check my above suggestions if it could help...

Cheers
[Galaxy S 5 Original Android Development] putti71:
I also have the feeling that the battery consumption is higher than before.

I have the same kernel configuration as before.

Gesendet von meinem SM-G900F mit Tapatalk
[Galaxy S 5 Original Android Development] tinko975:
Flash older version ;)
[Galaxy S 5 Original Android Development] andip71:
Feelings are nice. But they do not help. We need numbers.

And I cannot personally confirm any higher battery consumption. But I have to confess I am not a daily user, as said many times.

Accordning to Lookie you could try to set swappiness to overwrite with value 130. Maybe you get some result.

As for the rest - no changes since ages that could cause higher battery usage.

Nope, never used it ever.

Andi
[Galaxy S 5 Original Android Development] farid993:
I also have lower screen time and hotter device in beta9 without any change. i will check with 130 swappiness
[Galaxy S 5 Original Android Development] andip71:
Yes, do so.

But just as a general statement: "new kernel x without any other change"... this is just not true. Never.

Because there are things in the background that change and update (gapps) all the time without you even noticing it.

And not too long ago, a new gapps version (play services) led to a lot of additional locks and battery consumption.

Just want to state, that a system behaviour changes even without actively changing settings or apps.

Andi
[Galaxy S 5 Original Android Development] tommi.a:
Regarding swappiness 200: with my typical usage I observe the process kswapd0 having about the same process time as process system server.

Yesterday I switched back to swappiness 130 and now kswapd0/system server = 1/4 and phone consumes less battery.

Just my observation...

edit: both settings tested with Vnswap 1000
[Galaxy S 5 Original Android Development] andip71:
Great, these are numbers :)

Thank you for sharing.

Hm, shall I revert back to the 130 standard and default vnswap size to 1300 again, like it was before?

Just for the "noobs" that are not familiar with swappiness setting themselves.

It seems, we have now some real good examples and I would be more than willing to push a quick update out with that reverted.

First 3 votes count :)

Andi