AutoDisconnect

(categorize)
(/* Network Settings gprs)
 
(21 intermediate revisions not shown)
Line 1: Line 1:
-
=Description=
+
This application automatically closes your idle connections ('''Wifi + 3G/GPRS + Bluetooth''') and switches the network mode of your [[Nokia N900|N900]] to 2G when 3G is not used, in order for your batteries to last much longer.
-
This application automatically closes your idle connections ('''Wifi + 3G/GPRS + Bluetooth''') in order for your batteries to last much longer if like me you have automatic synchronizations. It switches too the network mode of your phone (use 2G when 3G is not required by connection).
+
Analysis made with one automatic sync (calendar & contacts) running on a unused device every hour using Wifi Access Point : '''your batteries will last up to 5x longer with AutoDisconnect enabled.'''
-
Analysis made with one automatic sync (calendar & contacts) running on a unused device every hour using Wifi Access Point : '''your batteries will last up to 5x longer with AutoDisconnect enable.'''
+
The package is available on the extras repository for the stable version, and on the extras-devel repository for the testing version.
-
The package is available on the extra-testing repository. '''Please vote for it [http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/autodisconnect/0.4-2/ here].'''
+
==Interface==
-
 
+
-
=Interface=
+
To manage the application, you can launch the program 'AutoDisconnect' which is available in Settings > Connectivity. You will find 5 tabs :
To manage the application, you can launch the program 'AutoDisconnect' which is available in Settings > Connectivity. You will find 5 tabs :
Line 17: Line 15:
* Bluetooth [http:///www.dev-it.net/files/autodisconnect-ui-bluetooth.png Screenshot]
* Bluetooth [http:///www.dev-it.net/files/autodisconnect-ui-bluetooth.png Screenshot]
-
=Beta mode : Use 2G when not connected=
+
==Network Settings==
-
This new ''beta'' functionality appears with the 0.4. It switches the network mode of your phone automatically to 2G when 3G is not required. So how does it work ?
+
You can choose which connections to check : GPRS (2G/3G) and Wifi. For each of these connections, you have a tab with similar settings.
-
Every time you launch a new connection, the network mode will be switched to 3G. If you're using Wifi, the switch happens too because of [https://bugs.maemo.org/show_bug.cgi?id=7733 a bug in Maemo] which makes impossible to know which connection has been launched in if-pre-up.d scripts. But in this case, AutoDisconnect will switch again the network mode to 2G in less than a minute. If you're using 3G then the network mode will be switched back only after the disconnection.
+
Ex :  
 +
* Interval : 1 minutes after 2 seconds
 +
* Traffic : 2 KB/min
-
The drawback of this method is that the connection phase last 3 seconds more than in classic mode. So some of your applications which initiates the internet connection (like OMWeather) could believe to a timeout.
+
The previous settings means that AutoDisconnect will begin to record the connection traffic 2seconds after its launch. If 2 minutes later, the total traffic is higher than 5x2KB = 10KB, then AutoDisconnect will consider the connection as used and won't disconnect the device. The next check will happen 5 minutes later.
 +
'''''Italic text'''''''''Bold text''''''''
 +
[[File:'''Example.jpg'''[http://www.example.com link title]]]
-
Note : the network mode won't be changed if you are making a call at the same time.
+
==Auto-Switch 2G / 3G-Dual==
-
=Possible issues=
+
'''Please note that this functionality does not depend of the setting "When should AutoDisconnect be active".''' So if you enable it, it will work no matter what.
-
==Automatic MFE synchronizations (calendar, task, email) are not working anymore==
+
This functionality switches the network mode of your phone automatically to 2G when 3G is not used. So how does it work ?
-
An application which required Internet doesn't connect to Internet automatically if the device is not connected (See [https://bugs.maemo.org/show_bug.cgi?id=7180 Bug 7180]), except if the author has manually implemented that functionality. So how to keep MFE or my widgets working ?
+
Every time you launch a new GPRS connection, the network mode will be switched to 3G or Dual Mode depending on your settings. After the disconnection, the network mode will be switched back to 2G.
-
- In Settings > Internet Connections, Use "Connect automatically" to any network or a specified connection and set the "Search Interval" to some value.
+
The drawback of this method is that the connection phase takes more time than in classic mode because of the network mode change. So some of your applications which initiates the internet connection (like [[OMWeather]]) could believe it to be a timeout. The switch to the Dual Mode required more time than the classic 3G switch, so use it only when you are in a area where the 3G coverage is bad.
 +
You can select the duration of the switch, which will depends of your phone/area.  The lowest value is the better.
-
- [http://talk.maemo.org/showthread.php?t=46594 Alarmed] is an application which allows you to run scripts periodically. Install it and create a periodic run of the following script, which will initiate an Internet connection and run a sync :
+
Note : the network mode won't be changed if you are making a call at the same time.
 +
 
 +
==Possible issues==
 +
 
 +
===Automatic MFE synchronizations (calendar, task, email) are not working anymore===
 +
 
 +
An application which required Internet doesn't connect to Internet automatically if the device is not connected (See [https://bugs.maemo.org/show_bug.cgi?id=7180 Bug 7180]), except if the author has manually implemented that functionality. So how to keep MFE or my widgets working?
 +
* In Settings > Internet Connections, Use "Connect automatically" to any network or a specified connection and set the "Search Interval" to some value.
 +
* [http://talk.maemo.org/showthread.php?t=46594 Alarmed] is an application which allows you to run scripts periodically. Install it and create a periodic run of the following script, which will initiate an Internet connection and run a sync :
 +
<source lang="bash">
  #!/bin/sh
  #!/bin/sh
   
   
  dbus-send --print-reply --type=method_call --session --dest=com.nokia.asdbus /com/nokia/asdbus com.nokia.asdbus.sync
  dbus-send --print-reply --type=method_call --session --dest=com.nokia.asdbus /com/nokia/asdbus com.nokia.asdbus.sync
 +
</source>
 +
===My Widgets are not refreshing anymore===
-
==My Widgets are not refreshing anymore==
+
See [[#Automatic MFE synchronizations (calendar, task, email) are not working anymore|Automatic MFE synchronizations (calendar, task, email) are not working anymore]] above.
-
See ''Automatic MFE synchronizations (calendar, task, email) are not working anymore'' above.
+
See [[#Auto-Switch 2G / 3G-Dual|Auto-Switch 2G / 3G-Dual]] above
-
See ''Beta mode : Use 2G when not connected'' above
+
==Notes==
-
=Notes=
+
Please report any bugs or suggestions [https://garage.maemo.org/tracker/?group_id=1353 here]. For a bug submission, please include the AutoDisconnect log file with your post. Its location on your phone is <code>/var/log/autodisconnect.log</code>.
-
PLEASE be aware that software hosted in extras-testing and extras-devel catalogues is not ready for and average phone users and is aimed to used only for testing purposes.
+
AutoDisconnect is under GPL license so you can get the full source on github [http://github.com/abrisse/AutoDisconnect http://github.com/abrisse/AutoDisconnect].
-
Please report any bugs or suggestions [https://garage.maemo.org/tracker/?group_id=1353 here]. For a bug submission, please include the AutoDisconnect log file with your post. Its location on your phone is /var/log/autodisconnect.log.
+
==Changelog==
-
AutoDisconnect is under GPL license so you can get the full source on github [http://github.com/abrisse/AutoDisconnect http://github.com/abrisse/AutoDisconnect].
+
===0.4.8 [12-21-10]===
-
=Changelog=
+
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=6380&group_id=1353&atid=5016 #6380]] : Disconnect fails when interface traffic exceeds 2 GiB
 +
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=6705&group_id=1353&atid=5016 #6705]] : Multiple connections support for the same interface
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=6012&group_id=1353&atid=5016 #6102]] : Exception for Mobile Hotspot/JoikuSpot
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=6709&group_id=1353&atid=5016 #6709]] : IPV6 Support
-
'''v0.4 - 06-01-10'''
+
===0.4.7 [07-21-10]===
-
* New feature [#5732] : Switch automatically 2G <-> 3G - Reporter : automagic68 
+
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=6028&group_id=1353&atid=5019 #6028]] Need longer "switch last" durations - Reporter juhas
-
* New feature [#5700] : Do not disconnect when openvpn is running - Reporter : maddler
+
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=6070&group_id=1353&atid=5019 #6070]] Add Exception for Pidgin Plugin - Reporter NokiaRocks
-
* New feature [#5738] : Do not disconnect when VoIP or an IM Account (Google Talk, Skype) is used
+
-
* New feature [#5310] : Each connection (gprs and wlan) has its own settings
+
-
* New feature [#5221] : Control Panel Applet - Reporter : pillar
+
-
* Fix [#5733] : Bluetooth is disconnected when the FM Radio is used - Reporter DaSilva
+
* MinorEnhancement : Notification labels changed
 +
===0.4.6 [06-14-10]===
 +
 +
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5923&group_id=1353&atid=5016 #5923]] Cannot disable the auto-switch 2G/3G - Reporter dagee04
 +
* Enhancement : Add a link to the Wiki
 +
 +
===0.4.5 [06-12-10]===
 +
 +
* Enhancement of AutoSwitch [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5861&group_id=1353&atid=5016 #5861]] : 3G/Dual option  - Reporter jaguilar / Active only when 3G is on - Special thanks to maddler / Others enhancements
 +
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5918&group_id=1353&atid=5016 #5918]] : The minus button on the SpinBox on the bluetooth tab was defective - Reporter hironico
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5870&group_id=1353&atid=5016 #5870]] : Add an option: "Do not disconnect while using the device" - Reporter c1fs2aom
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5919&group_id=1353&atid=5016 #5919]] : Add a grace period for each connection
 +
 +
===0.4 [06-01-10]===
 +
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5732&group_id=1353&atid=5016 #5732]] : Switch automatically 2G <-> 3G - Reporter : automagic68 
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5700&group_id=1353&atid=5016 #5700]] : Do not disconnect when openvpn is running - Reporter : maddler
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5738&group_id=1353&atid=5016 #5738]] : Do not disconnect when VoIP or an IM Account (Google  Talk, Skype) is used
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5310&group_id=1353&atid=5016 #5310]] : Each connection (gprs and wlan) has its own settings
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5221&group_id=1353&atid=5016 #5221]] : Control Panel Applet - Reporter : pillar
 +
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5733&group_id=1353&atid=5016 #5733]] : Bluetooth is disconnected when the FM Radio is used - Reporter DaSilva
* Enhancement : Bluetooth manager has been updated and is not loaded anymore when not activated
* Enhancement : Bluetooth manager has been updated and is not loaded anymore when not activated
* Change default settings & Others enhancements
* Change default settings & Others enhancements
* Use of PR 1.2 Qt libraries
* Use of PR 1.2 Qt libraries
-
'''v0.3.1 - 05-03-10'''
+
===0.3.1 [05-03-10]===
* Enhancement : Bluetooth settings changes are now taken in account at the next check
* Enhancement : Bluetooth settings changes are now taken in account at the next check
-
'''v0.3 - 05-03-10'''
+
===0.3 [05-03-10]===
-
 
+
-
* New feature [#5260] : Add option "Disable when plugged in" - Reporter : phedders
+
-
* New feature [#5662] : Add option "Disable Bluetooth if no device is connected" - Reporter : DaSilva
+
-
* New feature [#5233] : Add option "Do not disconnect if ssh connections are active" - Reporter : fred123
+
-
* New feature [#5659] : Limit can now be set in B/KB/MB
+
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5260&group_id=1353&atid=5016 #5260]] : Add option "Disable when plugged in" - Reporter : phedders
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5662&group_id=1353&atid=5016 #5662]] : Add option "Disable Bluetooth if no device is connected" - Reporter : DaSilva
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5233&group_id=1353&atid=5016 #5233]] : Add option "Do not disconnect if ssh connections are active" - Reporter : fred123
 +
* New feature [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5659&group_id=1353&atid=5659 #5659]] : Limit can now be set in B/KB/MB
* Fix : New Installer (AutoDisconnect didn't work  anymore when reinstalled)
* Fix : New Installer (AutoDisconnect didn't work  anymore when reinstalled)
-
 
* Enhancement : UI has been reorganized an now uses tabs
* Enhancement : UI has been reorganized an now uses tabs
-
'''v0.2.2 - 02-22-10'''
+
===0.2.2 [02-22-10]===
* Fix : Max Idle Traffic was a value per second instead of minute
* Fix : Max Idle Traffic was a value per second instead of minute
* Minor Fix : UI Interface - Spelling Traffic instead of Trafic (french)
* Minor Fix : UI Interface - Spelling Traffic instead of Trafic (french)
-
'''v0.2.1 - 02-22-10'''
+
===0.2.1 [02-22-10]===
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5236&group_id=1353&atid=5016 #5236]] : Disconnection always happens when interface is up since more than 10MB
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5236&group_id=1353&atid=5016 #5236]] : Disconnection always happens when interface is up since more than 10MB
-
 
* Small enhancement : display notification when settings are saved.
* Small enhancement : display notification when settings are saved.
-
'''v0.2 - 02-19-10'''
+
===0.2 [02-19-10]===
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5214&group_id=1353&atid=5016 #5214]] : Connection delay - Reporter : amorek13 - Many thanks to mclarson for solving the problem
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5214&group_id=1353&atid=5016 #5214]] : Connection delay - Reporter : amorek13 - Many thanks to mclarson for solving the problem
Line 103: Line 134:
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5222&group_id=1353&atid=5016 #5222]] : Configure Uninstaller & Installer
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5222&group_id=1353&atid=5016 #5222]] : Configure Uninstaller & Installer
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5225&group_id=1353&atid=5016 #5225]] : Prevent 2 instances of AutoDisconnect to be run at the same time
* Fix [[https://garage.maemo.org/tracker/index.php?func=detail&aid=5225&group_id=1353&atid=5016 #5225]] : Prevent 2 instances of AutoDisconnect to be run at the same time
-
 
* Enhancement : Punctual connections (~20 seconds) will be closed during the next interval check instead of the second next one.
* Enhancement : Punctual connections (~20 seconds) will be closed during the next interval check instead of the second next one.
-
 
* Note : the upgrade from 0.1 to 0.2 will remove your current settings.
* Note : the upgrade from 0.1 to 0.2 will remove your current settings.
[[Category:Software]]
[[Category:Software]]
[[Category:N900]]
[[Category:N900]]

Latest revision as of 05:45, 28 June 2015

This application automatically closes your idle connections (Wifi + 3G/GPRS + Bluetooth) and switches the network mode of your N900 to 2G when 3G is not used, in order for your batteries to last much longer.

Analysis made with one automatic sync (calendar & contacts) running on a unused device every hour using Wifi Access Point : your batteries will last up to 5x longer with AutoDisconnect enabled.

The package is available on the extras repository for the stable version, and on the extras-devel repository for the testing version.

Contents

[edit] Interface

To manage the application, you can launch the program 'AutoDisconnect' which is available in Settings > Connectivity. You will find 5 tabs :

[edit] Network Settings

You can choose which connections to check : GPRS (2G/3G) and Wifi. For each of these connections, you have a tab with similar settings.

Ex :

  • Interval : 1 minutes after 2 seconds
  • Traffic : 2 KB/min

The previous settings means that AutoDisconnect will begin to record the connection traffic 2seconds after its launch. If 2 minutes later, the total traffic is higher than 5x2KB = 10KB, then AutoDisconnect will consider the connection as used and won't disconnect the device. The next check will happen 5 minutes later. Italic text''''Bold text''' [[File:Example.jpglink title]]

[edit] Auto-Switch 2G / 3G-Dual

Please note that this functionality does not depend of the setting "When should AutoDisconnect be active". So if you enable it, it will work no matter what.

This functionality switches the network mode of your phone automatically to 2G when 3G is not used. So how does it work ?

Every time you launch a new GPRS connection, the network mode will be switched to 3G or Dual Mode depending on your settings. After the disconnection, the network mode will be switched back to 2G.

The drawback of this method is that the connection phase takes more time than in classic mode because of the network mode change. So some of your applications which initiates the internet connection (like OMWeather) could believe it to be a timeout. The switch to the Dual Mode required more time than the classic 3G switch, so use it only when you are in a area where the 3G coverage is bad. You can select the duration of the switch, which will depends of your phone/area. The lowest value is the better.

Note : the network mode won't be changed if you are making a call at the same time.

[edit] Possible issues

[edit] Automatic MFE synchronizations (calendar, task, email) are not working anymore

An application which required Internet doesn't connect to Internet automatically if the device is not connected (See Bug 7180), except if the author has manually implemented that functionality. So how to keep MFE or my widgets working?

  • In Settings > Internet Connections, Use "Connect automatically" to any network or a specified connection and set the "Search Interval" to some value.
  • Alarmed is an application which allows you to run scripts periodically. Install it and create a periodic run of the following script, which will initiate an Internet connection and run a sync :
 #!/bin/sh
 
 dbus-send --print-reply --type=method_call --session --dest=com.nokia.asdbus /com/nokia/asdbus com.nokia.asdbus.sync

[edit] My Widgets are not refreshing anymore

See Automatic MFE synchronizations (calendar, task, email) are not working anymore above.

See Auto-Switch 2G / 3G-Dual above

[edit] Notes

Please report any bugs or suggestions here. For a bug submission, please include the AutoDisconnect log file with your post. Its location on your phone is /var/log/autodisconnect.log.

AutoDisconnect is under GPL license so you can get the full source on github http://github.com/abrisse/AutoDisconnect.

[edit] Changelog

[edit] 0.4.8 [12-21-10]

  • Fix [#6380] : Disconnect fails when interface traffic exceeds 2 GiB
  • Fix [#6705] : Multiple connections support for the same interface
  • New feature [#6102] : Exception for Mobile Hotspot/JoikuSpot
  • New feature [#6709] : IPV6 Support

[edit] 0.4.7 [07-21-10]

  • Fix [#6028] Need longer "switch last" durations - Reporter juhas
  • Fix [#6070] Add Exception for Pidgin Plugin - Reporter NokiaRocks
  • MinorEnhancement : Notification labels changed

[edit] 0.4.6 [06-14-10]

  • Fix [#5923] Cannot disable the auto-switch 2G/3G - Reporter dagee04
  • Enhancement : Add a link to the Wiki

[edit] 0.4.5 [06-12-10]

  • Enhancement of AutoSwitch [#5861] : 3G/Dual option - Reporter jaguilar / Active only when 3G is on - Special thanks to maddler / Others enhancements
  • Fix [#5918] : The minus button on the SpinBox on the bluetooth tab was defective - Reporter hironico
  • New feature [#5870] : Add an option: "Do not disconnect while using the device" - Reporter c1fs2aom
  • New feature [#5919] : Add a grace period for each connection

[edit] 0.4 [06-01-10]

  • New feature [#5732] : Switch automatically 2G <-> 3G - Reporter : automagic68
  • New feature [#5700] : Do not disconnect when openvpn is running - Reporter : maddler
  • New feature [#5738] : Do not disconnect when VoIP or an IM Account (Google Talk, Skype) is used
  • New feature [#5310] : Each connection (gprs and wlan) has its own settings
  • New feature [#5221] : Control Panel Applet - Reporter : pillar
  • Fix [#5733] : Bluetooth is disconnected when the FM Radio is used - Reporter DaSilva
  • Enhancement : Bluetooth manager has been updated and is not loaded anymore when not activated
  • Change default settings & Others enhancements
  • Use of PR 1.2 Qt libraries

[edit] 0.3.1 [05-03-10]

  • Enhancement : Bluetooth settings changes are now taken in account at the next check

[edit] 0.3 [05-03-10]

  • New feature [#5260] : Add option "Disable when plugged in" - Reporter : phedders
  • New feature [#5662] : Add option "Disable Bluetooth if no device is connected" - Reporter : DaSilva
  • New feature [#5233] : Add option "Do not disconnect if ssh connections are active" - Reporter : fred123
  • New feature [#5659] : Limit can now be set in B/KB/MB
  • Fix : New Installer (AutoDisconnect didn't work anymore when reinstalled)
  • Enhancement : UI has been reorganized an now uses tabs

[edit] 0.2.2 [02-22-10]

  • Fix : Max Idle Traffic was a value per second instead of minute
  • Minor Fix : UI Interface - Spelling Traffic instead of Trafic (french)

[edit] 0.2.1 [02-22-10]

  • Fix [#5236] : Disconnection always happens when interface is up since more than 10MB
  • Small enhancement : display notification when settings are saved.

[edit] 0.2 [02-19-10]

  • Fix [#5214] : Connection delay - Reporter : amorek13 - Many thanks to mclarson for solving the problem
  • Fix [#5216] : Increase the digits visible in the input fields - Reporter : jakiman
  • Fix [#5222] : Configure Uninstaller & Installer
  • Fix [#5225] : Prevent 2 instances of AutoDisconnect to be run at the same time
  • Enhancement : Punctual connections (~20 seconds) will be closed during the next interval check instead of the second next one.
  • Note : the upgrade from 0.1 to 0.2 will remove your current settings.