[Atrix 4G Android Development] delewer:
AtrixTweaks

Hello,

Sorry for my english I'm french :)

Origin thread => http://forum.frandroid.com/topic/93255-autoucuv-forcage-cpu-et-oc-uv-gpu/

This thread to provide a simple way to control undervolting, OverClocking CPU without SetCPU (comming OC GPU), and add other functions.

This also helps to force the startup of the second CPU.

Second CPU "force online" improves "suspens mode" (screen off), and heating at full load (better distribution of tasks). It is also more responsive, when the second CPU does not switch to "iddle"

Include in AtrixTweaks, some scripts, like "BlueBoot", starting with the blue LED lights, and a fix to reactivate the LED green when the battery reaches 99% or 100 %, others ways to implement own "host file", and DNS configuration.

I search to add functionality like stop wifi or data at screen off.

All scripts are located in directory : /system/usr/AtrixTweaks

24 March 2012 (update)

For installation use V1.8 CWM zip :

=> http://xdaforums.com/attachment.php?attachmentid=962925&stc=1&d=1332586674

Configuration File

AtrixTweaks.conf

######
#####
####
###
### Configuration file
###
####
#####
######
# "_Options" are for information only
# "_Values" can be modify
# "_RunAtBoot:1" for script execution
#
##
################
### AutoUCUV ###
################
AutoUCUV_RunAtBoot:1
AutoUCUV_Available_Governors_Options:
#
AutoUCUV_Governors_Screen_On_Value:
AutoUCUV_Governors_Screen_Off_Value:
AutoUCUV_Table_UV_Value:
AutoUCUV_CPU1_Force_Online_Value:1
#
# If managed, Wifi and Data WakeUp at screen on, and CutOff at screen off
# If "Data_StatusCtrl" managed, don't stop Data at screen off
AutoUCUV_Manage_Wifi_Value:0
AutoUCUV_Manage_Data_Value:0
AutoUCUV_Data_StatusCtrl_Value:1
##
#
###########
### DNS ###
###########
DNS_RunAtBoot:1
GoogleDNS_Options:8.8.8.8 8.8.4.4
OpenDNS_Options:208.67.222.222 208.67.220.220
FoolDNS_Options:87.118.111.215 81.174.67.134
NortonDNS_Options:198.153.192.1 198.153.194.1
#
DNS_1_Value:8.8.8.8
DNS_2_Value:8.8.4.4
##
#
######################
### LoadAdsBlocker ###
######################
# Download at next Boot or script launch
#
LoadAdsBlocker_RunAtBoot:0
HTTP_AdBlocking_block_ads_full_Value:http://support.it-mate.co.uk/downloads/HOSTS.txt
HTTP_AdBlocking_block_ads_Value:http://temerc.com/hphosts/HOSTS-Optimized.txt
HTTP_AdBlocking_AntiMalware_Value:http://www.malwaredomainlist.com/hostslist/hosts.txt
HTTP_AdBlocking_partial_host_Value:http://hosts-file.net/hphosts-partial.asp
#
HTTP_AdBlocking_Activ_Value:partial_host
HTTP_AdBlocking_Download_Value:yes
##
#
##################
### AdsBlocker ###
##################
AdsBlocker_RunAtBoot:0
AdsBlocker_Options:no_ad_blocking block_social_gaming AntiMalware block_ads partial_host block_ads_full
#
AdsBlocker_Value:partial_host
#
################
### SdTweaks ###
################
SdTweaks_RunAtBoot:1
Scheduler_Options:anticipatory bfq cfq deadline noop
SdCache_Options:256 512 1024 2048 4096
#
SdCache_Value:2048
Scheduler_Value:deadline
##
#
#######################
### OptionalsTweaks ###
#######################
OptionalsTweaks_RunAtBoot:1
##
#

How to :

This set of script running in the background silently

2 logs are generated for checking settings (/system/usr/AtrixTweaks)

- AutoUCUV.log

- AtrixTweaks.log

In configuration file, only "_Value" must be changed.

"0" to un-activ

"1" to activ

If other value are possible, see "_Options" lines.

"RunAtBoot" to un-activ script

Scripts

LoadAdsBlocker.sh

AdsBlocker.sh

DNS.sh

FixLedBatCM7.sh

AutoUCUV.sh

SDTweaks.sh

OptionalsTweaks.sh

AtrixTweaks.sh

wrkconf.sh

99blueboot

- LoadAdsBlocker.sh : Download Host File (can be change in .conf file)

- AdsBlocker.sh : Install own Host File (can be change in .conf file)

- DNS.sh : Install own DNS (can be change in .conf file)

- FixLedBatCM7.sh : Fix Led at 99% battery charge

- AutoUCUV.sh : UnderVolting/OverClocking CPU (can be change in .conf file)

- SDTweaks.sh : Cache and scheduler for SDCard (can be change in .conf file)

- OptionalsTweaks.sh : Other stuff like Graphics tweaks, build.prop tweaks (can be change in .conf file)

- AtrixTweaks.sh : Run all scripts silently

- wrkconf.sh : Work With AtrixTweaks Scripts Config File

- 99blueboot : init.d launcher

Security implemented in the script "AutoUCUV" block UV/OC since 1 screen off

This allows you to change settings after a reboot if you have too forced on the UV

In .conf file, AutoUCUV updates are apply at screen off

To modified, you can use "Root Explorer" to edit and save.

Auto switch off Wifi : OK

Auto Switch off data : buggy

Commands used :

- svc wifi enable

- svc wifi disable

- svc data enable

- svc data disable

Acknowledgments :

Xkz for his support and good ideas