[Q] Unable to switch from 3G to 2G while display is off - HTC One S

Hi,
I'm having a problem switching to 2G when the display is off.
What I expect to happen:
<display switches off>
- 3G is turned off
- 2G is turned on
<display switches back on>
- 2G is turned off
- 3G is turned on
What actually happens:
<display switches off>
- 3G is turned off
<display switches back on>
- 2G is turned on
- 2G is turned off
- 3G is turned on
So it looks like Android somehow can't switch on 2G while the display is off, and delays this until the moment the display comes on again.
As a result the phone is entirely off-line while the display is off.
I tried this first using Tasker and thought Tasker was to blame, but then I tried the 2G Toggle app (https://play.google.com/store/apps/details?id=it.abiondo.app.gautotoggle) and it had exactly the same problem.
So unless this app was created with the Tasker App Factory, the problem doesn't seem to be Tasker related.
Can anyone help me out here?
Device:
HTC One S, rooted, s-on and running CM10. No further mods, no custom kernel.
Thanks.

I'm glad I'm not the only one.
I'm on the stock, rooted, ICS rom and I use the Toggle2G app.
If the same happens on CM, it means it must be something low level and not related to Sense.
Edit: I use Llama instead of tasker, but it's the same.

nor-ric said:
I'm glad I'm not the only one.
I'm on the stock, rooted, ICS rom and I use the Toggle2G app.
If the same happens on CM, it means it must be something low level and not related to Sense.
Edit: I use Llama instead of tasker, but it's the same.
Click to expand...
Click to collapse
The strange thing is that loads of people are able to do this, so I wonder whether it's a setting or an app that somehow sabotages this

I've tried on a freshly factory resetted rom, so I would exclude any app interference and any particular setting.
One idea: if we set the event in tasker/Llama so that it not only toggles from 3g to 2g but it also switches off the mobile data connection, and then another event to switch the data connection back on after a few seconds?

nor-ric said:
One idea: if we set the event in tasker/Llama so that it not only toggles from 3g to 2g but it also switches off the mobile data connection, and then another event to switch the data connection back on after a few seconds?
Click to expand...
Click to collapse
Alas, that too doesn't make a difference. I tried two scenarios for the screen-off event:
Mobile data off -> wait 1 minute -> set 2G only -> mobile data on
and
Set 2G only -> mobile data off -> wait 1 minute -> mobile data on
The 2G-only bit is still delayed to the moment the screen comes on again.
But the weird thing is: it worked once, and only once, using the first scenario. How about that? So you must be on to something, but we must be missing something.

I had only tried the second scenario and it didn't work for me either.
About the time it worked for you: could it be a wakelock matter? What if you put a partial wakelock (= cpu wakelock) in the event's actions? If I remember correctly, you can do that with Secure Settings.

I think the problem is CM.. maybe is the annoying connection drop issue! Until now there is no fix for that, someone resolved by flashing newer nightlies, or changing scripts, or flashing radios, but still there isn't a definitive fix...
I fixed by flashing MIUI...

You're right, Secure Settings can do that.
I've tried it just now up to a two-minute CPU-only wakelock. Doesn't work either.

superbalza said:
I think the problem is CM.. maybe is the annoying connection drop issue!
Click to expand...
Click to collapse
I don't know, I haven't had any problems with connection drops so far. Apart from the occasional spontaneous reboot everything is running smoothly.

edwinek said:
You're right, Secure Settings can do that.
I've tried it just now up to a two-minute CPU-only wakelock. Doesn't work either.
Click to expand...
Click to collapse
I see... I'm out of ideas, for now. Could this be related to the radio? I'm on 1.15 radio.
By the way, it's not related to CM, because I'm on stock (rooted) 4.0.4 and it's the same.
@superbalza: which radio are you on with MIUI? Is it different from what you were using previously?
Thanks

I'm on radio 1.08ts.50.02.16

I'm on the latest 1.15...

Looks like not too many people have this problem...
In the meantime, I created a workaround: I made a Tasker task that first switches to 2G and then locks the device. The whole process of switching to 2G takes about 10 seconds. Then I created a shortcut to that task on the home screen, so I can shutdown with 2G with one click.

Related

Wifi connection connected but won't load pages

It said connected in the wifi setting and it shows bars but it just won't load any website in the browser .. anyone got a fix for this?
I have the same issue. Tried different combinations of restarting wifi, turning on/off cell data, on/off wifi calling, etc... all with no result. I've also tried on different networks (both public and private)-- it'd start working for a while and then all of a sudden stop and never work again.
Seems similar to the problem here: forums. t-mobile.c om/t5/T-Mobile-G2x/G2x-WiFi-DNS-issue-not-the-4G-switching-one/m-p/831439 (sorry there's a new user no link restriction)
Does anyone have any suggestions?
Thanks
coldest~~~ said:
It said connected in the wifi setting and it shows bars but it just won't load any website in the browser .. anyone got a fix for this?
Click to expand...
Click to collapse
is it specific to the browser or can you not move any data?
Idk, whenever I have had problems connecting to the tmo network, which is a separate issue.. it was always that wifi calling was still on even tho wifi was turned off. Every time I had probs w/ data on tmo network, it's been wifi calling.. Your case seems to be diff tho.
Is it specific to just your network or all other networks? Try shutting off wifi, reboot... then turn it on again? Idk.. just tossing out ideas.
Some found the root cause and I am posting his finding as I do have the same issue and can reproduce the error:
I think I have discovered a new WiFi-related bug in the G2x's software. I have witnessed this occurring on my phone, and have also reproduced it on a store demo unit. I believe it is unrelated to the switching-to-4G problem people are having with the My Account app, since it occurs even if I have set up the Google account on first boot after a factory reset.
The details of the problem are:
- Every so often, the phone randomly gets stuck in a state where it is not able to initiate any new connections that are made using a DNS name. Attempting to navigate to a web site, h**p://w*w.google.c*m for example, will result in a generic failure message.
- However, attempting to connect directly to an IP address instead of a DNS name works perfectly. For example, navigating to 74.125.225.16 will work fine and will load the Google home page.
- When the phone is in this state, using a DNS lookup tool such as "DNS Lookup" from the Marketplace *will* work, even when using the default DNS server address that the DHCP server is giving the phone.
- The problem has occurred for me when data is off and WiFi is on. I do not know if data being off is a requirement, since this is the way I usually run the phone, so this may be coincidental.
- Switching WiFi off and back on again will *sometimes* work to solve the problem, but sometimes will not. When this doesn't work, switching WiFi off, then switching data on, then back off again, and then finally switching WiFi back on again will occasionally correct the problem. However, I have seen situations where none of these things worked, and the only way to get DNS working again was to factory reset the phone.
- I haven't figured out the exact pattern yet, but this issue seems to occur when the phone has been inactive for a certain period of time. I have often discovered that the phone is in this state upon waking up in the morning after leaving the phone on the charger overnight.
- I have, however, found a method to reproduce the problem that seems to work fairly consistently:
1. Turn WiFi on, and data off.
2. Power cycle the phone.
3. When the phone starts up, start the browser and attempt to browse to w*w.google.c*m. It should fail.
4. Try to browse to 74.125.225.16. It should work.
Just wanted to get this issue in the forums to see how many others have been noticing the same thing.
I know that once the device has less than 10% battery it automatically turns the WiFi off to save battery power. Were the devices this was happening on have a low battery?
Fully charged. It even happens when pluged in with the charger.
My Wifi wouldn't even work if I froze it with Bloat Freezer. It has to run in the background for wifi to work. I found that Wifi can get really inconsistent with it disabled.
smartloom said:
Som
- I haven't figured out the exact pattern yet, but this issue seems to occur when the phone has been inactive for a certain period of time. I have often discovered that the phone is in this state upon waking up in the morning after leaving the phone on the charger .
Click to expand...
Click to collapse
Same problem here. After about 30 minutes of being idle, as soon as I pick up the phone it tries to connect 2g/4g. The log are saying theres no connection, so it appears that wifi its going to sleep and not waking up so android is trying to connect 2g/4g
Really starting to be a pain
I have frozen the bloat, and I think the problem is getting worse.
Toggle airplane mode is a quick workaround to get wifi to wake up
Sent from my LG-P999 using XDA App
Same thing happened to me, I did 2 factory resets, and it seems it has been fixed, don't really know what causes it.
Sent from my LG-P999 using XDA App
This may or may not be related, but...
It looks like I found a hacky fix for the dns/wifi/4g bug: install "Set DNS" from the market.
Now when I go into market, and display my downloaded apps, it jumps from wifi to 4g then back to wifi as it should, fast.
Whether or not it should even do go to 4g is debatable, all I can say is my 2 Galaxy Tabs had the same behavior.
If everyones connectivity issues are really due to the DNS settings getting wiped out, then this will work around the problem until I/we find the location of the actual bug.
Would you guys having this problem also post it here?
http://www.lgforum.com/forum/boards/general/lg/topics/g2x-wifi-problems
Thanks.
I figure the more people that post there, the more the chances are of LG fixing it quickly.
Work around:
enable airplane mode
reboot
enable wifi
wait a few seconds after the wifi connects, background crap stops
disable airplane mode.
The set dns app looks like a winner. Haven't tried it but that's what's
wrong.
The freezing and other suggestions are all useless crap.
Updates...
I did a factory reset and installed JuiceDefender (I don't know which one worked) but it seems to be all fine now... will update if things become problematic again
I've been having this problem as well. I've always been able to fix it by toggling WiFi off and back on again. I downloaded SetDNS and when it happened again last night I tried that and it worked great.
Glad to see it's a software problem and not a hardware problem.
same problem here. hopefully it won't happen in cyanogen mod
boylan said:
Work around:
enable airplane mode
reboot
enable wifi
wait a few seconds after the wifi connects, background crap stops
disable airplane mode.
The set dns app looks like a winner. Haven't tried it but that's what's
wrong.
The freezing and other suggestions are all useless crap.
Click to expand...
Click to collapse
This fixed the problem, at least until the next time I reboot my phone
How do you use SetDNS? This software bug in G2X reboots my router (DGL-4500) sometimes.
Question bout SetDNS app
Does the phone have to be rooted to use the setdns app? I try to use it but it says "Cannot get root. App will not function."

[Q] My wifi turns on and off

Hey there,
I'm having a weird issue with my stock Nexus S. I've tried a few custom roms, but after realizing that I was better off with stock, I flashed stock again... Now, I've noticed that sometimes, with the WiFi off, I would receive emails and Google+ notifications! It turns out that my wifi is turning on and off, and I don't know how!
I don't have, to my knowledge, installed a program that controls wifi(if you want, I can post my list of apps).
So, what's happening here? Anyone has any idea?
Thanks
Ditto here
strung said:
Ditto here
Click to expand...
Click to collapse
You have the same issue? Can you post your list of installed apps? I seriously don't know what's going on!
This may seem really obvious - but have you double-checked that those notifications aren't coming in via your mobile network?
If you have Juice Defender (or something similar) installed, that might also be responsible for switching on your wifi periodically.
RGX521 said:
This may seem really obvious - but have you double-checked that those notifications aren't coming in via your mobile network?
If you have Juice Defender (or something similar) installed, that might also be responsible for switching on your wifi periodically.
Click to expand...
Click to collapse
Nothing like that... I was just activating my alarm clock for tomorrow and the wifi came on, out of thin air! It shutdown in less than a second, too! And I did absolutely nothing!
Also, I don't have any app like Juice Defender
Ok, so I've flashed the stock rom,locked the bootloader, etc, and I thought I had solved the problem. I didn't, the thing keeps turning on and off!!
I'm seriously thinking about sending it for repairs
you could send it in to samsung or install some newer 2.3.5 kernels which seemed to solve any wifi issues i may have had. Android 2.3.5 made some changes to wifi signal strenght.
dinuvali said:
you could send it in to samsung or install some newer 2.3.5 kernels which seemed to solve any wifi issues i may have had. Android 2.3.5 made some changes to wifi signal strenght.
Click to expand...
Click to collapse
I have stock, and it's the regular nexus S, not the 4G one (so I haven't received 2.3.5 yet).
I'll try installing the 2.3.5 kernels and report back
check your advanced wifi settings.
by default they are set to turn wifi off when screen is off. so even if you have wifi on it will turn off when screen is off automatically.
menu>settings>wireless and network settings>wi-fi settings>menu(softkey)>advanced>wifi sleep policy>check the "never" radio button.
thedudejdog said:
check your advanced wifi settings.
by default they are set to turn wifi off when screen is off. so even if you have wifi on it will turn off when screen is off automatically.
menu>settings>wireless and network settings>wi-fi settings>menu(softkey)>advanced>wifi sleep policy>check the "never" radio button.
Click to expand...
Click to collapse
I wish it were that simple... I've the wifi sleep policy set to never since I can remember. I only turn on wifi when I need it

[Q] Desire S loses signal on calls and unlock

Hello XDA, I have only just registered here but I have been an avid reader of the Desire S forums for a year ever since I got my phone. My phone has been playing up for some time and I've not let it bother me too much but now it's getting quite annoying. It is an unbranded Desire S btw. I have searched but haven't found anyone complaining of the same problem.
The problem is as such: I first noticed in my house the phone seems to lose signal quite easily, fair enough it's a big house, lots of walls, I can understand that - moving to another room usually resolves the issue. However, what's more concerning is I've noticed it drop from fine to nothing in the same place. Even stranger still, if there is an incoming call and I go to pick up the handset, 9 times out of 10 it will lose all signal. Now my gf thinks I keep hanging up on her...
EDIT after further testing, i have think I have found the root of the problem... If I turn the screen on (call or no call) after two seconds or less it will lose all signal whether I leave it at the lock screen or open it. I suspect the problem may be something to do with the kernel governor. I would be grateful if anyone has any insight into this rather frustrating problem
I tried flashing the latest radio (below) but this has not solved my issue.
For reference, I am running the following:
ROM: IceColdSandwich v8
HBOOT: 0.98.2000 ENG S-OFF
RADIO: 20.71.30.0833U_3831.17.00.16_M
NETWORK: ORANGE
errr, i dunno if it works for you but whenever i at home i switch my network to use only 2g as it is much stronger and i barely get/no 3g signal where i stay, but if i am out i switch that off to get 3g signal. give it a try.
hope it helps :-/
Thanks for your suggestion, I will try it for a while and see how things turn out. I have set in the Mobile Networks settings menu to use 2G only and also for my 'Home' profile in Tasker I have included change mobile data to 2G only.
How did you get on with this. I have the exact same issue with mine.
As well as the above, I have also turned off the power saver mode in the ROM Control menu. It seems to be running fine so far. I haven't tested each option individually yet to narrow down the solution but at least it's working.
I personally suspect the problem is to do with the power saver menu because I had enabled switch to 2G on screen off, so whenever I would turn the screen on it would restart the radio and switch to 3G.

WiFi stays on regardless of sleep policy.

Ever since updating my Moto G to KitKat wifi remains on all the time even if I select 'Only when plugged in' for the wifi sleep policy. It was fine while on Jelly Bean. Anyone else have this problem?
Sent from my XT1032 using Tapatalk
madgibbon said:
Ever since updating my Moto G to KitKat wifi remains on all the time even if I select 'Only when plugged in' for the wifi sleep policy. It was fine while on Jelly Bean. Anyone else have this problem?
Sent from my XT1032 using Tapatalk
Click to expand...
Click to collapse
i had the same issue and posted the question here in the forum i got some replies, but nothing helped. here is the link to my thread
http://forum.xda-developers.com/showthread.php?t=2608546
hope some one responds to our issue.
Interestingly I've solved the problem, on my phone at least. I switched from ART back to Delvik runtime as a few apps wouldn't run and now WiFi is switching off when the screen is off.
Sent from my XT1032 using Tapatalk
madgibbon said:
Interestingly I've solved the problem, on my phone at least. I switched from ART back to Delvik runtime as a few apps wouldn't run and now WiFi is switching off when the screen is off.
Sent from my XT1032 using Tapatalk
Click to expand...
Click to collapse
I experienced what I believe to be the same issue with my N5 - I used to have my wifi policy set to "Never" so that wifi would be turned off when the screen is off and it used to work. Recently I thought I'd give ART a shot and after using it for a while, found that wifi stayed on regardless of what the policy was set to. I disabled all background syncing apps (google account, fb, etc.) and all location services and the wifi never switched off the way it used to. I also tried wifi optimisation on/off, avoid poor connections on/off, and always searching on/off but nothing fixed it.
Even after switching back to Dalvik though, it still doesn't work properly. Currently doing a factory reset and will see if it works after and report back
Any solution yet? Mine does the same and I tried everything, from turning off location to uninstalling maps (seeing they have an option to activate wifi) to factory reset and nothing helped.
Advanced Wifi Settings
In Advanced settings is Scanning always available
ensue this is off,otherwise location services will look for networks even if wifi is off,so presumably it turns it on to do this!
robin0800 said:
In Advanced settings is Scanning always available
ensue this is off,otherwise location services will look for networks even if wifi is off,so presumably it turns it on to do this!
Click to expand...
Click to collapse
Like I said, I have tried all settings. Scanning always available is off and even disabled location services.
jimakos29 said:
Like I said, I have tried all settings. Scanning always available is off and even disabled location services.
Click to expand...
Click to collapse
Finally my phone alive now with fastboot downgrade with 4.3 brazilian retail version .only problem is that wifi is not working.plse help
please check the router setting of which the device connect access to internet, under wifi setting in the router homepage check if the channel is not selected to AUTO, please choose channel ex: 1,2,3,4,5 etc and connection frequency to single band i.e 20MHZ or 40 MHZ, but it might also work in auto band mode selection. I had the same issue on my HTC A9 android version marshmellow but when i changed the setting it works fine.
In my experience with Stock ROMs, this issue (Wi-Fi always active in Battery Stats even though sleep policy is set to: Never) is caused by an installed app.
Viber has a setting in General > Wi-Fi sleep policy.
Not every app will have such an option, but check. All you can do if the issue persists is to clean install ROM and one by one start adding your apps to see when the problem reoccurs.
There may be apps (or an xposed module) that will allow you to stop apps changing the Wi-Fi sleep policy. I've not done any research on the topic.
Wi-Fi Scanning can be enabled or disabled and does not have an affect.

My wifi disconnects and phone uses my data when should not

My m8 at some times usually during the night will disconnect my wifi and use my mobile data, which it should not do because in the power settings I have the sleep mode set to off and I have all power saver crap removed with viperone 1.8 I"am just on a limited data plan that I need all of my data for and wasting my mobile data sucks especially when I have wifi to use and pay for home internet that it should be using. Does anyone know why it could be doing this and a fix ? My computer never disconnects from the wifi and I use it many of the same times that the phone disconnects from my wifi, so that leads me to believe its somewhere in the phone and not my wifi. Also I have had a couple other m8's do the exact same thing. I would like to find a fix other than turning my mobile data off. And I do use a lot of data as I have a large number of email addresses added to my phone and have my k9 set to check for new emails every 10 minutes because I rely on it for personal and business use. Anyone have any idea ?
Here is my settings showing sleep mode off and power saving mode off also.
In "wifi advanced settings" do you have the "auto switch to mobile data when wifi is weak" checked off?
qskile said:
In "wifi advanced settings" do you have the "auto switch to mobile data when wifi is weak" checked off?
Click to expand...
Click to collapse
No its unchecked but under wifi optimization I have minimize battery usage when wifi is on ? Not sure if that could have an effect but shouldnt because mobile data would use more battery than wifi and that would have the opposite effect to turn wifi off for mobile data which would use more battery power.
Roefastford said:
No its unchecked but under wifi optimization I have minimize battery usage when wifi is on ? Not sure if that could have an effect but shouldnt because mobile data would use more battery than wifi and that would have the opposite effect to turn wifi off for mobile data which would use more battery power.
Click to expand...
Click to collapse
I thought I remembered under venom tweaks somewhere that is has the regular PowerSave mode which has the option to disable data when the screen is off for an exteneded period of time. MAybe its turned on???? Not running the ROM right now otherwise I could look myself. Check it out:good:
mademan420 said:
I thought I remembered under venom tweaks somewhere that is has the regular PowerSave mode which has the option to disable data when the screen is off for an exteneded period of time. MAybe its turned on???? Not running the ROM right now otherwise I could look myself. Check it out:good:
Click to expand...
Click to collapse
I always set it up to remove the power save mode garbage in the venom aroma installer so 100% that is not the issue.
Roefastford said:
My m8 at some times usually during the night will disconnect my wifi and use my mobile data, which it should not do because in the power settings I have the sleep mode set to off and I have all power saver crap removed with viperone 1.8 I"am just on a limited data plan that I need all of my data for and wasting my mobile data sucks especially when I have wifi to use and pay for home internet that it should be using. Does anyone know why it could be doing this and a fix ? My computer never disconnects from the wifi and I use it many of the same times that the phone disconnects from my wifi, so that leads me to believe its somewhere in the phone and not my wifi. Also I have had a couple other m8's do the exact same thing. I would like to find a fix other than turning my mobile data off. And I do use a lot of data as I have a large number of email addresses added to my phone and have my k9 set to check for new emails every 10 minutes because I rely on it for personal and business use. Anyone have any idea ?
Click to expand...
Click to collapse
Try Wi-Fi > Advanced > Uncheck "Wi-Fi optimization"
Had the same problem and this fixed it. Haven't noticed any difference in battery life checked vs. unchecked.
bigblueshock said:
Try Wi-Fi > Advanced > Uncheck "Wi-Fi optimization"
Had the same problem and this fixed it. Haven't noticed any difference in battery life checked vs. unchecked.
Click to expand...
Click to collapse
That was the only thing I had not tried so early last night I tried unchecking it and so far so good I think you may be right on that, thanks.
bigblueshock said:
Try Wi-Fi > Advanced > Uncheck "Wi-Fi optimization"
Had the same problem and this fixed it. Haven't noticed any difference in battery life checked vs. unchecked.
Click to expand...
Click to collapse
Mine is still doing it, so I changed the wifi frequency band from automatic to 5 ghz and rebooted and it connected but some apps could not access data so I changed it to 2.4 ghz only and rebooted it worked ok but its doing it again this time I had to toggle airplane mode to get the wifi back on. I have to toggle airplane mode quite often actually and usually it shows change of sim detected. And some times my mobile data will disconnect and its a ***** to get working again. Maybe I will try going to a verizon corporate store and getting a new nano sim card for it. A verizon dealer could not get a new nano sim to activate before and they ended up getting my old nano sim reactivated which I thought once a sim has been deactivated that they cant reactivate it but apparently they can. I really dont know what else to try other than a new sim card. Anyone ?
Any chance you could temporarily try a different wireless router? Some of these new phones are finicky with some wireless routers... Could be a miscommunication between the phone and router somehow.
Don't really have an explanation, one of my old HTC devices had issues connecting to a specific wireless router, where apple products did not have the problem, and vice versa with a different router.
bigblueshock said:
Any chance you could temporarily try a different wireless router? Some of these new phones are finicky with some wireless routers... Could be a miscommunication between the phone and router somehow.
Don't really have an explanation, one of my old HTC devices had issues connecting to a specific wireless router, where apple products did not have the problem, and vice versa with a different router.
Click to expand...
Click to collapse
Having been the case with at least 3 m8's I honestly do not think its the router because It happened with my old moden and router and also with my motorola surfboard SBG6580 modem / wireless router combination that I switched to a couple months ago. And it will also do the same on my girlfriends modem and wireless router. I think there is something in the m8 that is the problem and one other of the m8's was an at&t version. I"am not 100% sure but it may have all been while using viperone, as there really is not much choices for daily driver custom roms especially since elegancia closed its doors. Dont get me wrong tranquil one m8 is not bad and cleanrom is ok but they are no way as easy to customize as viperone is. Years ago I use to like cleanrom for its DE which was barebones the way I like it, good clean and fast. I just dont trust any of the other roms to be bug free enough to be a daily driver. I have just had too many issues in the past with cm dont get me started on them lol, omg was nothing but fix after fix that you had to do nothing like being a Guinea pig lol.
Wi-Fi not connect after phone is woken from sleep mode
Both my wife and I was having the issue with Wi-Fi. I tried everything ,turning off optimization, setting for 2.4ghz,and every other thing listed. Nothing helped until I flashed the firmware from the digitalhigh thread, took 30 sec and fixed Wi-Fi for good on my wife's m8 and mine. I lost nothing in the process except that very annoying Wi-Fi issue. I was then able to set any options like, Wi-Fi optimization and Auto band detect, everything working great!
Here is link to that firmware...
https://www.androidfilehost.com/?fid=95832962473400175
Just downloaded and save to SD card root and rename to "0P6BIMG.zip" and boot to hoot to install.

Categories

Resources