[HTC Droid DNA] orangechoochoo:
Yup, I actually read these things. Pio is not wasting his time providing this info. I was looking to see if the script from the 6/29 nightly was included (https://docs.google.com/document/d/1Zcp6iVWVw_7iH-ErnKgkYy3r5QuqV8PHFoQMb8hoBwQ/edit?pli=1).

Looking at Carbon on the S4, it has the Loopysmoothness initi.d script.

#!/system/bin/sh
# Loopy Smoothness tweak

for n in 1 2
do
#
#
NUMBER_OF_CHECKS=60 # Total number of rechecks before ending 1st loop
SLEEP_TIME=3 # Number of seconds between rechecking processes
PROCESSES_TOTAL=16 # Must be edited to match the number of processes to be checked
DEBUG_ECHO=0 # Debug on/off

UserLauncher=$launcher
#
CHECK_COUNT=0 # Don't edit
P_CHECK=0 # Don't edit
CHECK_OK=0 # Unused

PROCESS_1=0; PROCESS_2=0; PROCESS_3=0; PROCESS_4=0; PROCESS_5=0; PROCESS_6=0;
PROCESS_7=0; PROCESS_8=0; PROCESS_9=0; PROCESS_10=0; PROCESS_11=0; PROCESS_12=0;
PROCESS_13=0; PROCESS_14=0; PROCESS_15=0; PROCESS_16=0; PROCESS_17=0; PROCESS_18=0;
PROCESS_19=0; PROCESS_20=0; PROCESS_21=0; PROCESS_22=0; PROCESS_23=0; PROCESS_24=0;

if [ \$n -eq "1" ]; then
if [ \$DEBUG_ECHO -eq "1" ]; then
echo ""
echo "LST Debug: \$(date)"
echo "LST Debug: Initiate"
fi;

# Pause and then loop until kswapd0 is found, which should be instant anyway
sleep 1
SWAP_SLEEP_TIME=3; SWAP_NUMBER_OF_CHECKS=30; SWAP_CHECK_COUNT=0; SWAP_CHECK_COUNT_OK=0; while [ \$SWAP_CHECK_COUNT -lt \$SWAP_NUMBER_OF_CHECKS ]; do if [ \`pidof kswapd0\` ]; then renice 19 \`pidof kswapd0\`; SWAP_CHECK_COUNT=\$SWAP_NUMBER_OF_CHECKS; SWAP_CHECK_COUNT_OK=1; else sleep \$SWAP_SLEEP_TIME; fi; SWAP_CHECK_COUNT=\`expr \$SWAP_CHECK_COUNT + 1\`; done; if [ \$SWAP_CHECK_COUNT_OK -lt 1 ]; then echo "LST Debug: 'kswapd0' expired after \`expr \$SWAP_CHECK_COUNT \* \$SWAP_SLEEP_TIME\` seconds"; fi;

if [ \$DEBUG_ECHO -eq "1" ]; then
echo "LST Debug: \$(date)";
echo "LST Debug: kswapd0 found";
fi;
fi;

# Check briefly one more time
if [ \$n -eq "2" ]; then
if [ \$DEBUG_ECHO -eq "1" ]; then
echo "LST Debug: 2nd loop"
fi;
NUMBER_OF_CHECKS=6 # Editing not recommended
SLEEP_TIME=5 # Editing not recommended
fi;

while [ \$CHECK_COUNT -lt \$NUMBER_OF_CHECKS ];
do
# Resident system apps
if [ \$PROCESS_1 -eq "0" ]; then PNAME="com.android.phone"; NICELEVEL=-20; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_1=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_2 -eq "0" ]; then PNAME="com.android.systemui"; NICELEVEL=-18; if [ \`pidof $PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_2=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_3 -eq "0" ]; then PNAME="com.android.settings"; NICELEVEL=-18; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_3=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_4 -eq "0" ]; then PNAME="com.android.inputmethod.latin"; NICELEVEL=-18; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_4=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_5 -eq "0" ]; then PNAME="\$UserLauncher"; NICELEVEL=-20; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_5=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_6 -eq "0" ]; then PNAME="com.android.vending"; NICELEVEL=-18; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_6=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_7 -eq "0" ]; then PNAME="com.android.mms"; NICELEVEL=-19; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_7=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_8 -eq "0" ]; then PNAME="android.process.acore"; NICELEVEL=-17; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_8=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_9 -eq "0" ]; then PNAME="android.process.media"; NICELEVEL=-17; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_9=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;

# Other system apps
if [ \$PROCESS_10 -eq "0" ]; then PNAME="com.android.browser"; NICELEVEL=-19; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_10=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_11 -eq "0" ]; then PNAME="com.android.camera"; NICELEVEL=-19; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_11=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_12 -eq "0" ]; then PNAME="com.android.contacts"; NICELEVEL=-18; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_12=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_13 -eq "0" ]; then PNAME="com.jb.gosms"; NICELEVEL=-17; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_13=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
#">>/system/etc/init.d/45smurfed;

# Other apps
if [ \$PROCESS_14 -eq "0" ]; then PNAME="com.speedsoftware.rootexplorer"; NICELEVEL=-17; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_14=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_15 -eq "0" ]; then PNAME="com.handcent.nextsms"; NICELEVEL=-17; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_15=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
if [ \$PROCESS_16 -eq "0" ]; then PNAME="com.android.gallery3d"; NICELEVEL=-17; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_16=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
# if [ \$PROCESS_17 -eq "0" ]; then PNAME=""; NICELEVEL=-15; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_17=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;
# if [ \$PROCESS_18 -eq "0" ]; then PNAME=""; NICELEVEL=-15; if [ \`pidof \$PNAME\` ]; then renice \$NICELEVEL \`pidof \$PNAME\`; PROCESS_18=1; P_CHECK=\`expr \$P_CHECK + 1\`; fi; fi;

# If all processes are done, loop can finish early
if [ \$P_CHECK -ge \$PROCESSES_TOTAL ]; then CHECK_COUNT=\$NUMBER_OF_CHECKS; else sleep \$SLEEP_TIME; fi;

CHECK_COUNT=\`expr \$CHECK_COUNT + 1\`;
done

if [ \$DEBUG_ECHO -eq "1" ]; then
echo "LST Debug: \$(date)"
if [ \$PROCESS_1 -eq "0" ]; then echo "LST Debug: PROCESS_1 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_2 -eq "0" ]; then echo "LST Debug: PROCESS_2 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_3 -eq "0" ]; then echo "LST Debug: PROCESS_3 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_4 -eq "0" ]; then echo "LST Debug: PROCESS_4 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_5 -eq "0" ]; then echo "LST Debug: PROCESS_5 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_6 -eq "0" ]; then echo "LST Debug: PROCESS_6 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_7 -eq "0" ]; then echo "LST Debug: PROCESS_7 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_8 -eq "0" ]; then echo "LST Debug: PROCESS_8 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_9 -eq "0" ]; then echo "LST Debug: PROCESS_9 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_10 -eq "0" ]; then echo "LST Debug: PROCESS_10 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_11 -eq "0" ]; then echo "LST Debug: PROCESS_11 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_12 -eq "0" ]; then echo "LST Debug: PROCESS_12 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_13 -eq "0" ]; then echo "LST Debug: PROCESS_13 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_14 -eq "0" ]; then echo "LST Debug: PROCESS_14 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_15 -eq "0" ]; then echo "LST Debug: PROCESS_15 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
if [ \$PROCESS_16 -eq "0" ]; then echo "LST Debug: PROCESS_16 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
# if [ \$PROCESS_17 -eq "0" ]; then echo "LST Debug: PROCESS_17 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
# if [ \$PROCESS_18 -eq "0" ]; then echo "LST Debug: PROCESS_18 expired after \`expr \$CHECK_COUNT \* \$SLEEP_TIME\` seconds"; fi;
#
echo "LST Debug: Checking complete"
fi;
done
#
if [ \$DEBUG_ECHO -eq "1" ]; then
echo "LST Debug: Done"
#
fi;