Re: [FSO M5] Enable Wlan

2009-03-10 Thread Steve " 'dillo" Okay

On Mar 10, 2009, at 03:30 , Richard Kralovic wrote:

>> I read somewhere that i must enable with framework? But how i can  
>> do this?
>
> You need to request the wlan resource, e.g. by calling
>
> mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage
> org.freesmartphone.Usage.SetResourcePolicy WiFi enabled


I ran into this when I first migrated from the OM2008.12 to FSO 5.
Here's a short script I wrote to handle this situation:
#!/bin/sh
while getopts "uds" parm
do
 case $parm in
 d)  mdbus -s org.freesmartphone.ousaged \
 /org/freesmartphone/Usage  
org.freesmartphone.Usage.SetResourcePolicy WiFi disabled;
 mdbus -s org.freesmartphone.ousaged \
 /org/freesmartphone/Usage  
org.freesmartphone.Usage.GetResourceState WiFi ;;
 s)  mdbus -s org.freesmartphone.ousaged \
 /org/freesmartphone/Usage  
org.freesmartphone.Usage.GetResourceState WiFi ;;
 u)  mdbus -s org.freesmartphone.ousaged \
 /org/freesmartphone/Usage  
org.freesmartphone.Usage.SetResourcePolicy WiFi enabled;
 mdbus -s org.freesmartphone.ousaged \
 /org/freesmartphone/Usage  
org.freesmartphone.Usage.GetResourceState WiFi ;;
 esac
done
shift $(($OPTIND - 1))


The flags are -(d)own -(s)tatus -(u)p , respectively.
HTH,
Steve

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


Re: [FSO M5] Enable Wlan

2009-03-10 Thread Richard Kralovic
> I read somewhere that i must enable with framework? But how i can do this?

You need to request the wlan resource, e.g. by calling

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

Afterwards you have interface eth0 available; I had to manually set up
essid (iwconfig eth0 essid blabla) to get it working.

Greets
Richard

> 
> 
> Thanks,
> Samuel
> 
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community


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


[FSO M5] Enable Wlan

2009-03-09 Thread Samuel Pereira
Hello,

I'm testing FSO, but i cant enable wireless, i try eth0, 1, wlan0, but 
nothing is supported!
I search openmoko.org and google and dont find any answer to this...

I read somewhere that i must enable with framework? But how i can do this?


Thanks,
Samuel

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