Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,517 Members 36,589 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Wifi works for a few minutes, then dies (kinda)

Tip us?
 
ProfLonghair
Old
#1  
Member - OP
Thanks Meter 34
Posts: 98
Join Date: Feb 2011
Default [Q] Wifi works for a few minutes, then dies (kinda)

A few days ago, my daughter's KFHD stopped functioning properly. Somehow it updated to 7.4.8, and all was messy after that. I managed to back up the apps, and flashed for Kinology 3.2, and I'm seeing similar behavior, so it's two roms it's been happening on. Wifi works for a while, but then stops working.

I have a dual band router setup, and I can connect to either band fine at first.

Then, after working fine for a few minutes, the connection *stops*, no errors or warnings, just, nothing. Turning the screen off seems to expedite this, but I could just be imagining that part.

After it stops, turning the screen off, then on again, I get an X over the Wifi icon, but it still shows as connected.

Sometimes, if I switch bands, it will work again, but almost always, I have to reboot to get it to connect again.
 
stunts513
Old
#2  
stunts513's Avatar
Recognized Contributor
Thanks Meter 606
Posts: 2,208
Join Date: Feb 2013
Location: New Braunfels, TX

 
DONATE TO ME
Try leaving it plugged into your pc with adb enabled and when the connection drops running
Code:
adb shell dmesg
, the part at the bottom might list some info as to why it disconnected. Other than having a wireless b device on a n network i can't think of a decent reason for it to randomly disconnect. A adb logcat might help as well if there's no relevant wlan related info on the dmesg towards the bottom., if you happen to post any output from a logcat or dmesg, please put it in code brackets.
My Wallpaper Fix for KF2, KFHD 7", and KFHD 8.9" is HERE
Please Read the instructions and use the debugger if you run into errors.
My own modified adb drivers for just about all kindles (includes old twrp and cm versions) HERE
Tablet UI Patch for latest CM10.1 build HERE!

Please send complaints to /dev/null
 
ProfLonghair
Old
#3  
Member - OP
Thanks Meter 34
Posts: 98
Join Date: Feb 2011
I have no idea what to look for. I did a dmesg and I didn't find anything that looked relevant or interesting searching for wifi, or wlan. I looked for error and found this (including several lines before and after)

Code:
<6>[53406.056396] RTC: Alarm set to 2014-03-04 22:27:43. (Now is: 2014-03-04 22:22:11 UTC)

<6>[53406.060577] max44007_suspend

<6>[53406.061523] smb347 3-005f: Entering suspend, event = 0x0002

<6>[53406.061553] smb347 3-005f: Finishing suspend

<6>[53406.063262] PVR: PVRSRVDriverSuspend(pDevice=e64ade00)

<6>[53406.063323] PVR: SysSystemPrePowerState: Entering state D3

<6>[53406.063354] PVR: Uninstalling device LISR on IRQ 53 with cookie e5d96000

<6>[53406.063415] PVR: DisableSystemClocks: Disabling System Clocks

<6>[53406.070678] bu52061_suspend

<6>[53406.071319] PM: suspend of devices complete after 64.239 msecs

<6>[53406.073303] active wake lock wlan_rx_wake, time left 124

<3>[53406.073303] pm_noirq_op(): platform_pm_suspend_noirq+0x0/0x40 returns -11

<3>[53406.073303] PM: Device power.0 failed to suspend late: error -11

<6>[53406.074951] PM: early resume of devices complete after 1.525 msecs

<3>[53406.075347] PM: Some devices failed to power down

<6>[53406.075744] bu52061_resume

<6>[53406.189178] PVR: PVRSRVDriverResume(pDevice=e64ade00)

<6>[53406.189208] PVR: SysSystemPostPowerState: Entering state D0

<6>[53406.189239] PVR: EnableSystemClocks: Enabling System Clocks

<6>[53406.189270] PVR: Installing device LISR SGX ISR on IRQ 53 with cookie e5d96000

<6>[53406.194641] bq27541 3-0055: Suspend drainage: 0 % over 132 msecs

<6>[53406.194702] bq27541 3-0055: batt:def:cap=95;CT;1,mv=4123;CT;1,current_avg=-30;CT;1,temp_g=237;CT;1,charge=4000;CT;1:NR

<6>[53406.194732] smb347 3-005f: Finishing resume

<6>[53406.194763] max44007_resume

<4>[53406.196105] bcm2076_bt_rfkill_set_power(On)

<6>[53406.200927] PM: resume of devices complete after 125.518 msecs

<7>[53406.374816] PM: Finishing wakeup.
 
ProfLonghair
Old
#4  
Member - OP
Thanks Meter 34
Posts: 98
Join Date: Feb 2011
logcat:


Code:
D/CommandListener( 9042): /proc/tcpreset 43,5037,44457,

D/WifiService(  260): TCP whitelist=43,5037,44457,

D/dalvikvm(  260): GC_CONCURRENT freed 1927K, 30% free 17460K/24775K, paused 6ms+16ms

I/WakelockDebugService(  260): Checking for active app wake locks...

D/dalvikvm(  404): GC_CONCURRENT freed 437K, 51% free 10472K/20999K, paused 5ms+2ms

D/CommandListener( 9042): /proc/tcpreset 43,5037,44457,

D/WifiService(  260): TCP whitelist=43,5037,44457,

W/Intent  (  260): Failure filling in extras

W/Intent  (  260): java.lang.RuntimeException: Parcelable encounteredClassNotFoundException reading a Serializable object (name = java.util.MiniEnumSet)

W/Intent  (  260): 	at android.os.Parcel.readSerializable(Parcel.java:2037)

W/Intent  (  260): 	at android.os.Parcel.readValue(Parcel.java:1905)

W/Intent  (  260): 	at android.os.Parcel.readMapInternal(Parcel.java:2094)

W/Intent  (  260): 	at android.os.Bundle.unparcel(Bundle.java:223)

W/Intent  (  260): 	at android.os.Bundle.putAll(Bundle.java:296)

W/Intent  (  260): 	at android.content.Intent.fillIn(Intent.java:5724)

W/Intent  (  260): 	at com.android.server.am.PendingIntentRecord.sendInner(PendingIntentRecord.java:200)

W/Intent  (  260): 	at com.android.server.am.PendingIntentRecord.send(PendingIntentRecord.java:182)

W/Intent  (  260): 	at android.app.PendingIntent.send(PendingIntent.java:509)

W/Intent  (  260): 	at android.app.PendingIntent.send(PendingIntent.java:463)

W/Intent  (  260): 	at com.android.server.AlarmManagerService$AlarmThread.run(AlarmManagerService.java:708)

W/Intent  (  260): Caused by: java.lang.ClassNotFoundException: com.amazon.mcc.crashreporter.ReportType

W/Intent  (  260): 	at java.lang.Class.classForName(Native Method)

W/Intent  (  260): 	at java.lang.Class.forName(Class.java:217)

W/Intent  (  260): 	at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:2297)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNewClassDesc(ObjectInputStream.java:1656)

W/Intent  (  260): 	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:683)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNewClass(ObjectInputStream.java:1536)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java:781)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1999)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1956)

W/Intent  (  260): 	at java.io.ObjectInputStream.readFieldValues(ObjectInputStream.java:1137)

W/Intent  (  260): 	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:455)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObjectForClass(ObjectInputStream.java:1369)

W/Intent  (  260): 	at java.io.ObjectInputStream.readHierarchy(ObjectInputStream.java:1266)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNewObject(ObjectInputStream.java:1851)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java:787)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1999)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1956)

W/Intent  (  260): 	at android.os.Parcel.readSerializable(Parcel.java:2031)

W/Intent  (  260): 	... 10 more

W/Intent  (  260): Caused by: java.lang.NoClassDefFoundError: com/amazon/mcc/crashreporter/ReportType

W/Intent  (  260): 	... 28 more

W/Intent  (  260): Caused by: java.lang.ClassNotFoundException: com.amazon.mcc.crashreporter.ReportType

W/Intent  (  260): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

W/Intent  (  260): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

W/Intent  (  260): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

W/Intent  (  260): 	... 28 more

D/CommandListener( 9042): /proc/tcpreset 43,5037,44457,

D/WifiService(  260): TCP whitelist=43,5037,44457,



Code:
I/InputReader(  260): Reconfiguring input devices.  changes=0x00000004

I/InputReader(  260): Device reconfigured: id=1, name='AtmelTouch', surface size is now 800x1280, mode is 1

I/ActivityManager(  260): Config changed: {1.0 0mcc0mnc en_US layoutdir=0 sw640dp w1024dp h640dp lrg land rot_90 finger -keyb/v/h -nav/h s.40}

D/OpenGLRenderer(19292): Flushing caches (mode 0)

D/OpenGLRenderer(  404): Flushing caches (mode 0)

D/OpenGLRenderer(  404): Flushing caches (mode 0)

D/OpenGLRenderer(  395): Flushing caches (mode 0)

D/OpenGLRenderer(  395): Flushing caches (mode 0)

D/dalvikvm(  486): GC_FOR_ALLOC freed 131K, 28% free 10155K/14023K, paused 21ms

I/dalvikvm-heap(  486): Grow heap (frag case) to 12.622MB for 1540636-byte allocation

D/dalvikvm(  486): GC_CONCURRENT freed 5K, 17% free 11654K/14023K, paused 1ms+2ms

V/Sensors (  260): accel data: 7.644902 0.244292 -2.081272

I/ActivityManager(  260): No longer want com.android.settings (pid 12323): hidden #16

W/InputDispatcher(  260): channel '419825a0 com.android.settings/com.android.settings.WifiSettings (server)' ~ Consumer closed input channel or an error occurred.  events=0x8

E/InputDispatcher(  260): channel '419825a0 com.android.settings/com.android.settings.WifiSettings (server)' ~ Channel is unrecoverably broken and will be disposed!

W/InputDispatcher(  260): Attempted to unregister already unregistered input channel '419825a0 com.android.settings/com.android.settings.WifiSettings (server)'

I/WindowManager(  260): WINDOW DIED Window{419825a0 paused=false}

D/dalvikvm(  260): GC_EXPLICIT freed 129K, 30% free 17363K/24775K, paused 3ms+9ms

D/OpenGLRenderer(  486): Flushing caches (mode 0)

W/audio_hw_hdmi_daemon(  107): changing suspend state: 0 -> 1

I/power   (  260): *** set_screen_state 0
Again, no idea if this is relevant or helpful or even what I should be looking for. I saved both files, and can look for more if you have any ideas.
 
stunts513
Old
#5  
stunts513's Avatar
Recognized Contributor
Thanks Meter 606
Posts: 2,208
Join Date: Feb 2013
Location: New Braunfels, TX

 
DONATE TO ME
Quote:
Originally Posted by ProfLonghair View Post
logcat:


Code:
D/CommandListener( 9042): /proc/tcpreset 43,5037,44457,

D/WifiService(  260): TCP whitelist=43,5037,44457,

D/dalvikvm(  260): GC_CONCURRENT freed 1927K, 30% free 17460K/24775K, paused 6ms+16ms

I/WakelockDebugService(  260): Checking for active app wake locks...

D/dalvikvm(  404): GC_CONCURRENT freed 437K, 51% free 10472K/20999K, paused 5ms+2ms

D/CommandListener( 9042): /proc/tcpreset 43,5037,44457,

D/WifiService(  260): TCP whitelist=43,5037,44457,

W/Intent  (  260): Failure filling in extras

W/Intent  (  260): java.lang.RuntimeException: Parcelable encounteredClassNotFoundException reading a Serializable object (name = java.util.MiniEnumSet)

W/Intent  (  260): 	at android.os.Parcel.readSerializable(Parcel.java:2037)

W/Intent  (  260): 	at android.os.Parcel.readValue(Parcel.java:1905)

W/Intent  (  260): 	at android.os.Parcel.readMapInternal(Parcel.java:2094)

W/Intent  (  260): 	at android.os.Bundle.unparcel(Bundle.java:223)

W/Intent  (  260): 	at android.os.Bundle.putAll(Bundle.java:296)

W/Intent  (  260): 	at android.content.Intent.fillIn(Intent.java:5724)

W/Intent  (  260): 	at com.android.server.am.PendingIntentRecord.sendInner(PendingIntentRecord.java:200)

W/Intent  (  260): 	at com.android.server.am.PendingIntentRecord.send(PendingIntentRecord.java:182)

W/Intent  (  260): 	at android.app.PendingIntent.send(PendingIntent.java:509)

W/Intent  (  260): 	at android.app.PendingIntent.send(PendingIntent.java:463)

W/Intent  (  260): 	at com.android.server.AlarmManagerService$AlarmThread.run(AlarmManagerService.java:708)

W/Intent  (  260): Caused by: java.lang.ClassNotFoundException: com.amazon.mcc.crashreporter.ReportType

W/Intent  (  260): 	at java.lang.Class.classForName(Native Method)

W/Intent  (  260): 	at java.lang.Class.forName(Class.java:217)

W/Intent  (  260): 	at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:2297)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNewClassDesc(ObjectInputStream.java:1656)

W/Intent  (  260): 	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:683)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNewClass(ObjectInputStream.java:1536)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java:781)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1999)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1956)

W/Intent  (  260): 	at java.io.ObjectInputStream.readFieldValues(ObjectInputStream.java:1137)

W/Intent  (  260): 	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:455)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObjectForClass(ObjectInputStream.java:1369)

W/Intent  (  260): 	at java.io.ObjectInputStream.readHierarchy(ObjectInputStream.java:1266)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNewObject(ObjectInputStream.java:1851)

W/Intent  (  260): 	at java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java:787)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1999)

W/Intent  (  260): 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1956)

W/Intent  (  260): 	at android.os.Parcel.readSerializable(Parcel.java:2031)

W/Intent  (  260): 	... 10 more

W/Intent  (  260): Caused by: java.lang.NoClassDefFoundError: com/amazon/mcc/crashreporter/ReportType

W/Intent  (  260): 	... 28 more

W/Intent  (  260): Caused by: java.lang.ClassNotFoundException: com.amazon.mcc.crashreporter.ReportType

W/Intent  (  260): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

W/Intent  (  260): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

W/Intent  (  260): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

W/Intent  (  260): 	... 28 more

D/CommandListener( 9042): /proc/tcpreset 43,5037,44457,

D/WifiService(  260): TCP whitelist=43,5037,44457,



Code:
I/InputReader(  260): Reconfiguring input devices.  changes=0x00000004

I/InputReader(  260): Device reconfigured: id=1, name='AtmelTouch', surface size is now 800x1280, mode is 1

I/ActivityManager(  260): Config changed: {1.0 0mcc0mnc en_US layoutdir=0 sw640dp w1024dp h640dp lrg land rot_90 finger -keyb/v/h -nav/h s.40}

D/OpenGLRenderer(19292): Flushing caches (mode 0)

D/OpenGLRenderer(  404): Flushing caches (mode 0)

D/OpenGLRenderer(  404): Flushing caches (mode 0)

D/OpenGLRenderer(  395): Flushing caches (mode 0)

D/OpenGLRenderer(  395): Flushing caches (mode 0)

D/dalvikvm(  486): GC_FOR_ALLOC freed 131K, 28% free 10155K/14023K, paused 21ms

I/dalvikvm-heap(  486): Grow heap (frag case) to 12.622MB for 1540636-byte allocation

D/dalvikvm(  486): GC_CONCURRENT freed 5K, 17% free 11654K/14023K, paused 1ms+2ms

V/Sensors (  260): accel data: 7.644902 0.244292 -2.081272

I/ActivityManager(  260): No longer want com.android.settings (pid 12323): hidden #16

W/InputDispatcher(  260): channel '419825a0 com.android.settings/com.android.settings.WifiSettings (server)' ~ Consumer closed input channel or an error occurred.  events=0x8

E/InputDispatcher(  260): channel '419825a0 com.android.settings/com.android.settings.WifiSettings (server)' ~ Channel is unrecoverably broken and will be disposed!

W/InputDispatcher(  260): Attempted to unregister already unregistered input channel '419825a0 com.android.settings/com.android.settings.WifiSettings (server)'

I/WindowManager(  260): WINDOW DIED Window{419825a0 paused=false}

D/dalvikvm(  260): GC_EXPLICIT freed 129K, 30% free 17363K/24775K, paused 3ms+9ms

D/OpenGLRenderer(  486): Flushing caches (mode 0)

W/audio_hw_hdmi_daemon(  107): changing suspend state: 0 -> 1

I/power   (  260): *** set_screen_state 0
Again, no idea if this is relevant or helpful or even what I should be looking for. I saved both files, and can look for more if you have any ideas.
Doesn't look relevant, just post the entire dmesg to pastebin and post a link and i'll look at it. I believe i was being lazy and didn't give a command, try this to store all output
Code:
adb shell "dmesg" > dmesg.txt
it will stick the txt file wherever you are cd'd into(probably where adb is). I think i got the syntax right on that command.
My Wallpaper Fix for KF2, KFHD 7", and KFHD 8.9" is HERE
Please Read the instructions and use the debugger if you run into errors.
My own modified adb drivers for just about all kindles (includes old twrp and cm versions) HERE
Tablet UI Patch for latest CM10.1 build HERE!

Please send complaints to /dev/null
 
ProfLonghair
Old
#6  
Member - OP
Thanks Meter 34
Posts: 98
Join Date: Feb 2011
dmesg
http://pastebin.com/L5vFci7m

logcat
http://pastebin.com/vFePtP1C

I had to trim some stuff from the logcat, mostly just low battery warning, to get it to fit on pastebin
 
stunts513
Old
#7  
stunts513's Avatar
Recognized Contributor
Thanks Meter 606
Posts: 2,208
Join Date: Feb 2013
Location: New Braunfels, TX

 
DONATE TO ME
Seems like I saw more WiFi related stuff in the logcat than the dmesg, like around line 6524, not sure if what I'm seeing is relevant or not though. I understand dmesg's better than log cats. Maybe I'll look into this a bit more when I'm on my PC.

Sent from my Amazon Kindle Fire HD using Tapatalk
My Wallpaper Fix for KF2, KFHD 7", and KFHD 8.9" is HERE
Please Read the instructions and use the debugger if you run into errors.
My own modified adb drivers for just about all kindles (includes old twrp and cm versions) HERE
Tablet UI Patch for latest CM10.1 build HERE!

Please send complaints to /dev/null

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Try to Keep Up with Just Swipe Game

Sometimes, the simplest of games are the ones that end up beingthe most addictive and end up consuming … more

MultiROM Ported to the Moto E

Few categoriesof Android development are as intrinsically interestingas the ability to boot into multiple … more

XDA Xposed Tuesday: How to Control Google Play Wake Locks – XDA Developer TV

Xposed Modules are usually pretty simple. There are a few … more

Make Text Entry More Efficient with Macro Text Expansion

One of the best things about the modern day smartphone is its ability to save us … more