yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] jhuff83:
I'm using an app called automate it where when wifi is on, data gets disabled. Also, when my screen is off, I have sync disabled until the screen goes back on. Basically emails will not alert you when the screen is off due to sync being disabled. Check out that app since it's like a tasker app.
[Android Apps and Games] The Lord Vader:
That would be really nice!!

Just a simple function off when screen is off and with the ability to set throughput data like with WiFi. E.g., if I listen to a podcast or radio streaming that data will not turn off when screen is off.

Perfect to have both WiFi and data in the same app.

Thanks for listening! :)
[Android Apps and Games] cm5:
You have the "Only when connected" option for "Rules For Leaving Wifi On When Screen is ON", can you add the ""Only when connected" option for "Rules for Leaving Wifi On When Screen is OFF"

Example, at cafe, connect to wifi manually and you don't want to whitelist this one time cafe location, phone screen will be turned on and off depending on usage but you want wifi to remained connected until you leave the cafe, and after you leave the cafe the wifi should turn off (might not catch this event right away if leaving the cafe with the screen off, but the event will get caught on next screen on/off depending on settings)
[Android Apps and Games] chrone:
will disabling data connection when WiFi is on reduce power consumption?

i thought data is enabled but disconnected from BTS if WiFi is on and connected to AP. at least checking the status on settings > about > status displays that the mobile data is disconnected.

i used BBS to check its idle battery drain when WiFi on + data on and when WiFi on + data off with no different at all. Still going strong at below 1% per hour drain.
[Android Apps and Games] chamonix:
I

My perception would be that when wifi is switched on data goes shut off (that is also what bbs reports as no data connection when wifi is off). I have never measured it though and have no clue on how to really measure that.

My focus will be on turning data on/off as wifi is turned on/off but not explicitly turning data off when wifi is on. Of course I am ready to revise that standpoint if anyone comes up with a valid argumentation based on data speaking for the effort of implementing that feature

Edit: with data on/off I meant data or sync
[Android Apps and Games] caravallo:
Same here. Me too is looking for an app that simply disables wifi whenever the connection is lost for more than say 30 or 60 seconds. My SSID list is simply too long and getting longer every day.
[Android Apps and Games] rgs2:
I installed the latest version of the app on a stock HTC One and have been running it today with the default settings. It didn't seem to be turning wifi off. I'm also running Gravity Screen Off which turns off the screen when I lay the phone down and I'm wondering if that could be the problem. Tonight I checked the wifi usage when set the phone down and about an hour and a half later picked up the phone again and rechecked it. There was about an hour and a half of more usage. Don't know if that's enough information for you to guess what might be happening.

Thanks,

Richard
[Android Apps and Games] MichunB:
Yes, this is great idea, chamonix, please please add it to BWOF to-do list

it would be great for one time wifi like cafe bars etc

and

it is great workaround for Galaxy S3 problem with whitelisted WIFIs

example

23:48:49.595 D/BetterWifiOnOff.WifiOffAlarmReceiver( 8114): Alarm received: preparing to turn Wifi off

23:48:49.630 D/BetterWifiOnOff.WifiOffAlarmReceiver( 8114): Checking if in call

23:48:49.630 D/BetterWifiOnOff.WifiOffAlarmReceiver( 8114): Checking if tethering is active

23:48:49.640 I/BetterWifiOnOff.WifiOffAlarmReceiver( 8114): No tethering detected

23:48:49.655 I/BetterWifiOnOff.WifiOffAlarmReceiver( 8114): Checking against SSID whitelist: StepyMongolskie72

23:48:49.660 I/BetterWifiOnOff.WifiControl( 8114): Whitelist check: ssid: 'StepyMongolskie72', whitelist: 'StepyMongolskie72', result: true

23:48:49.660 I/BetterWifiOnOff.WifiOffAlarmReceiver( 8114): Access point is whitelisted, leave wifi on

as you see whitelist check failed, BWOF thinks phone is connected to StepyMongolskie72 AP this AP is out of range,

and here it goes "Only when connected" check

23:49:33.825 I/ScreenEventHandler( 6039): Received Broadcast ACTION_SCREEN_ON

...

23:49:35.110 I/BetterWifiOnOff.SetWifiStateService( 6039): scheduleWifiConnectedAlarm called

23:49:35.135 I/EventWatcherService( 6039): Received start id 180: Intent { cmp=com.asksven.betterwifionoff/.services.EventWatcherService }

23:50:05.145 D/BetterWifiOnOff.WifiConnectedAlarmReceiver( 8114): Alarm received: checking connection

23:50:05.145 D/BetterWifiOnOff.WifiControl( 8114): A connection was detected, testing if an IP was assigned

23:50:05.150 D/BetterWifiOnOff.WifiControl( 8114): No IP address assigned: 0. Wifi is not connected

...

23:50:05.150 D/BetterWifiOnOff.WifiConnectedAlarmReceiver( 8114): No connection: turning Wifi off

23:50:05.245 I/BetterWifiOnOff.SetWifiStateService( 6039): Called with extra false, false

23:50:05.245 D/BetterWifiOnOff.WifiControl( 6039): Turning Wifi off

and this check is successful

so please please add this feature, I love this app but it simple do not work for me (and possibly other galaxy s3 users) without this
[Android Apps and Games] turvytopsy:
+1, would love to see this added too :)
[Android Apps and Games] rgs2:
App doesn't seem to recognize screen is off if turned off by another app

I'm using the latest version of Better Wifi On/Off with the HTC One stock. Also have Gravity On Off running which turns the screen off when I set phone face down and turns it on when I pick it up. It seems to me Better Wifi doesn't recognize the screen going off. For instance yesterday evening after charging I went to bed.

This morning Better Battery stats show phone following:

20:48:01 C/Scheduling Wifi to be turned off in 30 seconds

20:48:02 C/Connection active: leaving Wifi on

21:18:48 U/Screen was turned off

07:45:57 C/Screen was unlocked

07:45:57 C/Turning Wifi on

However Better Battery Stats shows

15h 52m 43s

Deep Sleep 13 h 20m 50s

Awake 2h 31m 52s

Screen On 1h 26m 36s

Wifi On 6h 10m 56s

Wifi Running 6h 10m 36s

No Data Connection 15h 52m 43s

Which seems to indicate to me that although the screen was on 1h 26m Wifi stayed on 6h 10m.

Wondering if for some reason it's not recognizing the screen is off when Gravity On/Off app turns it off and if so, if there's a fix for this.

Thanks,

Richard
[Android Apps and Games] chamonix:
Please post a logcat created by bwof an I thing we will be able to find out what is wrong

Edit: the log says connection active so I guess you have set up bwof to keep wifi if connected to a white listed access point
[Android Apps and Games] gaich:
[MENTION=1330150]chamonix[/MENTION], I`ve got an idea - to help app`s development, it would be great to translate this useful app to more languages. I take part in a thread where our XDA translators will be glad to do it, just make a request there!:cowboy: What do you think?
[Android Apps and Games] rgs2:
"Edit: the log says connection active so I guess you have set up bwof to keep wifi if connected to a white listed access point"

I haven't gone into Expert Mode. I'm just using the default settings. On when screen unlocked, On when plugged in and If Plugged in are the only ones checked.

I think I'm attaching a logcat.
[Android Apps and Games] rgs2:
Now it seems to have started working. Bizarre. I didn't do anything but go into Expert Mode and look around. Anyway, thanks, but it is working now.

Richard
[Android Apps and Games] jhuff83:
If checking leave wifi on when plugged in, will that affect the sprint hacked mobile hotspot? Seems like if this is enabled, the wifi boots the sprint hotspot being enabled. However, I thought the program checks to see if you are tethering before enabling wifi. Is this only for wifi tether program or native hotspot as well?
[Android Apps and Games] Jubremelle:
Thanks.
[Android Apps and Games] chamonix:
Tethering status is what android manages so no apps emulating tethering will get detected as long as they are not conforming to that api
[Android Apps and Games] chamonix:
New version is up with fixed cage check and timed re-checks of connection conditions
[Android Apps and Games] chamonix:
RC1 is up
[Android Apps and Games] minidou-77:
Are you planning to add the ability to remember the cells where a Hotspot is automatically?

So we don't have to name each cell manually
[Android Apps and Games] chamonix:
Could you please elaborate on how that should work in your opinion?
[Android Apps and Games] minidou-77:
When a hotspot is in the white list and when the phone is connected to this one all cells around are being remembered.

And wifi is triggered on only if one of this recorded cells is around me (we already have this today but we have to name each cell manually if we want it to be effective )
[Android Apps and Games] chamonix:
Interesting use case, I will try to implement that: https://github.com/asksven/BetterWifiOnOff/issues/123
[Android Apps and Games] chamonix:
One way to reach the desired behavior would be to whitelist that SSID and use the prefs to leave wifi on when connected to a whitelisted SSID. Do you really see a need for adding another pref specifically for the case that you describe?
[Android Apps and Games] chamonix:
Could you please give me feedback about the timed checks and the new implementation of cage detection?
[Android Apps and Games] MichunB:
Yes!!!

it would be great to have "leave when connected" pref for "Rules for Leaving Wifi On When Screen is OFF"

it is annoying to add this one time wifis to whitelist

BWOF will be more flexible with it
[Android Apps and Games] chamonix:
Of course you must then accept that it will stay connected to any wifi and potentially causing rx_wlan wakeups even if you are not using wifi. I hesitate as this behavior would be exactly what BWOF is trying to avoid. Why don't you just disable BWOF when you don't want it to control Wifi?
[Android Apps and Games] MichunB:
But I have to first turn wifi on - it will not go on in unknown area, In wifi congested areas it could be the case but for user convenience and user risk. You can add warning for this pref

And also this could be workaround for Galaxy S3 problem with withelist - BWOF see whitelisted network as connected but it is not
[Android Apps and Games] patsmike:
Chamonix, what does cell location -1 mean?
[Android Apps and Games] rgs2:
I'm having a problem with Wifi staying on when an app is running that I have checked to leave wifi on. BWOF still turns wifi off after 30 seconds. Does byof have to be stopped and restarted again to get this to work? I'm trying to run the Tunein Radio app and would like Wife to stay on while it is running. Restarting the phone had no effect.

Thanks.
[Android Apps and Games] rgs2:
I'll try that
[Android Apps and Games] rgs2:
Whitelisting the SSID works fine. I'd rather be able to whitelist the app since when I exit the app it would re enable BWOF automatically, but I can live with this.
[Android Apps and Games] Mr.AFK:
Dear Sven,

I have trouble with the rc1.

Wlan doesn't turned of, log doesn't recognise anything since yesterday evening.

Log: http://db.tt/1Vn1cd9J

Gesendet mit meinem S IV
[Android Apps and Games] chamonix:
Can you please attach a log? I need to see how the app Whitelist is processed and why tune in is not detected as running.
[Android Apps and Games] chamonix:
I need to dive into the spec to see when Cid can be invalid. It may be related to 4g. Do you have a log where I could see the lac returned when Cid is -1?
[Android Apps and Games] henninkn:
Hey,

Just a quick question.

At home I have a dual band router, and both bands have the same ssid. This leads most wifi devices to see it as a single network, and automatically choose the best band.

I've set BWOF to stay connected to wifi when screen is off only if on a whitelisted ssid.

However, BWOF seems to be having trouble with this set up, as it disconnects anyways when screen goes off. The log says it's current network is not whitelisted, even though it clearly is.

If I disable one of the bands I do not get this behavior.

If you need a proper bug report and a log, I'll try to get that soon, but unfortunately I'm terribly busy these days...
[Android Apps and Games] Pkt_Lnt:
Did you read the post above by the person with the same issue and how they solved it? You should try that, as soon as you are not terribly busy.
[Android Apps and Games] patsmike:
Ill get one next time it happens, I had just assumed that this was a "feature" you added this on purpose
[Android Apps and Games] henninkn:
I am sorry, but I read the last few pages and did some searches, but I'm not sure which post you are referring to?

Do you mean using cell ids to toggle wifi on and off instead of ssid?
[Android Apps and Games] rgs2:
Whitelist apps not having an effect

Is this what ;you're need?
[Android Apps and Games] Pkt_Lnt:
He had to change the ssid, using the same for both did not work.

http://xdaforums.com/showpost.php?p=40317771&postcount=728
[Android Apps and Games] gaich:
Russian translation updated.
[Android Apps and Games] chamonix:
As we found out that the check may take some time I changed it in the latest RC1 to start when Wifi is turned on. I appears that was no good idea as the check then starts before Wifi is even connected as you found out. I will have to think about the right place to do that as early as possible but not too early.
[Android Apps and Games] Flash23:
I have 2 networks in my house that I toggle between because depending on what side of the house I'm in I'm able to get a better signal... How can I have this app toggle between the 2 connections so it picks up the better one??? How can I also set it up where it only seeks a connection where I have the SSID added... I can be about a mile away and my WiFi will come on telling me there is an available connection... Thanks
[Android Apps and Games] poo706:
Is anyone else's widget icon tiny and not centered top to bottom?

[poo]
[Android Apps and Games] chamonix:
This is wierd. What screen density are you running?
[Android Apps and Games] Mr.AFK:
I can confirm this uncentered widget on my SGS2, SGS3, SGS4 and also on SGS1. All stock densities.

On my SGS1 (my father in law use it), i have no possibilty to check/uncheck whitelist SSID´s because everytime i tried, there is only an area where i can write my SSID name without any button to confirm. It doesnt matter that the phone is still connected to the wifi...
[Android Apps and Games] poo706:
240, haven't changed it. This is on Apex with a 5x5 grid, by the way. And BWOF is the latest from the Play store.

[poo]
[Android Apps and Games] chamonix:
For older android versions the ssid Whitelist is a text fields where you can enter a list of ssid and save with back.
[Android Apps and Games] patsmike:
Actually that has always been the case with this widget b/c it is centered like a widget, not like a standard app icon (which has space for the app name). On the other hand, it will look "centered" compared to other widgets that are 1 unit tall
[Android Apps and Games] chamonix:
Release 1.2RC2

New release is up. Happy testing :)
[Android Apps and Games] habylab:
Personal opinion, but how are peoples battery life compared to using Green Power for example? Thank you.

Sent from my forever getting older Galaxy S3 (AVS2). Long live the original Galaxy S :)
[Android Apps and Games] poo706:
Looks like they're the same concept, except that green power also handles data, bt, and screen brightness. Wifi is the only thing I need to control in this way, so better wifi does the job for me, and does it well! I've easily doubled the amount of time I get out of a charge, and that's with disabling better wifi for several hours each evening so that wifi stays on with the screen off.

[poo]
[Android Apps and Games] habylab:
Thank you, good stuff.

Sent from my forever getting older Galaxy S3 (AVS2). Long live the original Galaxy S :)
[Android Apps and Games] STAticKY:
Do you plan on using the new beta push feature of the play store to push out new betas?
[Android Apps and Games] gaich:
Rusian translation edited.
[Android Apps and Games] jhuff83:
Is the newest update referring to the timed checks under rules for turning wifi on?
[Android Apps and Games] chamonix:
No. The reason is that I don't see any advantage of setting up a g+ community to collect feedback and discuss changes compared to the features provided by the xda forum
[Android Apps and Games] chamonix:
The changelog is in post #1
[Android Apps and Games] jhuff83:
I've read that, just confirming that's where the change is.
[Android Apps and Games] STAticKY:
My thought was because you can automatically push out the betas through the play store....

TP.
[Android Apps and Games] chamonix:
I understand that but IMO the most important part of providing betas is the feedback and discussions. And for that gplay does not offer enough (g+ communities) compared to what we have here.
[Android Apps and Games] chamonix:
I would really like to hear your feedback on the latest release
[Android Apps and Games] Christiancs1969:
I never give feedback..... Never can I a fault :D

RootBox s2
[Android Apps and Games] STAticKY:
Not sure if the problem is still there(I have be installed but not setup.) If I set timeout to 0 it won't do anything because it tries to divide by zero :p

TP.
[Android Apps and Games] chamonix:
Any feedback on cage detection?
[Android Apps and Games] rgs2:
I just want to say that this, along with Gravity Screen Off, are just about my two favorite apps. They work beautifully together and make the phone so much more efficient and make the battery last so much longer. Everyone should have them.
[Android Apps and Games] patsmike:
I've been having trouble catching it in a logcat because it always happens when when the phone has been sitting for a while and is out of the log, but the following happens: when the screen is turned off, bwof doesn't recognize it and keeps WiFi on, as shown in the screenshot.
[Android Apps and Games] Mr.AFK:
Checked cage detection, this morning after turning off flight mode, connection to my home wlan (5.30a.m.). Now I'm looking in the Akku statistics and see, Wlan is on since this morning. But here at work, I don't use wlan.

Log: http://db.tt/UAu6x6K2

Hope this helps.

Gesendet mit meinem S IV
[Android Apps and Games] chamonix:
Are you on a Sony phone with stamina or are you using greenify or have you moved bwof to the sd. There is no reason for bwof to not receive screen off events
[Android Apps and Games] patsmike:
Ahh yes I'm using greenify, is there no way around this then?
[Android Apps and Games] poo706:
It's okay to have greenify, just don't use it to hibernate better wifi.

[poo]
[Android Apps and Games] patsmike:
Ohhh thanks for the clarification, I definitely wasn't using it to hibernate bwof :)
[Android Apps and Games] chamonix:
Unfortunately that log does not show anything.
[Android Apps and Games] Mr.AFK:
Another log.

http://db.tt/6o3gzlXk

Yesterday I turned off the cage detection, but in the log is written : connection detected leave wifi on.

Hope you have luck with the new log.

Screenshot :

Gesendet mit meinem S IV
[Android Apps and Games] Thomas_BA:
Just for my better understanding. What is cage detection and what is its purpose?
[Android Apps and Games] chamonix:
Detecting access points that allow you to connect but do not route traffic as long as you have not interactively logged on, e.g. using a web logon. Cage detection aims at detecting that kind of situation to avoid Wifi being left on if there is no "real" connection
[Android Apps and Games] chamonix:
What error situation is that screenshot supposed to describe. I only see that Wifi stays on because you have configured it to do that when screen goes off but a connection to a whitelisted access point is detected. That log has no sign of positive or negative cage detection
[Android Apps and Games] Thomas_BA:
Thanks, quier usefull so.
[Android Apps and Games] Mr.AFK:
Hi Sven,

Leave home round about 10.30am, Wlan was the whole time on, but I was not in range of my home wlan.

http://db.tt/IokBu6lT

Wlan should be on, everythime I'm in range of my home wlan (whitelisted ssid) , otherwise OFF.

On Screenshot you see, that wlan wasn't off after leaving home ssid.

Gesendet mit meinem S IV
[Android Apps and Games] chamonix:
Ok, that clarifies.

What I see is that 11:09 BWOF recognized a known cell and also states that a whitelisted ssid was detected. Now I know that there are some samsung devices/ROMs that report SSID to be still connected even when it is not in range anymore but what troubles me is that even the cage detection was positive in your case.

I will add some more debug info where the code lists the ssids that Android reports as being connected with their status info in order for us to dive deep on that issue.
[Android Apps and Games] DirkStorck:
Hi. At the moment I am using v2.0 but I wanted to try v2.1 RC2. After I have installed it I have noticed a higher CPU usage of the....
[Android Apps and Games] chamonix:
New version is up. If you have problems of wifi not being turned off because an access point is reported as still connected to please update and provide a logcat with some info about the time where a connection was reported as active even if the access point was out of range.
[Android Apps and Games] Mr.AFK:
Dear Sven,

This behaviour was correct, because at 11.09 I was back at home. Between 10.33 and 11.09 I was away with my car.

But between 10.33 and 11.09, Wlan was still on.

I have updated to rc3. Clear log.

Later I will again leave home an come back this evening.

We will see, what's happened.

Ps: I found something strange in CID :

I was the same between 10.33 (cid) and 11.09. (next cid in the list)

But I was at least 4km away.

Or missed I something? I don't unlock the screen between these two times, while I was on my way.

Gesendet mit meinem S IV
[Android Apps and Games] saqibvohra93:
Nice work!!
[Android Apps and Games] Mr.AFK:
Dear Sven,

I'm away from home but my wlan is always on.

http://db.tt/1N3Seoqe

Maybe I should reset the app. To test again.

Gesendet mit meinem S IV
[Android Apps and Games] chamonix:
That log look weird: it shows only 3 minutes and i full of entries from CustomFrequencyManager.

Are you using a kernel limiting logcat? Could you possible save a logcat from your pc using adb so that we can see what BWOF does? We are looking for the additional logging I added to

WifiControl
[Android Apps and Games] Mr.AFK:
I will try, but please explain me how to do?
[Android Apps and Games] chamonix:
If you don't have adb installed yet please follow this guide: http://xdaforums.com/showthread.php?t=502010

Once installed make sure to enable remote debugging in the developer options and after having reproduced the problem connect your phone vua USB and run:

adb logcat -v time -d > some-filename

and attach the file.
[Android Apps and Games] Mr.AFK:
At work, i dont have the possibility to install SDK (ADB)

The ADB.exe that i have, says " error Device offline!"... Will take some time until feedback.

Edit:

does JB 4.2.2 is supported?

Another change for a log? terminal editor`?

Stockkernel on Gt-i9505
[Android Apps and Games] jhuff83:
Chamonix,

I had posted several weeks ago about the phone not connecting to strongest wifi ap. I had stated that I have my normal router and then an extender, both named something different. Would it be possible to add an option to connect to strongest IP or MAC since both are using different IP addresses. Right now, the app will not connect to the strongest AP I guess because both units are on the same network.
[Android Apps and Games] chamonix:
I haven't found a way do do that yet as the app to connection only supports said but I I will look again to see if there is a workaround to do what you are looking for
[Android Apps and Games] chamonix:
Adb is a tool from the sdk so all versions are supported. There are known problems with USB drivers though.

You can run the same command in a terminal as well:

logcat -v time -d > /sdcard/somefilename