Re: [pkg-fso-maint] WiFi-Tool (or GPRS-Tool modified)

2009-10-13 Thread Esteban Monge
Hello again, I modified the script to: #!/usr/bin/env python import os, time, random, gtk, gobject class wifi: def delete_event(self, widget, event=None, data=None): gtk.main_quit() return False def set_status(self, label): status = os.system("ifconfig eth0")

Re: [pkg-fso-maint] WiFi-Tool (or GPRS-Tool modified)

2009-10-06 Thread Esteban Monge
I updated manually only frameworkd with fso-frameworkd_0.9.5.9+git20090920-1_all.debpackage, the rest is only updated with apt-get. Is valid a Auto button in the script? -- http://nuev

Re: [pkg-fso-maint] WiFi-Tool (or GPRS-Tool modified)

2009-10-06 Thread Sebastian Reichel
On Tue, Oct 06, 2009 at 10:07:54AM -0600, Esteban Monge wrote: > I use Debian, maybe some parts of FSO are too old... probably not, we have a very recent git version, there are just some opimd changes between our release and current git ;) But I didn't update the configuration for the new framewo

Re: [pkg-fso-maint] WiFi-Tool (or GPRS-Tool modified)

2009-10-06 Thread Esteban Monge
I use Debian, maybe some parts of FSO are too old... -- http://nuevaeracr.blogspot.com Linux user number 478378 Linux machine number 386687 Tec. Esteban Monge Marín Tel: (506) 8379-3562 “No habrá manera de desarrollarnos y salir de la pobreza mientras los pocos negocios grandes de nuestro medio

Re: [pkg-fso-maint] WiFi-Tool (or GPRS-Tool modified)

2009-10-06 Thread Al Johnson
On Tuesday 06 October 2009, Esteban Monge wrote: > Hello Al Johnson recommends use the next command: > > mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage > org.freesmartphone.Usage.SetResourcePolicy WiFi enabled > > But send the next error: > ERROR:dbus.connection:Unable to set argum

Re: [pkg-fso-maint] WiFi-Tool (or GPRS-Tool modified)

2009-10-06 Thread Esteban Monge
Hello Al Johnson recommends use the next command: mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy WiFi enabled But send the next error: ERROR:dbus.connection:Unable to set arguments ('WiFi',) according to signature u'ss': : More items found

Re: WiFi-Tool (or GPRS-Tool modified)

2009-10-06 Thread Esteban Monge
def set_status(self, label): status = os.system("ifconfig eth0") if status == 0: status = "WiFi Power On" label.set_text(status) label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse("green")) else: status = "WiFi Power Off"

Re: WiFi-Tool (or GPRS-Tool modified)

2009-10-06 Thread Petr Vanek
On Mon, 5 Oct 2009 14:09:19 -0600 Esteban Monge (EM) wrote: >Hello I readed this page: >http://wiki.openmoko.org/wiki/FSO_Resources > >You suggest use the command > >fsoraw -r WiFi if you for example enable wifi via shr-settings and then use any script that uses fso-raw by default, the resource

Re: WiFi-Tool (or GPRS-Tool modified)

2009-10-06 Thread Paul Fertser
Esteban Monge writes: >     def wifi_on(self, button): >         os.system("mdbus -s org.freesmartphone.odeviced > /org/freesmartphone/Device/PowerControl/WiFi > org.freesmartphone.Resource.Enable") Are you sure you know exactly what FSO resources concept is about and have you seen FSO_Resources

Re: WiFi-Tool (or GPRS-Tool modified)

2009-10-05 Thread Paul Fertser
Esteban Monge writes: > Hello I  readed this page: > http://wiki.openmoko.org/wiki/FSO_Resources > > You suggest use the command > > fsoraw -r WiFi For shell scripts, yes. For your own programs you can call RequestResource and ReleaseResource directly. HTH -- Be free, use free (http://www.gnu.o

Re: WiFi-Tool (or GPRS-Tool modified)

2009-10-05 Thread Esteban Monge
Hello I readed this page: http://wiki.openmoko.org/wiki/FSO_Resources You suggest use the command fsoraw -r WiFi -- http://nuevaeracr.blogspot.com Linux user number 478378 Linux machine number 386687 Tec. Esteban Monge Marín Tel: (506) 8379-3562 “No habrá manera de desarrollarnos y salir de l

WiFi-Tool (or GPRS-Tool modified)

2009-10-05 Thread Esteban Monge
Hello I modified a little script in (1) named GPRS Tool, again, I test some times and work good! This time I modified to Turn On Wifi o Turn Off Wifi, the script is: #!/usr/bin/env python import os, time, random, gtk, gobject class wifi: def delete_event(self, widget, event=None, data=None)