maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Request: Toggle Wifi (https://talk.maemo.org/showthread.php?t=83767)

rainisto 2012-04-24 05:01

Re: Request: Toggle Wifi
 
Quote:

Originally Posted by dagee04 (Post 1196774)
What would be nice is to be able to toggle background connections on or off easily

Its already easy from current UI. IMHO Making a button of it would just be plain stupid.

ajalkane 2012-04-24 05:26

Re: Request: Toggle Wifi
 
Quote:

Originally Posted by dagee04 (Post 1196774)
What would be nice is to be able to toggle background connections on or off easily

You can do it yourself easily. It's easy to do from command-line:

Put background connections off from command-line:

Code:

gconftool-2 -s --type boolean /system/osso/connectivity/network_type/restricted_mode true
Put background connections on:

Code:

gconftool-2 -s --type boolean /system/osso/connectivity/network_type/restricted_mode false
It's easy to make those into scripts, and creating a desktop entry for them. It's a trivial exercise to even create one script that toggles between the values. The current value can be obtained with this:

Code:

gconftool -g /system/osso/connectivity/network_type/restricted
_mode

These are your moushka tools, happy hacking!

keflex 2012-04-25 14:09

Re: Request: Toggle Wifi
 
The value to this from my perspective would be acting as a workaround to the BT audio issues noted in other threads. According to the Bugzilla entry the performance issues are caused by sporadic WiFi scanning, and disabling WiFi would thus remove the problem.

Jeffrey04 2012-05-16 08:57

Re: Request: Toggle Wifi
 
Quote:

Originally Posted by ajalkane (Post 1196804)
You can do it yourself easily. It's easy to do from command-line:

Put background connections off from command-line:

Code:

gconftool-2 -s --type boolean /system/osso/connectivity/network_type/restricted_mode true
Put background connections on:

Code:

gconftool-2 -s --type boolean /system/osso/connectivity/network_type/restricted_mode false
It's easy to make those into scripts, and creating a desktop entry for them. It's a trivial exercise to even create one script that toggles between the values. The current value can be obtained with this:

Code:

gconftool -g /system/osso/connectivity/network_type/restricted
_mode

These are your moushka tools, happy hacking!

do i have to emit a signal after toggling it on and off? I have my daemon changing the value via gconf and apps don't really seem to react properly on the change of this configuration value

my code is here https://bitbucket.org/jeffrey04/rest...dater_class.py

EDIT: I am thinking on removing the heartbeat thingy (qsystemalignedtimer?) and subscribe to the event where connection is changed, but don't really know how to do it

EDIT: btw, it is actually sort of possible to automatically turn on/off 'allow background connections' using ajalkane's profilematic app :)

ajalkane 2012-05-17 05:07

Re: Request: Toggle Wifi
 
Quote:

Originally Posted by Jeffrey04 (Post 1207282)
do i have to emit a signal after toggling it on and off? I have my daemon changing the value via gconf and apps don't really seem to react properly on the change of this configuration value

my code is here https://bitbucket.org/jeffrey04/rest...dater_class.py

EDIT: I am thinking on removing the heartbeat thingy (qsystemalignedtimer?) and subscribe to the event where connection is changed, but don't really know how to do it

EDIT: btw, it is actually sort of possible to automatically turn on/off 'allow background connections' using ajalkane's profilematic app :)

Actually it is not possible with ProfileMatic. The gconf commands I posted above change the setting in the UI, but it has no effect. So what I did to ProfileMatic doesn't work. I have removed it now, but the update is pending on Ovi store.

If you figure out how to do it so that it works, please post. I'm afraid it requires poking something with mce, and it may be blocked by aegis. But I don't even know what should be sent to mce.

Jeffrey04 2012-05-17 07:48

Re: Request: Toggle Wifi
 
Quote:

Originally Posted by ajalkane (Post 1207652)
Actually it is not possible with ProfileMatic. The gconf commands I posted above change the setting in the UI, but it has no effect. So what I did to ProfileMatic doesn't work. I have removed it now, but the update is pending on Ovi store.

If you figure out how to do it so that it works, please post. I'm afraid it requires poking something with mce, and it may be blocked by aegis. But I don't even know what should be sent to mce.

apparently the same problem, yea, changing the value via gconf doesn't seem to really turn on/off the 'allow background connections' settings

lifeintheblitz 2012-05-17 10:02

Re: Request: Toggle Wifi
 
AFAIK, you can't turn off your WiFi radio, unless you're in flight mode or maybe if you're in power saver. Even though you are not connected to a network, the Nokia N9 searches for available hotspots regularly (I don't know the interval).

To be honest, it's useless to turn off wifi. I've done some testing, and the impact it has on power consumption is shockingly small. Hell, my idle consumption when I'm connected to a wifi network is at 13mA, as opposed to 9mA when not connected.

PhatApteryx 2012-05-17 10:10

Re: Request: Toggle Wifi
 
Quote:

Originally Posted by lifeintheblitz (Post 1207754)
AFAIK, you can't turn off your WiFi radio, unless you're in flight mode or maybe if you're in power saver. Even though you are not connected to a network, the Nokia N9 searches for available hotspots regularly (I don't know the interval).

To be honest, it's useless to turn off wifi. I've done some testing, and the impact it has on power consumption is shockingly small. Hell, my idle consumption when I'm connected to a wifi network is at 13mA, as opposed to 9mA when not connected.

Yes that may well be the case, but if as others already said here, this is what interferes with BT audio, that is exactly why i want to be able to disable... Battery life is not an issue. In my case, i mountainbike using my phone with SportsTracker & playing music via BT ear plus... I dont want to use flight mode but the BT audio gets irritating interruptions...

Anyway, would be nice to disable if possible.

An9 2012-06-16 09:21

Re: Request: Toggle Wifi
 
Sounds like Meego OS is missing the REFREESH WiFi button on wirelles settings, is there any posibility of enabling that...

The other question about wifi is, how to reset or enable WiFi connection over 50m distance, like the N97mini i em able to connect to routers up to 400m.

Evok 2012-08-20 13:01

Re: Request: Toggle Wifi
 
Guys, I see you are looking for a 'Wireless Switch". You can go to the link: http://my-maemo.com/software/applications.php?fldAuto=1229&faq=32 and get this one. I have installed it a few days back and my N900 battery now lasts about 3 to 5 days!:)


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

vBulletin® Version 3.8.8