Re: No wireless in Debian Sid

2009-10-06 Thread Al Johnson
On Monday 05 October 2009, Esteban Monge wrote:
 Hello Again...
 
 I found this command, I think is the correct way to enable the wireless:
 
 mdbus -s org.freesmartphone.odeviced
 /org/freesmartphone/Device/PowerControl/WiFi
 org.freesmartphone.Resource.Enable
 
 And to turn off:
 
 mdbus -s org.freesmartphone.odeviced
 /org/freesmartphone/Device/PowerControl/WiFi
 org.freesmartphone.Resource.Disable
 
 I going to make the little gui based in this commands...

You should not use this interface! From the docs[1]:
Applications usually are not allowed to use this interface directly, they 
will solely interact using the org.freesmartphone.Usage API.

The Resource Handling introduction[2] describes how you're supposed to control 
resources. In short you should be using:

mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage 
org.freesmartphone.Usage.SetResourcePolicy WiFi enabled

The valid states are enabled, disabled and auto, with auto being the default. 
Auto will enable the resource only when at least one application has requested 
it.

[1] 
http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Resource.html;hb=HEAD
[2] http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/usage-
intro.html;hb=HEAD
[3] 

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: No wireless in Debian Sid

2009-10-05 Thread Esteban Monge
Hello Again...

I found this command, I think is the correct way to enable the wireless:

mdbus -s org.freesmartphone.odeviced
/org/freesmartphone/Device/PowerControl/WiFi
org.freesmartphone.Resource.Enable

And to turn off:

mdbus -s org.freesmartphone.odeviced
/org/freesmartphone/Device/PowerControl/WiFi
org.freesmartphone.Resource.Disable

I going to make the little gui based in this commands...
-- 
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 se entreguen a las
economías foráneas y nosotros nos
quedemos con solo negocios de pobre,
mientras en vez de ser propietarios de nuestro
propio país nos convirtamos en un ejército de
empleados del exterior”
José Figueres Ferrer, 1952.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: No wireless in Debian Sid

2009-10-03 Thread Paul Fertser
Sebastian Reichel elektra...@gmail.com writes:
 dbus-send --system --dest=org.freesmartphone.odeviced --type=method_call 
 --print-reply /org/freesmartphone/Device/PowerControl/WiFi 
 org.freesmartphone.Device.PowerControl.SetPower int32:1

FYI SetPower is an internal low-level method not supposed to be used
in the apps directly. Please read FSO_Resources wikipage if you want
to do it properly.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: No wireless in Debian Sid

2009-10-02 Thread Sebastian Reichel
On Fri, Oct 02, 2009 at 11:37:03AM -0600, Esteban Monge wrote:
 Hello I haved installed Debian GNU/Linux in my Neo Freerunner, but I cant use
 the wireless.
 
 What is the problem?

Hi,

1. You need to configure eth0
2. Device does not exist until you enable it via fso-frameworkd
   (this will save power when not using wifi)

You can do the second step with dbus-send. I use the follwing script:

elektra...@freerunner ~ % cat /usr/local/bin/wifi
#!/bin/bash
if [[ $#  1 ]] ; then
echo $0 start|stop
exit
fi

if [[ $1 == start ]] ; then
dbus-send --system --dest=org.freesmartphone.odeviced --type=method_call 
--print-reply /org/freesmartphone/Device/PowerControl/WiFi 
org.freesmartphone.Device.PowerControl.SetPower int32:1
else
dbus-send --system --dest=org.freesmartphone.odeviced --type=method_call 
--print-reply /org/freesmartphone/Device/PowerControl/WiFi 
org.freesmartphone.Device.PowerControl.SetPower int32:0
fi
elektra...@freerunner ~ % wifi start
method return sender=:1.9 - dest=:1.31 reply_serial=2
elektra...@freerunner ~ % ifconfig eth0
eth0  Link encap:Ethernet  HWaddr 00:12:cf:8e:e2:ba  
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:2 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:15 (15.0 B)  TX bytes:0 (0.0 B)

elektra...@freerunner ~ % wifi stop
method return sender=:1.9 - dest=:1.32 reply_serial=2
elektra...@freerunner ~ % ifconfig eth0
eth0: error fetching interface information: Device not found

-- Sebastian


signature.asc
Description: Digital signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: No wireless in Debian Sid

2009-10-02 Thread Esteban Monge
Excelent works great, thanks for the help.

I promise modify a little script for do it through a GUI. In Debian
GNU/Linux don´t have official GUIs for GPRS or WiFi, I found a little script
that lets you connect to GPRS through GUI, I corrected to make it work FSO,
but I do not known make packages of programs, I hope soon to do and I can
tell.

And sorry for my bad english... thanks for the help...

2009/10/2 Sebastian Reichel elektra...@gmail.com

 On Fri, Oct 02, 2009 at 11:37:03AM -0600, Esteban Monge wrote:
  Hello I haved installed Debian GNU/Linux in my Neo Freerunner, but I cant
 use
  the wireless.
 
  What is the problem?

 Hi,

 1. You need to configure eth0
 2. Device does not exist until you enable it via fso-frameworkd
   (this will save power when not using wifi)

 You can do the second step with dbus-send. I use the follwing script:

 elektra...@freerunner ~ % cat /usr/local/bin/wifi
 #!/bin/bash
 if [[ $#  1 ]] ; then
echo $0 start|stop
exit
 fi

 if [[ $1 == start ]] ; then
dbus-send --system --dest=org.freesmartphone.odeviced --type=method_call
 --print-reply /org/freesmartphone/Device/PowerControl/WiFi
 org.freesmartphone.Device.PowerControl.SetPower int32:1
 else
dbus-send --system --dest=org.freesmartphone.odeviced --type=method_call
 --print-reply /org/freesmartphone/Device/PowerControl/WiFi
 org.freesmartphone.Device.PowerControl.SetPower int32:0
 fi
 elektra...@freerunner ~ % wifi start
 method return sender=:1.9 - dest=:1.31 reply_serial=2
 elektra...@freerunner ~ % ifconfig eth0
 eth0  Link encap:Ethernet  HWaddr 00:12:cf:8e:e2:ba
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:2 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:15 (15.0 B)  TX bytes:0 (0.0 B)

 elektra...@freerunner ~ % wifi stop
 method return sender=:1.9 - dest=:1.32 reply_serial=2
 elektra...@freerunner ~ % ifconfig eth0
 eth0: error fetching interface information: Device not found

 -- Sebastian

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAkrGXekACgkQH0JwilpTmKg1VACdGVijk/BVgUaU7jKS/5fBtp30
 E7IAn29ki5Wy1Dct5zaZDD2FRisdzRmW
 =pxz0
 -END PGP SIGNATURE-

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community




-- 
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 se entreguen a las
economías foráneas y nosotros nos
quedemos con solo negocios de pobre,
mientras en vez de ser propietarios de nuestro
propio país nos convirtamos en un ejército de
empleados del exterior”
José Figueres Ferrer, 1952.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community