** FIRST OFF: DO NOT JUST GO DO THIS. I AM ONLY SOLICITING OPINIONS FROM THOSE WHO ARE MORE EXPERIENCED WITH ANDROID. I AM PRETTY NEW TO SCRIPTING AND STUFF LIKE THAT **
Girl: Thanks for all the help you give us here. I read the posts by you and Nismo explaining to delete the script "Pete". Do you think we could just edit the script so that we could keep the "free memory" features of the script? Specifically, we could delete all of the "echo" statements (EXCEPT THE LAST ONE) because these set the parameters for the CPU speed, governor, etc. The last echo statement deals with the freememory portion. We would also need to delete the last busybox statement that kills SetCPU.
This is just a suggestion so that we could keep the applicable portions of the script while allowing SetCPU to set our parameters and perhaps save battery. On the other hand, once PETE is ran, these parameters are saved; should we then go to /sys/devices/system/cpu/cpu0/cpufreq and delete those values. I'm just not sure how SetCPU would set and maintain its parameters.
Soliciting opinions from those of you who are more experienced in this...
Okay, here's what I did, and it worked. First, because I had deleted the "pete" file, I unzipped the ROM and pulled the "pete" file from /system/xbin, then pushed it to /system/xbin on my Droid and changed the permissions so that they were the same as all the other files in xbin (all boxes checked in Root Explorer).
Then I used Root Explorer to long-press on the file and open in text editor, and edited all of the CPU commands out (and added "Bugless Beast by Pete" at the end so I would know the script ran), so it looks like this:
#!/system/bin/sh
echo "2560,3840,6400,17920,19200,20480" > /sys/module/lowmemorykiller/parameters/minfree
sleep 42s
busybox killall -q com.cooliris.media
busybox killall -q com.android.mms
busybox killall -q com.android.email
busybox killall -q com.motorola.calendar
busybox killall -q android.process.media
busybox killall -q com.android.deskclock
busybox killall -q com.android.bluetooth
busybox killall -q com.google.android.apps.uploader
busybox killall -q com.android.voicedialer
busybox killall -q com.google.android.voicesearch
busybox killall -q com.android.settings
busybox killall -q com.android.calendar
busybox killall -q com.google.android.apps.maps:FriendService
busybox killall -q com.google.android.gm
busybox killall -q com.amazon.mp3
busybox killall -q com.android.im
busybox killall -q android.process.im
busybox killall -q com.android.music
echo 'Bugless Beast by Pete'
I saved my edits and rebooted, then opened Terminal Emulator, typed su, then pete. The pete file has a built-in 42-second delay, so it takes that long before you'll see the "Bugless Beast by Pete" and another # sign will appear.