inspired by the message
ae485 @ 30.01.2015, 12:54
finally exhausted narzanom devouring resources expressed in just in front of the battery charge decreases in ibooks (while airplane mode, all that is possible is turned off, the screen is 20%) and the reluctance to alter until 8.1.3 began to dig.
DetailedBatteryUsage set and immediately saw that locationd otzhiraet 63% of resources used.
on this until butted, for location services in the settings disabled. restart the daemon it is not clear how. I used to do it in SysInfoPlus. but he ios8 does not work ...
How to unload the system processes in iOS
Unload the system service's easy - just register the team and the right way to the plist file of the service
(cm.Examples of possible commands in the Terminal33rd and 34th example). However, after a reboot process will be started again!
What to do if we need to do so after the restart process will not run and at the same time, we could activate it at any time ?!
How to make sure that the process was unloaded and after restart is not "eat" your system resources? You can edit the key "RunAtLoad" in service plist-file. This plist can be found at
/ Library / LaunchDaemons /or
/ System / Library / LaunchDaemons /):
<key>RunAtLoad</ key>
<true />
true change to
false . However, keep in mind that this option does not suit everyone, as devaysa after restarting the service does not run at the right time it will not work!
Therefore, instead of editing "RunAtLoad" you can add a key "Disabled":
<key>Disabled</ key>
<true />
Then after the restart service is loaded, but will be turned off. At any moment we can turn it on.
Generally it is best to write a script that load / unload service.
Here is an example of the program f.lux
Enable Service + Service devaysa loaded after a reboot, and will be active #! / bin / sh
cd / Library / LaunchDaemons /
plutil -key Disabled -false org.herf.flux.plist
/ Bin / launchctl load org.herf.flux.plist
exit 0
Turn off the service, the service is loaded after a reboot devaysa, but will be inactive #! / bin / sh
cd / Library / LaunchDaemons /
/ Bin / launchctl unload org.herf.flux.plist
plutil -key Disabled -true org.herf.flux.plist
exit 0
cd / Library / LaunchDaemons /- specify the path where is our service (this can be
/ Library / LaunchDaemons /or
/ System / Library / LaunchDaemons /)
/ Bin / launchctl- a utility that runs on / off service
load (or unload)- load / unload service
org.herf.flux.plist- what specific service edit
plutil- a utility that allows you to edit text documents. To start it is required to install from Cydia package
Erica Utilities. Otherwise nothing will happen!
-key Disabled -true org.herf.flux.plist- this means that a file with our service (in this case org.herf.flux.plist) adds key "Disabled" with the value "true" (or "false", depending on our preferences):
It is inserted into the plist file
<key>Disabled</ key>
<true />
Afterword: In order not to run the terminal every time you want to run this script, I made no application icon. They do not appear on the desktop, but feel free to run through tweak Activator.
Well, okay, I will not clutter up extra infoy :) Who is interested in how to create such a program, write to the PM.
Post has been editeddirectorgeneral - 30.01.15, 23:34