yashsingh1/xdaforums huggingface dataset:
[Nexus One Themes and Apps] jbrinkley:
att phone stock everything 2.2 frf91

this is an instance of it not pinging. Sometimes it does and sometimes it doesn't.

I'm still playing with it

in order to get it to ping I have to set widget first then enable wifi from the power widget.

D/WiFiKeepAlive-AdvancedOptions( 748): Done!
I/ActivityManager( 79): Displayed activity com.shantz.wifikeepalive/.WiFiKeepAlive: 3891 ms (total 3891 ms)
D/WiFiKeepAlive-Main( 748): policyChoiceClickListener onItemClick Choice: Always On
D/WiFiKeepAlive-Main( 748): updateService
D/WiFiKeepAlive-Main( 748): Start Service
I/WiFiKeepAlive-BGService( 748): onStartCommand
I/WiFiKeepAlive-BGService( 748): Received Intent { cmp=com.shantz.wifikeepalive/.BGService }
D/WiFiKeepAlive-BGService( 748): deRegisterOnPlugged
D/WiFiKeepAlive-BGService( 748): registerForWifiState
D/dalvikvm( 644): GC_EXPLICIT freed 3 objects / 72 bytes in 52ms
D/dalvikvm( 349): GC_EXPLICIT freed 2006 objects / 140072 bytes in 109ms
D/dalvikvm( 427): GC_EXPLICIT freed 2952 objects / 196968 bytes in 57ms
D/dalvikvm( 79): GC_FOR_MALLOC freed 18590 objects / 943960 bytes in 101ms
D/dalvikvm( 412): GC_EXPLICIT freed 1048 objects / 52552 bytes in 61ms
D/dalvikvm( 79): GC_FOR_MALLOC freed 6421 objects / 804856 bytes in 93ms
I/power ( 79): *** set_screen_state 0
D/WifiService( 79): ACTION_SCREEN_OFF
D/SurfaceFlinger( 79): About to give-up screen, flinger = 0x1fe228
D/AK8973 ( 64): Compass CLOSE
D/StatusBar( 79): DISABLE_EXPAND: yes
D/GoogleLoginService( 175): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
D/dalvikvm( 175): GC_EXPLICIT freed 925 objects / 46464 bytes in 64ms
D/dalvikvm( 644): GC_EXPLICIT freed 3 objects / 72 bytes in 56ms
D/dalvikvm( 579): GC_EXPLICIT freed 93 objects / 4232 bytes in 53ms
D/dalvikvm( 175): GC_EXPLICIT freed 340 objects / 17928 bytes in 68ms
W/GTalkService( 175): [GTalkConnection.15] doConnect: caught Could not connect to mtalk.google.com:5228.: (404)
W/GTalkService( 175): -- caused by: java.net.UnknownHostException: mtalk.google.com
[Nexus One Themes and Apps] jbrinkley:
att phone, no sim and not pinging, even though is set with all the work arounds.

---- beginning of /dev/log/main
D/alogcat ( 853): stopping ...
--------- beginning of /dev/log/system
W/InputManagerService( 79): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44ba5d78
D/WiFiKeepAlive-BGService( 748): Pinging gateway 192.168.1.1
D/WiFiKeepAlive-BGService( 748): pinged
D/dalvikvm( 579): GC_EXPLICIT freed 1551 objects / 139152 bytes in 62ms
D/dalvikvm( 644): GC_EXPLICIT freed 3 objects / 72 bytes in 51ms
D/WiFiKeepAlive-BGService( 748): Pinging gateway 192.168.1.1
D/WiFiKeepAlive-BGService( 748): pinged
D/dalvikvm( 349): GC_EXPLICIT freed 5410 objects / 420912 bytes in 91ms
D/dalvikvm( 427): GC_EXPLICIT freed 92 objects / 5064 bytes in 56ms
D/WiFiKeepAlive-BGService( 748): Pinging gateway 192.168.1.1
D/WiFiKeepAlive-BGService( 748): pinged
I/power ( 79): *** set_screen_state 0
D/alogcat ( 853): stopping ...
D/alogcat ( 853): paused
D/WifiService( 79): ACTION_SCREEN_OFF
D/SurfaceFlinger( 79): About to give-up screen, flinger = 0x1fe228
D/AK8973 ( 64): Compass CLOSE
D/WiFiKeepAlive-BGService( 748): Pinging gateway 192.168.1.1
D/StatusBar( 79): DISABLE_EXPAND: yes
D/skia ( 79): purging 195K from font cache [13 entries]
D/GoogleLoginService( 175): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
D/dalvikvm( 175): GC_EXPLICIT freed 823 objects / 43184 bytes in 66ms
D/WiFiKeepAlive-BGService( 748): Unreachable
D/WiFiKeepAlive-BGService( 748): Pinging gateway 192.168.1.1
D/WiFiKeepAlive-BGService( 748): Unreachable
[Nexus One Themes and Apps] jbrinkley:
god I was hoping this fix worked for the att version. Pandora stops after the song is finished. G voice and g email doesn't get through.

But at least it reconnects upon waking. Wouldn't do that in the previous version.

inbuilt sms get through while screen locked, yesterday that wasn't working either.

But with your widget disabled it was fine. (as far as going back to 3g)

So it's progress. I just want GV sms to get through at my house all day on wifi.

thanks for the effort.
[Nexus One Themes and Apps] shantzg001:
Thanks for the logs, jbrinkley. From these logs, it appears that Wi-Fi is still on and hasn't been turned off by the software but your data is still not going through..

Are you near the router during these tests (i.e. the wi-fi icon is showing all bars when screen is on?)
[Nexus One Themes and Apps] shantzg001:
Guys,

would anyone of you be willing to try out a debug/test version on your phones?
[Nexus One Themes and Apps] rori~:
Risk of this ?
[Nexus One Themes and Apps] shantzg001:
None whatsoever..Basically what I see is that so far the app is now able to maintain the wi-fi service alive for most people but some folks (like jbrinkley) see the issue that even if wifi is alive itself, the data isn't going through. I've added a couple of changes to do a few more things, which I don't want to put into the market without testing as I don't see this issue on my devices. Plus it has some more logs enabled.
[Nexus One Themes and Apps] rori~:
Well...I would be happy to test !
[Nexus One Themes and Apps] jbrinkley:
yes I'll test anything.

yes I sit by the router.

edit.. sorry about that I didn't mean to send you two PM's
[Nexus One Themes and Apps] kindiboy:
what seems to be the problem is this

I think it's a DHCP problem, the wireless connection stays on (but the icon on the notification bar disappears) also the phone sends a message to the router that it left when it didn't. so you can't get the connection on again unless you turn off/on again the wireless connection.
[Nexus One Themes and Apps] jbrinkley:
on mine it appears that my icon on the bar stays as connected. It shows connected, but market, email, GC and Gmail don't work. After a few seconds the connected icon goes away and it goes to 3g or edge when the screen is woke up. Most times it reconnects automatically if this app is pinging on screen dim. If it wasn't pinging then the connection is disabled when I wake the screen.

During this the router shows an IP assigned on and off for 6 or 7 minutes until the router completely drops the device. Sometimes it shows an assigned (associated) IP with the correct device name, others it shows an IP but an unknown device name, and other times it shows a device name but no IP.

irritating to say the least.
[Nexus One Themes and Apps] Qurkzi:
First off, thanks for working on this. It has been a thorn in my side because I get no cell service at my house and wifi is the only connection until i can convince the rest of the house to pony up for a Micro Cell.

Anyway, I'm using an AT&T compatible nexus one. As soon as my screen locks the device will stop responding to pings and the router drops the device soon after that. Meanwhile the phone says it's still on wifi and within the first 20 or so minutes if you make the screen light up, not even unlock the device, it will respond to pings. After that initial 20 or so minutes the wifi icon on the device goes away and you need to cycle the wifi power to get it to reconnect.
[Nexus One Themes and Apps] shantzg001:
Thanks for volunteering, guys. I have jbrinkley's email id. Rori, could you please PM me yours?

I'm at work right now. Will email you the apk when I reach home.
[Nexus One Themes and Apps] shantzg001:
This scenario would be a network state change while wi-fi state remains same but from logs of people having this issue, network state as well as wi-fi state are not changing at all but still data is not going through, hence the problem is more complex...
[Nexus One Themes and Apps] kindiboy:
just let me know what you want me to do to make this whole thing go away :D
[Nexus One Themes and Apps] Webruimtehosting:
This is not working for me. My Widget will not update the new weather if I let WiFi On. Can't receive e-mail in standby mode, and the most important of all: No radio stream if the phone goes to sleep.

I have tryed everything, but nothing works.

[Status] Unlocked & Rooted

[Recovery] RA-nexus-v1.7.1

[ROM] LeoFroYo 1.2.0patch0.

Any solutions?
[Nexus One Themes and Apps] shantzg001:
Thanks to rori and jbrinkley for volunteering for trying out test versions. I've sent them the apk just now.

Rest of the guys who are facing this issue, please send me all the details as mentioned in the OP under label "IMPORTANT". Also, please mention the exact scenario that you are trying to see if your wifi is working or not.
[Nexus One Themes and Apps] jbrinkley:
One thing for sure is that the tmo version behaves differently.

I'm streaming pandora on the tmo phone right now and I'm on song #3 with GV texts getting thorugh without a SIM installed. (shantzg001's email reply got through also)

This morning I could not get this to happen.

Now it's working and appears 100% wifi-network connected. I don't know yet if the connection breaks without data going through the router.

I'm sure there's a way to break this if it's not set right.

The att phone with or without sim loses pandora and GV texts immediately. Same version of app on both phones.

edit.. after I quit pandora, the phone is lost. no data on wifi
[Nexus One Themes and Apps] shantzg001:
^^yeah.. looks like this might be an issue with specific versions of the phone. I have the T-mo version of nexus too and that might explain why I am not able to reproduce this problem on my end.

On searching around it looks like that the nexus devices with MAC addresses starting from 00:23:76 are immune to this problem while others show this issue. So, it means it could be a hardware revision specific problem but I'll keep hacking away to see if we can fix this, if not by an app, then maybe by a kernel patch... :)
[Nexus One Themes and Apps] jbrinkley:
disappointing if that's the case. My mac has the same first six numbers. Brand new att MAC is 38: something. I hope you find something. Good luck.
[Nexus One Themes and Apps] DeeDroid:
My radio stream stops after a few seconds in standby when I'm connected to one of my two Fritz.boxes, but it seems to be working so far when it's connected to my Linksys router (all WPA2)

Desire, stock rom
[Nexus One Themes and Apps] rori~:
Ok, got my WiFi back...

-My MAC adr. starts with 00:23:76

-I am on CM6 nightly

-new 508 radio

-Using your (WiFi keep alive...test.apk)

-All 3 workarounds enabled.

WiFi did not disconnect yet :)

(Havin disconnecting probs lot of times usually when screen turns of)
[Nexus One Themes and Apps] Qurkzi:
Any chance it was the nightly build that fixed the wifi issue? Doesn't seem likely but you never know.
[Nexus One Themes and Apps] rori~:
Seriously, I doubt that...
[Nexus One Themes and Apps] jbrinkley:
I've been trying msn talk as a work around to keep wifi alive. On the tmo phone with msn always on, and wi-fi keep alive pinging, I'm able to maintain wifi.

there's just something fishy about the att phone. Not one single app or widget does any good. Not even apps with a notification or ring when the app drops the connection. One workaround for google voice is in the settings, notification, notify by text box. But that is silly and defeats the GV purpose.

I really don't think this phone is defective either. I'm willing to bet all att phones are like this. It would be easy to not be aware of it.
[Nexus One Themes and Apps] davedgd:
I think you're right about the AT&T phones (and according to some, newer T-Mo devices manufactured after March). My friend who bought his phone at launch, and my phone, which I just received Friday both exhibit this issue. No app affects it, and the phones cannot be pinged. I have scoured the web over this issue, and there is no official acknowledgement.

I wouldn't call this a defect, but a minor bug that seems to be driver or hardware level. Essentially Wi-Fi sleep policy is broken. Small bug, but huge problem for someone who's lab/office has no cell reception during the working day (and thus making Wi-Fi never sleeping essential). The following issues present due to this small bug:

- Pandora stops receiving data and stops playing music after buffer runs out when phone is locked (Wi-Fi only obviously)

- no Google Voice notifications

- no GMail notifications

- no GChat notifications

- etc., etc.

I've even tried installing JuiceDefender and bought UltimateJuice! which promises full control over the Wi-Fi. You can see in its logs that it's doing something, but again no effect over pings or notifications while on Wi-Fi. =(

I'm returning my N1 and holding onto my ancient iPhone 3G (with burnt out Wi-Fi chipset) because it's about equally as useful half of the time as the N1, which I otherwise love.

PS. During my call to Google/HTC to try to solve the problem (first time I've ever called tech support for anything), basically they suggested I return or exchange the phone. Having read about others getting a phone back in the 400+ page thread in the official N1 forums, I think a wait and see policy is preferred at this time:

Can't post a link, but the title is "WiFi constantly drops, won't stay connected when in sleep (option to never sleep IS selected) and won't reconnect" on the official n1 forums (probably the most responded to thread on there, and yet no official solution offered, with the best being essentially that the issue is being ignored).
[Nexus One Themes and Apps] jbrinkley:
I flashed that new radio, no difference. BUT the wifi reconnects very quick. It's the only difference I see.

edit.. the 5.08 radio

if you believe the support forums on google they say it's such a low power state with the screen off that most if not all routers drop it.

http://www.google.com/support/forum/p/android/thread?tid=01a47ff5b0a92d52&hl=en

I could buy that if the phone stayed connected with large amounts of data being DL'ed, fact is it doesn't.

I don't mean to clog up a thread with these posts, it's just that it's soo irritating

sorry people
[Nexus One Themes and Apps] davedgd:
@ jbrinkley

No worries. I don't think a lot of us are buying the official response on the issue. I also find the whole thing super irritating and just wish someone (and I mean at Google) would just rectify this issue by taking more than a cursory glance at the problem and actually acknowledging the fact that it is a serious bug that needs urgent fixing.
[Nexus One Themes and Apps] grahamwell:
Works for me!

Your app does seem to make a real difference. Since installing I've only had problems when the battery was very low. All other times (streaming RadioTime) it really seems to have solved a problem that's been bugging me for ages. LeoFroyo 1.2.0 N1. Thanks so much!
[Nexus One Themes and Apps] shantzg001:
^^ Thanks. Glad it worked for you.
[Nexus One Themes and Apps] bcpk:
I can't figure out how to get the widget working for this.. every time I try to add it to my homescreen, selecting the widget name from the list just opens the wifi keep alive main screen.

ie

From

Straight to

T-Mo N1 on FRF91, rooted.
[Nexus One Themes and Apps] davedgd:
So for those people still having trouble with your app (which I did try and do appreciate)--more for the people with the AT&T N1s (like jbrinkley), be sure to try Wifi Fixer, specifically the latest version, which is yet to be released (0.7.0.2) using the second, alternate solution for the N1, based on my testing (it will reconnect within 10s). I'd post a link, but I can't. You can look on the long google support thread on the issue. There is also a new issue on the Android google code page, 9781, that narrows the problem down to power state polling (PSP) for anyone looking more into the issue.
[Nexus One Themes and Apps] JVogler:
I'm using Windows Mobile 6.5...my workaround for this was an app that disabled sleep and allowed me to map a button to turn just the screen black...so rather than being WiFi specific...everything running continues as normal...I figured android would have addressed this issue...guess we are all in the same boat here.
[Nexus One Themes and Apps] digitalhater:
where can I find a good free barcode reader? any suggestions please? can anyone send me a PM? thanks!
[Nexus One Themes and Apps] tk1978:
hi. tested your app and it seems to work on my desire wirh defrost rom.

one question. i have no workaround enabled, but the app seems to work without.

what does it do if i do not select a work around an what does the work arounds do?

thx,

thomas
[Nexus One Themes and Apps] Nuntius:
I don't get it. My wi-fi connection stays on even when the screen is off. My Desire is unlocked and unrooted.

There's wi-fi issue on some Android when the screen is off? (apparently there is).

EDIT: Problem only with Nexus One? Sorry, XDA blog tagged "All Android"
[Nexus One Themes and Apps] m4a1rifle:
Try download a big file with WiFi, half way downloading press the sleep button (top button), wait for 10 minutes, wake up your phone, notice that the download continue where u sleep the phone.
[Nexus One Themes and Apps] Nuntius:
Right OK, I never donwload big files with my phone so that's why I've never noticed it!
[Nexus One Themes and Apps] shantzg001:
Sorry for the lack of updates guys. I just became a father last week :) so it's been kinda whirlwind routine with me being away from my laptop all the time..

I'll be pushing out a new update soon (hopefully around weekend)
[Nexus One Themes and Apps] rori~:
Congratulations ***** that's real good news ****** happy daddy!
[Nexus One Themes and Apps] shantzg001:
Thanks rori :)

@bcpk: That behaviour is normal. This screen also serves as the configuration activity for the widget. You can enable any workarounds you want and choose the initial state of the wi-fi and the widget will show up fine. If you exit the screen by pressing "back" or "home" then the widget won't be added.
[Nexus One Themes and Apps] rori~:
seen this?

"This change fixes the problem with the WiFi packets not being forwarded to the kernel when the screen is off on all phones that have a non-zero first byte in their WLAN MAC address. "

http://android.git.kernel.org/?p=pl...ff;h=5a838529e6197475cbe8f5a4557fbd31f90586a6
[Nexus One Themes and Apps] shantzg001:
Changelog:

22-July-2010 -> 1.4.0

* Added workaround 4 (Re-associate automatically with access point if all else fails. Needs workaround 3 to be enabled)

* Support for small screens (e.g. XPeria X10 mini)

* Widget/Icons size optimizations for older Android versions

* Resource optimizations for lesser space and faster loading

* Misc. under-the-hood UI tweaks for better/consistent layouts across different screen sizes/densities/android versions.
[Nexus One Themes and Apps] shantzg001:
Yeah.. just saw this as I went to update my website with the new v1.4.0 info (as one of the forums discussing it popped up in links pointing to my app's webpage).. Really great news!! I hope this solves it all and more importantly, it makes it into an official update from google soon so that even people who don't root/flash custom roms can benefit from it and also that I can move on to my other app ideas :)

Edit: funny that one bit is all it took to create so many problems around the globe :P
[Nexus One Themes and Apps] NexusX:
I have this one problem, whenever wifi is disconnected on my phone, such as I walk out of range or wifi router bleep off. The wifi will not automatically reconnect until the screen is turn back on. At work, I run around a lot, in and out of elevator, so WIFI will temporary be off or when one router switch to another, but my phone never automatically reconnect when the screen is off any way around this??

At home I can simulate this by briefly turn off my router then turn on again (just like when I am in an elevator)
[Nexus One Themes and Apps] shantzg001:
@NexusX: Although your problem is tangential to the problem that this app is trying to fix but you can try the latest version 1.4.0 as it tries to reconnect to the access point on seeing network connectivity issues even when screen is off. Start trying with all 4 work arounds turned on and if that works then try out various combos (you will need atleast workaround 3 and 4 enabled) that works best for you
[Nexus One Themes and Apps] shantzg001:
Changelog:

22-July-2010 -> 1.4.1

* Fixed a bug that can cause wi-fi to keep reconnecting in quick succession in certain situations.
[Nexus One Themes and Apps] jbrinkley:
none of the new kernels work for me. Tried four of them.

they (kernels) keep the connection alive while downloading or streaming music but still disables the connection after a period of inactivity.

I went back to using your app and the wifi fixer.
[Nexus One Themes and Apps] rori~:
New icons for WiFi Keep Alive

shantzg001,

I like your app and hope you succeed in fixing our WiFi prob :)

Here´s my contribution to your app.

I created some new icons, probably you like it!

I "tried" to keep your colors..

Attached Wi-Fi Keep Alive 1.4.1 with those new icon.:cool:
[Nexus One Themes and Apps] shantzg001:
Awesome work rori and thanks a lot for this. I was about to ask on the icons/UI thread myself for help with icons as I'm a noob at best at doing any graphics work...

I like these icons and will use them in the next update (of course, with credit to you). I think this scheme should look fine:

White bars -> off (default)

Amber bars -> on when plugged

Green bars -> Always on

This means we would need to change the one with purple bars to green bars.. Do you think you can do that?

Thanks once again for the help.
[Nexus One Themes and Apps] rori~:
Yeah, I can do that...

Edit:

Done, changed to green (took same green as SMS icon)

Send you per PM.

greets
[Nexus One Themes and Apps] ewingr:
Just put on an AT&T Captivate and see how it goes.

One comment on the widget icon: it remains quite large in comparison to other widgets on the page. Seems it should adjust to similar size.
[Nexus One Themes and Apps] :
Thanks Rori.

@ewingr: I'm aware of the issue as many others have been asking for the same thing. Rori has just given me an excellent set of new icons. I'll work with those to get down to appropriate sizes in the next update
[Nexus One Themes and Apps] pakraider:
I'm having trouble keeping WiFi alive on my Nexus One. The most annoying place the problem is evident is in using Sipdroid or 3CXPhone for VOIP calling.

I've tried both stock FRF91 and CyanogenMod 6 RC1. I'm using version 1.4.1, and have tried all combinations of the workarounds. I've attached a logcat dump of what happens during a call when the screen goes off.

When I'm using 3G to make the call, everything works just fine in both applications with the screen going on/off, so it does seem to be a WiFi problem.

edit: included a screenshot of me pinging my N1. You can clearly see the WiFi connection dies when the screen goes off. (request timed out, followed by 1014ms ping time and another timeout before I turned the screen back on)
[Nexus One Themes and Apps] shantzg001:
Could you please enable debug logs from the "advanced options" within Wi-Fi Keep alive and then paste the logcat dump you get after that?
[Nexus One Themes and Apps] erikiksaz:
Have you guys seen this potential fix?

http://xdaforums.com/showthread.php?t=735636
[Nexus One Themes and Apps] pakraider:
whoops, sorry about that! thought I had enabled it before, but I've double checked and attached new logs. thanks!

edit: Even with the debug logs enabled, I can't see anything in the logcat dump that would come from your app, but maybe I don't know what to look for. I've tried rebooting the phone, uninstalling/reinstalling the app, but the logs still look just like this one that I've attached.
[Nexus One Themes and Apps] igorgor:
If my phone is within a workaround zone Wi-Fi is on. Always ON. No way to switch it off. Just to go somewhere outside the workaround zone. Wi-Fi on doesn’t mean it is working. It is just on – so 3G is off and I have no Internet. I have to switch off Wi-Fi after sleep and it comes back by itself and works until next sleeping period. Un-installing and reinstalling the program doesn’t help. A real problem for me now - I am not able to turn off Wi-Fi even if I uninstalled the program. I use version 1.4.1 on N1 Enomther v2.10.2