maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Question] Disconnect Internet during nights (https://talk.maemo.org/showthread.php?t=52361)

Jkill 2010-05-11 09:31

Re: [Question] Disconnect Internet during nights
 
Quote:

Originally Posted by afaq (Post 653023)
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?

yep it was mentioned earlier in the thread by as I said, I dont want to be prompted during the day if I switch from WIFI to 3G coverage ...

am I asking the impossible ??
I would have thought a simple scheduled disable of the "Internet Connection" would have worked but looks like it is not that easy !

AlMehdi 2010-05-11 09:32

Re: [Question] Disconnect Internet during nights
 
I think the easiest way would be to unload the modules with a script or someting. I do not know which modules it should be and i have no clue about scripting.. but should be looking similar to something like this...

#!/bin/sh

modprobe -r <wifi-module>
modprobe -r <gprs-module>
sleep 36000;
modprobe <wifi-module>
modprobe <gprs-module>
done

qwerty12 2010-05-11 09:33

Re: [Question] Disconnect Internet during nights
 
You can set the GConf key /system/osso/connectivity/network_type/auto_connect to an empty list to stop automatic connections to APs or do what Wi-Fi Switcher does: rmmod wl12xx.

Schedule the key to be set back to "WLAN_INFRA" to have it connect to APs again.

Jkill 2010-05-11 09:34

Re: [Question] Disconnect Internet during nights
 
yes I think you get my idea :)
I don't know about this modprobe but will definately look in more details.

Cheers !

Jkill 2010-05-11 09:36

Re: [Question] Disconnect Internet during nights
 
Quote:

Originally Posted by qwerty12 (Post 653038)
You can set the GConf key /system/osso/connectivity/network_type/auto_connect to an empty list to stop automatic connections to APs or do what Wi-Fi Switcher does: rmmod wl12xx.

perhaps I can make a combination of
Evening:
- disconnect all connections
- set auto connect to "Prompt"

Morning:
- set auto connect to "auto"
- connect available APN

AlMehdi 2010-05-11 09:39

Re: [Question] Disconnect Internet during nights
 
Hmm.. here we got something maybe ;)

http://talk.maemo.org/showthread.php...hlight=alarmed

Jkill 2010-05-11 09:40

Re: [Question] Disconnect Internet during nights
 
yeah alarmed is good to schedule commands, no problem with it but I need to know what command/script to schedule first !

AlMehdi 2010-05-11 09:44

Re: [Question] Disconnect Internet during nights
 
Quote:

Originally Posted by Jkill (Post 653054)
yeah alarmed is good to schedule commands, no problem with it but I need to know what command/script to schedule first !

You could also try this: http://wiki.maemo.org/Fcron

http://talk.maemo.org/showthread.php...ighlight=fcron

Jkill 2010-05-11 11:55

Re: [Question] Disconnect Internet during nights
 
Quote:

Originally Posted by qwerty12 (Post 653038)
You can set the GConf key /system/osso/connectivity/network_type/auto_connect to an empty list to stop automatic connections to APs or do what Wi-Fi Switcher does: rmmod wl12xx.

Schedule the key to be set back to "WLAN_INFRA" to have it connect to APs again.

Any idea on how to modify this GConf key ? I had a look but it is obviously not a file to modify ..

fleetwood 2010-05-11 12:12

Re: [Question] Disconnect Internet during nights
 
I have solved the problem with ProfilesX and fcron. I have made a special night-time profile (normal volume for calls, silent for sms/email) and fcron activates it at specified time and switches back to general profile at morning.


All times are GMT. The time now is 21:24.

vBulletin® Version 3.8.8