[Galaxy S 4 i9505 Android Development] Jsilver73:
Post# 2 instructions

To restore a downloaded settings file:

open up ES file explorer (or your file explorer of choice, for this tutorial I will use ES explorer for simplicity, obviously if you already use a root file explorer you already 'know how ;)'

in ES explorer go /settings/root explorer on - then long press root explorer button and then click 'mount R/W' and tick both 'path and system as r/w'

check /settings/hidden files on

if you have already made a backup find the .default.backup_profile.zip and cut and paste it to a sperate folder of your choosing for safe keeping (same path as below)

copy your downloaded .zip file '. default. backup_profile. zip and paste into /data/.Alucard folder

rename the file - simply delete the file name that is in the [brackets]

open STweaks and go to the 'backup or restore' tab

press 'restore now'

wait about 30 seconds and your chosen profile should now be active

To share a profile

save your own profile as a backup from the 'backup or restore' tab in STweaks then copy it attach it to a post here in this thread and I will upload it to the relevant post in the op with the name of your profile and any comments you wish to make about it. Also please copy and paste just the settings you have changed from the file directly into your post, this will help users to understand how your profile works ;) - I will also include this in the main OP along with your file into the relevant post

Which profiles work with what? AOSP, TW, GE - are they transferable?

good question, we are not sure as yet whether profiles will be transferable between AOSP, TW and GE - so if you are feeling brave give them a try and let us know how your tests workout, I will then add the feed back to the OP for all users ;)

FAQ

Using PC to edit profiles

If you want to edit your profile on your pc make sure you use Notepad++, if you use something like Windows notepad the file won't be in a linux compatible format.

Voltage table

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.

But I don't want to change voltage table

That's cool, you don't have to, before copying your chosen profile to the Alucard folder just open up the profile file and make sure this line is set to off: cpu_voltage_switch=off (edit using es explorer or similar)

TCP/IP tweaks

Quote 'I have to translate to human language:

TCP/IP tweak changes buffer sizes for TCP and IPv4 communication.' [MENTION=3855065]s3icc0[/MENTION]

Information from [MENTION=3306843]kantjer[/MENTION]

# 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 ***: $

About hotplugging

Quote: s3icc0

Hi I think this is the proper thread to discuss:

I was thinking to tweak the Alucard hotplug parameters and I am not aware about all the parameters:

hotplug_freq_x_1 - the frequency at which the other (instead of x the # of the core) core is hotplugged in - turned on (probably based on the frequency of the previous core or core 0)

hotplug_freq_y_0 - the frequency at which the other (instead of y the #-1 of the core) core is hotplugged out - turned off (again probably based on the frequency of previous core or core 0)

hotplug_load_x_1 - the % of load of the core (instead of x the # of the core) the frequency for the core is scaled up

hotplug_load_y_0 - the % of load of the core (instead of y the #-1 of the core) the frequency for the core is scaled down

hotplug_rq_x_1 - treshold run queue length for core x to turn on (not sure what the UINT means)

hotplug_rq_y_0 - treshold run queue length for core y-1 to turn off (not sure what the UINT means)

the rest is clear, but I am still not sure about these parameters. - what the are related to and for some I completely don't understand (like the run queue - for which I googled but now I don't know why there is on and off parameter).

Summarized:

hotplug on frequency is related to core-1 (previous core with lower number)?

hotplug off frequency is related to core+1 (following core with higher number)?

hotplug load on % is related to core-1 (previous core with lower number) or to itself.

hotplug load off % is related to core+1 (following core with higher number) or to itself.

hotplug rq on - what the heck?

hotplug rq off - what the heck?

hope someone understands my question - really tried to google hard for answer but not successfully

Quote:

Originally Posted by kantjer

My thoughts.

hotplug_freq tells extra CPU cores when to scale up or down based on the frequency of the lower numbered CPU (like you mentioned)

hotplug_load tells extra CPU cores when to scale up or down based on the load of the own CPU

hotplug rq tells extra CPU cores when and how many to scale up or down based on the length of the run queue (processes waiting to be serviced by the CPU), only the "uint" is not clear to me (I understand it can only hold positive values but thee it stops for me)

Similar thoughts ...

About hotplug run queue length I found it is the time reserved for each process in the queue ... which makes sence when you have only one value for each core (so cpu 1 is set for 100ms -> not enough -> cpu 2 200ms (longer time not to waste energy required to power it on) -> not enough -> cpu 3 400ms) (maybe not miliseconds but cycles, what I know). But then when you look into stweaks and on the description it really looks like it is the number of processes in the queue (uint for unit-integer?)

My bluetooth audio stutters boo hoo :crying:

Try this:

SCHED_MC = 1

MAXCORESLIMIT_SLEEP = 2

Thanks to [MENTION=3306843]kantjer[/MENTION] and [MENTION=3855065]s3icc0[/MENTION] for working/testing this out :good: