[TWEAK] Faux123 Kernel Tweaks

Search This thread

theintelligent

Senior Member
Nov 29, 2005
732
361
Islamabad
Motorola Edge 30
Hi,

For those of you who aren't using Faux123 Application for tweaking the kernel, I have made a init.d file for them. Just flash the zip and you will have the same tweaks (battery saver only).

Following are included:

CPU Control
Min clock - 162 MHz
Max clock - 1.7 GHz
CPU Governor - Intellidemand
mpdecision - Off
Eco Mode - On

Intellidemand gov control
Up Threshold - 75
Boost Frequency - 0
Two Phase Freq - 1350000
Sampling Rate - 50000
Optimal Freq - 1566000
Synchro Freq - 702000

GPU Control
GPU Governor - ondemand
GPU Clock - 320Mhz
GPU Vsync - On

I/O Scheduler Control
I/O Scheduler (eMMC) - FIOPS
Readhead Size (eMMC) - 1024


**************** Use Faux123 Application if you want to use the true power of this mighty kernel.


************************All credits goes to Faux123 and his mighty kernel*****************************
 

Attachments

  • FauxTweaksv1.zip
    150.7 KB · Views: 413

vomer

Senior Member
Nov 21, 2008
4,615
8,945
Hi,

For those of you who aren't using Faux123 Application for tweaking the kernel, I have made a init.d file for them. Just flash the zip and you will have the same tweaks (battery saver only).

Following are included:

CPU Control
Min clock - 162 MHz
Max clock - 1.7 GHz
CPU Governor - Intellidemand
mpdecision - Off
Eco Mode - On

Intellidemand gov control
Up Threshold - 75
Boost Frequency - 0
Two Phase Freq - 1350000
Sampling Rate - 50000
Optimal Freq - 1566000
Synchro Freq - 702000

GPU Control
GPU Governor - ondemand
GPU Clock - 320Mhz
GPU Vsync - On

I/O Scheduler Control
I/O Scheduler (eMMC) - FIOPS
Readhead Size (eMMC) - 1024


**************** Use Faux123 Application if you want to use the true power of this mighty kernel.


************************All credits goes to Faux123 and his mighty kernel*****************************
thanks! this is great. Can you also add snake charmer=on?
 

chiho0516

Senior Member
Feb 9, 2011
178
17
The app costs $4.99, which is kind of pricy.

Sent from my HTC One using xda app-developers app
 

LiquidSolstice

Inactive Recognized Developer
Jan 17, 2008
5,182
5,181
i personally bought all of his apps even though i don't use them all, devs need support, threads like are kind of inappropriate and unfair.

Excuse me? In what way? Have you even looked at the file? There's absolutely nothing in there that anyone fooling around with their own init.d file couldn't have done. There is no custom code written in there by faux that someone else couldn't independently have written. Should he be credited for it? Absolutely. Is he owed any compensation for this? I really don't think so. Those who want to contribute (and make no mistake, his kernel is pretty great) can do so by purchasing his app or donating to him.

Take a look for yourself before jumping to conclusions:

Code:
#!/system/bin/sh
#
#

IO_SCH="fiops"
READ_AHEAD_KB="1024"
CURRENT_GOVERNOR="intellidemand"
MIN_FREQ="162000"
MAX_FREQ="1728000"

echo "Setting and Tweaking $IO_SCH I/O Scheduler"

STL=`ls -d /sys/block/stl*`
BML=`ls -d /sys/block/bml*`
MMC=`ls -d /sys/block/mmc*`

for i in $STL $BML $MMC $TFSR; do
	echo $IO_SCH > $i/queue/scheduler
	echo 0 > $i/queue/rotational
	echo 1 > $i/queue/iosched/low_latency
	echo 1 > $i/queue/iosched/back_seek_penalty
	echo 1000000000 > $i/queue/iosched/back_seek_max
	echo 1 > $i/queue/iosched/slice_idle
	echo 8 > $i/queue/iosched/quantum
	echo 1024 > $i/queue/nr_requests
	echo 0 > $i/queue/iostats
	echo 4 > $i/queue/iosched/fifo_batch
	echo 2 > $i/queue/iosched/writes_starved
	echo 1 > $i/queue/iosched/rev_penalty
	echo 1 >  $i/queue/rq_affinity;
done

echo "Optimizing Read Ahead"
VD=`ls -d /sys/devices/virtual/bdi/*`
for i in $VD; do
    echo $READ_AHEAD_KB > $i/read_ahead_kb;
    echo "Read ahead kb SET to $READ_AHEAD_KB";
done

echo "Stopping MPDECISION"
stop mpdecision

sleep 1

if [ -e /sys/module/intelli_plug/parameters/intelli_plug_active ]; then
	echo "Activating IntelliPlug"
	echo "1" /sys/module/intelli_plug/parameters/intelli_plug_active;
fi;
sleep 1
if [ -e /sys/module/intelli_plug/parameters/eco_mode_active ]; then
	echo "Enabling ECO mode"
	echo "1" > /sys/module/intelli_plug/parameters/eco_mode_active;
fi;

sleep 3

echo "Setting governor as $CURRENT_GOVERNOR"
chmod 0777 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $CURRENT_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $CURRENT_GOVERNOR > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo $CURRENT_GOVERNOR > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo $CURRENT_GOVERNOR > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

sleep 2

echo "Setting minfreq=$MIN_FREQ and maxfreq=$MAX_FREQ"
chmod 0777 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $MIN_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 0777 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $MAX_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

sleep 2

if [ $CURRENT_GOVERNOR == "intellidemand" ]; then
	echo "Optimizing $CURRENT_GOVERNOR governor"
	chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold
	echo "75" > /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold
	chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold
	chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/boostfreq
	echo "0" > /sys/devices/system/cpu/cpufreq/intellidemand/boostfreq
	chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/boostfreq
	chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/two_phase_freq
	echo "1350000" > /sys/devices/system/cpu/cpufreq/intellidemand/two_phase_freq
	chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/two_phase_freq
	chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate
	echo "50000" > /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate
	chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate
	chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/optimal_freq
	echo "1566000" > /sys/devices/system/cpu/cpufreq/intellidemand/optimal_freq 
	chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/optimal_freq
	chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/sync_freq
	echo "702000" > /sys/devices/system/cpu/cpufreq/intellidemand/sync_freq
	chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/sync_freq
fi;

sleep 2

echo "Optimizing GPU"
MIN_GPU_CLK="320000000"
GPU_GOV="ondemand"

if [ -e /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0 ]; then
	echo "Setting GPU Governor=$GPU_GOV @ $MIN_GPU_CLK"
	chmod 0777 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/gpuclk
	echo $MIN_GPU_CLK > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/gpuclk
	chmod 0644 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/gpuclk
	chmod 0777 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
	echo $GPU_GOV > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
	chmod 0644 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
fi;

sleep 1

if [ -e /d/clk/mdp_vsync_clk/ ]; then
	echo "Enabling GPU VSync"
	chmod 0777 /d/clk/mdp_vsync_clk/enable
	echo "1" > /d/clk/mdp_vsync_clk/enable
	chmod 0644 /d/clk/mdp_vsync_clk/enable
fi;
 

theintelligent

Senior Member
Nov 29, 2005
732
361
Islamabad
Motorola Edge 30
Excuse me? In what way? Have you even looked at the file? There's absolutely nothing in there that anyone fooling around with their own init.d file couldn't have done. There is no custom code written in there by faux that someone else couldn't independently have written. Should he be credited for it? Absolutely. Is he owed any compensation for this? I really don't think so. Those who want to contribute (and make no mistake, his kernel is pretty great) can do so by purchasing his app or donating to him.

Take a look for yourself before jumping to conclusions:

Code:
#!/system/bin/sh
#
#

IO_SCH="fiops"
READ_AHEAD_KB="1024"
CURRENT_GOVERNOR="intellidemand"
MIN_FREQ="162000"
MAX_FREQ="1728000"

echo "Setting and Tweaking $IO_SCH I/O Scheduler"

STL=`ls -d /sys/block/stl*`
BML=`ls -d /sys/block/bml*`
MMC=`ls -d /sys/block/mmc*`

for i in $STL $BML $MMC $TFSR; do
echo $IO_SCH > $i/queue/scheduler
echo 0 > $i/queue/rotational
echo 1 > $i/queue/iosched/low_latency
echo 1 > $i/queue/iosched/back_seek_penalty
echo 1000000000 > $i/queue/iosched/back_seek_max
echo 1 > $i/queue/iosched/slice_idle
echo 8 > $i/queue/iosched/quantum
echo 1024 > $i/queue/nr_requests
echo 0 > $i/queue/iostats
echo 4 > $i/queue/iosched/fifo_batch
echo 2 > $i/queue/iosched/writes_starved
echo 1 > $i/queue/iosched/rev_penalty
echo 1 >  $i/queue/rq_affinity;
done

echo "Optimizing Read Ahead"
VD=`ls -d /sys/devices/virtual/bdi/*`
for i in $VD; do
    echo $READ_AHEAD_KB > $i/read_ahead_kb;
    echo "Read ahead kb SET to $READ_AHEAD_KB";
done

echo "Stopping MPDECISION"
stop mpdecision

sleep 1

if [ -e /sys/module/intelli_plug/parameters/intelli_plug_active ]; then
echo "Activating IntelliPlug"
echo "1" /sys/module/intelli_plug/parameters/intelli_plug_active;
fi;
sleep 1
if [ -e /sys/module/intelli_plug/parameters/eco_mode_active ]; then
echo "Enabling ECO mode"
echo "1" > /sys/module/intelli_plug/parameters/eco_mode_active;
fi;

sleep 3

echo "Setting governor as $CURRENT_GOVERNOR"
chmod 0777 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $CURRENT_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $CURRENT_GOVERNOR > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo $CURRENT_GOVERNOR > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo $CURRENT_GOVERNOR > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

sleep 2

echo "Setting minfreq=$MIN_FREQ and maxfreq=$MAX_FREQ"
chmod 0777 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $MIN_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 0777 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $MAX_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

sleep 2

if [ $CURRENT_GOVERNOR == "intellidemand" ]; then
echo "Optimizing $CURRENT_GOVERNOR governor"
chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold
echo "75" > /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold
chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/up_threshold
chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/boostfreq
echo "0" > /sys/devices/system/cpu/cpufreq/intellidemand/boostfreq
chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/boostfreq
chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/two_phase_freq
echo "1350000" > /sys/devices/system/cpu/cpufreq/intellidemand/two_phase_freq
chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/two_phase_freq
chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate
echo "50000" > /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate
chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/sampling_rate
chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/optimal_freq
echo "1566000" > /sys/devices/system/cpu/cpufreq/intellidemand/optimal_freq 
chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/optimal_freq
chmod 0777 /sys/devices/system/cpu/cpufreq/intellidemand/sync_freq
echo "702000" > /sys/devices/system/cpu/cpufreq/intellidemand/sync_freq
chmod 0644 /sys/devices/system/cpu/cpufreq/intellidemand/sync_freq
fi;

sleep 2

echo "Optimizing GPU"
MIN_GPU_CLK="320000000"
GPU_GOV="ondemand"

if [ -e /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0 ]; then
echo "Setting GPU Governor=$GPU_GOV @ $MIN_GPU_CLK"
chmod 0777 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/gpuclk
echo $MIN_GPU_CLK > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/gpuclk
chmod 0644 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/gpuclk
chmod 0777 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
echo $GPU_GOV > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
chmod 0644 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
fi;

sleep 1

if [ -e /d/clk/mdp_vsync_clk/ ]; then
echo "Enabling GPU VSync"
chmod 0777 /d/clk/mdp_vsync_clk/enable
echo "1" > /d/clk/mdp_vsync_clk/enable
chmod 0644 /d/clk/mdp_vsync_clk/enable
fi;

Friends these tweaks are all over the XDA forums including the Faux's kernel threads. I have only consolidated them. Btw I myself own Faux applications and they are great, of course.

This is not a place to fight rather it's a place to share knowledge. So calm down.
 

dhingra_vinay_in

Senior Member
Feb 5, 2009
181
25
i personally bought all of his apps even though i don't use them all, devs need support, threads like are kind of inappropriate and unfair.

come on dude !!! he has just gathered his settings into a zip file and just made it easier for users to simply flash it n apply the settings he is using...there is no harm to the dev's hard work behind his kernel n app !!!
 

kennynguyen20

Senior Member
Jan 12, 2013
361
53
London
come on dude !!! he has just gathered his settings into a zip file and just made it easier for users to simply flash it n apply the settings he is using...there is no harm to the dev's hard work behind his kernel n app !!!

i just thought it might be better if he post the setting as a reply in faux's kernel thread instead of making a new one. Well, just my opinion :)
 

dhingra_vinay_in

Senior Member
Feb 5, 2009
181
25

theintelligent

Senior Member
Nov 29, 2005
732
361
Islamabad
Motorola Edge 30
  • Like
Reactions: kennynguyen20

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Hi,

    For those of you who aren't using Faux123 Application for tweaking the kernel, I have made a init.d file for them. Just flash the zip and you will have the same tweaks (battery saver only).

    Following are included:

    CPU Control
    Min clock - 162 MHz
    Max clock - 1.7 GHz
    CPU Governor - Intellidemand
    mpdecision - Off
    Eco Mode - On

    Intellidemand gov control
    Up Threshold - 75
    Boost Frequency - 0
    Two Phase Freq - 1350000
    Sampling Rate - 50000
    Optimal Freq - 1566000
    Synchro Freq - 702000

    GPU Control
    GPU Governor - ondemand
    GPU Clock - 320Mhz
    GPU Vsync - On

    I/O Scheduler Control
    I/O Scheduler (eMMC) - FIOPS
    Readhead Size (eMMC) - 1024


    **************** Use Faux123 Application if you want to use the true power of this mighty kernel.


    ************************All credits goes to Faux123 and his mighty kernel*****************************
    5
    Heh $4.99 is nothing for what our devs do for us

    Sent from my HTC One using xda premium
    1
    i personally bought all of his apps even though i don't use them all, devs need support, threads like are kind of inappropriate and unfair.
    1
    i just thought it might be better if he post the setting as a reply in faux's kernel thread instead of making a new one. Well, just my opinion :)

    Well friend, you are right I thought of posting my init.d to that thread but I am not sure why I posted a new thread (there was a some reason, I forgot). Anyways I will post a link referring to this thread.

    EDIT:

    Posted :)

    http://xdaforums.com/showpost.php?p=42010742&postcount=1379