wifi problem on NIGHTLY CyanogenMod 11 INTERNATIONAL - HTC One X+

from time to time my wifi stops working. i try to enable and disable it, but it does not work. i must reboot the phone to get wifi working again.
just now it happened again. so i open an adb shell, switch to root and kill the wpa_supplicant. and now wifi is working again without reboot.
@Lloir & @Thömy attached is a logcat. at 10:30:41.072 i killed the wpa_supplicant

white- said:
from time to time my wifi stops working. i try to enable and disable it, but it does not work. i must reboot the phone to get wifi working again.
just now it happened again. so i open an adb shell, switch to root and kill the wpa_supplicant. and now wifi is working again without reboot.
@Lloir & @Thömy attached is a logcat. at 10:30:41.072 i killed the wpa_supplicant
Click to expand...
Click to collapse
Not sure what the problem is. Can't find anything obvious.
Is that timeline correct?
Code:
09:38:36: disconnection from WiFi
10:18:38 - 10:29:04: you try to enable/disable WiFi a couple of times
10:39:18: connected to WiFi
10:30:41: you kill the wpa_supplicant
10:36:12: wpa_supplicant complains about being forcefully killed
wpa_supplicant restarts 5 times
10:39:17: you're connected to WiFi again
The next time that happens try to get the output of "dumpsys wifi" and "dumpsys connectivity" before you kill something.

Probably needs either a clean install or a fresh kernel flash
Sent from my Nexus 5 using Tapatalk

Thömy said:
Not sure what the problem is. Can't find anything obvious.
Is that timeline correct?
Code:
09:38:36: disconnection from WiFi
10:18:38 - 10:29:04: you try to enable/disable WiFi a couple of times
10:39:18: connected to WiFi
10:30:41: you kill the wpa_supplicant
10:36:12: wpa_supplicant complains about being forcefully killed
wpa_supplicant restarts 5 times
10:39:17: you're connected to WiFi again
The next time that happens try to get the output of "dumpsys wifi" and "dumpsys connectivity" before you kill something.
Click to expand...
Click to collapse
the "10:39:18: connected to WiFi" is imo wrong. because i killed wpa_supplicant because i was not connected to wifi.
i will do the dumpsys thing next time and post the result
Probably needs either a clean install or a fresh kernel flash
Click to expand...
Click to collapse
why? this ist a dirty flash of cm-11-20140304 with its kernel. what is wrong with it?

the problem has occurred again, but a little bit different.
1) connected to b.nuhq.nunet (at work)
2) 12:32:18.973 make a smoking break -> wifi got disconnected because of poor signal
3) back at work place: can not switch on the phone. only the hardware buttons begin to light up, but the displays stays off.
4) attached the phone to usb and adb
5) 12:43:44.938 get a logcat (logcat.txt) and dmesg (dmesg.txt)
try to get the dumpsys wifi on a adb shell as ROOT. this command hangs forever without any output. but after 30 seconds the phone vibrates and the adb logcat on the other terminal spits out many log lines (logcat-crazy.txt). after that, i can switch the display on again. but the phone was not rebooted!
after that i try to get the dumpsys as user. and this works fine (dumpsys-wifi.txt, dumpsys-connectivity.txt)
wifi is still at VERIFYING_POOR_LINK but this is wrong. the access point is 3 meter away from me
dmesg2.txt is after the screen works again. but after 10 minutes the screen is off again and i can not switch the phone on. im still connected via adb
logcat-time.txt is a is a complete log with timestamps.
traces.txt is from /data/anr/traces.txt
13:42 killed wpa_supplicant with "kill 939"
13:44 manually connect b.nuhq.nunet (failed)
13:45 switch wifi off
13:45 switch wifi on (works fine)
after that i can use the screen again.
the problem that the screen can not switched on exists for since the begin. but in the most cases it happens in connection with a poor wifi signal.

Related

Help to stop unknown app

hi guys. my story:
i am on holidays and i was running kitchen KH3 - stripped - untill i found some issues with gps so i decided to restore my cognition 1.51 from CWM - its clean version no extra added nothing special.
i charged the phone to 100% and left for dinner. after 10 min i came back to check the phone and it was extremly HOT (it was not connected to charger anymore) and the battery was on 50% already - yes only after 10 min! even i wasnt even touching the device! 3g was off, wifi was off, bluetooth was off, gps was off..only phone was on. nothing running - autosync off, weather update off. can someone help me locate the drain? the bluetooth was off and didnt switch it on at any stage.
check out the screenshots i made
any idea? how can bluetooth be the app if its off and i didnt switch it on at any stage.
Hunteres said:
any idea? how can bluetooth be the app if its off and i didnt switch it on at any stage.
Click to expand...
Click to collapse
adbd = ADB daemon (Android Debug Bridge) /sbin/adbd
You can see what is going on in a terminal, just run:
# ps
Are you in debugging mode? If you are not, something is not right... Time to flash your phone with a stock ROM?
yqed said:
adbd = ADB daemon (Android Debug Bridge) /sbin/adbd
You can see what is going on in a terminal, just run:
# ps
Are you in debugging mode? If you are not, something is not right... Time to flash your phone with a stock ROM?
Click to expand...
Click to collapse
yeh that may reproduce the adbd drain but i cant understand the bluetooth drain...i am not using it and its been off for ages... and phone without screen on getting hot and draining so fast - there is something going on - i restored the cogni one more time - so all records have been lost
thanks
You keep on telling us about Cognition ROM... Have you tried a stock ROM and see if you have any issues?
If you don't, personally I would post a report into dev's thread.

Gingerbread Wifi Issue

Not sure if anyone else has seen this issue. I have been having Wifi issues with almost all GB ROMs. Wifi will be working fine then just drop off and reconnect randomly. This happens while I am using it and not while sleeping. I have confirmed this with Vegan 7.1, GHarmony, and the Flash* version from Slatedroid. I do not remember having this issue with CM7, but didn't like the ROM so I changed. I really want to switch to GB but this is a show stopper. Anyone thoughts?
Update to the latest Pershoot kernel. That has some fixes for this.
If the problem still persists, try downgrading your WiFi firmware blobs.
Note, however, that the causes of WiFi drops are many. Some troubleshooting will be needed to find out the exact cause of your problem.
Thanks for the recommendations. I tried newer kernel and downgrading the Wifi blobs. Still no go. The odd thing is this only happens with GB ROMs, all Froyo ROMs are fine, and it seems to be limited to my home Wifi, which is WPA/WPA2, at work with LEAP it doesn't happen. Going to try changing some settings on my WIFI this weekend. To compare Flashpoint from Slatedroid works fine, but the GB version Flashlight has the problem. Also going to try the older Vegan 7 on 1.2 bootloader, i don't remember this happening on that or CM7 build 86.
See if this helps: It doesn't.
Code:
$ [B]su[/B]
# [B]wpa_cli -i wlan0 driver setsuspendopt 1[/B]
[I]Wait 15 secs[/I]
# [B]wpa_cli -i wlan0 driver setsuspendopt 0[/B]
Sorry most of this is greek to me as I am a NOOB. Have Gtab 3588 1.1 vegan 7.?
all of a sudden I can't connect to wifi, all my other devices at home work fine. Getting a disabled connection from home, have tried re-adding, rebooting, reseting rom, reinstalling Vegan.
I sorry I need step by step help
thx Jaye
markmac said:
Not sure if anyone else has seen this issue. I have been having Wifi issues with almost all GB ROMs. Wifi will be working fine then just drop off and reconnect randomly. This happens while I am using it and not while sleeping. I have confirmed this with Vegan 7.1, GHarmony, and the Flash* version from Slatedroid. I do not remember having this issue with CM7, but didn't like the ROM so I changed. I really want to switch to GB but this is a show stopper. Anyone thoughts?
Click to expand...
Click to collapse
I think it has to do with the AES encryption key updates and the gingerbread wifi libs. Take a look at this post to see how you can change your router settings to prevent or minimize this.
http://forum.xda-developers.com/showpost.php?p=18035185&postcount=144
gtabowner said:
Sorry mosy of this is greek to me as I am a NOOB. Have Gtab 3588 1.1 vegan 7.?
Click to expand...
Click to collapse
Exact version?
all of a sudden I can't connect to wifi, all my other devices at home work fine. Getting a disabled connection from home, have tried readding, rebooting, reseting rom, reinstalling Vegan.
Click to expand...
Click to collapse
As I said in post #2, above:
Note, however, that the causes of WiFi drops are many. Some troubleshooting will be needed to find out the exact cause of your problem.
Click to expand...
Click to collapse
However, you can:
1. Try upgrading to the latest pershoot kernel. Since you're on Vegan 7 (a Gingerbread ROM) and the 1.1 bootloader, go to http://droidbasement.com/db-blog/ and download this file boot-cm_2632.46_gb-oc-uv-xtra-vfp_fp-083111.zip from there. Copy the zip file onto your gtab, then install it using CWM.
2. If the upgraded kernel doesn't help try downgrading the firmware blobs using the link in post #2. Use the Cyanogenmod zip file.
3. If neither of the 2 steps above work, then follow this post and get me some logs.
As i thought,i have tried Vegan 7.0 and the problem is not occuring. I did have an issue with the new market but i just rolled back to original and removed the market updater. Seems like the issue is related to the 2.3.5 versions of ROMs.
rajeevvp said:
Exact version?
As I said in post #2, above:
However, you can:
1. Try upgrading to the latest pershoot kernel. Since you're on Vegan 7 (a Gingerbread ROM) and the 1.1 bootloader, go to http://droidbasement.com/db-blog/ and download this file boot-cm_2632.46_gb-oc-uv-xtra-vfp_fp-083111.zip from there. Copy the zip file onto your gtab, then install it using CWM.
2. If the upgraded kernel doesn't help try downgrading the firmware blobs using the link in post #2. Use the Cyanogenmod zip file.
3. If neither of the 2 steps above work, then follow this post and get me some logs.
Click to expand...
Click to collapse
will try this today
Thank you again. when I can get in I will find out what exact Vegan and such i am using. What info do you need? and exactly where do I find it. It says 7.0.0 when booting up
Thank you all again.
gtabowner said:
What info do you need? and exactly where do I find it. It says 7.0.0 when booting up
Click to expand...
Click to collapse
Fine, then you have a Gingerbread ROM. Just follow the instructions in post #7, above, and see if each step helps.
If steps 1. and 2. don't help you, use the instructions in the link in step 3. to get me logs which will help me troubleshoot your problem.
rajeevvp said:
If steps 1. and 2. don't help you, use the instructions in the link in step 3. to get me logs which will help me troubleshoot your problem.
Click to expand...
Click to collapse
HI,
I hope this thread is still active as I'm having very similar issue. It has started 2-3 weeks after I got my gTablet and flashed it. The usual scenario is this:
1. Reboot
2. Immediate connection to wifi
3. Starting using internet - immediate disconnect
4. After several minutes of constant connect/disconnect finally connected
5. From now it works for a few minutes, then disconnect, then reconnects, works again, disconnects again etc.
What I have already tried:
1. Changing wifi channel - no difference
2. Changing security (wpa, wep, none) - no difference
2. Downgrading blobs - no difference
3. Installing new kernel - that seem to stabilize reconnection (it reconnects more often and more reliable)
At home I'm runnig netgear WNDR3300 router with ddwrt installed. I've also tried public RoadRunner access point in the gym but the result is the same.
I'm starting to think it is a hardware problem but would like somebody to verify that. Any help greatly appreciated. Log files are attached.
Thanks,
Janusz
1. As per the logs your access point seems to be returning an invalid lease time (-1 seconds). Change the DHCP lease time to 3600 seconds (1 hour) and get me another set of logs.
2. Why does your Netgear wireless router broadcast 2 SSIDs, "PL" and "PLN" ?
My DHCP lease time was set to set to 1440 minutes (minutes is the only available unit here). I don't remember changing that so it must be a default one. I can change it to 60 minutes and rerun logs.
My router has 2 radios. I need to keep WEP encryption for my linksys internet radios that don't support WPA. Originally I only had one radio turned on with WEP but once I started getting problems with gtablet I played with different settings. Now I'm running both radios. PLN is WPA encrypted with G only connection on channel 11 and PL is WPA b/g on channel 4. They don't interfere with each other and turning one of them off or on didn't make a difference for gTablet.
Janusz
New set of logs after chaning DHCP lease time to 60 minutes. Disconnects seem to be less frequent and they reconnect almost immediately. My previous post should say that PL radio is set to WEP, not WPA.
Thanks a lot,
Janusz
januszk said:
New set of logs after chaning DHCP lease time to 60 minutes. Disconnects seem to be less frequent and they reconnect almost immediately.
Click to expand...
Click to collapse
Change the WPA Group Rekey Interval to a different value (I have it set to 1800 seconds) then reboot both the router and the gTablet. The new set of logs show that the gTab is having trouble connecting to the Netgear.
See also this post for another setting which you can try tweaking.
Done. Was set to max 99999. Still disconnects, hard to say if less or more often then before (although works way better then yesterday). New logs attached.
Thanks,
Janusz
januszk said:
Done. Was set to max 99999. Still disconnects...
Click to expand...
Click to collapse
The latest set of logs show that the gTablet is still having problems connecting to the Netgear router:
Code:
gTablet$ [B]su[/B]
gTablet# [B]logcat -d -v time | egrep -i 'connectivity|dhcp|wpa|wifi|wlan'[/B]
...
10-21 12:51:13.406 E/ConnectivityService( 1048): Attempt to connect to WIFI failed.
...
I also see that the tablet is trying to connect to SSID 'PLN'. The first set of logs had it connecting to SSID 'PL'.
Suggestions:
1. Go back to the default values for Wireless LAN Settings on the wireless router--except for the ones we changed in this thread.
2. Delete the WiFi connection from the gTablet, reboot, then set up a new connection (only for SSID 'PLN').
3. For this new connection, set the no. of channels to 11 channels--ie US channel settings. (Advanced WiFi settings)
4. Turn off any "Network Notification" in WiFi settings.
5. Go back to the stock firmware on the wireless router instead of dd-wrt.
...hard to say if less or more often then before (although works way better then yesterday). New logs attached.
Click to expand...
Click to collapse
It's still disconnecting pretty regularly. Subjective judgements can be erroneous, so use the script (attached) that I use to check these things. After making the script (which needs busybox) executable and moving it into /data/local/bin, run it like this inside a Terminal Emulator window:
Code:
gTablet$ [B]dmesg | d.awk[/B]
[63636.011275] STA connect received 1
[66204.696828] STA connect received 1: 42m 48s
You can also pass one of the previously collected dmesg*.txt files through the script:
Code:
gTablet$ [B]d.awk /mnt/sdcard/dmesg2.txt[/B]
<4>[ 33.513973] STA connect received 1
<4>[ 215.890648] STA connect received 1: 3m 2s
<4>[ 396.218500] STA connect received 1: 3m 0s
<4>[ 576.546805] STA connect received 1: 3m 0s
<4>[ 757.899052] STA connect received 1: 3m 1s
<4>[ 938.227396] STA connect received 1: 3m 0s
Thanks a lot. I'll try some of those. I'll get my tablet to one of my friends to see if this will work better with other routers. I've already tried leaving only PLN connection but it didn't make any difference. The reason why latest logs were primarily PLN were because if "forgot" settings for PL. You have suggested to change WPA key renewal and this setting is only for PLN, thats why I removed PL, which is WEP. I may try resetting to defaults but I don't really want to go back to stock firmware as it has been reported by many as buggy and unstable. Its dd-wrt that puts new lifie into it. I have the whole bunch of other wifi devices at home and everything works perfectly.
I'll also give your script a try to see where I stand at.
BTW: Do you think it may be hardware problem? I don't think the BT/WIFI module is easily replacable without replacing the whole motherboard.
In the meantime I really appreciate your help so how can I buy you a beer?
Janusz
januszk said:
BTW: Do you think it may be hardware problem?
Click to expand...
Click to collapse
Nothing in the logs indicate that this is hardware-caused. Other people, including me, have faced this before without hardware issues, so it is very likely a software problem. Our gTablet does not work well with some kinds of wireless routers. I have a software fix working on my gTab which I am in the process of testing. I'll send it upstream after I'm satisfied that it doesn't inadvertently break other things.
In the meantime I really appreciate your help so how can I buy you a beer?
Click to expand...
Click to collapse
Make a donation to your favourite charity instead--or buy a beer for a friend.
OK, will do
I've installed your custom awk script. Disconnects are every few minutes or so, well I'll live with it for now and try another router. When you have your fix ready sign me up for a beta testing.
Thanks again,
Janusz

[Question] MiniCM7-2.1.9 wifi not working

I'm on the latest nAa kernel, using MiniCM7-2.1.9, but wifi just doesn't work. I can browse the internet using my 3G connection, just not wifi for some reason.
Wifi shows it's connected, the signal bars is full but it just doesn't download any data, it's like it's not connected at all. It's able to get an IP address and the link speed is good but it just doesn't get any data.....
I've tried searching through different posts and tried solutions such as:
http://forum.xda-developers.com/showpost.php?p=21766413&postcount=498
as well as the instruction to fix wifi in the Troubleshooting page here:
http://code.google.com/p/minicm/wiki/Troubleshooting
and this:
http://forum.xda-developers.com/showpost.php?p=22170822&postcount=817
I also cleaned the dalvik cache by going into recovery, reboot and still doesn't work.
and they all don't work....
UPDATE:
OK nvm it works now. I reflashed the kernel, wipe data & factory reset and then reflash the rom, and now it works. It's the exact same thing I did for the past 30 mins, except this time I also reflashed the kernel. I just hope it'll continue working.....
UPDATE 2:
Ok, now it's not working again. I rebooted the phone twice, and it was able to connect to wifi no problem. But then later on it stopped working again, I didn't install or change anything either.
I also noticed that whenever I'm connected to wifi on my phone, the wifi on my PC will timeout and drop connection. If I then try to connect wifi on my PC, then the wifi on my phone will timeout. Basically, I can't connect both at the same time.
But all my other devices work fine. My Motorola Milestone and my mom's HTC Desire Z works fine. My iPod Touch works fine, I've NEVER had a wifi issue with any of my devices until I tested out my new Xperia X10 Mini Pro today.......
I haven't tried testing it on stock rom & kernel, because the first thing I did was to unlock the bootloader and flash the nAa kernel + MiniCM7-2.1.9. And I can't be bothered flashing back to stock since I won't be staying on stock anyway, especially after setting up everything already so I can't really be bothered.....
Anyway, so I then tried to delete wpa_supplicant.conf in data/misc/wifi (as mentioned above) and this time it shows "Error" under Wi-Fi settings.
This is really annoying me....
One note about wpa_supplicant.conf (/data/misc/wifi/wpa_supplicant.conf). In stock kernel with MiniCM Pro from paul-xxx the right ctrl_interface was wlan0.
nAa kernel (with MiniCM from nAa) needs tiwlan0.
So it isn't necessery to delete file with all wifi networks when changing kernel/ROM but one value in config file.
ya, except the value was tiwlan0 already, I tried changing it back to wlan0 and nothing happens. So then I tried deleting it, and now whenever I try to turn Wifi on it just shows Error.
What's actually strange about this is that I've backed up the original file, and when I restored it and tried to turn Wifi on, it turns on but doesn't display any network.
Before, it would display tons of networks, and it would connect to my router (but doesn't download data for some reason). It doesn't work but at least you can tell it's able to detect networks.
Now, it doesn't even show any networks. The only way to fix this is to restore from recovery or do a wipe......
Ok so I did some research and could this be the case?
http://www.youtube.com/watch?v=DwYOtf4fI0Q
I've also tried to assign static IP but it still doesn't work. I went into my router and checked the ARP, and it shows this:
IP address Flags MAC Address Device
192.168.1.2 Complete 00:18E:48:42:C9 br0
192.168.1.3 Complete 00:E0:4C:A3:8B:A8 br0
192.168.1.6 Incomplete 18:87:96:FE:16:3E br0
192.168.1.5 Complete 48:5D:60:3B:5E:5D br0
Click to expand...
Click to collapse
where 192.168.1.6 is assigned to my phone. I'm not that good with router stuff but know the basics, does anyone know what I need to configure?
I'm having the same problem with my mini pro
Decaptivated Slamsung
nowseewhatudid said:
I'm having the same problem with my mini pro
Decaptivated Slamsung
Click to expand...
Click to collapse
I haven't had time to try this out yet, but maybe you wanna give it a try? Scroll to "PROBLEMS WITH WIFI?" in this topic here:
http://forum.xda-developers.com/showthread.php?t=1066824

[Q]Erratic WiFi after 3.24.531.3 Update. Turns off when trying to connect to network

A few days ago I got a software update notification for 3.24.531.3. I ran the update and everything seemed to work fine. But when the phone rebooted I noticed I was no longer connected to my WiFi. I figured I just had to retype the password because of the software update. I typed in the password and hot "connect" and the phone froze for a few seconds. Then it flashed an error message say "unable to connect to network" and the WiFi turned off. So I tried connecting to an unsecured network and the same thing happened. So now my WiFi isn't working at all.
At the time, I was completely stock, not root, locked bootloader, nothing. So I though maybe unlocking, rooting, and flashing a custom ROM would fix the problem. I've tried a few different ROMs and they all have the same problem. I can turn the WiFi on and scan, but as soon as I try to connect to any network it freezes and turns off. I even get an error message say that "Settings has become unresponsive" and asks to send an error report to HTC.
Then today, I got another software update message saying there is another software update available but I can't download it since I can't connect to WiFi at all.
Any ideas what I can do to fix the problem?
Go to your settings and rename your phone "HTC One"
Problem solved.
ingenious247 said:
Go to your settings and rename your phone "HTC One"
Problem solved.
Click to expand...
Click to collapse
Thanks for your reply
I've tried that. I got it renamed in the WiFi Direct setting and in the About>Phone Identity settings, but when I type in the password it hangs then pops up with "failed to connect to network" and when that closes the WiFi is turned off. It's like the WiFi turns itself off while it's trying to connect.
I've gone through and turned off all the Power Save and Sleep settings thinking that was causing the problem, but that didn't do anything either.
Just flashed with a Stock 3.24.531.1 RUU and still getting the same problem. WiFi turns on and off erratically. I restored my google setting which saved my home WiFi password and it connectst to the network, but has no internet. And everytime I try to change the WiFi Direct name to "HTC One" it "fails to rename device" and WiFi is turned off. Hopefully now that I'm back to stock I can use internet pass through to download the new software update and that fixes the problem.
Was able to run the OTA update to 4.4.2 and am still having the same WiFi issues. I have no idea what the problem is

Problems switching on Wifi on Galaxy S5 LTE (SM-G901F Android 6.0.1) Original ROM

Hello,
since a couple of days I experience a problem with my WIFI. The phone is neither rooted nor does it use a custom ROM.
When trying to switch on WIFI it turns into light green, then green and then it changes back to gray immediately. Same behavior can be seen when trying to switch WIFI on via settings.
This behavior appeared all of a sudden, I dont think that I changed something or installed a new app that could have caused that error. Maybe there was an update of an already installed app...
I then installed a terminal emulator and tried to start wifi via command line with
Code:
svc wifi enable
. That command immediately causes a message:
Code:
reset_reason_init
Killed
Wifi module seems to work. I've done
Code:
ifconfig
and it comes up with a usual result except it does not have an counters > 0
I've also tried another app called "Wifi Analyzer". That app seemed have no problems with wifi since it shows a huge number of networks around (but of course does not connect to them)
So, from my point of view there is an issue with Android that wont let me start WIFI. I think it is not a problem with hardware.
I really need my WIFI. I also tried do do a factory reset. But that doesnt help either....
Any ideas on how to fix that issue?
Regards
Olaf
Go to Sammobile. Com and download the firmware you are on currently on check this by booting to recovery mode or check in settings menu about
Once you have it downloaded flash it in odin to your s5 then everything will hopefully be working this is a small chance of lost data so backup any important data before you flash the firmware in odin
If you have any questions just ask
sent from my nexus 4 I also own a voyager tablet and an I-phone 4s

Categories

Resources