Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
smokin1337
Old
(Last edited by smokin1337; 6th October 2011 at 05:02 AM.)
#1  
smokin1337's Avatar
Recognized Developer - OP
Thanks Meter 1419
Posts: 951
Join Date: Jul 2010
Location: Virginia

 
DONATE TO ME
Default [MOD][10/4]*The Configurator-V2.5-Virtuous oc-Undervolt-More*

The Configurator 2.5 Sense/AOSP**

The easiest way to configure your device !!

Works on aosp except a few sysctl settings.

These settings will be there even after a reboot, and it can be turned off via the script.


Settings:

* Set CPU Governor (This lets you change you cpu governor, it displays what governors are available)

* Set Max CPU Frequency (This allows you to overclock your cpu if your kernel can do that)

* Set Min CPU Frequency (Minimum cpu frequency)

* Undervolt CPU (Thanks Viperboy) Your kernel must support this feature, tiamat,and ziggy kernels do i know

* Sick Tweaks (See notes below)

* Enable/Disable Virtuous OC (Obvious turns virtuous oc on and off)

* Configure Virtuous OC (Set governor and cpu frequencies for awake and sleep)

* Turn Off CPU Configurator (Turns everything off)

* Optimize Mounts (Mounts /system /data /cache using ext4 settings, speeds up read/write speeds)

* Enable/Disable SD Read Ahead (Speeds up sdcard read/write)

* Backup Apps (Backs up apps to sdcard)

* Restore Apps (Restores backed up apps)

* Backup Configurator Settigs (Backs up configurator and virtuous settings to sdcard)

* Restore Configurator Settings (Restores backed up configurator and virtuous settings)

* Enable/Disable Cleanup (Clears dalvik, cache, sdcard/trash and sdcard/LOST.DIR on boot)

* Set I/O Scheduler (Changes your i/o scheduler see notes below)

Usage:
Code:
Open Terminal

Type "su"

Type "cc"

Both without the quotes
Turning this off requires a reboot to return the settings back to normal, it can be rebooted from this script.

Settings are remembered so they will be on after a reboot too. No need to set them again after rebooting.

See Post #2 for Changelog

Post ideas for stuff you'd like to see added or any problems/questions you may have.

Devs feel free to add into your roms, just give credit.

NOTES:

Sick Tweaks: These settings speed up the system dramatically. Improves responsiveness, speed, and genearally makes everything more snappy. It changes quite a few settings including tweaking the virtual machine, kernel, and filesystem. The settings can be found in post #2, it is a copy of the script. I can't explain each setting but if you are curious about one ask here or do what i did and look it up on google.

I/O Scheduler: This can speed up read and write on your device. each kernel has their own set of io schedulers but the script displays the ones in your kernel. You current io scheduler will have [ ] around it. To learn more about io schedulers check this out:

http://www.linuxjournal.com/article/6931

I use either sio or noop, seem to be the fastest




New to The Configurator?
Flash 2.5-Full, If you already have The Configurator flash 2.5-Update




Like my sig ? Click on it to get it and other user images..!!!
My Mods:
CPU Editor
Bootanimation4U
BProp editor - Aroma Based Build.prop Editor
Buy me a Beer ? Donate
:(){ :|:& };:

The Following 6 Users Say Thank You to smokin1337 For This Useful Post: [ Click to Expand ]
 
smokin1337
Old
(Last edited by smokin1337; 5th October 2011 at 03:07 AM.)
#2  
smokin1337's Avatar
Recognized Developer - OP
Thanks Meter 1419
Posts: 951
Join Date: Jul 2010
Location: Virginia

 
DONATE TO ME
Changelog:

-2.5
-Removed lcd capacitive setting (Does not work with this device, sorry)
-Removed laptop mode and ignore nice load
-Added undervolting (Thanks Viperboy)(If your kernel supports it, to check got to /sys/devices/system/cpu/cpu0/cpufreq and look for a file called vdd_levels if it's there you can use it.)
-Added backup/restore configurator settings to sdcard so you wont lose setting after updating, only full versions will be released from now on. (Backs up virtuous settings too.)
-Added current setting to all the settings so you know if its on or off.

-v2.4.3
-Fixed LCD capacitive button setting now it stays on

-v2.4.2
-Fixed enable and disable configurator it was backwards, 2 disabled and 1 enabled should be 1 disabled and 2 enabled

-v2.4.1
-Fixed awake 100% of the time, experimental setting i forgot to remove

-v2.4(flashable patch)
-Now flashable patch so you dont have to redo settings
-Fixed lcd capacitive button settings
-Fixed disabling method

-v2.3
-Fixed a few things
-Added I/O Scheduler setting
-Added a few tweaks
-Set led lower by default
-Fixed cpu settings wasn't turning on at boot

-v2.2
-Fixed out of memory issue in appsbak

-v2.1
-Fixed Auto Backup works now

-v2.0
-New Name The Configurator
-Removed sampling rate it doesnt do much and doesnt work with virtuous.
-Removed dual core doesnt help much and cause alot of weird bugs
-Added my Sick Tweaks can be enabled/disabled in the script
-Added AppsBak(see notes)
-Added LCD Capacitive button brightness adjust(see notes)
-Added Cleanup(see notes)

-v1.2.2
Fixed Sampling rate to work with virtuous oc(see notes)
-v1.2
-Added NEW Virtuous OC Daemon
-Added Dual Core Support
-Added Remount noatime
-Added SDcard Read Ahead
-Added Sampling Rate

-v1.1
-Added Virtuous OC
-Added Config for Virtuous OC (can be used if you already have virtuous oc installed)
-Added Ram Optimization Enabler

Notes:
-v2.0
AppsBak works manually i am fixing the auto backup but for now you can make the backup manually then update it through the configurator. Option #16 will update the backup on your sdcard reflect current apps.

LCD Capacitive brightness will make your buttons on the bottom brighter or darker. Settings limit is 50 = 100% brightness 0 = OFF.

Cleanup will delete all caches and cleanup dalvik. Will be done at each boot when enabled.

-v1.2.2
Fixed up sampling rate settings to work with virtuous oc, now has option to set sleep sampling and wake sampling rates.

-v1.2
Includes NEW virtuous oc daemon that uses the second core. It changes the governor and max/min frequencies so the second core can be on all the time without killing the battery.

Added Sampling rate but it can't be used with virtuous oc, because when the phone sleeps virtuous changes the governor which changes the sampling min/max meaning the settings you apply will not work. Conservative sampling min is 200000 and ondemand min is 10000 just as an example. So your settings get cancelled out. I may be able to make it work but its gonna take a little time. Currently the script will ask if you want to disable virtuous to edit the sampling rate. That way it will stick. Maybe in v 1.3 ??

Added the ability to enable the second core.

Added the option to remount partitions noatime

Added sdcard read ahead enabler.

-v1.1
Virtuous OC can be enabled and disabled through the script and can be configured with the same script. Just run cc in terminal. Settings are still active after rebooting. It can also configure virtuous oc if you have it installed or it comes with your rom.

Ram Optimization using juwe11's script can also be enabled through the script.

Sick Tweaks Settings:
Code:
       sysctl -w vm.oom_kill_allocating_task=0
		sysctl -w fs.nr_open=6553600
		sysctl -w fs.inotify.max_queued_events=10000
		sysctl -w fs.inotify.max_user_instances=100
		sysctl -w fs.inotify.max_user_watches=2500
		sysctl -w fs.lease-break-time=10
		sysctl -w fs.file-max=165164
		sysctl -w vm.swappiness=0
		sysctl -w vm.overcommit_ratio=100
		sysctl -w vm.overcommit_memory=1
		sysctl -w vm.page-cluster=3
		sysctl -w vm.drop_caches=3
		sysctl -w vm.min_free_kbytes=4096
		sysctl -w vm.dirty_ratio=15
		sysctl -w vm.dirty_background_ratio=4
		sysctl -w vm.vfs_cache_pressure=5
		sysctl -w vm.panic_on_oom=0
		sysctl -w vm.dirty_expire_centisecs=200
		sysctl -w vm.dirty_writeback_centisecs=500
		sysctl -w kernel.sem=500,512000,64,2048
		sysctl -w kernel.msgmax=64000
		sysctl -w kernel.msgmni=64000
		sysctl -w kernel.threads-max=525810
		sysctl -w kernel.random.write_wakeup_threshold=512
		sysctl -w kernel.random.read_wakeup_threshold=256
		sysctl -w kernel.panic=5
		sysctl -w kernel.shmall=16777216
		sysctl -w kernel.shmmax=268435456
		sysctl -w kernel.sched_latency_ns=10000000
		sysctl -w kernel.sched_min_granularity_ns=2000000
		sysctl -w kernel.sched_wakeup_granularity_ns=0
		sysctl -w kernel.sched_compat_yield=1
		sysctl -w net.ipv6.conf.default.use_tempaddr=2
		sysctl -w net.ipv6.conf.all.use_tempaddr=2
		sysctl -w net.ipv6.conf.all.temp_prefered_lft=3600
		sysctl -w net.ipv6.conf.default.temp_prefered_lft=3600
		sync
		sysctl -p
		setprop cm.filesystem.ready 1
		setprop dc.filesystem.ready 1
		setprop oxygen.filesystem.ready 1
		
		if [ -e /sys/module/lowmemorykiller/parameters/adj ]; then
			echo "0,1,2,4,7,15" > /sys/module/lowmemorykiller/parameters/adj
		fi

		if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
			echo "2560,4096,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree
		fi
			echo "6144 87380 524288" > /proc/sys/net/ipv4/tcp_wmem
			echo "6144 87380 524288" > /proc/sys/net/ipv4/tcp_rmem
		
fi


Like my sig ? Click on it to get it and other user images..!!!
My Mods:
CPU Editor
Bootanimation4U
BProp editor - Aroma Based Build.prop Editor
Buy me a Beer ? Donate
:(){ :|:& };:

The Following User Says Thank You to smokin1337 For This Useful Post: [ Click to Expand ]
 
smokin1337
Old
#3  
smokin1337's Avatar
Recognized Developer - OP
Thanks Meter 1419
Posts: 951
Join Date: Jul 2010
Location: Virginia

 
DONATE TO ME
Can someone please test this and give some feedback.

Should work fine but i wannabe sure.


Like my sig ? Click on it to get it and other user images..!!!
My Mods:
CPU Editor
Bootanimation4U
BProp editor - Aroma Based Build.prop Editor
Buy me a Beer ? Donate
:(){ :|:& };:

 
dcb108
Old
(Last edited by dcb108; 2nd October 2011 at 01:55 AM.)
#4  
dcb108's Avatar
Senior Member
Thanks Meter 110
Posts: 175
Join Date: Mar 2011
Location: columbus
Smile testing

Quote:
Originally Posted by smokin1337 View Post
Can someone please test this and give some feedback.

Should work fine but i wannabe sure.
Im giving it a go as we speak . currently sick tweaks enabled, im gonna play around with it more.

Edit: so far ive noticed is the disabling and enabling of the "Enable/Disable Configurator" setting, the command seem to be backwards 2 will actualy enable it and 1 will disable it.

I get a error sometimes when making selections like sd card read ahead, mount opts, there may be more however they can be disabled without an error

/system/xbin/configurator Cannot creat /sys/devices/platforms/leds-pm8058/leds/buton-backlight currents: directory nonexistent.

(Theres a similar one but it has to do with cpu I cant remember)
Also im on aosp 2.3.5 cm7 nightly 204-Hydrogenmod with demonspeed v10 cfs btw virtuous and cpu setting seems to be working.
Young Dev in training and Friendly Neighborhood Crackflasher.
------------------------------------
Technology Evolves.
Android Evolves. -Paradoxxx
The Following User Says Thank You to dcb108 For This Useful Post: [ Click to Expand ]
 
smokin1337
Old
(Last edited by smokin1337; 2nd October 2011 at 02:51 AM.)
#5  
smokin1337's Avatar
Recognized Developer - OP
Thanks Meter 1419
Posts: 951
Join Date: Jul 2010
Location: Virginia

 
DONATE TO ME
Quote:
Originally Posted by dcb108 View Post
Im giving it a go as we speak . currently sick tweaks enabled, im gonna play around with it more.

Edit: so far ive noticed is the disabling and enabling of the "Enable/Disable Configurator" setting, the command seem to be backwards 2 will actualy enable it and 1 will disable it.

I get a error sometimes when making selections like sd card read ahead, mount opts, there may be more however they can be disabled without an error

/system/xbin/configurator Cannot creat /sys/devices/platforms/leds-pm8058/leds/buton-backlight currents: directory nonexistent.

(Theres a similar one but it has to do with cpu I cant remember)
Also im on aosp 2.3.5 cm7 nightly 204-Hydrogenmod with demonspeed v10 cfs btw virtuous and cpu setting seems to be working.
LOL your right it's a typo enable should be 2 and disable 1, sorry i'll fix it.

The errors are ok its just a check i forgot about it doesnt effect anything.

I uploaded a fix for the enable disable thing.


Like my sig ? Click on it to get it and other user images..!!!
My Mods:
CPU Editor
Bootanimation4U
BProp editor - Aroma Based Build.prop Editor
Buy me a Beer ? Donate
:(){ :|:& };:

 
dcb108
Old
#6  
dcb108's Avatar
Senior Member
Thanks Meter 110
Posts: 175
Join Date: Mar 2011
Location: columbus
Np happy to help .

Sent from my HTC Glacier using XDA App
Young Dev in training and Friendly Neighborhood Crackflasher.
------------------------------------
Technology Evolves.
Android Evolves. -Paradoxxx
 
marseillesw
Old
#7  
marseillesw's Avatar
Senior Member
Thanks Meter 319
Posts: 1,318
Join Date: Feb 2011
Location: Everywhere, USA
I'm willing to try this, just one question, what are the sick tweaks

Sent from my HTC Glacier using XDA Premium App
 
smokin1337
Old
#8  
smokin1337's Avatar
Recognized Developer - OP
Thanks Meter 1419
Posts: 951
Join Date: Jul 2010
Location: Virginia

 
DONATE TO ME
Quote:
Originally Posted by marseillesw View Post
I'm willing to try this, just one question, what are the sick tweaks

Sent from my HTC Glacier using XDA Premium App
Some settings i gathered to speed up everything it's all in the scripts in /etc/init.d

Some of what it does can be found here:

http://forum.xda-developers.com/show....php?t=1267956


Like my sig ? Click on it to get it and other user images..!!!
My Mods:
CPU Editor
Bootanimation4U
BProp editor - Aroma Based Build.prop Editor
Buy me a Beer ? Donate
:(){ :|:& };:

 
dementor123
Old
(Last edited by dementor123; 4th October 2011 at 09:23 AM.)
#9  
Senior Member
Thanks Meter 22
Posts: 278
Join Date: Dec 2010
Location: New York City
Works! Much thanks for this. As someone already mentioned, on exit selection, I get this error-

Please Make a Selection: 18
/system/xbin/configurator: cannot create /sys/devices/platform/leds-pm8058/leds/button-backlight/currents: directory nonexistent
/system/xbin/configurator: cannot create /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load: directory nonexistent

I did not even touch back light and nice load settings, just the oc settings. Probably you need to mount as rw?

Also op says flash 2.3 and then all patches. I think it should be 2.4.1 then all patches.

Sent from my HTC Glacier using XDA App
 
smokin1337
Old
(Last edited by smokin1337; 5th October 2011 at 03:08 AM.)
#10  
smokin1337's Avatar
Recognized Developer - OP
Thanks Meter 1419
Posts: 951
Join Date: Jul 2010
Location: Virginia

 
DONATE TO ME
Quote:
Originally Posted by chem.manish View Post
Works! Much thanks for this. As someone already mentioned, on exit selection, I get this error-

Please Make a Selection: 18
/system/xbin/configurator: cannot create /sys/devices/platform/leds-pm8058/leds/button-backlight/currents: directory nonexistent
/system/xbin/configurator: cannot create /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load: directory nonexistent

I did not even touch back light and nice load settings, just the oc settings. Probably you need to mount as rw?

Also op says flash 2.3 and then all patches. I think it should be 2.4.1 then all patches.

Sent from my HTC Glacier using XDA App
Yea i removed the nice load on 2.5 and the led must be different on your device, i will look into it and post 2.5 when i get it worked out. Thanks for the info.

EDIT:

Updated to v2.5, added undervolting and backups, removed lcd capacitive setting it will not work with this device, sorry.


Like my sig ? Click on it to get it and other user images..!!!
My Mods:
CPU Editor
Bootanimation4U
BProp editor - Aroma Based Build.prop Editor
Buy me a Beer ? Donate
:(){ :|:& };:


The Following User Says Thank You to smokin1337 For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...