[HTC One X] Byrana:
Flashable CWM init.d scripts

Ok, here is the easy way for everyone to change the gpu clocks through init.d scripts now. The gpu_oc file has become read only since kernel #177, so I had to change the script to keep the settings stick after a reboot.It took me a while to figure it all out. It took me even longer to do a flashable zip including setting the right permissions for the files. Well, here it is.

Just simply flash the file in CWM. If you want to change the values, reboot after flashing and edit the last line of the 91gpu_oc script, that you'll find in /system/etc/init.d ... leave the rest alone and reboot again.

The zip will also enable usb fast charge. If you do not want that, simply delete 92fast_charge in /system/etc/init.d.

I made 2 zips ... one is with default values, the other one underclocks the GPU to 400 MHz.

It really took me a while to figure all that out ... since I am new to this. Hit thanks as a little appreciation if you like.

Good night.

When Xmister fixes the read only permissions, these scripts will be obsolete and the old ones will work again.

Edit: So this happens when you get the hang of it. :laugh:

I made all options available with flashable zips.

Kernel #177, #179 and #188

init_d_400_fc - same as before - tested - will enable usb fast charge - gpu settings 400 400 400 400 400 400 304 267 247 - mild uc

init_d_default_fc - same as before - tested - actually uneeded except you need an easy way to change values - will enable usb fast charge

init_d_gpu304 - will do an agressive uc of your gpu - gpu settings 304 304 304 304 304 304 304 247 247

init_d_gpu400 - same as init_d_400_fc but without enabling usb fast charge

All kernels supporting the features:

init_d_gpu_control - will enable gpu control so you can set settings in trickster

init_d_s2w_3b - this will use 3 keys instead of 2 for sweep2wake

init_d_usb_fastcharge - self explanatory

init_d_gpu400_xm - same as init_d_400_fc but without enabling usb fast charge

init_d_400_fc_xm - will enable usb fast charge - gpu settings *400 400 400 400 400 400 304 267 247 - mild uc

init_d_default_fc_xm - same as before - tested - actually uneeded except you need an easy way to change values - will enable usb fast charge

init_d_gpu304_xm - will do an agressive uc of your gpu - gpu settings 304 304 304 304 304 304 304 247 247

New since kernel #192

init_d_2d_304_xm - 2d gpu underclock - settings 304 304 304 304 304 304 304 247 247

init_d_2d_gpu_default_xm - script with default values

New since kernel #197 and up

2D

#197init_d_2d_xm_default -- script with default values

#197init_d_2d_304_xm - settings 304 304 304 304 304 304 304 267

3D

#197init_d_gpu400_xm - settings 400 400 400 400 400 400 304 267

#197init_d_gpu304_xm - settings 304 304 304 304 304 304 304 267

If Xmister changes the gpu control interface make sure to delete the scripts before flashing new kernel. Otherwise you might end up in a bootloop. If so use adb to delete them.

---------------------------------------------------------------------------------------------------------------------------

Update Kernel #192

Xmister has fixed the permission problem, so you do not need to use init_d_400_fc, init_d_default_fc. init_d_gpu304 or init_d_gpu400. They do no harm you can use them if you do not mind 2 extra lines of scripts :) I will leave those zips in here just in case something gets screwed up again.

Here are the updated scripts you can use with all kernels except #177, #179 and #188. -> see above marked xm at the end.

if you want back to default or disable a certain option ... simply delete the script in /system/etc/init.d

Enjoy!