yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] blackmeth:
Not sure if anyone ever answered this for you.

I start by using the "battery" profile. Then turn on the under voting. And enable gentle fair sleeper under CPU. Set I/O read ahead on both to 2304

And there govs to SIO or FIOPS.

You can change the GPU over to simple if your not a gamer. If you are I would leave it ondemand IMO I seam to get better battery life with simple.

Sometimes I change governors to cpu 1/2 alucard, 3/4 nightmare or depending on the Roms battery life after a few recharged. If I'm getting great battery with all 4 at alucard I'll leave it.

I normally use my phone to do tts for audiobooks or its just an mp3 player mostly. I normally don't judge a rom off screen life
[Galaxy S 4 i9505 Android Development] s3icc0:
In my opinion it is not a good setting from following reasons:

on one side you decreased core 1,2 and 3 max frequencies

scaling_max_freq_cpu0=1890000
scaling_max_freq_cpu1=1458000
scaling_max_freq_cpu2=1134000
scaling_max_freq_cpu3=1134000

but you left the scaling to higher frequencies in hotplug settings:

hotplug_freq_1_1=1242000
hotplug_freq_2_0=810000
hotplug_freq_2_1=1566000
hotplug_freq_3_0=918000
hotplug_freq_3_1=1674000
hotplug_freq_4_0=918000

So at least your hotplug will not be working correctly. ... if you want I can do you similar profile but with these problems fixed ... I see your settings are very conservative and aiming to be power saving to be used mostly as mp3 (not sure about more demanding games - I am sure you must have problems with the AA titles).
[Galaxy S 4 i9505 Android Development] m_pascal:
Could anyone give me some links for Alucard-V1.1a For 5.0 AOSP version working for CM12?

I never use games and I'm looking for battery duration first and smooth scroll for second.

All I found is for older version of Alucard :(
[Galaxy S 4 i9505 Android Development] blackmeth:
Sure if you don't mind. Every time I play with got plugging I seem to make it worse lol

But yes if you can make it better I would love the help!!
[Galaxy S 4 i9505 Android Development] v00d007:
although i wonder why you can't find it yourself, cause it's no hidden secret, here's the dl link for aosp5.0 v1.1a:

https://www.androidfilehost.com/?w=files&flid=22348
[Galaxy S 4 i9505 Android Development] FPSUsername:
Could you fix the hotplug stuff? I would like to use that profile, as I also use my phone as mp3 player. My current profile makes my phone hot by even regular usage, kind of weird if you ask me. I even undervolted the cpu to keep it a bit cooler.
[Galaxy S 4 i9505 Android Development] mackuz:
I'm sorry, guys but I can't understand the difference between "gpl_" settings: which one I need to change if I want my external speaker to play louder, but not the internal one, which I'm applying to the ear?
[Galaxy S 4 i9505 Android Development] brunodu91:
Hi

What is the option for Google play drain battery workaround in stweaks ? Is it useful or dangerous ? Thx

On jdc optimized cm12.1, Kernel alucard last release
[Galaxy S 4 i9505 Android Development] s3icc0:
in order to let these max frequencies work

scaling_max_freq_cpu0=1890000
scaling_max_freq_cpu1=1458000
scaling_max_freq_cpu2=1134000
scaling_max_freq_cpu3=1134000

i would recommend hotplug like this or similar - you have to keep in mind that pushing hotplug to gigher frequencies than the max will be not effective:

hotplug_freq_1_1=1242000
hotplug_freq_2_0=810000
hotplug_freq_2_1=1458000
hotplug_freq_3_0=918000
hotplug_freq_3_1=1134000
hotplug_freq_4_0=918000

you see the core:

1 is turned on when core 0 is at 1242000MHz

2 is turned on when core 1 is at max

3 is turned on when core 2 is at max

anyway question is e.g. the 810000MHz for turning core 1 off is set well - as if you never reach the frequency it will be on since turned on ... usually you need to tweak hotplug as required by the use of the phone and there is much more parameters you can trigger/force the required behavior.

if i would setup such hotplug I would do you max frequencies (or limited for all cores to e.g. 1600000MHz) and then tweak the hotplug. I understand you are trying to have a phone cold, but in my opinion is better to go the other way - allowing the phone to use max power when needed but limit it to get to such values and also make him scale down not that fast so you are holding a little more power then you need.
[Galaxy S 4 i9505 Android Development] kolacell:
erm...got a problem .) - i used a third party profile which seems to do not working. the phone crashes all the time while booting. im in twrp now with the file browser...how do i restore the original settings? i reflashed the kernel (on cwm 12.0: Kernel-Alucard-V1.0f-[20-35]-[09-12]-AOSPV2-EUR-LP5.0-SGIV-PWR-CORE.zip) before without succeeding...

thx in advance
[Galaxy S 4 i9505 Android Development] s3icc0:
In TWRP choose to boot to AROMA file manager - there just go to the \data\.alucard and delete the content of the folder - everything in the folder. then reboot

or

wipe system and reflash rom ...
[Galaxy S 4 i9505 Android Development] ManBearrrPig:
I just got my s4 and i have cm12.1 optimized with alucard. Can someone help me configure stweaks or even better upload the config file?

I use my phone for:

-music

-taking photos and videos

-browsing

I dont play any games. Mostly i care for best battery life.
[Galaxy S 4 i9505 Android Development] blackmeth:
I use the settings in this thread. His kernel is unstable ATM so just use the settings

http://xdaforums.com/showthread.php?t=3158611
[Galaxy S 4 i9505 Android Development] hatedman95:
Can someone share a CM12.1 Settings?I'm using Stock CM12.1.

I'm using the 1.3a.zip file.

I mostly aim for battery life.I don't play heavy games,but i do listen to music,browse and sms.
[Galaxy S 4 i9505 Android Development] combogd:
Intelli temp dual
[Galaxy S 4 i9505 Android Development] caccamo88:
hi guys

can't understand why a STweaks custom default.profile_backup file is not being applied (for sure the CPU voltage table) from STweaks BACKUP OR RESTORE-->RESTORE NOW even if

1) the file is obtained from a previous STweaks BACKUP OR RESTORE-->BACKUP NOW operation

2)the file will replace the one into the root directory at the path /data/.[kernel name folder]/

3)the transparent windows animation when clicking on RESTORE NOW button show voltages correctly applied

is maybe undervolting the problem?
[Galaxy S 4 i9505 Android Development] Jsilver73:
Errm, very good question, I'm not so sure and I hope someone who is much more informed than I can help out here. I think ipv6 is to do with web browsing, and TCP ram is also something to do with internet stuff, and tbh I'm not sure if they make any difference or not but my internet works good so I just leave it like that :D
[Galaxy S 4 i9505 Android Development] Jsilver73:
Yep, the new one from davtse will definitely work, you can try the AOSP ones out and see what happens if you feel brave ;)

EDIT - it seems I made a mistake - davtse profile is actually GE, so if you have tried on TW please do report back here on how it works ;)
[Galaxy S 4 i9505 Android Development] Romcrazguy:
I hope my phone will be as brave as me lol
[Galaxy S 4 i9505 Android Development] Jsilver73:
Thanks davtse - please could you copy and paste the text from your profile here in this thread with the changes you have made highlighted in bold red (in the same way I have done with the AOSP profiles) - I will then put this with your profile so users can see how your profile works.
[Galaxy S 4 i9505 Android Development] davtse:
Yea sure, i'll do it soon. mine is under GE and not TW though, just to clarify
[Galaxy S 4 i9505 Android Development] Jsilver73:
Oops - my bad, will correct now, thanks
[Galaxy S 4 i9505 Android Development] kantjer:
If you want to know it exactly, have fun :D

if [ "$cortexbrain_tcp_ram" == "on" ]; then
echo "4194304" > /proc/sys/net/core/wmem_max;
echo "4194304" > /proc/sys/net/core/rmem_max;
echo "20480" > /proc/sys/net/core/optmem_max;
echo "4096 87380 4194304" > /proc/sys/net/ipv4/tcp_wmem;
echo "4096 87380 4194304" > /proc/sys/net/ipv4/tcp_rmem;

log -p i -t "$FILE_NAME" "*** TCP_RAM_TWEAKS ***: enabled";
else
log -p i -t "$FILE_NAME" "*** TCP_RAM_TWEAKS ***: disable";
fi;

# disable/enable ipv6
IPV6()
{
local state='';

if [ -e /data/data/com.cisco.anyconnec* ]; then
local CISCO_VPN=1;
else
local CISCO_VPN=0;
fi;

if [ "$cortexbrain_ipv6" == "on" ] || [ "$CISCO_VPN" -eq "1" ]; then
echo "0" > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6;
sysctl -w net.ipv6.conf.all.disable_ipv6=0 > /dev/null;
local state="enabled";
else
echo "1" > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6;
sysctl -w net.ipv6.conf.all.disable_ipv6=1 > /dev/null;
local state="disabled";
fi;

log -p i -t "$FILE_NAME" "*** IPV6 ***: $state";
[Galaxy S 4 i9505 Android Development] s3icc0:
I have to translate to human language:

TCP/IP tweak changes buffer sizes for TCP and IPv4 communication.

IPv6 tweak enables the IPv6 for those who needs it (and it is only a little people these days)
[Galaxy S 4 i9505 Android Development] kantjer:
Sound about right, I think we can live with at least IPv6 disabled, TCP/IP tweaks we need to test to see if it benefits us.
[Galaxy S 4 i9505 Android Development] s3icc0:
hard to test ... depends on what are you connecting to, what amount data is going through the connection and ofc, what is your connection quality :-/ in laboratory conditions I believe there will be a difference, but in real world ... negligible, but what I know
[Galaxy S 4 i9505 Android Development] kantjer:
I'm getting about 6 Mbps on WiFi with the tweak disabled. Thats about the max the phone can do on WiFi (my laptop, which is much more powerful reaches about 10~11 Mbps on the same network), not much to gain by enabling the tweak I think.
[Galaxy S 4 i9505 Android Development] Jsilver73:
hmm, this is all really interesting, I have just been reading a little about ipv6 (something about ipv4 running out of ip addresses so ipv6 being developed because is has gazzilions more or something??) So I guess my question is that if it is negligible performance increase in real life, what would be the cons of having both the tweaks enabled? I mean if it isn't going to make our system better, could having it enabled actually make it worse.

I mean, I started messing around with these settings when I was going through much 'wifi choke' and then just sort of left them enabled because - well, why not really?

BTW - haven't noticed 'wifi choke for some time now :)' - not so sure that has the least bit to do with ipv6 and tcp ram tweaks though lol.
[Galaxy S 4 i9505 Android Development] kantjer:
IPv6 tweak is only needed if you actually are using IPv6. In real life there not that many IPv6 users, specially in the consumer market.

FYI

The WiFi choke issue could be solved by the tcp ram tweak, I doubt it has anything to do with the IPv6 tweak.
[Galaxy S 4 i9505 Android Development] s3icc0:
As kantjer says: Now we have IPv4 which is 4x3digits IP adress. IPv6 nly allows longer adresses. So if you dont use IPv6 adress you don't need the tweak. And I bet you don't use, yet. At the moment IPv6 is being used only by few really big companies on the infrastructure level so no end user impact (or very little like 0,00001%)
[Galaxy S 4 i9505 Android Development] Lither:
[MENTION=3306843]kantjer[/MENTION] can you post your UV table please
[Galaxy S 4 i9505 Android Development] Romcrazguy:
he said -75 uv across the board
[Galaxy S 4 i9505 Android Development] Jsilver73:
OK - my mistake, kantjer already has, it's in his txt file and also the file to put in /system/data/Alucard

Kantjer and I have been discussing the voltage table back and forth today, the issue seems to be that once you have changed the default table when you change back through the 'restore default settings' tab in steaks it only restores back to the modified table that kantjer uses, thus, I wrongly presumed these were stock settings.

To regain original stock settings you need to delete Alucard folder then reboot and restore default settings.
[Galaxy S 4 i9505 Android Development] aleksik:
I have also found out that my device doesn't like it when I set the 1890MHZ voltage to 1150000. I have tried it many times, but I had bad freezes and rr with that so I use 1162500v. The voltage tables are nice to be in text files etc., but maybe it's better not to include uv in shared settings files, because the voltage need is unique on every device :)

Sent from my GT-I9505
[Galaxy S 4 i9505 Android Development] Jsilver73:
OK, I just updated the FAQ in post 2 which now gives a solution for this ;) - if you don't want to change your voltage take you don't have to :D
[Galaxy S 4 i9505 Android Development] Lither:
So these CPU voltages is already -75 UVed across the board?

CPUVOLT1=1150000

CPUVOLT2=1112500

CPUVOLT3=1075000

CPUVOLT4=1037500

CPUVOLT5=1000000

CPUVOLT6=975000

CPUVOLT7=962500

CPUVOLT8=950000

CPUVOLT9=925000

CPUVOLT10=900000

CPUVOLT11=887500

CPUVOLT12=875000

CPUVOLT13=875000

CPUVOLT14=875000

CPUVOLT15=875000

CPUVOLT16=825000

CPUVOLT17=825000
[Galaxy S 4 i9505 Android Development] aleksik:
Yes :)

Sent from my GT-I9505
[Galaxy S 4 i9505 Android Development] davtse:
stweaks_boot_control=yes

scaling_max_freq=1890000

scaling_min_freq=162000

scaling_max_gps_freq=1890000

scaling_max_suspend_freq=1890000

scaling_max_oncall_freq=1890000

scaling_min_suspend_freq=162000

standby_freq=162000

scaling_governor=alucard

up_threshold=95

up_threshold_at_min_freq=75

sampling_rate=60000

sampling_down_factor=1

freq_step=20

down_differential=5

freq_for_responsiveness=486000

down_threshold=30

inc_cpu_load_at_min_freq=60

inc_cpu_load=80

dec_cpu_load_at_min_freq=40

dec_cpu_load=60

freq_for_responsiveness_max=1890000

freq_responsiveness=918000

pump_inc_step=2

pump_dec_step=1

freq_step_at_min_freq=20

freq_up_brake_at_min_freq=30

freq_up_brake=30

freq_step_dec=10

freq_step_dec_at_max_freq=10

scaling_governor_sleep=alucard

sampling_rate_sleep=100000

cpuhotplugging=3

eco_mode_active=0

strict_mode_active=0

hotplug_sampling_rate=60

cpu_up_rate=1

cpu_down_rate=1

hotplug_freq_1_1=1674000

hotplug_freq_2_0=1458000

hotplug_freq_2_1=1782000

hotplug_freq_3_0=1566000

hotplug_freq_3_1=1890000

hotplug_freq_4_0=1674000

hotplug_load_1_1=85

hotplug_load_2_0=70

hotplug_load_2_1=95

hotplug_load_3_0=85

hotplug_load_3_1=98

hotplug_load_4_0=88

hotplug_rq_1_1=200

hotplug_rq_2_0=100

hotplug_rq_2_1=300

hotplug_rq_3_0=100

hotplug_rq_3_1=400

hotplug_rq_4_0=200

maxcoreslimit=4

maxcoreslimit_sleep=1

eco_mode_active_sleep=1

strict_mode_active_sleep=0

msm_thermal=intelli_temp

enabled=on

core_limit_temp_degC=65

limit_temp_degC=60

governor=simple

max_pwrlevel=1

min_pwrlevel=3

thermal_pwrlevel=1

dvfs_boost_mode=1

dvfs_min_touch_limit=810000

dvfs_min_touch_limit_second=486000

syn_touch_booster_off_time=300

syn_touch_booster_chg_time=200

gpio_key_booster_off_time=300

gpio_key_booster_chg_time=200

cortexbrain_read_ahead_kb=128

internal_iosched=cfq

sd_iosched=cfq

internal_iosched_sleep=cfq

sd_iosched_sleep=cfq

auto_oom=on

oom_config_screen_on=low

oom_config_screen_off=medium

dirty_background_ratio=20

dirty_ratio=40

swappiness=0

gpsregion=No_GPS_Zone_changes

init_d=off

logger=off

pwm_val=75

force_fast_charge=0

usb_mode=default

auto_mount_sd=on

Dyn_fsync_active=0

cortexbrain_background_process=1

android_logger=auto

cortexbrain_auto_tweak_mobile=off

cortexbrain_auto_tweak_mobile_sleep_delay=30

cortexbrain_auto_tweak_wifi=off

cortexbrain_auto_tweak_wifi_sleep_delay=30

cortexbrain_firewall=on

cortexbrain_tcp=on

cortexbrain_tcp_ram=on

cortexbrain_ipv6=on

cortexbrain_memory=on

cortexbrain_system=on

cortexbrain_kernel_tweaks=on

cortexbrain_cpu=on

cortexbrain_io=on

cifs_module=off

I use android tuner by 3c to control intellithermal settings, so only core 3/4 goes offline when the thermal throttle threshold is reached.

I'm still not sure what the DVFS settings do so I'm still experimenting.
[Galaxy S 4 i9505 Android Development] Lither:
Just flashed a new CM ROM and installed Alucard kernel and the default voltages is the same as [MENTION=3306843]kantjer[/MENTION] voltages, something must be wrong?

EDIT - I don't restore settings files, I input and adjust the values myself
[Galaxy S 4 i9505 Android Development] s3icc0:
If you really want the default settings of any profile then navigate to /res/customconfig/default.profile and copy this file to /data/.alucard ...

done
[Galaxy S 4 i9505 Android Development] kantjer:
According to the description in STweaks the "up_threshold" and up_threshold_at_min_freq" aren't doing anything when using Alucard governor.
[Galaxy S 4 i9505 Android Development] s3icc0:
And that is why i am trying to write an explanation of all settings :)
[Galaxy S 4 i9505 Android Development] kantjer:
We could setup a shared spreadsheet.

With a description of each setting but also set for which governor/scheduler they are applicable.

It would be quite a task to set it up so we need multiple users working on to get it finished before christmas ;)
[Galaxy S 4 i9505 Android Development] Lither:
I'm saying that Alucard default profile voltages is the same as [MENTION=3306843]kantjer[/MENTION] voltages, so I don't see where the -75 UV is applied?
[Galaxy S 4 i9505 Android Development] s3icc0:
Well 40% done ... Gimme 2days and i will share with you ;)
[Galaxy S 4 i9505 Android Development] davtse:
ah my bad.. force of habit, I used to tweak that on my i9300 with pegasusq so I didnt read the stweaks description.
[Galaxy S 4 i9505 Android Development] Jsilver73:
Go to post #2 FAQ and in there look under the spoiler titled 'voltage table' and there is the solution to get 'stock voltage' table back.
[Galaxy S 4 i9505 Android Development] Romcrazguy:
[MENTION=5146952]jimsilver[/MENTION] I tried the ge settings on touchjizz and phone froze is there anyone here that uses tw that could create a battery friendly profile ...right now I'm at 39% with 2h55min screen time using default profile is that good for a first cycle
[Galaxy S 4 i9505 Android Development] Jsilver73:
Hey romcrazyguy, yeah, really sorry telling you to try that profile, I got mixed up, that's a GE profile.

We have to wait for people on TW to submit their profiles. It depends what you are doing, if browsing or playing games I think 3 hours with 60% battery on first cycle is pretty good really. The kernal always gets better as it settles in.

You could try tweaking some simple elements yourself, fit example screen on governor row, screen of noop, min frequency/scanning min frequency to 162000 for example.
[Galaxy S 4 i9505 Android Development] HaTrED_:
And where do you do that, which tab, for screen on /off governors?

Can't seem to find them... On GE!
[Galaxy S 4 i9505 Android Development] Jsilver73:
Look in the tab 'IO'
[Galaxy S 4 i9505 Android Development] jonatasneves13:
the ALUCARD SETTINGS for GE turn my ROM TOO MUCH slow and with too much laggy...

but battery life is perfect ;)
[Galaxy S 4 i9505 Android Development] Romcrazguy:
Not 2 bad for 1st cycle
[Galaxy S 4 i9505 Android Development] Romcrazguy:
Hope it gets better
[Galaxy S 4 i9505 Android Development] HaTrED_:
I've done that but, based on descriptions, they don't seem to be screen related...

?
[Galaxy S 4 i9505 Android Development] s3icc0:
it is not screen related, but when you safe energy on CPU task scheduling more energy remains for your display to be on
[Galaxy S 4 i9505 Android Development] Jsilver73:
Awake = screen on

Asleep = screen off

Sorry if I confused you by calling it something different.
[Galaxy S 4 i9505 Android Development] Jsilver73:
Hey all,

For any that are interested I have just edited my profile in post #2 that now has stock voltage table. You see, I still get the occasional brief freeze, so I'm wondering if stock voltage may help with that.

That being said, I did still experience the same frequency of freezes with stock cm/Slimkat kernel with default settings, so I'm not convinced that these small freezes are even kernel related, we will see.
[Galaxy S 4 i9505 Android Development] fedef12evo:
no freezes here on aosp and alucard modified with mpedecision as hotplug
[Galaxy S 4 i9505 Android Development] HaTrED_:
Here it goes! :D

Sleeps like a baby, loses 0% during night period, plane mode on, always 2g, gravity screen always on!

GE

Profile:

https://www.dropbox.com/s/isv5dwyalfntgqt/default.profile_backup

Changes:

https://www.dropbox.com/s/m03sanfigrumehe/stweaks.pdf
[Galaxy S 4 i9505 Android Development] kantjer:
Nice :victory:
[Galaxy S 4 i9505 Android Development] Jsilver73:
Thanks HaTrED - GE or AOSP? Please could you post the changes that you made (just like I have done with the profiles that are already uploaded in txt format)
[Galaxy S 4 i9505 Android Development] s3icc0:
Well, I can try the profile, but I see - No data connection 100% of time, also a lot of plane mode ... so may be very different result when really using the phone - finaly it is what users want, or don't they?

I am going in few weeks abroad so I can try how long the phone can do when really not using it much with no data and lot of plane mode ... I bet the result will be really similar to yours (and I am on default profile).

Can we define some standard conditions for testing profiles so we can really compare them? (it is maybe impossible as we will have to incorporate also standard configuration - apps, brightness etc....)
[Galaxy S 4 i9505 Android Development] FlanjeUK:
Is nobody interested in a performance based profile? ;)
[Galaxy S 4 i9505 Android Development] kantjer:
My priory is, in this order.

Stable

Lag free

performance(60%)/battery life(40%) balance
[Galaxy S 4 i9505 Android Development] HaTrED_:
GE

Edited previous post with a .pdf telling the changes!

I've stated clearly in my previous post - 2g, plane mode on (during night period - 8h!).

But you're absolutely right, with this conditions you'll certainly achieved this results, with others, don't think so!

I don't have the opportunity to use data connection 3G/4G because it's paid (very well paid!!), and i'm using a service card with plafond and yada, yada, yada! I'd love to do it/test it but right now, i can't!

Even though, the profile is there, very little changes from default one, give it a go and see how it handles your demands! I'm curious now! :)

:good:
[Galaxy S 4 i9505 Android Development] s3icc0:
I just - I am still waiting someone will show a real battery life in hard use ... and you get the point that inactive phone is battery friendly

hopefully I will show something, not sure yet how it behaves
[Galaxy S 4 i9505 Android Development] Jsilver73:
Uploaded to post #3 :good:
[Galaxy S 4 i9505 Android Development] s3icc0:
alucard gov + alucard hotplug based battery saving profile

Hi guys,

this is one very battery friendly profile for AOSP version, no screenshots just the profile.

https://db.tt/UQNSGC1b

What is this profile about (changes from default profile)?

scaling_min_freq=270000

scaling_max_suspend_freq=918000

scaling_min_suspend_freq=270000

scaling_min_standby_freq=270000

freq_responsivenes=1026000

inc_cpu_load_at_min_freq=65

dec_cpu_load_at_min_freq=50

pump_inc_step=1

sampling_rate_sleep=80000

internal_iosched=row

sd_iosched=row

internal_iosched_sleep=noop

sd_iosched_sleep=noop

--- not that important parameters

gpsregion=Europe

init_d=on

logger=on

pwm_value=50

force_fast_charge=1

Dyn_sync_active=0

Summary: It should sleep and idle using lower frequencies and not checking cpu load that often as default (maybe I change it to 100000). The responsiveness frequency is shifted slightly up and the tresholds adjusted to slower scale up and faster scale down. Over the responsiveness frequency it scales at half speed only (and because it is shifted I did not tweak the tresholds).

Next time hopefully with tuned hotplug :) And ofc tweaked schedulers just a little
[Galaxy S 4 i9505 Android Development] kantjer:
I have tweaked the hotplug a bit, feels good. I will post it later.
[Galaxy S 4 i9505 Android Development] s3icc0:
really interested what you figured out .... good artists create the best ones copy :)