maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   WLAN Shortcut (https://talk.maemo.org/showthread.php?t=40264)

msa 2010-01-12 23:41

WLAN Shortcut
 
so i dont know if i miss something or if its really not available, but i would love to have a desktop widget to enable/disable wlan.
also, i'd like to be set a standard wlan to connect to if you enable it.

i mostly use wlan when i'm at home (i suppose most people do), and its kinda inconvenient to tap tje status bar on top, hit internet connection, wait for your desired wlan to show up and click again to connect to it.
likewise for disconnecting.

it would be great to have a configurable desktop-icon that you click and it automatically connects you to your desired wlan if its available (or just opening the wlan-screen if desired wlan is not available to choose from other available wlans)

any ideas?

mehdiE 2010-01-12 23:49

Re: WLAN Shortcut
 
Launch the Settings app and set it to connect automatically via either WLAN or Any Connection. Then, set the "Search interval" and "Switch to WLAN when available" values to whatever you see fit for your usage. The phone will then connect automatically to know wifi access point whenever it's in range.

msa 2010-01-13 00:01

Re: WLAN Shortcut
 
yes this solution kinda works, but what about disconnecting?
is there a way to disable wlan automatically when not used (ie all apps that need internet are closed, wlan disconnects instantly)

btw i know i'm being anal with this, but i want my usage of maemo to be as convenient as possible :D

juahan 2010-02-25 14:51

Re: WLAN Shortcut
 
Anyone found a way to open (and close) WLAN-connection with a shortcut on desktop? Can it be done in terminal?

Duffer 2010-02-25 14:59

Re: WLAN Shortcut
 
mehdiE, That solution also drains your battery to some extent.

raverpol 2010-02-25 15:06

Re: WLAN Shortcut
 
u can do that manually by WiFi Switcher appl.

low life 2010-02-25 16:04

Re: WLAN Shortcut
 
Quote:

Originally Posted by juahan (Post 545906)
Anyone found a way to open (and close) WLAN-connection with a shortcut on desktop? Can it be done in terminal?

I can disconnect from WLAN or cellular data just by typing disconnect in the terminal, but I'm not sure if that's always been there or added by Matan's awesome MOD to make the phone more keyboard friendly.. anyway, if the command doesn't work just create a file called disconnect in /usr/bin, with this in it (one line):
Code:

dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
Of course you can just type the same text in terminal and it'll work, but this gives it a shorter name. And for all I know, you can get this on desktop just by making a shortcut where Exec=osso-xterm 'disconnect'


You can also connect to a specific WLAN or GPRS network, it can be done with this:
Code:

dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:IAP_ID uint32:0
IAP_ID can be found using the command
Code:

gconftool -R /system/osso/connectivity/IAP
More at the wiki

juahan 2010-02-25 22:01

Re: WLAN Shortcut
 
Quote:

Originally Posted by low life (Post 546053)
if the command doesn't work just create a file called disconnect in /usr/bin, with this in it (one line):
Code:

dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
Of course you can just type the same text in terminal and it'll work, but this gives it a shorter name. And for all I know, you can get this on desktop just by making a shortcut where Exec=osso-xterm 'disconnect'

After making the file and trying to run it, it gives permission denied error. Do I have to change the file permissions somehow?

low life 2010-02-26 07:31

Re: WLAN Shortcut
 
While you're in /usr/bin as root;

chmod og+rx disconnect

This should give the file same rights as I have.

juahan 2010-02-26 07:51

Re: WLAN Shortcut
 
Quote:

Originally Posted by low life (Post 547085)
While you're in /usr/bin as root;

chmod og+rx disconnect

This should give the file same rights as I have.

That did the trick, thanks!

juahan 2010-05-24 08:06

Re: WLAN Shortcut
 
How can I run disconnect without terminal window coming up? It's a bit annoying when I choose the icon from the desktop and then terminal window comes up for many seconds before it closes.

janih_fi 2010-05-24 14:51

Re: WLAN Shortcut
 
I would recommend to try ConnectNow widget. I made two shortcuts on my n900 desktop. One for 3G and one for my home wlan... Connection goes on and off with one simple button

juahan 2010-05-24 15:05

Re: WLAN Shortcut
 
Quote:

Originally Posted by janih_fi (Post 673351)
I would recommend to try ConnectNow widget. I made two shortcuts on my n900 desktop. One for 3G and one for my home wlan... Connection goes on and off with one simple button

Sounds great, I'll try that.

Edit: I have to say that it is an excellent widget and just what I wanted and needed. No need for fooling around with own scripts any more.

asktoby 2011-10-17 08:56

Re: WLAN Shortcut
 
When I run
Code:

gconftool -R /system/osso/connectivity/IAP
my IAP is shown as
Code:

/system/osso/connectivity/IAP/c1979dcf-834a-4fad-91be-184c9da8a5ec:
Presumably the actual IAP does not include the preamble and colon, thusly?
Code:

c1979dcf-834a-4fad-91be-184c9da8a5ec

tuxsavvy 2011-10-17 10:39

Re: WLAN Shortcut
 
I believe it is meant to be a list of access points and cellular network that your device recognised (probably because it was pre-configured or because you manually configured it).

On mine I can see entries of older entries to wireless broadband network that my device could be configured to access (of course provided that I have the SIM card for that instance) as well as other access points that I have manually set in the past.

Though from that gconf directory I cannot see what it is currently connected but I could see what I have previously connected to (which is in the form of UUID).

I am guessing in your case if you only have one then there could only be one answer :)


All times are GMT. The time now is 01:09.

vBulletin® Version 3.8.8