Related
Ok, built a new app phone switcher (flight mode on/off) based on the cell tower location.
System automatically switches the phone OFF based on the time you set when you are at predefined location (Say Home). When you are at home, say from 10:00 PM to morning 6:00 AM no one can call your mobile. But if you are not at home, then phone is ON even at night. This also saves your battery life and privacy too.
It is working on Hermes, and I have tested it on WM5 emulators. Will NOT work on WM2003.
Please check the link to the application under my signature.
I have a question, can it only change to "vibrate" instead of turning off the phone? That would be more appropriate for me. Thanks for your answer
Nice App! How about changing call forwarding (when busy, no answer, etc...) baased on location?
If the phone could forward all calls automatically, or forward when you press "hang up" based on location it would safe battery and reduce radiation using the phone.
szturchen_pl said:
I have a question, can it only change to "vibrate" instead of turning off the phone? That would be more appropriate for me. Thanks for your answer
Click to expand...
Click to collapse
Nice Idea!, I will do my homework to find out what it takes to do that
ahlok_hk said:
Nice App! How about changing call forwarding (when busy, no answer, etc...) baased on location?
If the phone could forward all calls automatically, or forward when you press "hang up" based on location it would safe battery and reduce radiation using the phone.
Click to expand...
Click to collapse
Since the application do not keep polling for location, if it does not know the current location for some reason(reason = In the original post) then there might be problems such as wrongly 'forwarded' calls...
But its a great idea. I keep it in mind
past 21:00 hours
does not seem to work if you go past the apointed hour? radio stays connected
david.dupuis said:
does not seem to work if you go past the apointed hour? radio stays connected
Click to expand...
Click to collapse
Are you saying.. You were not at appointment time at sleeping location... And you came in late... and the phone does not turn off?
If so it is by design.. As i am not keep polling to find out the locaton. Just because then the application has to be running in the background or keep getting activated say for every 5 Minutes.
But let me know if you are saying the samething too.
not shutting off past sleep time
I think we're saying the same thing. Last night I installed the software set the home location and set the sleep time to 21:00 to 6:00. Actual time was 22:00. I expected it to shut down the radio and it did not.
Hi,
does not work for me
Install works fine, Test is OK, device went on Flight Mode and Back.
I set Sleep Location and Times and clicked Enable button.
When I want to save an error occurs lile: "InvalidCastException at Save. Please report this!"
The settings won't be saved then. I tried to manually edit the cnf file with
found cell values and True State, and saved this back to device, but when
time comes, nothing will happen.
I am on Schaps WM6 3.57a german and O2 Germany Provider.
What I was found out is, everytime I start the program it
randomly changes the location behind the dot.
Once it is xxxxx.8311 and the next time it is xxxxx.48311
May this be the culprit?
Any suggestions welcome bc I would really love this tool working
Olioaglio
david.dupuis said:
I think we're saying the same thing. Last night I installed the software set the home location and set the sleep time to 21:00 to 6:00. Actual time was 22:00. I expected it to shut down the radio and it did not.
Click to expand...
Click to collapse
OK for this i have to implement a constant polling mode.. Which i will do it for next release.
Olioaglio said:
Hi,
...The settings won't be saved then. I tried to manually edit the cnf file with
found cell values and True State, and saved this back to device, but when
time comes, nothing will happen.
...Once it is xxxxx.8311 and the next time it is xxxxx.48311
May this be the culprit?
Olioaglio
Click to expand...
Click to collapse
If you don't mind can you send me your cnf file?
Since your Location keep fluctuating... May be its failing to ON/Off
So when you are at home (Sleep Location) and if you keep refreshing the location (Button Refresh Location) you are getting diffent values?
Let me know
Something similar, sort of
I use Teog's CallFilter instead. What I like about it is that I can set the filter to only allow calls through from specific people. This way if there's an emergency in the middle of the night I'll get the call. It doesn't work on a schedule, you have to run it when you want it and disable it when you don't. But it is a simple app that runs with just a click after it's configured and has worked over several different operating systems. Would work well for meetings, movies, etc. too.
tytnguy said:
If you don't mind can you send me your cnf file?
Since your Location keep fluctuating... May be its failing to ON/Off
So when you are at home (Sleep Location) and if you keep refreshing the location (Button Refresh Location) you are getting diffent values?
Let me know
Click to expand...
Click to collapse
Check PM
Olioaglio
Hi tytnguy,
thanks for fast PM. You were abolutely right with the idea of interfering date format. I customized my HTC Home with the SDTe Override string (by HTCustom Proggie) to display the week day, which turned out to be the culprit that your prog did display the error message at Save.
So I deleted this in registry and the app now saves without a glitch. So I set the time (1 minute in the future) again and saved. When the time comes, the turning wheel appears, but nothing happens. I figured out, that the Status page says: "Out of location so NOT switching off the phone", so this is maybe, why the program starts but do not turn to flight mode as suggested.
Since I set the home location and did not even move a meter from this position I cannot imagine, why it does display I am not in the sleep location?!?! Any ideas
Olioaglio
edit: It WORKED now for the first time !!!! Great!!
Just wondering, what happens when I just do the phone in another room in my flat, where maybe it is in another broadcast cell....
Think, it won't work then!! Is it possible to create, let's say, kind of a radius, where the program activates??
So my sleep or home location is maybe a bit more then just one room or even my desk
edit 2: May it work, if I set the SDTe string to override again, after saving correctly? Or will the app then stop working again? Sorry for those dumb questions though.
Thanks anyway!!! Great program!!
tytnguy said:
OK for this i have to implement a constant polling mode.. Which i will do it for next release.
Click to expand...
Click to collapse
Would constant polling mode affect the battery drain significantly?
If yes, I would suggest a check box in your proggy to toggle this option on/off
Just my 2 cents
Olioaglio
Olioaglio said:
...what happens when I just do the phone in another room in my flat, where maybe it is in another broadcast cell....
May it work, if I set the SDTe string to override again, after saving correctly? Or will the app then stop working again? Sorry for those dumb questions though.
Click to expand...
Click to collapse
Olioaglio,
Can you set the home location from the other room?
If you change the date format to someother non standared format it will not work. Since program needs to keep saving the stuff on each try.
Update 1.0.1
Multiple location on the schedule: If you want to set more than one location as you 'Sleep Location' you can do it now. On the sleep location box bring the context menu up, and choose 'Append to location' now add the new location to the list. You can add any number of sleep locations!
Now if you were not at home at set time, system will keep polling based on the poll time you specify. So as soon as you reach home your phone will be switched off.
If you turned on your phone manually after the rk-Sleep set it to flight mode, then your phone remains on till next scheduled sleep session
Olioaglio said:
Would constant polling mode affect the battery drain significantly?
If yes, I would suggest a check box in your proggy to toggle this option on/off
Just my 2 cents
Olioaglio
Click to expand...
Click to collapse
Olioaglio,
No it should not make any significant affect on the battery.
I have programmed it to poll only on sleep time if you are not at home. But since I am not running the program in the background, it is ok.
The new update I release just keeping your problem in mind. So you go to both your rooms where you get different towers. Update both as your sleep location.
tytnguy said:
Olioaglio,
No it should not make any significant affect on the battery.
I have programmed it to poll only on sleep time if you are not at home. But since I am not running the program in the background, it is ok.
The new update I release just keeping your problem in mind. So you go to both your rooms where you get different towers. Update both as your sleep location.
Click to expand...
Click to collapse
Thanks, will monitor it...
Olioaglio
UPDATE:
OK, tested it now... Dude, the 1.0.1 really works like HELL!! I'm totally satisfied for now.
The Append function is very good thing, since I found 8 (!) different cell locations (about 3 with GSM and 4 with 3G) in my 3-room flat. They are always fluctuating even at the same place, so maybe this was the problem of the others, who tested the program with having only one location saved. But with the Append function AND the new Poll function (which also works great), it absolutely ROCKS!! Had no problem with several tests. Battery consumption with poll function really does NOT seem to be more than without poll.
Just some suggestions if you plan to make updated release. The Append function is not easy to find, I had to read your instructions three times to get it. Maybe you'll find another way. Also an extra tab with a list of all appended cells would be appreciated.
I would have another idea for an "extended" flight mode. Maybe you could add some checkboxes for Phone, Bluetooth, Wlan and Beam for - lets say - "Extended Flight Mode" options. So one could save even more battery as with just the phone function off. With the checkboxes you would have the choice what to turn off/on, when rk-Sleep will engage.
Best regards,
Olioaglio
tytnguy what about vibration mode? have you had time to check into that? Regards
I have a widget that shows me how much I have left and when I unplug it after a full charge, I have 6 hours left.
Ridiculous.
This is on auto brightness, wifi, twitter/facebook/mail updating every 15 minutes.
whenever I take my phone out the house I have to bring a charger...
bloody ridiculous.
couple of points.
1) When you leave the house, don't leave your wi-fi on! I find wi-fi to be the biggest battery drain out of everything ( expect gps)
2) I use a brightness widget, therefore when your in doors you can have it on low, then when your out doors have it on high, i assume this will use less battery then auto brightness
3) why do you need facebook updating every 15 minutes?? Do you honestly look at your phone that much when your out? change the settings so it updates every 15 when your on wi-fi at home, and every hour for when your not.
Wifi isn't an issue. I leave it on 24/7 as well as bluetooth and still can get 36 hours out od a charge. Its hooked up to wifi 20hrs a day as well.
Phil750123 said:
2) I use a brightness widget, therefore when your in doors you can have it on low, then when your out doors have it on high, i assume this will use less battery then auto brightness
3) why do you need facebook updating every 15 minutes?? Do you honestly look at your phone that much when your out? change the settings so it updates every 15 when your on wi-fi at home, and every hour for when your not.
Click to expand...
Click to collapse
thanks!
1) whats the name of this widget? sounds good
2) is there a setting for that? cant find it
I have a widget that shows me how much I have left and when I unplug it after a full charge, I have 6 hours left.
Ridiculous.
This is on auto brightness, wifi, twitter/facebook/mail updating every 15 minutes.
whenever I take my phone out the house I have to bring a charger...
bloody ridiculous.
Click to expand...
Click to collapse
1. Battery and other constantly updating widgets are one of the causes for battery drain. Get rid of it.
2. Battery widgets try to get an estimate of your typical use. They are mostly wrong in my opinion
3. I can get 6 hours of battery, yes, but only if glue the phone to my hand and use it constantly for that time
4. there are tons of battery threads around, use those suggestions (mid brightness, no live wallpaper, turn airplane on when you know coverage will be unavailable for long, etc)
5. Battery gets better in 10 days.
6. Most people can get at the very least one day of heavy usage. If you really need to hammer the battery get a spare one, they are cheap. Oh, and realize you are lucky because you CAN have a spare battery !
7. If you are using an automatic task killer, get rid of it.
callummc said:
thanks!
1) whats the name of this widget? sounds good
2) is there a setting for that? cant find it
Click to expand...
Click to collapse
1) go to the market and search brightness level, or brightness widget, there are a number of these. The best i find is brightness level by curvefish, it lets you pick a percentage and keep at that .
2) Cant remeber actually where the settings are but there is a way. But i prefer to use another widget, autosync on/off, this allows you to update every 15 when on wi-fi, but when you want to save battery, turn auto sync off and it doesnt sync ,
I suggest you use switchpro widget. its like the power control widget but with more options to turn on/off things.
I typically charged my Nokia N97 every other day or so, even though I used it frequently, and needless to say the HTC Desire doesn't have the same stamina. I was quite frustrated by it, and I started thinking of ways to save power. I came up with 19 tips, and I have actually noticed quite a difference by following them
19 Tips to Keep the HTC Desire Running a Little Longer
Nice post thanks.ill give this a go. But I have a question to do with the positioning using data or gps. I believe your stating that you should turn data off for this purpose, and let the gps do it? however my phone was set to opposite. when I changed as you were suggesting and I clicked allow gps, I had a message come up saying to turn off to conserve battery? But your saying to turn on? And have data off? Also how do you get into htc facebook settings,i cant even find it!
dingdong3000 said:
I suggest you use switchpro widget. its like the power control widget but with more options to turn on/off things.
Click to expand...
Click to collapse
yep i also use this widget
also use a free juice defender or paid ultimate juice that keeps turning on and off your 3g every now and then depending on how you schedule it, my phone with snowstorm weather widget updating every 80 minutes + 30s of 3g every 5 minutes to update mail etc and average usage lasts about 36 hours which is good enough for me
I leave my WI-FI on at home and suffer hardly any drain.
At work like today leave my Mobile network on down to 47% with just twitter usage!
Pathetic is the mobile signals drain.
MapleDouglas said:
I typically charged my Nokia N97 every other day or so, even though I used it frequently, and needless to say the HTC Desire doesn't have the same stamina. I was quite frustrated by it, and I started thinking of ways to save power. I came up with 19 tips, and I have actually noticed quite a difference by following them
19 Tips to Keep the HTC Desire Running a Little Longer
Click to expand...
Click to collapse
Ok, ive had another read of this and am now just even more confused! Are you saying to have gps turned off via settings and location aswell as data, or just having gps on? Are you saying that having gps selected via settings for the purpose of locating services uses les batty than via using data? Either way, it appeatss that the power control widget controls the gps the same as via settings. Right now ive deselected gps and the data location.
Dunbad said:
Ok, ive had another read of this and am now just even more confused! Are you saying to have gps turned off via settings and location aswell as data, or just having gps on? Are you saying that having gps selected via settings for the purpose of locating services uses les batty than via using data? Either way, it appeatss that the power control widget controls the gps the same as via settings. Right now ive deselected gps and the data location.
Click to expand...
Click to collapse
I believe this is what I'm saying:
"To let your device learn your location via wireless network triangulation requires less battery than by using the GPS for this purpose. However, using both methods simultaneously is probably not a good idea from a battery point of view. The GPS can handle this task by itself, although it will get a fix on your location a little bit slower. Also, wireless network positioning will be used to collect anonymous Google location data, which will drain the battery further. You can change this option from Settings > Location > Use wireless networks. "
In other words, to only use wireless network positioning will supposedly use less battery than by only using the GPS, but using both methods will naturally use the most juice
For me...
- Turn GPS On when I needed.
- Turn WiFi On when I needed
- Turn Bluetooth On when I needed
- Use 2G Network for standard internet, we use 3G if we want more speed such us watch video
jauhari said:
For me...
- Turn GPS On when I needed.
- Turn WiFi On when I needed
- Turn Bluetooth On when I needed
- Use 2G Network for standard internet, we use 3G if we want more speed such us watch video
Click to expand...
Click to collapse
I can get get good days heavy usage (except games) from mine, I haven't tried the 2G thing yet.
Apparently it is the connectivity thing that kills the battery, but turning off 3G, doesn't that take all the fun out of it???
If you just use it as a phone then I reckon you can get a couple of days out of it, or so I've read...
Anyone here using it? what is this app for? is it worth buying? does it give u battery life? im really interested but i cant find no videos on it on youtube. please share your thoughts.
It is worth every penny. The best app for android IMO. It is not very easy to master it, but even the basic stuff has made a vast difference too the behavior of my phone.
For example, I have extended my battery life to 38 hours simply by having it automatically go into airplane mode between midnight and 6am.
It will turn off wifi, back screen brightness down, change screen timeout to 10 seconds and give me a notification popup and sound when my battery drops below 15%.
It will turn on gps when Wavesecure is activated, something Wavesecure can't do by itself.
It will turn my ringer off when I get within 200m of the two cinemas I go to.
It turns wifi on when I get home, and off when I leave. Same for work.
It loads my music app when I plug my headphones in.
Tasker can make widgets! I have one set up to (with one press from my home screen) turn up screen brightness, turn on gps, turn up speaker volume to max, wait 2 seconds, then launch google navigation. It will then turn everything back when I exit out of navigation.
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
I would say try out the free 1 week trial. There is even a wiki and web site with extensive instructions and examples uploaded by other users. You can also import profiles as well as create your own. The really handy ones I have exported to my sd card, and e-mailed them to a friend when he bought Tasker. Not sure I helped him though as there is a steep learning curve for this app, and it is worth being patient with it to learn its ways for yourself.
I think it is worth much much more than the asking price.
Sent from my HTC Desire using XDA App
wow sounds sooo nice . i already bought full version yesterday but havnt even opened the app once . well i did open it once it seems hard to understand lol . so for all this task does the gps need to be on? or not? and can u turn off 3g?
You can turn off APN, but don't think that works well in the UK. Sorry, my knowledge of 3g is limited.
Basically, you can have tasker turn on and off nearly any feature of your phone that your want. There are two sides to tasker. The "Profile" and the "Task".
I have found it is best to first set up the "task". Say you want to save battery power at night. Select the task button and select "new". Call it "power save" or something. Select the + symbol and select "Net". In this menu, pick "Airplane mode" and select to ' on'. Then hit ok, then save.
Now to create the 'Profile' where you define the contexts that will activate the "power save" task you just created.
Select 'new' then select the 'time' context. Enter the time you would like to have your phone go into airplane mode. After hitting 'ok' it will take you to the profile page where you set up what now happens between the times you just specified. From the drop-down at the to of the page, select the "power save" task you created earlier. Hit 'ok'.
Done. Your Tasker will now shut off all your radios between the times you entered.
Sent from my HTC Desire using XDA App
Worth every penny. I use it to:
- turn on GPS for programs that need it (turns back of when editing the program)
- turn notifications off when starting desk clock
- change volume when connecting head phones
There are endless possibilities, try it and then buy it.
i've bought it for little things but want it to be able to handle 3g data which it doesn't
i,e turn on wifi, if no conn after 10 secs, turn on 3g, auto sync for a min, then turn data off.
works fine and dandy with wifi, but not 3g.
tommo123 said:
i've bought it for little things but want it to be able to handle 3g data which it doesn't
i,e turn on wifi, if no conn after 10 secs, turn on 3g, auto sync for a min, then turn data off.
works fine and dandy with wifi, but not 3g.
Click to expand...
Click to collapse
You need APNDroid to disable 3G.
tasker really is worth every penny!
Wort every cent. Must have
I used to check periodically (every 3 minut) if my car Bluetooth near. If yes connect and and hold on the connection. If disconnect wait 15 minutes and seek again... save really battery... fantastic...
Sent from my HTC Desire using Tapatalk
Tyderion said:
You need APNDroid to disable 3G.
tasker really is worth every penny!
Click to expand...
Click to collapse
it still doesn't work. it turns apndroid on, but 3g flashes up then dissapears.
wnp_79 said:
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
Click to expand...
Click to collapse
Now that i like. This app sounds amazing.
Thanks for bringing it to my attention.
wnp_79 said:
It is worth every penny. The best app for android IMO. It is not very easy to master it, but even the basic stuff has made a vast difference too the behavior of my phone.
For example, I have extended my battery life to 38 hours simply by having it automatically go into airplane mode between midnight and 6am.
It will turn off wifi, back screen brightness down, change screen timeout to 10 seconds and give me a notification popup and sound when my battery drops below 15%.
It will turn on gps when Wavesecure is activated, something Wavesecure can't do by itself.
It will turn my ringer off when I get within 200m of the two cinemas I go to.
It turns wifi on when I get home, and off when I leave. Same for work.
It loads my music app when I plug my headphones in.
Tasker can make widgets! I have one set up to (with one press from my home screen) turn up screen brightness, turn on gps, turn up speaker volume to max, wait 2 seconds, then launch google navigation. It will then turn everything back when I exit out of navigation.
It will, on weekdays, text my girlfriend at a certain part of my journey home after work. That way my dinner is ready when I get home!!!
I would say try out the free 1 week trial. There is even a wiki and web site with extensive instructions and examples uploaded by other users. You can also import profiles as well as create your own. The really handy ones I have exported to my sd card, and e-mailed them to a friend when he bought Tasker. Not sure I helped him though as there is a steep learning curve for this app, and it is worth being patient with it to learn its ways for yourself.
I think it is worth much much more than the asking price.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Wow sounds like you have a good understanding and has some good stuff. I don't know if you can, but I posted a page where maybe people can leave profiles for those of us who are a bit more chronologically challenged.
This is the greatest
I use tasker for everything. I am very forgetful so I have it pop up astrid tasks when I leave the house or work. The quiet mode works well for work and there is even a way to auto check in to foursquare.
Worth every penny, it makes your phone 10 times better and is a must have app.
I have profiles that do the following:
-During work hours and within range of the office set Vibrate, turn off wi-fi.
-When within range of home turn on Wi-Fi
-If at home after certain time in evening go silent
-When leaving car (detected by bluetooth connection to stereo), store time and location. Have icon on desktop to retrieve info and show on map to find car.
-When on call (by checking diary) if a colleague calls always ring regardless of silent.
-Say caller/texter name
-Send magic packet to wifes phone to report location and show on map (handy when shopping)
Plus many other scripts....
I find that this program has a pretty high learning curve...
Is there a wiki I can read up or a way to import other people's profiles?
YoYoost said:
I find that this program has a pretty high learning curve...
Is there a wiki I can read up or a way to import other people's profiles?
Click to expand...
Click to collapse
http://tasker.dinglisch.net/
Using "Cell Near" instead of GPS
I was using Tasker to turn WIFI on and off based on GPS locations. However, I found an alternate method that does not use GPS calls (and waste battery use). Instead, I am now using "Cell Near" to find the cell tower near home and turn WIFI off when I am not within distance of it.
I have posting walkthroughs of all of the most useful profiles I have collected. Check it out at http://dbilliter.blogspot.com
Tasker rules my phone... With all the taks i made.... Love the app!!!
You can do almost everything if you know how to use it... Little variable programming and your phone will get his own life haha...
GREAT APP
the_ahmadzais said:
Anyone here using it? what is this app for? is it worth buying? does it give u battery life? im really interested but i cant find no videos on it on youtube. please share your thoughts.
Click to expand...
Click to collapse
If you're interested I've put together this thread http://forum.xda-developers.com/showthread.php?t=1018245 on how to use the CPU Profiles - I hope it's good enough to replace SetCPU!?
Let me know what you think.
problem with deleting profiles
i am also new to tasker. made a simple sms schedular, which worked fine, but when i deleted all the profiles, contexts and tasks...somehow sms is still going on scheduled time... tried to clear data, force stop it, but still sending sms.
any suggestion.
thanks
The information in here is only tested on the ICS (Stock based roms) and (stock or repacked kernels). It's not been tested on any other roms. So, if you want to apply the tweak that I provided in here, do it with your own risk. I'm here to help or share the good and bad things but not responsible for any bricked phones.
Update: Wifi Sleeps well! But you need to understand what's going on here.
We are expecting wifi to sleep when the screen is off and 'Keep Wi-Fi on during sleep' is set to 'Never'.
But wifi does not go to sleep mode even every options are satisfied on ICS stock roms with Stock or Rogue repacked Kernel).
I tried many ways to make it sleep (from settings, from build.prop tweaks and from through the init.d script) but none of those worked. Only the way to make it sleep is turning off the wifi manually before turning off the screen.
There is one workaround that making the wifi sleep during the screen off. The method is using Wifi Fixer app from google market but it does not work 100 %. Sometimes, it makes wifi sleep but other times, nothing happens.
So, anyone who is expecting wifi sleeps by any tweaks or by wifi option changes, don't expect it any more. There's no hope yet. For me, I'm waiting for the next build to test this function out.
There's some additional information at http://forum.xda-developers.com/showthread.php?t=1625299 and check wifi section.
If anyone knows the method to make wifi sleep on stock rom/kernel, please post your info here. There are some tools that we can use to check wifi is sleeping or not during the sleep mode. I'm currently using Battery Widget Pro.
Because I've tested lots of things so far, if you know the methond or if it works on your phone, please show how it works and screenshots if possible.
[Update] Wifi sleeps finally as I wanted!
OK. Here is the story.
One specific app mis-led me to wroing conclusion - Battery Monitor Widget Pro (v2.2.4). This app shows that wifi is always on if wifi is turned on. This app does not exclude the time wifi was turned off during the sleep mode.
Plus, there's some pre-allocated time to make the wifi sleep after the screen turned off. For most of Android phones, it seems like this value is 15 minutes. So, even the screen is off, wifi does not enter to the sleep mode immediately. Phone spend 15 minutes after the screen off, and kill the wifi session if wifi option was set to never (keep wi-fi on during sleep).
How to check whether wifi sleeps or not :
Do NOT use Battery Monitor Widget to check the wifi status.
You can easily check it from the stock Battery app. Settings > Battery > click on the graph > check wi-fi status if there is any gap (means sleep or turned off).
Then, How to change the default 15 minutes value to make the phone sleep early?
Update 5/16/12 - Fixed wifiSleepWait tweak, so it works without any manual database handling. The below is just for informational. Now you don't need to manually create a row into the table.
There were one or two information available on XDA but nothing is correctly applicable to Epic 4G Touch. So, here is the tweak that I made for E4GT.
To do this you will need root explorer -
1. move to the folder, /data/data/com.android.providers.settings/
2. copy the databases folder to your /sdcard
3. Move to /sdcard/databases click settings.db
4. select secure
5. it will ask you which editor you are going to use. If you installed sqlite then select sqlite, otherwise use root explorer (only at first time)
6.Check if there is column name 'wifi_idle_ms'. If there is, then change the value to whatever mili seconds you want. For example, 10000 = 10 seconds, 30000=30seconds. If you want to wait 15 minutes until wifi sleep, then 15*60000 = ?
7.If there is no 'wifi_idle_ms' row, the click long time anywhere on the table. It will show you the actions, select new record. Do not change _id, put the 'wifi_idle_ms' in the name field (without quote sign) and put the value explained above. For me, I just put the 10000 (for 10 seconds). Click save.
8. Now you can see the value changed or row created. Exit editor and move up to /sdcard. Copy (or Move) databases folder to original location (/data/data/com.android.providers.settings/). Sometime, the copy is not successful because database is currently being used. If it's not copied, then try it agaon to copy until it's successful. For me, it was successful on second try.
9. Reboot the phone and click the power button shortly to change to screen off mode(sleep mode).
10. After the time passed defined in above, click the power button again and notice that phone was working on 4G or 3G mode and not wifi mode. Phone will try to reconnect wifi after the screen turned on.
11. That's it. Now you can change the idle time until wifi turned off as much as you want.
The above was the manual way to change the wifi_idle_ms value from database. But there is another way to change this values automatically. The method is using sqlite and of course you need to know the sql query.
In my case, I tried to add this sqlite query statement into my init.d tweak but only update sql command worked and insert was not successful. Maybe I need someone's help to get this insert statement successful.
In here, I'm adding only the update tweak which can be added into init.d. What this mean is, at first time you have to insert the database row manually but once it's created, you can update the idle value during the boot thru init.d script.
Because you don't need to run this init.d script everytime on boot, once you update the value, change the permission to 644 and it won't run again until you change it back to 755.
To run this init.d script, you will need sqlite3 - http://chensun.net/android-development/install-sqlite3-on-google-nexus-one/54/
Download it and simply move to /system/xbin foler. Assign the same permission like other files on the same folder.
Of course, you also need root access and busybox.
The init.d script will be found at http://forum.xda-developers.com/showthread.php?t=1625299
70wifiSleepWait_kobridge.zip (previous version)
70wifiSleepWait_kobridge.v2.zip (current)
kobridge said:
This info is just for the ICS (Stock based roms) and (stock or repacked kernels) users.
We are expecting wifi to sleep when the screen is off and 'Keep Wi-Fi on during sleep' is set to 'Never'.
But wifi does not go to sleep mode even every options are satisfied on ICS stock roms with Stock or Rogue repacked Kernel).
I tried many ways to make it sleep (from settings, from build.prop tweaks and from through the init.d script) but none of those worked. Only the way to make it sleep is turning off the wifi manually before turning off the screen.
There is one workaround that making the wifi sleep during the screen off. The method is using Wifi Fixer app from google market but it does not work 100 %. Sometimes, it makes wifi sleep but other times, nothing happens.
So, anyone who is expecting wifi sleeps by any tweaks or by wifi option changes, don't expect it any more. There's no hope yet. For me, I'm waiting for the next build to test this function out.
There's some additional information at http://forum.xda-developers.com/showthread.php?t=1625299 and check wifi section.
If anyone knows the method to make wifi sleep on stock rom/kernel, please post your info here. There are some tools that we can use to check wifi is sleeping or not during the sleep mode. I'm currently using Battery Widget Pro.
Because I've tested lots of things so far, if you know the methond or if it works on your phone, please show how it works and screenshots if possible.
Click to expand...
Click to collapse
Maybe it cannot sleep when sync is on?
I imagine that wifi is needed for weather/news/etc updates and clould2device services.
Wait...the options are changed on ICS correct? Meaning its never off during sleep on Gingerbread and always on during sleep on ICS or am I not understanding?
Huh? Mine sleeps just fine unless I set it to never sleep.
That aside - you are aware that you're better off leaving wifi on anyway, right? It uses less battery power than the cell radio does. Just an FYI
Finally figured out everything!
Took whole one day to find out everything!
First, most importantly, WiFi sleeps!
I'm going to explain what happend and how we could make wifi sleeps better in op section.
edit. Partially updated. I'm checking now if I can make a script to change the leading time that is required before wifi actually sleep.
kobridge said:
Finally figured out everything!
Took whole one day to find out everything!
First, most importantly, WiFi sleeps!
I'm going to explain what happend and how we could make wifi sleeps better in op section.
edit. Partially updated. I'm checking now if I can make a script to change the leading time that is required before wifi actually sleep.
Click to expand...
Click to collapse
All updates are done! Enjoy your ability having control over wifi idle time!
You know, upon further testing, idle battery drain on 3g is pretty damn good as well. I am in a lousy signal area during the day and I have been leaving wifi on 24/7 so a lot of battery got wasted from the phone searching and finding wifi to connect to. Tomorrow I will disable wifi while at work but...
Sent from my SPH-D710 using Xparent Blue Tapatalk 2
JohnCorleone said:
You know, upon further testing, idle battery drain on 3g is pretty damn good as well. I am in a lousy signal area during the day and I have been leaving wifi on 24/7 so a lot of battery got wasted from the phone searching and finding wifi to connect to. Tomorrow I will disable wifi while at work but...
Sent from my SPH-D710 using Xparent Blue Tapatalk 2
Click to expand...
Click to collapse
Based on your screenshot, it seems like you are wasting the battery by turned wifi on wifi 24x7.
kobridge said:
Based on your screenshot, it seems like you are wasting the battery by turned wifi on wifi 24x7.
Click to expand...
Click to collapse
I agree. While I am around the house say going to the store its minimal but when going to work in NYC I am picking up wifi i cant connect to every 10 feet so its definitely negatively effecting battery
nabbed said:
Maybe it cannot sleep when sync is on?
I imagine that wifi is needed for weather/news/etc updates and clould2device services.
Click to expand...
Click to collapse
I think there is a little difference of understand about what has the control over other services/fuctions.
Usually weather/news apps are dependent on wifi or 4g services. Those apps usually do not control the wifi or 4G and many times only able to communicate wifi or 4G are turned on. Those services cannot hold the wifi/4G connections even those services are still running.
KCRic said:
That aside - you are aware that you're better off leaving wifi on anyway, right? It uses less battery power than the cell radio does. Just an FYI
Click to expand...
Click to collapse
That's not true. It's totally based on the signal strength. Usually 3G is not fast but do not use battery as much as wifi when the signal is weak on both wifi and 3G.
you on a roll with these threads kobridge! good work and thanks!
70wifiSleepWait_kobridge.v2.zip released
Now you don't need to manually insert the table row to use this tweak.
This tweak file is a complete set by itself. By running the tweak file, you can change or create the wifi idle timer on/into the database.
Related thread and where to download this tweak - http://forum.xda-developers.com/showthread.php?t=1625299
Not to question yiur style kobridge, but I beleive there is a spelling error in the tittle =D
Sent from my SPH-D710 using xda premium
krisI0N said:
Not to question yiur style kobridge, but I beleive there is a spelling error in the tittle =D
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Looks like he fixed it just for you.
[wifi][Tweak]Chage Wi-Fi idle time before sleep (title changed)
Edit: Well, not ^^^ ALL of it is fixed yet.
krisI0N said:
Not to question yiur style kobridge, but I beleive there is a spelling error in the tittle =D
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
tdunham said:
Looks like he fixed it just for you.
[wifi][Tweak]Chage Wi-Fi idle time before sleep (title changed)
Edit: Well, not ^^^ ALL of it is fixed yet.
Click to expand...
Click to collapse
Thank you both of you! Sometimes, simple mistake is not to catch because it's too simple!
will this tweak work if I set wifi to "only when plugged in"
edlivian said:
will this tweak work if I set wifi to "only when plugged in"
Click to expand...
Click to collapse
I think the right answer is No.
When phone is plugged in - wifi is always connected even after the screen turned off. So, this tweak would not work while phone is plugged in.
When phone is unplugged - wifi will stay offline always. So, this tweak is not applicable.
If you set the option to "Always" - wifi will stay connected during the screen off. So, this tweak does not work.
If you set the option to "Never" - This tweak only works for this option.
The purpose of this tweak is minimizing the waiting(idle) time until wifi moves to sleep mode after the screen turned off.
Kobridge, i came through this topic after some searching for a problem of mine.
I see you know some basics...
If you have some time, take a look at this... that wifi issue is driving me really mad !!!
http://forum.xda-developers.com/showthread.php?t=1673514
thnx in advance
morx said:
Kobridge, i came through this topic after some searching for a problem of mine.
I see you know some basics...
If you have some time, take a look at this... that wifi issue is driving me really mad !!!
http://forum.xda-developers.com/showthread.php?t=1673514
thnx in advance
Click to expand...
Click to collapse
For this, I believe it's related to the value of wifi.supplicant_scan_interval which is normally defined at build.prop.
Check out the value from there.
These days the value 180 (3minutes) are normal for tweaking purpose. But for EPIC 4G Touch's case, it's default is 5seconds (causing lots of battery drain if you are moving around).
For example, if wifi is not available from some location, then your phone will try to searchthe available wifi network after x amount of times. If this value is too big, then it will look like wifi is not connected (so most of you, just try to reconnect the wifi manually before time comes). If the value is too small, again it causes the battery drain.
Once the wifi is connected, it keeps the connection based on the wifi policy. But if the connection is lost, then it will try again to search!
First of all, REALLY REALLY REALLY Really thank you for the reply mate.
My wifi supp value is set at "10"
I know this value only works when there are not any "known" access points in range.
The thing is, that it NEVER connects with screen off or on when i get back in range.
It only does it when i go to wifi settings (refreshes the list and connects without touching anything more!).
(of course, my wifi battery saving policy is set to "never" while screen is off)
Wifi stays on but it freezes AP scanning, while screen is off i guess.
Would a logcat help? Any tips about how to capture a good log about that issue?
Tasker
I found this cool app Tasker. It can do functions defined by you on meeting the circumstances you have defined. Like, I have a profile of enabling GPS on openining of maps and disabling afterwards.
Description:
Automate everything from settings to photos, SMS to speech ADC2 prize winner. Total Automation, from settings to SMS ADC2 finalist!
* Triggers: App, Time, Day, Location, Hard/Soft State, Event, Shortcut, Widget, Timer,Plugins
* Actions: 200+ built-in, plugin support
* Tasks: loops, variables, condition
* Scenes: design your own screen overlays,dialogs even simple apps
Play Store Link:
https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en
Noob/Beginners Guide To Tasker:
http://forum.xda-developers.com/showthread.php?t=1110775
This is illegal, if you cant buy an app dont use it.
It's a paid app
WORTH EVERY PENNY
I have automated mine to do the following
As soon as I enter my work car park, it drops the volumes, switches off WIFI
I leave my work car park, volume to max,
I enter home, WIFI on, Volume max
after 11pm - 6.30am everything on silent, wifi & data off
then when i scan my NFC tag in the car, switches on GPS, loads co pilot
re-scan tag, turns off GPS and closes co-pilot
winwiz said:
It's a paid app
WORTH EVERY PENNY
I have automated mine to do the following
As soon as I enter my work car park, it drops the volumes, switches off WIFI
I leave my work car park, volume to max,
I enter home, WIFI on, Volume max
after 11pm - 6.30am everything on silent, wifi & data off
then when i scan my NFC tag in the car, switches on GPS, loads co pilot
re-scan tag, turns off GPS and closes co-pilot
Click to expand...
Click to collapse
Sounds cool
But mine is too extra complicated to share, I now have over 30
But the most i like is nightmode,
It make brightness 10/255 and opens an app screenfilter
It makes brightness extremely low and this all happens from 12am-3 am
IF YOU LIKE MY WORK, THANK ME BY THE BUTTON BELOW
Anyone knows what effect this has on battery life?
It doesnt waste battery that much, why dont.you try it and see battery stats
IF YOU LIKE MY WORK, THANK ME BY THE BUTTON BELOW
rickythefox said:
Anyone knows what effect this has on battery life?
Click to expand...
Click to collapse
Was thinking the same. Any partial/wakelock issues caused by the program constantly assessing the environment. As it happens I am thinking of using the program to reduce battery drain and shutting down WiFi when out of range of home networks but if it's negated by the situation above it seems pointless for my needs.
Any one care to comment?
I've been using Tasker for a couple of years accross 4 different devices now (X10i, DHD, TF101 and GS3). I have a lot of profiles set up to do various different things and I can honestly say I've never seen a noticeable effect on battery life.
That said though I don't use the GPS location state at all. I imagine that particular state would drain battery pretty quickly. I use the WiFi Near state a lot though and, as I've said, never really noticed a detrimental drain on the battery.
I suppose it depends on what you do with it but overall IMO it's a very well written app. Extremely useful too.
Sent from my GT-I9300 using Tapatalk 2
Waiting for app sale. The price is slightly higher than what I'm prepared to spend, especially because there is a free alternative from Microsoft called on{X}: http://techcrunch.com/2012/06/05/onx/
SunjinSak said:
I've been using Tasker for a couple of years accross 4 different devices now (X10i, DHD, TF101 and GS3). I have a lot of profiles set up to do various different things and I can honestly say I've never seen a noticeable effect on battery life.
That said though I don't use the GPS location state at all. I imagine that particular state would drain battery pretty quickly. I use the WiFi Near state a lot though and, as I've said, never really noticed a detrimental drain on the battery.
I suppose it depends on what you do with it but overall IMO it's a very well written app. Extremely useful too.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Yep! This is what I was hoping to use it for too. My betterbatterystats has identified my Wifi as the one real drain on what is still a very good battery life. So although I could turn it off myself I just know I will forget to turn it back on at home and would like a program to do it for me. BUT if one negates the other it's not worth the effort.
Greedyfly said:
Yep! This is what I was hoping to use it for too. My betterbatterystats has identified my Wifi as the one real drain on what is still a very good battery life. So although I could turn it off myself I just know I will forget to turn it back on at home and would like a program to do it for me. BUT if one negates the other it's not worth the effort.
Click to expand...
Click to collapse
Well your WiFi has to be on to use the WiFi Near state. You could potentially combine it with a Time state too though. Just for example you could have Tasker turn WiFi on for 1 minute once an hour to check for your network(s) then either turn off again if no network detected or connect and remain on if a network is detected... if that makes any sense!
It would save battery compared to leaving WiFi on all the time.
Sent from my GT-I9300 using Tapatalk 2
What effect does it have on, I have a task to turn of Wi-Fi during 10am and 1pm; but I try to turn on Wi-Fi during this period. Will it automatically turn it off again, or allow me to continue to use Wi-Fi?
SunjinSak said:
Well your WiFi has to be on to use the WiFi Near state. You could potentially combine it with a Time state too though. Just for example you could have Tasker turn WiFi on for 1 minute once an hour to check for your network(s) then either turn off again if no network detected or connect and remain on if a network is detected... if that makes any sense!
It would save battery compared to leaving WiFi on all the time.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Perfect sense. Thank you.
T__ said:
What effect does it have on, I have a task to turn of Wi-Fi during 10am and 1pm; but I try to turn on Wi-Fi during this period. Will it automatically turn it off again, or allow me to continue to use Wi-Fi?
Click to expand...
Click to collapse
It will allow you to continue to use it. That sort of profile works as a toggle based on the time state so at 10am it will turn it off - but only at 10am. If you were to turn it on again straight away it would stay on until you either turn it off manually or another profile kicks in which is set to turn it off again. The same goes for anything else such as ringer/silent/vibrate, mobile data, GPS etc.
@Greedyfly: you're welcome
Sent from my GT-I9300 using Tapatalk 2
You guys can try Llama...does the same thing and cost nothing....i am using it for couple of days and it is good.
Indian_dil said:
You guys can try Llama...does the same thing and cost nothing....i am using it for couple of days and it is good.
Click to expand...
Click to collapse
+1
Tasker can do wonders...but it requires you to be some kind of Tasker-scientist to get things done. I recently discovered Llama as well. It's free and simple but capable.
Yeah Tasker does have a reasonably steep learning curve admittedly. By no means insurmountable to most though.
I suppose it depends on what/how you want to automate. Tasker is very powerful but not so simple. Llama is free and easier to use but no so powerful.
Both are good automation solutions. Locale is another one to check out.
Sent from my GT-I9300 using Tapatalk 2
I've been using Tasker for the best part of a year now, awesome piece of software. Negligible impact on battery life and it's astoundingly powerful. A few examples of profiles I currently use - detects headphones/bluetooth headset and reads any text and who sent it, useful when cycling or out on the bike. Disables screen lock when at home, I use the phone as a control for my media centre so it remains unlocked at home and turns the screen on as soon as the handset is picked up, controls a variety of connection states according to location and time.
These are just scratching the surface. On top of this I've had direct dealings with the dev on a couple of occasions, genuinely nice bloke who does his damndest to solve problems as quickly as possible. All in all, this and Titanium backup are by far the two most useful pieces of software I've bought:good:
wind0zer said:
+1
Tasker can do wonders...but it requires you to be some kind of Tasker-scientist to get things done. I recently discovered Llama as well. It's free and simple but capable.
Click to expand...
Click to collapse
But Tasker is better, even if its complicated
Thats the reason i gave a link to a noob friendly guide
Press the "Thanks" button below if I've helped.
I love tasker even if it drains my battery(but it doesn't)
Press the "Thanks" button below if I've helped.