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

Search This thread

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
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
 

Attachments

  • WMLongLife-0.66-0302.cab
    682.7 KB · Views: 26,324
Last edited:
  • Like
Reactions: Oldy27

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
The Manual (0.5 and newer) - READ IT!

rtfm.png


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.
 
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
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.

----

wmll-0.55-1-config-home.png
wmll-0.55-2-config-settings.png
wmll-0.55-3-config-apps.png

wmll-0.55-4-config-appconfig.png
wmll-0.55-5-appconfig-popup.png
wmll-0.55-6-switch-band.png
 
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
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)
 
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
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.
 
Last edited:

Soul_Est

Senior Member
Dec 17, 2007
172
13
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.
 

cbass

Senior Member
Nov 17, 2007
458
28
Rochester, NY
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.
 

bobross

Member
Jan 27, 2008
26
1
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! ;)
 

nir36

Retired Moderator
Dec 5, 2007
3,858
339
Jerusalem
www.sq-web.com
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...
 
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
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 :)
 

jug6ernaut

Inactive Recognized Developer
Jun 7, 2006
2,560
467
San Antonio, Tx
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...

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 :D. Awesome work.
 

Keland44

Senior Member
Jun 9, 2006
832
21
Cali
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
 

Chainfire

Moderator Emeritus / Senior Recognized Developer
Oct 2, 2007
11,452
87,862
www.chainfire.eu
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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    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
    1
    Hi Chainfire and all,

    Don't know if anyone else has experienced the same problem, but I recently upgraded my ROM from DiaDuit 1.6.4 to 1.6.7, and WMLongLife's stopped working.

    It worked perfectly fine under 1.6.4, but after flashing the new ROM, whenever I switch to a 3G application (like Opera), the WMLL "Switching to 3G" window will pop up, and it looks like the radio is switching to 3G, but somehow it will not be able to connect to 3G and will just continue to search. It will hang Opera, and I will have to terminate the application.

    And it's not just Opera it has problem with. The same problem occurs for every 3G application I've defined.

    Meanwhile, if I manually switch between 2G and 3G and back using CommManager, it works perfectly fine, and I can connect to 3G and download data no problem neither.

    I've checked the radio setting and all that, and everything looks fine.

    Has anybody else experienced this before?

    I Have an HTC Touch HD and I am speriencing the same issue than you from the beggining :(