yashsingh1/xdaforums huggingface dataset:
[Motorola Droid RAZR] blackops11252:
The link below is a pick I posted on AnroidCentral forums in there battery and trick section for the RAZR which shows over 23hrs with 67% battery life left. I will post a new updated pic On here later.

http://forums.androidcentral.com/at...ips-tricks-uploadfromtaptalk1349667654470.jpg

I am also using the iKReaM.ICS.6.16.2 v1.0-R3Ds rom with all motorolia crap frozen with TB, Other then that just the battery script .

I also change my radio settings when needed EX: when in area with no or poor 4G i switch the radio settings from LTE/CDMA/EvDo/GSM/WCDMA to CDMA auto(PRL), then it will only search for 3g and 1x signals, IF no 3G I can switch to CDMA ONLY witch will only give me 1x signal. Doing that saves the battery big time by not searching for a signal it can not get. I have a drop down power controls with the button that takes me right to the screen to change them.
[Motorola Droid RAZR] tufoz:
I'm on CM10..

i can NOT reach 12 hours of normal use.. :(

cpu sleeper and script installed..

what can i do?
[Motorola Droid RAZR] dtrail1:
You should remove all " " from the script file, then it will work.

Or if your rom supports init.d just do the following:

Create a empty file and put that on first line:

Now have a look into the script, you can copy the whole script into your empty file and edit the lines after that.

We have to change the lines and put in the following:

after the "w" must be free space.

Then chanche the values behind.

One example

Original from script:

and after editing:

E.g. you can have a look into this thread to get the correct file descriptions: http://xdaforums.com/showthread.php?t=1621808

But be sure you use the values from the script here!

After you've done, just safe the file and name it sth like "88battery". Now copy it to /system/etc/init.d/

Now it will be loaded on bootup.
[Motorola Droid RAZR] tufoz:
do you mean like this?

#!/system/bin/sh
echo 500,512000,64,2048 > /proc/sys/kernel/sem
echo 3072 > /proc/sys/kernel/msgmni
echo 74000 > /proc/sys/kernel/msgmax
etc

i'm here..

#!/system/bin/sh

/system/xbin/sysctl -w kernel.sem='500 512000 64 2048'
/system/xbin/sysctl -w kernel.msgmni='3072'
/system/xbin/sysctl -w kernel.msgmax='7400'
/system/xbin/sysctl -w kernel.shmmni='3072'
/system/xbin/sysctl -w kernel.shmmax='2268435456'
/system/xbin/sysctl -w kernel.sem='500 512000 64 2048'
/system/xbin/sysctl -w kernel.sched_min_granularity_ns='400000'
/system/xbin/sysctl -w kernel.random.read_wakeup_threshold= '256'
/system/xbin/sysctl -w kernel.panic= '5'
/system/xbin/sysctl -w kernel.threads-max= '575810'
/system/xbin/sysctl -w kernel.panic_oops= '1'
/system/xbin/sysctl -w kernel.hung_task_timeout_secs= '25'
/system/xbin/sysctl -w kernel.sched_latency_ns= '600000'
/system/xbin/sysctl -w kernel.sched_wakeup_granularity_ns= '2000000'
/system/xbin/sysctl -w kernel.sched_child_runs_first= '0'
/system/xbin/sysctl -w kernel.hung_task_timeout_secs= '0'
/system/xbin/sysctl -w vm.oom_kill_allocating_task= '0'
#end of /kernel , start of /fs
/system/xbin/sysctl -w fs.inotify.max_queued_events= '32000'
/system/xbin/sysctl -w fs.inotify.max_user_instances= '256'
/system/xbin/sysctl -w fs.inotify.max_user_watches= '10240'
/system/xbin/sysctl -w fs.lease-break-time= '15'
/system/xbin/sysctl -w fs.file-max= '165164'
/system/xbin/sysctl -w fs.nr_open= '1053696'
#end of /fs, start of /vm
/system/xbin/sysctl -w vm.oom_kill_allocating_task= '0'
/system/xbin/sysctl -w vm.min_free_order_shift= '4'
/system/xbin/sysctl -w vm.overcommit_memory= '1'
/system/xbin/sysctl -w vm.panic_on_oom= '2'
/system/xbin/sysctl -w vm.page-cluster= '8'
/system/xbin/sysctl -w vm.drop_caches= '3'
/system/xbin/sysctl -w vm.oom_kill_allocating_task= '0'
/system/xbin/sysctl -w vm.min_free_kbytes= '2048'
/system/xbin/sysctl -w vm.vfs_cache_pressure= '20'
/system/xbin/sysctl -w vm.dirty_background_ratio= '80'
/system/xbin/sysctl -w vm.dirty_ratio= '90'
/system/xbin/sysctl -w vm.dirty_writeback_centisecs= '3700'
/system/xbin/sysctl -w vm.dirty_expire_centisecs= '2100'
/system/xbin/sysctl -w vm.laptop_mode= '0'
/system/xbin/sysctl -w vm.block_dump= '0'
/system/xbin/sysctl -w vm.swappiness= '0'

correct?
[Motorola Droid RAZR] blackhawk_LA:
@Leviathan26 I have some doubts about the "Speed it Up" Script:

- why it doesn't work well when executed manually via SManager? The problemas with "directory non-existent" means that there's no archive to apply a value, so maybe they are created on boot and deleted, or something? Seems strange :eek:

- There are some lines that have errors, at least for MIUI V4 (but I think these paths are the same in every ROM) For example

echo "64" > /sys/bus/hid/drivers/magicmouse/scroll_speed​

is really

/sys/bus/hid/drivers/magicmouse/module/parameters/scroll_speed​

And other lines simply doesn't exist, at least I can't find any archive called "multi_threading" or "low_latency"

- For changing optimal IO size you need to set them writable, so should post first a line with chmod 644. But if physical block size is 512kb, wouldn't be an error to set the optimal so much bigger than the physical? Also, by default the Io optimal size is "0", so I think that maybe it's not a good change (but I really don't know)

- For mounting a partition, don't you need to use "busybox mount" instead of just "mount"? It says "invalid argument" just with "mount", so I changed it and it started mounting but the other argument seems invalid too. (it says "mounting /system, /data and cache failed)

Thank you very much for your work, and if you (or anyone) can help improving this script we could have it better, and faster!
[Motorola Droid RAZR] kaystanford:
Will this work in combination with CPU Sleeper Dual Core by Eugene373 on Google Play?

Just wondering if this works in combination with CPU Sleeper Dual Core by Eugene373 at Google Play?
[Motorola Droid RAZR] Y_Yan_C:
so the battery saving script should be like this? without the " "s? i tried it on my phone and it says finished executing script file right after i rebooted my device. gonna wait for a day to two to see if battery performs better.

#!/system/bin/sh

echo 500,512000,64,2048 > /proc/sys/kernel/sem

echo 3072 > /proc/sys/kernel/msgmni

echo 74000 > /proc/sys/kernel/msgmax

echo 3072 > /proc/sys/kernel/shmmni

echo 2268435456 > /proc/sys/kernel/shmmax

echo 16777216 > /proc/sys/kernel/shmall

echo 400000 > /proc/sys/kernel/sched_min_granularity_ns

echo 256 > /proc/sys/kernel/random/write_wakeup_threshold

echo 256 > /proc/sys/kernel/random/read_wakeup_threshold

echo 5 > /proc/sys/kernel/panic

echo 575810 > /proc/sys/kernel/threads-max

echo 1 > /proc/sys/kernel/panic_on_oops

echo 25 > /proc/sys/kernel/hung_task_timeout_secs

echo 600000 > /proc/sys/kernel/sched_latency_ns

echo 2000000 > /proc/sys/kernel/sched_wakeup_granularity_ns

echo 1 > /proc/sys/kernel/sched_compat_yield

echo 0 > /proc/sys/kernel/sched_child_runs_first

echo 0 > /proc/sys/kernel/hung_task_timeout_secs

echo 0 > /proc/sys/vm/oom_kill_allocating_task

#end of /kernel , start of /fs

echo 10240 > /proc/sys/fs/inotify/max_user_watches

echo 256 > /proc/sys/fs/inotify/max_user_instances

echo 32000 > /proc/sys/fs/inotify/max_queued_events

echo 15 > /proc/sys/fs/lease-break-time

echo 165164 > /proc/sys/fs/file-max

echo 1053696 > /proc/sys/fs/nr_open

#end of /fs, start of /vm

echo 0 > /proc/sys/vm/oom_kill_allocating_task

echo 4 > /proc/sys/vm/min_free_order_shift

echo 1 > /proc/sys/vm/overcommit_memory

echo 2 > /proc/sys/vm/panic_on_oom

echo 8 > /proc/sys/vm/page-cluster

echo 3 > /proc/sys/vm/drop_caches

echo 0 > /proc/sys/vm/oom_kill_allocating_task

echo 2048 > /proc/sys/vm/min_free_kbytes

echo 20 > /proc/sys/vm/vfs_cache_pressure

echo 80 > /proc/sys/vm/dirty_background_ratio

echo 90 > /proc/sys/vm/dirty_ratio

echo 3700 > /proc/sys/vm/dirty_writeback_centisecs

echo 2100 > /proc/sys/vm/dirty_expire_centisecs

echo 0 > /proc/sys/vm/laptop_mode

echo 0 > /proc/sys/vm/block_dump

echo 0 > /proc/sys/vm/swappiness

Currently around 19/20 hours in one charge, maxx user
[Motorola Droid RAZR] xfaceman:
hi...sori for noob question

where is the download link?

like .txt file?
[Motorola Droid RAZR] Y_Yan_C:
hi, does this mean its running successfully?
[Motorola Droid RAZR] anurag.dj2u:
I got this error while running it . It shows default.prop becaise o copied default.prop from system and erase everything and copued the battery script on it .. Pls help me because i wanna save my battery it drains alot and i just fed up by cahrging it again and again .i charged my droid razr twice in a day on normal usage ..

Thx in advance:thumbup::thumbup::o

exec /system/bin/sh '/storage/sdcard0/default.prop'

/sh '/storage/sdcard0/default.prop' <

/storage/sdcard0/default.prop[17]: can't create /proc/sys/kernel/sched_compat_yield: No such file or directory
[Motorola Droid RAZR] Suarezian:
well, it does improve a bit!
[Motorola Droid RAZR] k1labban17120692:
?

would it work on stock kernel running Pure Performance X?
[Motorola Droid RAZR] naifaharsy:
Can u upload in txt or pdf format?tq
[Motorola Droid RAZR] dtrail1:
Ok, does the performance script gives more battery life?
[Motorola Droid RAZR] BytecodeMe:
Slightly, but it's more biased towards performance.
[Motorola Droid RAZR] FrAsErTaG:
Ive managed to get these to work as init.d, with a bit of a messy work around..

just noticed from the battery one

/system/etc/init.d/tweak1: line 20: can't create proc/sys/kernel/sched_compat_yield: nonexistent directory
/system/etc/init.d/tweak1: line 3: can't create /proc/sys/kernel/sched_features: nonexistent directory
/system/etc/init.d/tweak1: line 13: can't create /proc/sys/kerel/panic_on_oops: nonexistent directory

even doing a (for example)

cat /proc/sys/kerel/panic_on_oops

it tells you its a nonexistent directory, so I think these lines you not work.

I will be sorting the scripts out so they install well via a cwm zip and upload them.
[Motorola Droid RAZR] HSD-Pilot:
Nice... For people that got no init.d folder in system/etc

http://xdaforums.com/showthread.php?t=1710980
[Motorola Droid RAZR] BytecodeMe:
Thank you! I'll look into those lines and check those lines are exactly as in system. Just a note everybody, with Kernel Performance V4,benchmark scores have gone up about 150.
[Motorola Droid RAZR] An1mA:
Used the script without the performance gain and leans more on battery save, but I didnt noticed any difference with the script so far. Perhaps the Chinese ICS and kernel is quite solid? Oh well, tomorrow another day to see how it will perform =)
[Motorola Droid RAZR] 7thSignz:
Sorry i don't get the idea... which one should we apply on device, kernel tweaks?kernel performance?or both?
[Motorola Droid RAZR] DanielMod:
Wow great script.

Antutu benchmark:

from 2900 ~to~ 4000!

Thanks!
[Motorola Droid RAZR] BytecodeMe:
My script mostly helps when the phone is idle by minimizing info that's written to disc. So I'm guessing that you use your phone a lot?

One or the other.

Check back in this thread tomorrow, there will be a better script, it'll optimize I/O, file system read write speeds.
[Motorola Droid RAZR] HSD-Pilot:
I got 6300 points on Stock System [Hotplug] with Battery Safer Script :thumbup:
[Motorola Droid RAZR] BytecodeMe:
If you like the performance script now, you'll love it later! The new one sets the I/O read ahead value at 4 MB, sets the I/O scheduler to noop, quickens bus speed time by skipping verification. And in working on getting file system speed up working, tell me if you have experience in that area. :)

So basically, its going to get better.
[Motorola Droid RAZR] supermario3:
Sorry for the stupid questions I'm doing.

There are two script in the OP. Which one is for the battery life?

One of the thing I see is that you change the swappniess value. Why you need to change it at every boot? For example, in my ubuntu box, I tweaked a file and now this value is always the same.
[Motorola Droid RAZR] thepsen:
Here my result after run this script battery still drain as the same before run this script.My RAZR is on Chinese official 4.0.4
[Motorola Droid RAZR] BytecodeMe:
The first one is for battery life.

The value only needs to be changed at boot for Android phones. Google codes kernels so at every boot stock values are reapplied. It's them trying to protect the customer from themselves.

So when we want change any values in the system partition, we have to use these scripts or mid ROMs to support sysctl at boot.

Does that answer your question? :)

Exactly as I suspected, you use your phone a crap load. :). But I'll see what I can do to it. :D
[Motorola Droid RAZR] supermario3:
Yes, thank you for the explanation, very clear. And about my first question? I only want more battery life, which script should I use?

(ps, fix the link to "script manager" xD )
[Motorola Droid RAZR] dtrail1:
In normal case there is screen in the first place. You should check your apps, it looks like this "lotus traveler" drains a lot of battery... Also there is no break in using the phone, it's always activ. You won't get much more battery when your screen on time is about 5 hours.

Maybe this script doesn't work the same on chinese kernel. The chinese kernel has also less battery drain compared to EU kernel.
[Motorola Droid RAZR] BytecodeMe:
Thank you, what I said, but in better words. Yeah, if he's getting 5 hours of screen time, then I definitely see some improvement, lol. I know on the CDMA/US kernel that we don't that kind of screen time without major underclocks, and some awesome custom ROMs.

Thanks, link is fixed.:laugh:

The first one is for battery life, the one near the end of the post is for performance.
[Motorola Droid RAZR] BytecodeMe:
OP updated with new versions of both scripts!
[Motorola Droid RAZR] spawns:
WOW...thanks!!

One Q, why they contradict each other? there's not any chance to get an increase in performance and also a decrease in batt drain?? (just some questions from someone that is interested in this ;) )

if we choose the batt saving script, we would notice a decrease in perfomance?

thanks!!!!! :fingers-crossed:
[Motorola Droid RAZR] farhanito:
I think that's not screen-on time, but Awake time instead.

@thepsen

Are you using Chinese system with EU kernel?
[Motorola Droid RAZR] bled82:
Would this also improve battery life on the razr maxx? Not that is not amazing already but there its always room for improvement.
[Motorola Droid RAZR] knives809:
The performance script improved my antutu benchmark from 6089 to 6233. I also noticed my device is sleeker than ever.

Thanks!
[Motorola Droid RAZR] BytecodeMe:
Yes, it would, but you wouldn't notice much of a difference from what you already have. If you applied it, you might get a 5-10% increase in battery life, 10% being really high improvement.
[Motorola Droid RAZR] supermario3:
My score on antutu with battery tweak is a little bit lower than my score without it, around 200 points. The system is still very snappy and quick, so no problem for me. I will report if it does his work in a few day. Thank you for your work
[Motorola Droid RAZR] BytecodeMe:
The reason for this is because the system is working through a lot of data. Usually the system flushes all data to disc every .5-.10 seconds and now it's doing it every 2.7. So, you'll definitely get improved battery life, the performance decrease didn't used to be so dang obvious, but some people wanted results.:p
[Motorola Droid RAZR] spawns:
?? :confused:

Sent Via XT910 con tapatalK2
[Motorola Droid RAZR] BytecodeMe:
I'm really sorry, I missed your post. :(

Here's your answer:

They contradict each other because one script sets one value and the other script sets another value. So you might have a mixed jumble of both scripts if you ran them both.

Yes, there is a chance to strike a balance, all the performance script would need is a couple edits to make it more battery saving.

Yes, with the way the battery saving script currently is, you would notice a small decrease in performance.

Hope that helped. :)
[Motorola Droid RAZR] thepsen:
nope i use Asia kernel. and chinese fastboot 4.0.4
[Motorola Droid RAZR] supermario3:
http://xdaforums.com/showpost.php?p=27827901&postcount=37

The first one is for battery.

I think that Leviathan26 didn't update the attachment, I guess we should copy/paste directly from the topic
[Motorola Droid RAZR] core720:
mmmmm governor interactive or hotplug?
[Motorola Droid RAZR] An1mA:
Use hotplug, hotplug is like interactive only it switch 2nd core faster off. Result better battery.
[Motorola Droid RAZR] core720:
/system/etc/init.d/09Test: line 2: can't create /proc/sys/kernel/sched_features: nonexistent directory

/system/etc/init.d/09Test: line 18: can't create /proc/sys/kernel/sched_compat_yield: nonexistent directory

/system/etc/init.d/09Test: line 30: can't create /proc/sys/vm/kill_allocating_task: nonexistent directory
[Motorola Droid RAZR] BytecodeMe:
Yeah, I checked those lines like Frasertag said, but they were exactly as in the system. So maybe they are different for different kernels? I'll probably remove those from the script, only one of those really saves battery, but only in certain situations.

Correct, also better performance, because hotplug has better frequency stepping values.
[Motorola Droid RAZR] fikri95:
I cant carry out the battery nor the perfomance script:(

Is it because im in China kernel??

When i ran the script..it says no directories..anybody help??
[Motorola Droid RAZR] BytecodeMe:
If you're using Script Manager, are you making sure the small gear and Su are selected, then are you hitting save and rebooting?

If you're using ROM Toolbox are you copy pasting the script in there and making sure the continuous circle of arrows is showing and then rebooting?
[Motorola Droid RAZR] fikri95:
So i do not need to run it??
[Motorola Droid RAZR] BytecodeMe:
Not manually, no, the "on boot" being selected runs it every time your phone boots into the OS. So you don't need to run it manually, it's run automatically.
[Motorola Droid RAZR] fikri95:
Okay man..thx alot:) I'll keep u posted on it^^
[Motorola Droid RAZR] BytecodeMe:
So, how is it working for everybody? Has it hit the sweet spot, great for battery life/performance? Just want know whether its time to make my all in one script. ;)
[Motorola Droid RAZR] basshamster:
I tried the battery-script for two days but didn't see any noticeable improvement. Now will try the performance script... :good:
[Motorola Droid RAZR] BytecodeMe:
Yeah, there was a little mix up that I was informed of today... I mixed up these lines in the script

What should be in the Performance Script:

echo "750" > /proc/sys/vm/dirty_writeback_centisecs

echo "500" > /proc/sys/vm/dirty_expire_centisecs

Whats in the Performance Script:

echo "1300" > /proc/sys/vm/dirty_writeback_centisecs

#How old 'dirty" data has to be to be written to disc

echo "1600" > /proc/sys/vm/dirty_expire_centisecs

So, you'll get better battery life and performance with the performance script!:D
[Motorola Droid RAZR] BytecodeMe:
My Battery Saver Script is now included in KOA AOKP!

Now go flash it!
[Motorola Droid RAZR] whirleyes:
Turn off & on faster.

echo 30 > /sys/devices/system/cpu/cpufreq/hotplug/down_threshold

echo 75 > /sys/devices/system/cpu/cpufreq/hotplug/up_threshold
[Motorola Droid RAZR] dtrail1:
I feel like the older Version of the battery Script saved more battery..

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] luka synthetic:
great improvement on performance script! eu ics 180.17 scores 6375 in antutu. thanks a lot!

at 1ghz it gives same performance as would at 1.2 so battery improvement as well. great work.
[Motorola Droid RAZR] BytecodeMe:
Yeah, I actually had down threshold at 40 and up threshold at 75 for my all in one script, great minds think a like. :)

I'll see what changed and try to fix it.

Sent from my XT912
[Motorola Droid RAZR] HSD-Pilot:
I would, i would...:banghead:

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] BytecodeMe:
Why can't you? Not on ICS?:p You're really missing out...
[Motorola Droid RAZR] HSD-Pilot:
I'm on ICS since the first EU Leak, but there's no GSM Patch to use it :thumbdown:

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] whirleyes:
I put all your performance setting inside custom init.rc script.

It improve my 2nd-init boot speed by 10s~. It's huge for now ;)

but still booting with 2nd-init is 20s slower than stock...

p/s :measurement is inaccurate, I only check bootanim start time & end time from dmesg.

Unrelated to this thread.. but maybe somebody read this..

I can't figure out what is happening between usb0: & request_suspend_state:, it takes 23s there
[Motorola Droid RAZR] BytecodeMe:
Can I have the custom init.rc? :p Also the long awaited battery stats have been posted!

Sent from my XT912
[Motorola Droid RAZR] BytecodeMe:
Scripts updated!
[Motorola Droid RAZR] garywojdan81:
Thanks for your work man. Just having an issue getting the hotplug governor to stick on the new performance script. The v7 script worked perfectly for that. Any ideas?

Btw, I'm running Hashcode's 211 base with ICS Safestrap that I manually debloated.
[Motorola Droid RAZR] BytecodeMe:
I found the problem. If you did it with the downloadable file, something tampers with the formatting and breaks the script. So I'm going to delete the downloadable files and have people just use the text. I'm pretty happy I found this problem, it helps me figure out why some of my other scripts haven't been working. Just take it from the text and see if it works.:p
[Motorola Droid RAZR] whirleyes:
I don't use safestrap, so I don't know what predefine value it has in it's init *.rc

I put parameter as your suggestion in on early-init section.

on early-init
write /proc/1/oom_score_adj -16
start ueventd
mkdir /mnt 0775 root system
# Boost boot process, value as per suggested by Leviathan26@xda
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
# Increase MMC block device readaheads
## micro sd slot
write /sys/block/mmcblk0/queue/read_ahead_kb 4096
write /sys/block/mmcblk0/queue/optimal_io_size 4096
write /sys/block/mmcblk0/queue/nomerges 1
write /sys/block/mmcblk0/queue/low_latency 1
write /sys/block/mmcblk0/queue/nr_requests 512
write /sys/block/mmcblk0/queue/scheduler noop
## internal storage
write /sys/block/mmcblk1/queue/read_ahead_kb 4096
write /sys/block/mmcblk1/queue/optimal_io_size 4096
write /sys/block/mmcblk1/queue/nomerges 1
write /sys/block/mmcblk1/queue/low_latency 1
write /sys/block/mmcblk1/queue/nr_requests 512
write /sys/block/mmcblk1/queue/scheduler noop
##
write /sys/module/lowmemorykiller/parameters/minfree 2048,4096,43008,47104,51456,55808
write /sys/module/lowmemorykiller/parameters/adj 0,3,6,10,12,15
write /sys/module/hid_motorola/parameters/mot_pass_through_mt_input 0
##
write /proc/sys/kernel/multi_threading 1
write /proc/sys/kernel/sched_latency_ns 600000
write /proc/sys/kernel/sched_min_granularity_ns 400000
write /proc/sys/kernel/sched_features 24188
# Memory management.
write /proc/sys/vm/overcommit_memory 1
write /proc/sys/vm/min_free_order_shift 4
write /proc/sys/vm/page-cluster 8
write /proc/sys/vm/drop_caches 3
write /proc/sys/vm/min_free_kbytes 4096
write /proc/sys/vm/vfs_cache_pressure 15
## Tweak background writeout
write /proc/sys/vm/dirty_background_ratio 80
write /proc/sys/vm/dirty_ratio 90
write /proc/sys/vm/dirty_writeback_centisecs 1300
write /proc/sys/vm/dirty_expire_centisecs 1600
write /proc/sys/vm/swappiness 45

then I switch to hotplug when this event occur

on property:dev.bootcomplete=1
start loadpreinstalls
# switch CPUfreq from performance to hotplug
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor hotplug
write /sys/devices/system/cpu/cpufreq/hotplug/down_threshold 30
write /sys/devices/system/cpu/cpufreq/hotplug/up_threshold 75

You must check that other predefined value inside safestrap init.rc & init.mapphone_cdma.rc don't overwrite this value.
[Motorola Droid RAZR] garywojdan81:
Still no-go. I copy/pasted the text of the script to a blank new document, set permissions & set in script manager to run as root/at boot & the governor is still interactive. The previous version that I d/l'd from this thread worked after these same steps.