[One (M7) Original Android Development] Rad ryan:
I'm having an issue similar to this. I am on Eragon v41.3 rom. My issues started when I flashed to the sense 6 version of the Rom, so I'm thinking that it has something to do with new security features or something. The only way that I have found that will get around the problem is to: FIRST, remount system as rw --> let the rest of init.d script run --> remount system as read only :)

I haven't added it to my script yet bc I haven't had time to really look into what's causing the problem and finding a better fix, but you can just search for the Linux mount command of on Google and place the command to mount /system as rw at top of script and command to mount /system as read only at bottom. I haven't tried it in init.d yet, I've only run it from terminal. So if you try it let me know if it works. :)

As soon as I have a chance to look into the problem I'll let know if I figure anything out.

LOL :D

Thanks for all the work you and poondog put into this script and for helping me out with mine a while back. I've since become much more adept with the Linux command line. :D

Here are a few things I have in my script in case you wanted to add them to yours for everybody to use:

The Gov has to be set for each cpu correct? If I just set cpu0 then the other three don't set to same as cpu0. If I try to set other 3 it says that the directory doesn't exist (strange). Anyway here's my code for Gov and freq settings:

# Governor & Min/Max Freqs
#CPU0
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo preservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

#CPU1
chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo preservative > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo 1728000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

#CPU2
chmod 666 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo preservative > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 666 /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo 1728000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
echo 384000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq

#CPU3
chmod 666 /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo preservative > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 666 /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
echo 1728000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
echo 384000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq

This will disable HTC color enhance:

# Set HTC color enhance 0=disabled 1=enabled
echo 0 > /sys/devices/platform/msm_fb.590593/leds/lcd-backlight/color_enhance

Linux Trim command (great to run at startup (IMHO). Also, it used to work fine bf I updated to sense 6,now it says there's no such command. Maybe you can get it working again.

#fstrim
fstrim -v /cache
fstrim -v /data

This is the vibration control for the hard buttons (the back, home, and HTC logo button at the bottom of the phone. The vibration control already in your script is for screen vibration strength I think.

# Hard Key Vibration Strength
echo 60 > /sys/android_touch/vib_strength

Whooooo Hooooooo! :D Oh happy day! :D

Man this thread moves fast, I can barely keep up with it. :)

Bout to try out the new thermal setup, it sounds awesome. Great job mate.

" .updates to msm_bus for better performance, particularly in gaming"

Is this what we were talking about in the early development of your kernel (increasing bus speeds of lower freqs) or is this something different?