maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting) (https://talk.maemo.org/showthread.php?t=46594)

Jkill 2010-05-10 07:55

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
I have just discovered this app with the dbus-send command it is just great!
I hated the fact that IMAP email check could not be desactivated during the night, well now I can schedule an internet disconnect in the evenings and schedule an internet connect early in the mornings :) (http://wiki.maemo.org/Phone_control)
Brilliant !

Jkill 2010-05-11 00:01

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
actually it does not work as expected ... My schedule does work but if any process require a connection to Internet, it will re-establish a connection (either WLAN or GPRS).
anybody would have an idea of how to "disable" completely internet connectivity and enable.
I think I know how to disable the wlan0 on demand but I am guessing that if an internect connection is required, it will then use the gprs which I dont know how to disable, I could simply disable wlan + radio but I want to keep the phone application running too
any ideas?

x-lette 2010-05-11 06:35

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Did you set the entry in Settings - Network Connection - Automatic Connection to Always ask (probably the the entries are called differently, my lang is german, so I just don't know the english entries)? That should prevent the device to automatically connect to internet and will pop up a request instead.

Jkill 2010-05-11 06:57

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
that's a good point, yes I did set it to connect automatically simply because I don't want to confirm. I don't really want to have to confirm everytime the phone comes in a known wifi zone or 3G.
I created a post here

evad 2010-05-11 09:50

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by x-lette (Post 652786)
Did you set the entry in Settings - Network Connection - Automatic Connection to Always ask (probably the the entries are called differently, my lang is german, so I just don't know the english entries)? That should prevent the device to automatically connect to internet and will pop up a request instead.

Actually, I'm also looking for a way to change that "automatic connection" setting via CLI and/or some config file. I also like to keep that setting on, so it would connect automatically, but overnight or whenever battery goes low, I'd like to disable it automagically.

Anyone knows where this setting is set in the system?

UPDATE:
Solution found. Setting for this is stored under "auto_connect":

Code:

gconftool-2 -R /system/osso/connectivity/network_type
Value of "[*]" is "Any connection" and "[]" is "Always ask".

Jkill 2010-05-11 12:31

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
awesome :)
any details on how to modify the value of auto_connect ?

F2thaK 2010-05-11 12:34

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
any chance we can select profiles made by the ProfilesX app??

thanks

evad 2010-05-11 12:38

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
1 Attachment(s)
Quote:

Originally Posted by Jkill (Post 653300)
awesome :)
any details on how to modify the value of auto_connect ?

Always ask:
Code:

gconftool-2 --set --type list --list-type string /system/osso/connectivity/network_type/auto_connect []
Any connection:
Code:

gconftool-2 --set --type list --list-type string /system/osso/connectivity/network_type/auto_connect[*]
UPDATE:
I have quickly crafted a shell script which you could put in place like /usr/local/bin and then use via x-terminal:

Code:

power-saver.sh
Code:

power-saver.sh off
Or schedule it for automatic overnight execution via Alarmed, if you wish.

nicolai 2010-05-11 12:42

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by f2thak (Post 653307)
any chance we can select profiles made by the ProfilesX app??

thanks

As long as you can execute custom commands, you can activate those profiles, too.
http://wiki.maemo.org/Phone_control#Set_Silent
ProfilesX profiles can be used just like "silent" and "general".
This is one reason I made this app.

nicolai

Jkill 2010-05-11 12:48

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
ok I have find a way to "untick" the auto connect option using GConf, but I cannot seem to "tick" it back.
when I set the auto_connect to "[]" it works:

gconftool-2 -g /system/osso/connectivity/network_type/auto_connect
[]

but when I set it to"[*]" it doesn't ..
gconftool-2 -g /system/osso/connectivity/network_type/auto_connect[*]

any idea?


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

vBulletin® Version 3.8.8