Reply
Thread Tools
Guest | Posts: n/a | Thanked: 0 times | Joined on
#1
Hi,

I am looking for some dbus-send commands (or equivalent) to completely disconnect the N900 from the Internet during nights.

because I cannot set a off-peak time for IMAP sync in the Modest email client, I'd like to disconnect the phone from the internet completely so sync would fail.

So far I have found this dbus-send command which works great for a temporary disconnection:

Code:
dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
however, the phone will reconnect when any process requires an internet conenctivity (facebook widget, IMAP sync)

I thought about disabling the wlan0 interface, however the phone will then use the gprs0 interface to perform Internet connection so no good...
The other way that would definately work is to put the phone on offline mode but I wish to keep the telephone available during nights so it is not good either.

how could I do this then?
Cheers
Jkill
 
matts76's Avatar
Posts: 324 | Thanked: 201 times | Joined on Apr 2010 @ UK
#2
I use a queen beecon widget widget set for hard sleep mode to turn off internet at night, (i think its off all night as it is still off in the morning) you could try using the comands that uses, im not sure which one u need, im totaly new to linux but here is the command in full,
run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true ; rmmod wl12xx ; run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.set_selected_radio_access_technology byte:1 ; run-standalone.sh dbus-send --print-reply --system --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:locked
__________________
My N900@1Ghz Rocks
I wanted a phone, but i ended up with an all encompasing obsession

 

The Following User Says Thank You to matts76 For This Useful Post:
Posts: 216 | Thanked: 72 times | Joined on Dec 2009 @ Switzerland
#3
Cant you just go into offline mode by pressing the powerbutton once and choose "Offline mode" or is your goal a time automatic offline mode by time?

Markus
__________________
-----------------------------------------------------------------------
multiple contacts with the same phone number - wrong avatar:

https://bugs.maemo.org/show_bug.cgi?id=8844

missing a scrollbar? Vote here:http://maemo.org/community/brainstor...tic_scrolling/

Add quickbar (ABC, DEF, ...) in the Contact App. Vote here:http://maemo.org/community/brainstor..._address_book/
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#4
I need to keep the phone with GSM radio ON as I need to receive phone calls just in case ...
I'd like an "Internet offline" mode if that make sence ..

Cheers
 
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#5
Have you heard about the AutoDisconnect app?
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#6
I sure have, however it does not suit my need.
Unless I have missed something, there is no way to distinguish the "Day" from "Night", there is no scheduling capacity with AutoDisconnect and it is not its purpose, which is to save battery life
 
Posts: 42 | Thanked: 16 times | Joined on Jan 2010
#7
Use Wifi Switcher to enable/disable wifi at will, and use the 3G/2G applet to disable 3G when needed:

http://maemo.org/downloads/product/M...wifi-switcher/
http://maemo.org/downloads/product/M...ection-applet/
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#8
Out of curiosity: Why do you want to do this?

The rmmod based solution is ... hardcore but removing the functionality from the kernel like that will really stop the network from functioning. Just remember that you will have to hope that the insmod call will work when you want the network functionality back.

And, to me, using libiw to disable WiFi on driver level seems like a better solution.

Last edited by Joorin; 2010-05-11 at 09:28. Reason: libiw
 
afaq's Avatar
Posts: 1,038 | Thanked: 1,408 times | Joined on Feb 2010 @ London
#9
Just a thought - what if you go to settings and under Internet Connections change "Connect Automatically" to ""Always Ask".
Would that stop the sync until confirmation from the user?
__________________
Graphic and Calligraphy Designer
check out my site www.afaqali.com
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#10
Originally Posted by Joorin View Post
Out of curiosity: Why do you want to do this?

The rmmod based solution is ... hardcore but removing the functionality from the kernel like that will really stop the network from functioning. Just remember that you will have to hope that the insmod call will work when you want the network functionality back.
IMAP sync does not offer peak/off time sync so I dont want to be woken up by an email coming in. I can schedule a disable of wlan0 but it will then switch to gprs0 so no go ..
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:11.