• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Voltage Control - A word of caution

Hawker

Android Expert
Voltage Control v4.9.10 and later now gives you the option to store your settings as an init.d script (as usual) or as a startup service.

init.d script
This, in my opinion is the best one to choose. It keeps things simple, allowing you to see your settings in one single file if you need to, and gives you more flexibility in swapping previously saved scripts over, turning settings off etc. using root explorer or similar. However, the drawback of this method lies in the way Linux executes init.d scripts on startup. This is done on an ascii character value basis, and these scripts get executed in a numeric-alphabetic order. The file VC creates is called S91voltctrl. Therefore, if a file exists after this in init.d folder that also adjusts any settings, then these will be implemented as well as/instead of your VC settings.

Startup service
The mechanism of how this is done is a bit of a black box to me at the moment. Suffice to say, after all init.d scripts have completed, media scanning is done etc. VC then loads its settings as a default profile. Where the profile is stored and how exactly this is run, I'm not quite sure yet. Obviously this has the benefit of guaranteeing that whatever settings you put in place into VC will be the settings that will actually be in place on your device.

Now, the point of this post, is for those of you who adjust your VC settings frequently, and perhaps select the "save as boot settings" option as a matter of course, before testing. This is never recommended, but if you are using the Startup Service method, then D O N ' T ! ! !
Historically, VC has provided a CWM flashable zip on the root of the SD card called vcremoveboot-CWM.zip. This is your get-out-of-jail card in case things go wrong. I've examined this script, and all it does is to remove /system/etc/init.d/S91voltctrl. It does not remove any Startup Service options. So if you have saved your settings as a startup service, you will no longer have this to fall back on. The only way I can see to remove these Startup Service settings is by choosing the Remove boot settings option in VC itself, but if your phone can't boot due to badly chosen settings, then it would seem you are stuffed! I would hope that a later version of VC will address this shortcoming.

I can see the possible advantages of the Startup Service option, but for me, init.d is still the way to do it. Its far more flexible and way safer.
 
I've got the 4.9.10 version now - where do I find the options to store settings? Wanna make sure it stays the init.d way
 
When you select the save as boot settings option, it will pop up the 2 options allowing you to select the one you want.
 
Also you cannot use the lulzactive app in conjunction with Voltage Control unless you use the init.d script option for saving it would seem. :(
 
So before reading this thread, I did exactly what you suggested I shouldn't.

The only way I can see to remove these Startup Service settings is by choosing the Remove boot settings option in VC itself

I selected the Remove Boot Settings Option but I can't get the option to save in init.d folder. Any idea how to get this back?
 
So before reading this thread, I did exactly what you suggested I shouldn't.

I selected the Remove Boot Settings Option but I can't get the option to save in init.d folder. Any idea how to get this back?

Is your app up to date? It's a relatively new addition.
 
Is your app up to date? It's a relatively new addition.

Yes, I tried to uninstall it tonight and then reinstall. Can you remember if you get to choose to save it to init.d folder? I thought when I originally installed it, I had that option or to save it to startup. I did save it to startup originally but tonight I removed it from boot. So I guess the next question is does it automatically save it to the init.d folder? After I changed my config in the voltage control app, I went to CPU master and it showed my new settings.
 
Back
Top Bottom