P2P through mobile data's ipv6 network causes battery drain - Moto G 5G Plus Guides, News, & Discussion

My moto g 5g plus is on stock android 10 rom.
Although it lacks custom features , the battery performance is quite good.
I got 22 mins /1% on playing local small size 720P videos with brightness 2 sound 10 in mxplayer settings.
So when I perform a torrent download or live stream on twitch, I can observe a large downgrade of battery performance.
The same video only got 12min/1% after torrent download and 17min/1% after watching live stream.
From netstat, it will stuck on showing "tcp..." somewhere , and disconnect mobile data or turn on airplane mode will make it going on and shows "tcp6..." staff.
The downgrade meter may be related to numbers of connected ipv6 clients.
From battery side, this acts like something still try or maintain a disconnected client.
So I set mobile apn protocol to ipv4, somehow "tcp6..." still shows on netstat and battery performance still has a little downgrade (20 mins/1%).
And then I use this method
[GUIDE/APP][ROOT] Disable/Block IPv6 on Android (Prevent IPv6 Leak on VPN)
Note For Moderators:Please move this thread to somewhere in forum.xda-developers.com/android if that's a better fit. Simple App Alternative/Supplement [UNTESTED] With AFWall+ 2.9.0, you can now block IPv6 with iptables. NOTE This only blocks...
forum.xda-developers.com
echo 0 > /proc/sys/net/ipv6/conf/wlan0/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
add them to total commander shell command and excute.
Then battery performance back to normal.
Notice, the two steps are all needed.(APN and shell commands)
Another way is every time may involved p2p , perform an airplane mode on & off.
I tested all on mobile data .(wifi has not been tested)
Normal ipv6 site review doesn't affected.
It only related to p2p (peer-to-peer) on ipv6 network.
Don't know where it occurred , if in firmware driver then customer roms are affected, if in system side then not.
If you're in weired battery drain , you should look into this.(mostly after watching a live stream)

Related

[20.04.2010][v0.66] WMLongLife - Save your gonads (and battery) !

Note this is a BETA version and will have issues.
About
WMLongLife is an automatic 2G/3G band-switching solution. It will keep your device in 2G when you do not need to use 3G, and will switch to 3G automatically when you do need it. For most users, having your device in 2G uses much less battery, and thus your phone lasts longer on a single charge. 2G also usually generates less radiation than 3G, so it will likely be better for your gonads (if you have them) as well (see this thread for a discussion about that) - think of your hypothetical future children!
Main features
2G/3G (auto)/3G (only) automatic band switching based on:
- Running programs and their needs
- Availability of Wi-Fi
- Availability of USB
- Roaming [note: most roaming options have been removed, use the RoamFreely (marketplace) tool instead]
Idle data connections disconnect based on running programs (note that unlike the registry tweak this does not break simultaneous voice/data)
Manual band switching
Automatically disable data when roaming (including AGPS)
Pauses applications while switching bands (so you don't get networking errors)
Several predefined applications supported
Support for HTC/MSM72xx GSM devices (GSM/EDGE vs UMTS/HSDPA)
Support for HTC/MSM75xx CDMA devices (1xRTT vs EV-DO)
Support for various Samsung GSM devices (GSM/EDGE vs UMTS/HSDPA)
How to use
The manual is in the post below this one. Give it a quick skim!
License?
You can use this yourself on your own devices, if-and-only-if you download it from this post. You are not allowed to (re)distribute this app, not to your brother, not to your friends, not to anyone. Cooking it into your ROM and then distributing that is obviously also not allowed.
I reserve the right to turn this into something commercial if I want. I'm not planning it, but lets just cut the crap and say it may eventually happen (avoid BS like the last time). Should that happen, as last time, people who helped out will get taken care of.
Is this guaranteed to save battery?
No, it is not. If it will or will not save battery is dependent on your configuration of WMLongLife, your 'average' network conditions, your radio, and usage. The default WMLongLife configuration will give you (also depending on those other factors) a nice average between least and maximum savings while trying to be not too annoying. Radio firmware is very tricky, and results vary all across the board. It is likely there is a radio thread for your specific device, if you are comfortable with flashing devices, flashing a different radio may give you better (or worse) connectivity and battery life. How your usage effects all this should be obvious: if all you do with your phone is watch YouTube until the battery goes flat, WMLongLife will not help you [at all]. If you pretty much use at as a phone with additional email and some browsing / Google Maps here and there, you may definitely see benefits. It all depends.
Now let's get to the most interesting part: network conditions. 3G [at least in theory] uses less battery than 2G under ideal conditions. However, these ideal conditions are hardly ever reached. A lot of battery is spent finding a decent/better 3G signal to use instead of 2G - and I mean a lot. If 3G is few-bars or just an unreliable signal in your area, your device will not just use a lot, it will use massive amounts of battery trying to get a [better] 3G signal. Aside from that, if the conditions are less than ideal, 2G may use less power than 3G. As an example, I am personally in an area with excellent 3G coverage (5 out of 5 bars of HSDPA) and my device still lasts nearly twice as long on a single charge with WMLongLife running. Your mileage may vary, of course. While it is completely possible that it may not make a relevant difference in your case, I would say there will be many people who this does make a difference for. This is also the reason you will see many people advising in "battery saving" threads to disable 3G and attesting to how much battery it saves for them, and others will always respond that it doesn't make a difference [for them].
Having an idle(!) data connection should theoretically not make a difference with power usage, you have the connection anyway, it's just a question about whether you have an IP or not. However, some background applications (inside services mostly) will initiate data transfers if (and only if) a data connection is already up. So if you have an idle data connection, these applications would start using data, while if you did not have a data connection (connected), they would not.
Supported devices
This is a list of device it should work on, most of them have not been reported to work since 0.2, though.
HTC Touch Cruise
HTC TyTN II
HTC Touch Diamond GSM + CDMA
HTC Touch Pro GSM + CDMA
HTC Touch HD
HTC Touch Diamond II GSM + CDMA
HTC Touch Pro II GSM + CDMA
HTC HD2
Samsung i780
Samsung Omnia GSM
Samsung Omnia II GSM
Samsung Giorgio Armani II
Sony Ericsson Xperia X1
Palm Treo Pro
Suspected to work on (never been tested, not even on 0.2):
HTC Titan/Mogul
HTC Vogue
HTC Touch 3G
HTC Touch Cruise II
HTC MAX 4G
Samsung Epix
Toshiba TG-01 ??
Important release notes
Currently known issues and problems and the changelogs are listed in the 4th post of this thread.
Donate
DONATE ! - Come on, almost 30 000 users and no more than a handful of donations ?
Download
downloads before 0.66: 26977
The Manual (0.5 and newer) - READ IT!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The Manual
NOTICE: The manual is written for version 0.5 and newer!
Usage notes
I have done my best to let WMLongLife be as least annoying as possible. The idea is (with the default settings) that a band-switch should occur only once in a phone 'session'. Where by a session I mean a screen-on / use device / screen-off cycle. This also means WMLongLife may not switch back to 2G when you expect it to - WMLongLife tries to be smart about things to reduce the number of band-switches but still keep a fairly optimal 2G/power use. Please keep in mind this is a beta release.
Things you should know
WMLongLife generally does not kick-in until you have both entered your PIN (if applicable) at boot, and the screen has been off for about half a minute. There are exceptions to this rule - if you override the current band selected by using the Band Switcher app, WMLongLife will start operating from then on.
When band-switching, the icon in the top bar may stay on 2G (G, E, 1X, etc) for a while before it switches to a 3G icon. This does not mean you are not already using 3G, there is a delay in this display.
Issues
Known issues are listed in the post below this one.
Installation
Installation is easy:
Copy the WMLongLife.cab file to your device and open it to install it.
Go into WMLongLife configuration and make sure to check/configure the following options:
- Radio / Radio chip model (and GSM band for Samsung radios)
- Radio / Restart push mail after band switch
- Roaming - All options
These are likely to be detected and set correctly, however I advise you check them anyways. Details about these options can be found in the configuration section below.
Optional: Go to Start -> Settings -> Personal -> Buttons, and assign a button to the Band Switcher application
Soft-reset
The configuration options in WMLongLife are supposed to have "sane defaults", the setup which I expect will work best for most users.
Please note some beta testers have reported they need to soft-reset twice after installation/upgrade before WMLongLife works
Upgrading
If you are using version 0.2 or older, please remove it manually. All newer versions should be a simple case of copying the new CAB file to your device and opening it to install it without the need to uninstall the old version first. A soft-reset is necessary.
Please note some beta testers have reported they need to soft-reset twice after installation/upgrade before WMLongLife works
Uninstallation
Before uninstallation, there are two things you should do:
1) Open the Band Switcher application, and switch to "3G (auto)" mode
2) If you have roaming options enabled, make sure you are NOT roaming when uninstalling
After these two points, simply uninstall WMLongLife using Windows Mobile's Remove Programs function.
Popup when an unknown application tries to connect to the internet
Please see the application-specific configuration section below - it uses the same screen.
Band Switcher application
Currently this application is not skinned / nice-looking because it still contains some debug functionality.
This application can be used to manually instruct WMLongLife to switch to 2G, 3G (auto) and 3G (only) bands. While WMLongLife should do all this for you at the right time, there will be times when you want to override. It also offers the feature to disconnect cellular data connections, and jump to the configuration application.
There is also a "WMLongLife controlled" button. This will return band-switching control to WMLongLife if you have previously selected a band manually. If the Screen / Return control to WMLongLife when the screen turns off option is enabled, this will also automatically happen when the screen goes off - and stays off for a while.
Configuration
The configuration application offers access to the myriad of features that are present in WMLongLife. It is divided into three main screens: home (about), settings, and application-specific settings.
Configuration - Settings
Radio / Radio chip model
Select the radio model you are using here. This should be auto-detected on first installation. If this option is not set correctly, WMLongLife will not switch bands.
Radio / 3G mode
By default when WMLongLife switches to 3G, it uses the 3G (auto) mode. This lets your radio decide whether to use 2G or 3G, based on signal. The other mode is 3G (only). This mode will force the radio to use only 3G, and you will have no signal if only 2G is available.
Radio / GSM band for Samsung radio
If you are using the Samsung radio option, you will need to configure your GSM band here. Unfortunately there is currently no way to detect this.
Radio / After switching to 3G, connect to
This option allows you to set a connection to automatically connect to after WMLongLife has switched the device to 3G.
Radio / Restart push mail after band switch
Enable this option if you are using Microsoft push mail (Exchange Sync). It should be auto-detected, but this detection is not always perfect. If you are not using Microsoft push mail, I strongly advise you to turn this option off!
Screen / Switch to 3G when the screen turns on
Enabling this option will switch to 3G every time your screen turns on.
Screen / Switch to 2G when the screen turns off
Enabling this option will switch to 2G every time your screen turns off.
Screen / Screen off 2G switch delay
This configures how long to wait after the screen has turned off before switching to 2G. WMLongLife does not switch immediately after the screen goes off, as often you will turn on your screen again - if for example you were doing something but the screen went off automatically.
Screen / Return control to WMLongLife when the screen turns off
This option is relevant to the Band Switcher application. If you manually select a band to switch to in Band Switcher, WMLongLife will temporarily not switch bands itself. In Band Switcher there is also a button to return band-switching control to WMLongLife. If this option is enabled, band-switching control will be returned to WMLongLife automatically after the screen turns off (the Screen off 2G switch delay is also taken into account here).
Screen / Show band switch notification
This option configures whether or not you will see an On-Screen Display when WMLongLife switches bands.
Screen / Vibrate notifications
Very handy for debugging! When this option is enabled, WMLongLife will vibrate when loaded, when ready, and when switching. It may take WMLongLife over a minute to be actually loaded after the device is booted. When it is, it will vibrate very shortly three times (it may feel like a single long vibration). When WMLongLife is ready to allow automatic switching, it will vibrate shortly twice. When WMLongLife actually switches bands, it will vibrate once.
Applications / Switch to 3G on whitelisted application launch
This option configures whether or not to switch to 3G when you launch an application you have configured to use 3G. This is the heart of WMLongLife, disabling this option would usually not make any sense.
Applications / Switch to 2G on whitelisted application close
This option configures whether or not to switch to 2G when you close an application you have configured to use 3G. This option is disabled by default, and WMLongLife will switch back to 2G when the screen goes off instead. Enabling this option would make for a lot of band-switching to occur, while disabling this option ensures a band-switch should only occur once per 'phone-usage-session'.
Applications / Internal cache timeout
WMLongLife maintains an internal cache of all application windows. Because of technical reasons, the cache of these windows needs to be purged every once in a while. I recommend (for now) to keep this option set to 30 seconds.
Wi-Fi / Switch to 2G when Wi-Fi is connected
Enabling this option (default) will make WMLongLife switch to 2G when you connect to a Wi-Fi network.
USB / Switch to 2G when USB is connected
Enabling this option will make WMLongLife switch to 2G when you connect your phone to your computer using USB. This option is disabled by default, as it may cause excessive bandswitching if you are one of those people who cradle / uncradle their device often. USB also usually means charging, so the extra power needed for 3G is usually not an issue in this case.
Data / Disconnect idle connections
Enabling this option will disconnect idle data connections. If you have push mail enabled (and this is detected correctly) this option is turned off by default, else it should be turned on.
Data / Idle connection timeout
This option configures how long a data connection needs to be idle before WMLongLife disconnects it.
Data / Disconnect idle connections when the screen is on
If this option is not enabled, WMLongLife will only disconnect data connections when the screen is off.
Data / Disconnect idle connections when the applications are running
If this option is not enabled, WMLongLife will not disconnect data connections when a whitelisted application is running.
The Manual #2 (0.5 and newer) - READ IT! + Some screenshots from 0.55 (resized)
Data / Disallow background connections
When this option is enabled, WMLongLife will deny access to applications creating so called "background" connections, and only allow "interactive" connections. When an application connects to the internet, it tells Connection Manager some specifics. Only interactive applications like browsers / YouTube / etc should create "interactive" connections, while other application that need something from the internet but which you did not manually initiate should create "background" connections. Obviously this setting only has an effect on applications that set this information correctly. If you have connection notifications turned on, "interactive" connections are the ones that pop-up a "Connecting to ..." bubble - "background" connections do not do this.
Roaming / Disable cellular data connections when roaming [no longer available in 0.65, use RoamFreely instead]
This option allows you to configure which data connections you want to disable when you are roaming.
Roaming / Switch to 2G when roaming
When this option is enabled, WMLongLife will switch to 2G when you are roaming.
Roaming / Treat 2G as roaming [no longer available in 0.65, use RoamFreely instead]
When this option is enabled, WMLongLife will treat a 2G signal as if you are roaming. Obviously, when using this option, you should disable all other options that may make the device switch to 2G - if you don't, this will result in WMLongLife always thinking you are roaming.
Roaming / Turn off AGPS when roaming [no longer available in 0.65, use RoamFreely instead]
This option should only be enabled if you actually use AGPS. This should be auto detected upon first installation, however this detection does not always work correctly. If you do not use AGPS, make sure this option is turned off. If you do not use AGPS but this option is enabled, WMLongLife will also enable AGPS when you are not roaming. If your AGPS is not properly configured, this may slow down normal GPS operation.
Configuration - Application specific
WMLongLife comes preconfigured with optimal settings for various common applications. However, should you use an application that is not listed here, WMLongLife will automatically pop-up a configuration box when that application tries to use the internet. It is not possible to manually add or remove applications from the application list - and this is completely unnecessary!
The application specific configuration screen shows the list of configured applications, and icons to show their currently configured options. When you click an application in the list, the application configuration screen will popup.
There are five options in this popup: 3G, Screen/Off, Wi-Fi and USB.
3G
This option decides whether or not WMLongLife should give 3G to this application. If the 3G option is not enabled, all the other options are not relevant.
Screen/Off
This option decides whether or not WMLongLife should give 3G to this application, even if the screen is turned off. Most applications do not need this - pretty much the only exceptions are tethering applications.
Wi-Fi
This option lets WMLongLife know if this application can use Wi-Fi instead of 3G for its internet connection. Most applications can, however obvious exceptions are (again) tethering applications.
USB
This option lets WMLongLife know if this application can use USB instead of 3G for its internet connection. Most applications can, however obvious exceptions are (again) tethering applications.
Background time-out
This option configures how long WMLongLife will treat an application as "running" if it has not been actually visible on your screen. This only applies to applications that do not actually close when you press the "X" button. If an application is truly closed, WMLongLife will immediately treat it as "not running". However, applications like for example the Opera browser will always remain running in the background, whether you are using them or not, these will be treated as "not running" when they have not been "seen" for the length of time the background time-out is configured.
Most applications should be fine with a setting of 5 minutes or less. Applications that continue to use the data connection (like tethering applications) should have the time-out disabled.
----
To-do & Issues & Changelogs
To-do & Issues
[bug] Sometimes WMLL will not switch when device is booted in 2G *not reproducable so far*
[bug] Allow ConnMgr connections not directed at cellular networks while switching
[bug] Some device/rom combo's drain battery with WMLL... unattended mode issue? *not reproducable so far*
[improvement] Rethink "screen on --> 3G" strategies to be less annoying... perhaps detect user opening the dialer?
[improvement] Improve switching on Samsung devices and auto mode 2g/3g priority
[feature] Auto switch to 3G (auto) if no signal can be found in 2G or 3G (only) modes
[feature/maybe] Make smaller 'switching bands' notification
[feature/maybe] Add option to let the user select band on specific application launch (maybe also Wi-Fi ?)
[feature/maybe] Add option to let the user deny internet access completely to specific applications
[skin] Finish/update missing gfx target: 0.70
[skin] Skin BandSwitcher app target: 0.70
Changelog - 0.66.302 (PUBLIC)
[feature/maybe] Add option to allow background connections only on 3G etc [fixed bug, added option] PLEASE RECONFIGURE THE "DISALLOW BACKGROUND CONNECTIONS" OPTION !
[feature] Timebomb removed
Changelog - 0.65.287 (PUBLIC)
[bug] Find/fix unattended mode sometimes not working [fixed ?]
[bug] Something is broken with the idle data disconnect [fixed ?]
[improvement] Minor algorithm changes
[improvement] Minor settings handling changes
[improvement] Made vibrations a bit longer, as on some devices they were not noticable
[improvement] Improve push mail restart (now sometimes pops up ActiveSync) [implemented]
[removal] Most roaming functions have moved to my RoamFreely app. Details about how and why can be found in the 0.65 release notes
[addition] A simple API has been added
Changelog - 0.62.211 (PUBLIC)
Experimental HD2 changes
Changelog - 0.60.200 (PUBLIC)
[feature] Added option to immediately start an internet connection after switching to 3G
[feature] Added vibrating notifications
[feature] Added option to disallow "background connections"
Changelog - 0.60.191
Config and AppConfig now much faster (usable now )
Added several preconfigured applications, including some who are not configurable through the Config app to prevent issues
Improved IPC
Added friendly descriptions for the preconfigured apps
Modified loading pattern
Fixed screen-on/3g-switch/call-drop issue
Improved skin compression (+- 50%)
[bug] After user band override, treat as screen has been off (no more waiting)
[bug] Find/fix issue with sometimes not loading
[bug] Improve connected-to-network detection
[bug] Find/fix configuration lost issue (hopefully)
[bug] Wi-Fi on -> Opera (stays in 2G) -> close Opera -> Wi-Fi off -> 3G - should stay in 2G (hopefully)
[feature] Implement Omnia II compatibility
[feature] Add option to not show OSD notifications
[feature] Implement roaming options
[feature] Added support for disabling AGPS while roaming
[feature] Added support for Samsung's "uber-fast" band switching (can still be improved)
[feature] Add current status to config app
[skin] Select-popup-box skinned
[skin] Program-state-icons skinned
[skin] Added (temporary) program icons
[skin] Implement (W)QVGA skin
Changelog - 0.50 (beta - private)
Added support for Samsung Omnia
Addes support for MSM75xx (HTC CDMA) devices
Added several preconfigured applications
Turned WMLongLife into a service
Created separate configuration app
Created separate application-specific configuration app
Application-specific configuration app pops up on new unknown connection
Applications are now 'paused' when the band switch is made
Added various configuration options
Added BandSwitcher application
Added code to cope with Wi-Fi and USB connections
Many adjustments to application detection and handling
Usable full-time
(0.5 = changes since 0.2, written after the fact, is not complete)
WMLongLife API (new in 0.65)
I added a really small and simple API as it has been requested by several people.
The DLL file is WMLongLifeAPI.dll and is installed in your \Windows. Use LoadLibrary and GetProcAddress to get at the functions.
Here are the function definitions:
Code:
DWORD WMLL_APIVersion();
BOOL WMLL_IsRunning();
#define BAND_SWITCH_WMLL 0
#define BAND_SWITCH_2G 1
#define BAND_SWITCH_3G_AUTO 2
#define BAND_SWITCH_3G_FORCE 3
VOID WMLL_BandSwitch(DWORD band);
VOID WMLL_DataDisconnect();
VOID WMLL_ReloadSettings();
DWORD WMLL_APIVersion();
Returns the current API version. WMLongLife 0.65 returns 0x100 - or API version 1.00.
BOOL WMLL_IsRunning();
Returns whether or not WMLongLife is loaded and running. Note that WMLongLife can take up to a minute (sometimes longer) to activate itself.
VOID WMLL_BandSwitch(DWORD band);
Instructs WMLongLife to switch bands.
As band parameter use one of the BAND_SWITCH_* values listed above. BAND_SWITCH_WMLL returns control of band switching back to WMLongLife. Note that this may happen automatically when the screen goes off, this depends on WMLongLife configuration options.
VOID WMLL_DataDisconnect();
Instructs WMLongLife to disconnect all cellular data connections.
VOID WMLL_ReloadSettings();
Instructs WMLongLife to reload all settings from registry.
You are a genius and you are super witty to boot! Thanks, I will report bugs if I find any!
This is brilliant.. if only I had a MSM device..
i780 is also on the to-do list.. I just happen to have one lying here next to me
Sounds like something these MSM based 3G smartphones need (especially those for CDMA networks). I'll definitely test it and give you my feed back.
Soul_Est said:
Sounds like something these MSM based 3G smartphones need (especially those for CDMA networks). I'll definitely test it and give you my feed back.
Click to expand...
Click to collapse
Well as stated everywhere, this is only for GSM... there's no CDMA equivalent. (perhaps one day?)
What a great idea for a program, like seriously this is great stuff .
You don't have to convince me......
http://forum.xda-developers.com/showthread.php?t=472727&highlight=worth+it%3F
Was waiting for something like this.......2 thumbs up!!
One app I thought of immediately that I feel needs 3g is youtube. I sometimes use Pandora, but I realize I am one of the few. Other than that, it sound like a superslick idea, and I will test and report bugs/updates on how it works for me.
Well crap... I'm on CDMA. Now my nuts are toast and my children will turn out looking like (the artist formerly known as) Prince.
Thanks for nothing Chainfire!
Look, you might've taken my guide a little too seriously. My intention was to differentiate between 2G and 3G as everything (almost) in life is relative.
if you had a 3G device running full time in your front pocket for 2 days, nothing will happen.
My point is, that the longer you radiate straight to your balls.. or any other organ, the chances to be harmed by it increases. now that's a FACT - radiation isn't healthy. so yeah, chernobyl was somewhat different considering the thousands of terawatts radiated... but that doesn't mean other stuff can't harm us. so let's just minimize the probability of us being able to grant life only to green children in the future, even if it's a 1% chance - why not make it 0.5?
I suggest EVERYONE uses Chainfire's app.. and.. if in the future, you need to buy it.. give in the 20/25$... it's worth it.
Chainfire, i suggest you consider other implementations as well.
our phones invest more energy in retaining a signal when the signal is low, which makes your phone radiate a lot more.
Maybe finding a way to disable this (if at all possible) will be good for us. of course, if someone needs a signal he can enable this option again...
Hehe! I know you shouldn't expect 3G to be really dangerous to your balls, and I primarily made the thing to save power. You may notice the first post is not entirely serious in nature But as said, less is always better.
Still though, having a source of heat close to the gonads has been proven to be bad for the swimmers (same reason why you should never put a laptop on your actual lap), but that is a different story which should be told a different time.
I'm always open to suggestions, though
I actually wasn't refering to you in the "taking it too seriously" matter but ok
nir36 said:
Chainfire, i suggest you consider other implementations as well.
our phones invest more energy in retaining a signal when the signal is low, which makes your phone radiate a lot more.
Maybe finding a way to disable this (if at all possible) will be good for us. of course, if someone needs a signal he can enable this option again...
Click to expand...
Click to collapse
i completely agree with this, while where you are going with this right now is absolutely great(dont get me wrong) this issue stated above at least i know for me has been a big issue. My phone will usually last 1 day EASY, but sometimes ill look down and it will be like 50% less than what i thought it would be. & i look and it has really low signal & is constantly connection/disconnection going form 2g-3g....
Just a thought i dont even no what you could do about this just wanted to state my opinion . Awesome work.
this sounds like it would be really interesting project i would love to see it working on other 3g phones (blackjack ii) i don't currently have one but given that i run beejive or implus all the time when my phone is on along with seven on three accounts and push email a lot of that stuff can be done on 2g rather then 3g and save data and power
Good news everyone, I also figured out how to do 2G<->3G on Omnia! Going to test if that works on the i780 as well.

[Q] Wifi Tethering App With User Data Monitor

I have been looking for an application which is a more powerful version of the WiFi Tethering already included in a phone.
I have been looking for an application on Xda, Google, and the Marketplace but none I have found provides me with the ability to see individual users (or Mac addresses) data usage.
First a little background on what I am trying to achieve.
I regularly provide a WiFi router for people with IPods and devices with wireless but no internet connection who need internet access to update games / browse the internet, and whilst my FUP at 500mb is quite low, I rarely use more than 20mb in a month so it doesn't bother me as beyond 500mb the connection is just limited to text and images (downloads and internet streaming are disabled after 500mb) which is all that I need.
However when my FUP has been exceeded alot of devices cant do the small updates this is no good when games or apps require it (as I have seen a couple even stop working till updates are completed) due to the connection being restricted. I have usually tracked it down to an over enthusiastic user who is watching videos on youtube, which has wiped out 100mb of my usage within 2 minutes on one occasion.
I am running both Android and Windows Mobile on my HD2, however I doubt WM will have a suitable app which is why I am hedging my bet with the Android market place, however a Windows Mobile version wouldnt go without great thanks, Whilst the built in "Portable Hotspot" of Android is good as it lets me restrict the number of users and see the Mac address of connected clients, it doesnt let me monitor their usage and then let me disconnect individual users them from the connection.
Whilst im sure there is apps for overall phone usage I am looking to monitor the individual devices usage as with 3-5 devices it is hard to distinct between legitimate usage and constant heavy usage.
Is there any Wifi Tethering app to let me do this?
To summarise:
Wifi Tethering App
Android / Windows Mobile
Shows Client Usage
MAC filtering (or alternatives which allow individual devices to be disconnected)
Preferably freeware however im sure I could be persuaded otherwise.
Thanks in advance
I was also thinking an app like this would be useful.
I can keep track of all data with 3G Watchdog, but knowing exactly how much data each wifi connected user takes up would be nice.
I realize this is thread necromancy, but did you ever find such an app? I too share my unlimited connection with coworkers, and there is one in particular that likes updating Xilinx (a "patch" is 8GB) and Windows Updates and so on over my connection. I am looking for something with QoS so I can put bandwidth caps on the heavy users that aren't my 4 machines.
Bandwidth ruler
There is an app called " bandwidth ruler free " for this . But this app monitors all users data connected to the Wifi hotspot . So it gives the overall data usage.
It can also set the download/upload speed for the wifi hotspot and this applicable for all the users .
it can also create multiple simultaneous data plans for the wifi hotspot.
you can download it via this link :
Also , you can find its description in the following xda thread :
http://forum.xda-developers.com/android/apps-games/app-bandwidth-manager-android-t2972889

i am ALWAYS in download. try these 2 app.....and doscover if u have the same problem

please understand that i used google translate to translate this post that i originally made for my native language(italian). So, be patient for the lessical error.
Network Connections
https://play.google.com/store/apps/d...ll.connmonitor
explanation taken from another site :
allows you to monitor the traffic inbound and outbound to and from the phone.
It keeps track of all the connections used by internet services and applications running, and allow you to track IP addresses to which they connect .
Its simple interface provides an historical overview of the data collected and the ability to capture information in real time, showing who is using the internet on your phone.
For each app says how many bytes were sent and received by each connection , which is useful for discovering suspicious activity or simply applications that continuously transmit data and should be disabled with connections to consumption .
The second app is this ............ (the one that gives me the fear !)
INTERNET SPEED METER LITE
https://play.google.com/store/apps/d...eed.meter.lite
you can see a table in the consumption of network bandwidth made ​​Android smartphone every day for a month , with free Wifi and 3G data from that .
The status bar indicates the transfer of data in real time and you can then see if there is network traffic on the screen without having to touch anything .
First I downloaded speed meter .... and I saw that I'm always in between the download 100b/se also peaks 500b/so even half kb / s
is terrifying ! the first app it should help you figure out which app (or what ) are the alleged infringers.
pity that I just can not bring myself to figure out which app I suck bandwidth , it certainly is a problem of my incapacitò read the app . A NOSE .... I was able to see that the first two places there are google service frameworks and factory test. but do not give you the certainty of what I say.
PLEASE installed these two apps and you also find , especially with the SECOND APP .... if phone idle , without touching anything you have a data download ( to separate the revenue from the up down in the options of the app shows the speed and flagged upload / download)
Usint Internet Speed Meter Lite for a long time, no issue like you mentioned. Infact no issue at all.

VPN Data Usage Questions

Hello,
I'm using a personal VPN on android 8.1 and trying to figure out whether all of my traffic is actually going through it or not. Despite always having the VPN on, the mobile data usage report shows data as being used mostly by the apps I'm using, and then slightly by the OpenVPN app.
For example I'll check my data usage, load a youtube video, and my data usage report will show youtube usage as having gone up 10MB, while the OpenVPN data usage went up 1MB. But if I look in the OpenVPN connection statistics, it shows that all 11MB went through the VPN, and if I check a site like ipleak.net, it suggests that at least my browser traffic is all going through the VPN. So does the phone just register data usage pre-VPN, and if so, how accurate is it considering the VPN tunnel can use compression?
Secondary question, for anyone familiar with Project Fi: How does their open-wifi VPN interact with a personal VPN? I haven't noticed my VPN switching over to theirs when it connects to a random open network, but I emailed their support and they said anything public would go through their VPN and anything on my private network would go through mine, but my OpenVPN statistics are still indicating everything is going through it.

is anyone else having issues staying connected to WiFi?

My v60 is connected, but I loose the ability to browse... If I drop WiFi, then reconnect, it's fine, but if it's idle for a few mins, it gets choked with no internet ability.
I even went as far as static IP settings, etc... Never had this issue with my V30.
So far I am disappointed... my wifi icon sometimes has a ! in the icon...but that went away when I put in static IP and static DNS... didn't help though.
please see my next post for the fix to this issue!!!
fixed the problem. Google inexplicably removed the "Keep WiFi on during sleep" setting from Android 10
to fix the problem you can do the following:
To set it:
adb shell settings put global wifi_sleep_policy 2
To find out what it is now:
adb shell settings list global
Keep WiFi on during sleep: Always = 2
Keep WiFi on during sleep: Only When Plugged In = 1
Keep WiFi on during sleep: Never = 0
found the fix here, says for Pixel2, but works on the LG V60 too!
https://www.androidpolice.com/2017/10/24/google-inexplicably-removed-keep-wifi-sleep-toggle-pixel-2/
Problem resolved!! WiFi Sleep issue in Android 10!
please see my previous post for the fix to this issue!!!
you need USB debugging turned on and ADB to fix the problem!
Update on my fix for v60 with WIFI that disconnects after sleep on 802.11N only
Update: My success with this was short lived. Worked for about a week and then back to the same 'ol. Checked the ADB nothing changed. Ended up installing "automate" by llama and creating a flow to check internet via ping and then turn on and turn off the wifi. Few things with that. 1: WiFi Enabled - Yes->Ping 8.8.8.8 - No ->Disable WIFI->Delay 2 sec-> Enable Wifi -> Delay 15 sec->Loop to 1.
Few points:
If Wifi Enabled = No, then loop to 15 sec delay
If Ping = Success, loop to 15 sec delay
After WIFI Enable = Loop to 15 sec delay
15-Sec Delay to "Is Wifi Enabled"
---
Wanted to update my experience on this. I have discovered my v60 fails to work after the phone goes to sleep. This can be reproduced by simply hitting the power button and waiting 15-30 seconds. At the point of wake-up, the phone is connected to wifi, the AP sees the client but the client fails to work. Analysis of the sniffer data shows the phone "SENDS" traffic but fails to receive. This issue was found on FORTIAP units that support the 802.11N protocol and when using A/B/G the issue did not present itself. I also noticed that while the phone was either charging or "awake" that pinging the phone was sub-10ms responses, once the phone went to sleep, pings went well over 100ms (See my theory at the bottom). As noted, if you simply disconnected and reconnected the wifi, the phone would work on WIFI "N" until it went to sleep again.
This post led me into a direction that seems to have resolved the issue. I was able to verify this does not happen on cheaper ISP AP's with "N" only enabled but happens on "smarter" "N" access points in multiple locations and on different APs. The behavior was consistent and after several hours of troubleshooting I have some settings that have 100% stabilized my phone after going to sleep. This issue did not present itself while the phone was charging via USB to the ADB connection or using a standalone charger.
Using ADB and connecting to my phone via USB, I ran the following commands:
adb shell settings put global wifi_on 1
adb shell settings put global wifi_automatically_on_off_wifi_enabled 0
adb shell settings put global wifi_watchdog_poor_network_test_enabled 1
adb shell settings put system power_save_wifi 0
adb shell settings put system power_save_wifi_restore 1
With this post, it was suggested to set the following, however in my phone it was already the case:
adb shell settings get global wifi_sleep_policy = 2
As noted by this posts author, you can change that if needed via:
adb shell settings put global wifi_sleep_policy 2
The original settings were as follows:
global wifi_on=2
global wifi_automatically_on_off_wifi_enabled=2
global wifi_watchdog_poor_network_test_enabled = 0
system power_save_wifi = 1
system power_save_wifi_restore = 0
I sure hope this helps others out there, LG didn't want to own up to this issue that is widely reported but at this point, I think I have settings that are stable and my phone is now usable.
Verizon sent me a new v60 phone and it also had the issue, this allowed me to test and troubleshoot to come up with this solution. This issue happened with both the March 2020 update (as shipped) as well as the June 2020 update.
My theory is the enhancement of the "N" protocol in the IEEE 802.11N enhancements where beam forming is able to reduce power. When the phone goes to sleep, it seems to lose track of the "beam" and the power reduction on the AP may cause this issue. I'm not really sure, but here's where I gathered that from:
Beam forming
As 802.11n systems emerges in the market as an important feature for enterprise Wi-Fi infrastructure. Beam forming is an important companion to 4×4 Multiple Input Multiple Output (MIMO) technologies for Wi-Fi wireless networking. When it is included, it enables dramatic improvement in Wi-Fi 802.11ac/n performance, reliability, range and coverage. Beam forming is an optional feature of 802.11n. In its simplest terms, beam forming allows an access point to effectively concentrate its signal at the clients location. This results in a better signal, SNR and potentially a great throughput. It is a natural extension of the physical layer that has multiple radios and antennas in each station. By controlling the transmit power and phase of the collection of transmission antennas, it is possible to shape the effective gain of the antennas to create a pattern that points towards the receiving station a beam.
Same issue here using Google Wifi
Unfortunately I tried your settings but it is still happening. Not sure if I need to do anything else. I don't have a lot of experience with adb, but I was able to make sure that the settings were set. Is there a way to print out the list of current settings to verify that all is set. I did verify through the commands.
Anyway thanks!! Any other info would be great. I do have the latest July update. Thanks
So I tried slyguy2000's method (the ADB commands) and it worked perfectly. However, now I am getting really poor battery performance. My phone lasts 1 day with moderate use (4-5hrs of SOT) while before I used to get 10hrs of SOT. Is anyone else experiencing this issue.
My V60 seams to be working better. I had one of the settings that were not enabled "watchdog_poor_network_test" once I enabled it seams to work better. It will connect now even after a overnight period.
Yes I confirm that it drains a lot of battery overnight after setting change. Getting 24 hrs per charge, was getting a day and a half before.
I decided to go back in my settings to avoid the battery drain. I put everything back to stock but my battery was still draining. So I did a factory reset and brought back my last backup. Now it's all working fine. Even my wifi and no battery drain either. So not sure why, but it's all good now!
Strange!
I do have issues as well, on some SSIDs. Specifically it has issues with my home mesh network. Not sure if it is the mesh or the beamforming that it has issues with more.

Categories

Resources