Re: [SHR] disabling suspend

2009-01-28 Thread lanzo


Leonti wrote:
> 
> In FSO you can request "Display" or "CPU" resources for preventing
> going into suspend:
> 
> http://git.freesmartphone.org/?p=framework.git;a=commit;h=4fecf8d41e900c02bb1cd1d9e783c494059c8299
> 
> http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Usage.html;hb=f77848094654b56348b0fd0d57054846c2e7074a#RequestResource
> 
> Leonti
> 

hey i'm a kind of noob in sending such signals to dbus.. could you please
give an example shell/python script that can do the job to disable and
enable the suspend (or give an url to find this info)?
tyvm!
-- 
View this message in context: 
http://n2.nabble.com/-SHR--disabling-suspend-tp2142298p2231205.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


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


Re: [SHR] disabling suspend

2009-01-11 Thread bytestore

how this im plement in 2008.12 ?
Im try this http://wiki.openmoko.org/wiki/Ompower

exec
dbus-send --system --dest=org.openmoko.Power /
org.openmoko.Power.Core.RequestResourceState \
string:cpu string:gps string:on

when try list status
r...@om-gta02:~# dbus-send --system --print-reply --dest=org.openmoko.Power
/ org.openmoko.Power.Core.GetResourceState string:cpu
method return sender=:1.4 -> dest=:1.17 reply_serial=2
   string "on"

exec
dbus-send --system --dest=org.openmoko.Power /
org.openmoko.Power.Core.RemoveRequestedResourceState \
string:cpu string:gps 

and try list status
r...@om-gta02:~# dbus-send --system --print-reply --dest=org.openmoko.Power
/ org.openmoko.Power.Core.GetResourceState string:cpu
method return sender=:1.4 -> dest=:1.17 reply_serial=2
   string "on"

-- 
View this message in context: 
http://n2.nabble.com/-SHR--disabling-suspend-tp2142298p2142833.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


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


Re: [SHR] disabling suspend

2009-01-11 Thread Petr Vanek

>> Thanks!
>> I'm trying it out right now.
>> Is anyone willing to add this to the Wiki? If not, I'll add this to
>> GPS section - users of GPS are most likely to ask it again.
>This is not yet in any SHR image... that needs a more current FSO. We
>are building a new unstable image right now that will include that. If
>everything works out it should be there by tomorrow.


until then you can send this to disable

mdbus -s
org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0
org.freesmartphone.Device.IdleNotifier.SetState busy mdbus -s
org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0
org.freesmartphone.Device.IdleNotifier.SetTimeout idle_dim 0 mdbus -s
org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0
org.freesmartphone.Device.IdleNotifier.SetTimeout suspend 0 mdbus -s
org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0
org.freesmartphone.Device.IdleNotifier.SetState busy

and to re-enable again

mdbus -s
org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0
org.freesmartphone.Device.IdleNotifier.SetState busy mdbus -s
org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0
org.freesmartphone.Device.IdleNotifier.SetTimeout idle_dim 1 mdbus -s
org.freesmartphone.frameworkd /org/freesmartphone/Device/IdleNotifier/0
org.freesmartphone.Device.IdleNotifier.SetTimeout suspend 6 

Petr


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


Re: Re: [SHR] disabling suspend

2009-01-11 Thread Klaus Kurzmann
* rhn  [090111 20:50]:
> Od: Leonti Bielski 
> > In FSO you can request "Display" or "CPU" resources for preventing
> > going into suspend:
> > 
> > http://git.freesmartphone.org/?p=framework.git;a=commit;h=4fecf8d41e900c02bb1cd1d9e783c494059c8299
> > 
> > http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Usage.html;hb=f77848094654b56348b0fd0d57054846c2e7074a#RequestResource
> > 
> > Leonti
> > 
> > On Sun, Jan 11, 2009 at 7:37 PM, rhn  wrote:
> > > How to disable suspending?
> > >
> > > I'd like to have it off when I'm listening to music or using GPS, but not 
> > > interacting with my FR.
> > > Is there some DBus method for that? Or a /sys/ switch?
> > > I think it should be listed on the Wiki somewhere (there are many 
> > > possible reasons why people would like their device to stay "awaken", 
> > > regardless of their distro).
> > >
> > > A suggestion to frameworkd developers - (if this is not already done) 
> > > preventing the device from going into suspend after an application has 
> > > requested GPS resource would make sense if a fix is not acquired yet.
> > >
> > > ___
> > > 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

> Thanks!
> I'm trying it out right now.
> Is anyone willing to add this to the Wiki? If not, I'll add this to
> GPS section - users of GPS are most likely to ask it again.
This is not yet in any SHR image... that needs a more current FSO. We
are building a new unstable image right now that will include that. If
everything works out it should be there by tomorrow.

mrmoku


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


Re: Re: [SHR] disabling suspend

2009-01-11 Thread rhn
Od: Leonti Bielski 
> In FSO you can request "Display" or "CPU" resources for preventing
> going into suspend:
> 
> http://git.freesmartphone.org/?p=framework.git;a=commit;h=4fecf8d41e900c02bb1cd1d9e783c494059c8299
> 
> http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Usage.html;hb=f77848094654b56348b0fd0d57054846c2e7074a#RequestResource
> 
> Leonti
> 
> On Sun, Jan 11, 2009 at 7:37 PM, rhn  wrote:
> > How to disable suspending?
> >
> > I'd like to have it off when I'm listening to music or using GPS, but not 
> > interacting with my FR.
> > Is there some DBus method for that? Or a /sys/ switch?
> > I think it should be listed on the Wiki somewhere (there are many possible 
> > reasons why people would like their device to stay "awaken", regardless of 
> > their distro).
> >
> > A suggestion to frameworkd developers - (if this is not already done) 
> > preventing the device from going into suspend after an application has 
> > requested GPS resource would make sense if a fix is not acquired yet.
> >
> > ___
> > 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

Thanks!
I'm trying it out right now.
Is anyone willing to add this to the Wiki? If not, I'll add this to GPS section 
- users of GPS are most likely to ask it again.



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


Re: [SHR] disabling suspend

2009-01-11 Thread Leonti Bielski
In FSO you can request "Display" or "CPU" resources for preventing
going into suspend:

http://git.freesmartphone.org/?p=framework.git;a=commit;h=4fecf8d41e900c02bb1cd1d9e783c494059c8299

http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Usage.html;hb=f77848094654b56348b0fd0d57054846c2e7074a#RequestResource

Leonti

On Sun, Jan 11, 2009 at 7:37 PM, rhn  wrote:
> How to disable suspending?
>
> I'd like to have it off when I'm listening to music or using GPS, but not 
> interacting with my FR.
> Is there some DBus method for that? Or a /sys/ switch?
> I think it should be listed on the Wiki somewhere (there are many possible 
> reasons why people would like their device to stay "awaken", regardless of 
> their distro).
>
> A suggestion to frameworkd developers - (if this is not already done) 
> preventing the device from going into suspend after an application has 
> requested GPS resource would make sense if a fix is not acquired yet.
>
> ___
> 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


[SHR] disabling suspend

2009-01-11 Thread rhn
How to disable suspending?

I'd like to have it off when I'm listening to music or using GPS, but not 
interacting with my FR.
Is there some DBus method for that? Or a /sys/ switch?
I think it should be listed on the Wiki somewhere (there are many possible 
reasons why people would like their device to stay "awaken", regardless of 
their distro).

A suggestion to frameworkd developers - (if this is not already done) 
preventing the device from going into suspend after an application has 
requested GPS resource would make sense if a fix is not acquired yet.

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