Active Topics

 



Notices


Reply
Thread Tools
Posts: 24 | Thanked: 61 times | Joined on Dec 2009
#1
Hi all,

As we all know, the N900 is a pretty neat device, but one deficiency it has with respect to Nokia's Symbian phones is that it doesn't provide any visual feedback when a tethered data connection is in use.

I noticed this early on, but after Jan Zbytovský commented on the bluetooth-dun page that there was no way to tell if it was in use, I decided to take a look at whether it was possible to write a suitable monitoring applet.

And it turns out that it is possible, by poking at various semi-documented DBus interfaces, and so I've stuck my initial attempt into extras-devel.

It's able to detect that a data connection has been started, stopped or suspended (eg: if you answer a call while using gprs/edge). The mechanism for detecting that a data connection is not tethered (being used by the phone itself) is not perfect but should work for anyone who doesn't have more than one APN.

In this initial version, the plugin always shows an icon (dimmed when no connection is in use) but I think it's preferable to show no icon at all when there's no connection, so I'll probably take it out in the next iteration.

Here's the package page:

http://maemo.org/packages/view/tethermon

Feedback is always welcome.

Enjoy!
 

The Following 5 Users Say Thank You to philipl For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Jan 2010
#2
Hi Philip,
now I red your article about this problem with tray-icon. I was very pleased that you want solve this. And I'm very happy that SW for Meamo is flexible and developing .
IMHO (if it possible) make option to stop/start DUN (?in tray menu?) and show tray icon only when BT is ON.
Sorry if is it stupid suggestion, I don't know exatly the possibilities.
J.
 
Posts: 3 | Thanked: 0 times | Joined on Jan 2010
#3
Hey it works fine, but after phone restart, there's no icon anymore...
 
Posts: 24 | Thanked: 61 times | Joined on Dec 2009
#4
Originally Posted by silvernight84 View Post
Hey it works fine, but after phone restart, there's no icon anymore...
Indeed. Seems like a bug in the python loader. I guess that until this gets fixed, my plugin isn't going to be much use :-/
 
Posts: 24 | Thanked: 61 times | Joined on Dec 2009
#5
Originally Posted by william_riker View Post
Hi Philip,
now I red your article about this problem with tray-icon. I was very pleased that you want solve this. And I'm very happy that SW for Meamo is flexible and developing .
IMHO (if it possible) make option to stop/start DUN (?in tray menu?) and show tray icon only when BT is ON.
Sorry if is it stupid suggestion, I don't know exatly the possibilities.
J.
So, I do plan to make the icon only appear when tethering is in use. As for controlling bluetooth-dun, it's conceivable, but a bit tricky as only root can start or stop services. I'll need to think about that one.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
Why it doesn't start after a reboot:
Traceback (most recent call last):
File "/usr/lib/hildon-desktop/tethermon.py", line 59, in __init__
proxy = bus.get_object('com.nokia.icd', '/com/nokia/icd')
File "/usr/lib/pymodules/python2.5/dbus/bus.py", line 244, in get_object
follow_name_owner_changes=follow_name_owner_change s)
File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 241, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/pymodules/python2.5/dbus/bus.py", line 183, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/pymodules/python2.5/dbus/bus.py", line 281, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 622, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name com.nokia.icd was not provided by any .service files
The applet is evidently starting too early as killall hildon-status-menu works afterwards.

I also second the request for having no icon in the status area when the tablet is not tethering - it wastes valuable title space.

Last edited by qwerty12; 2010-02-03 at 22:37.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 24 | Thanked: 61 times | Joined on Dec 2009
#7
good catch. I'll have to try and cope with that.
 
Posts: 5 | Thanked: 0 times | Joined on Jul 2010
#8
Hi Philip,

Have you found any solution to start your application after restart? I'd like to use this, if that would work...
 
Reply


 
Forum Jump


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