Re: yaml rule to stop suspending when using gps

2009-03-02 Thread Helge Hafting
Klaus Kurzmann wrote: in addition to the ophonekitd bugs there was also a bug in frameworkd regarding the release of the display resource. All that should be fixed now and hit you with opkg update upgrade I'll install the new testing image when it shows up at the website then. I also have a

Re: yaml rule to stop suspending when using gps

2009-03-02 Thread c_c
Hi, Helge Hafting wrote: in addition to the ophonekitd bugs there was also a bug in frameworkd regarding the release of the display resource. Has the fix been sent to FSO? I'm having similar problems on FSO. After I request resource CPU / Display - yhe release does not seem to restart

Re: yaml rule to stop suspending when using gps

2009-03-02 Thread Johny Tenfinger
On Mon, Mar 2, 2009 at 17:53, c_c cchan...@yahoo.com wrote:  Has the fix been sent to FSO? http://git.freesmartphone.org/?p=framework.git;a=commit;h=65ebcc86e85980827925588753f47bebf6d4a96e ___ Openmoko community mailing list

Re: yaml rule to stop suspending when using gps

2009-02-28 Thread Klaus Kurzmann
* Helge Hafting helge.haft...@hist.no [090227 11:16]: Klaus Kurzmann wrote: org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage org.shr.ophonekitd.Usage.RequestResource Display which requests the resource until you release it. That way you can wrap for example tangogps between a call to

Re: yaml rule to stop suspending when using gps

2009-02-27 Thread Helge Hafting
Klaus Kurzmann wrote: org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage org.shr.ophonekitd.Usage.RequestResource Display which requests the resource until you release it. That way you can wrap for example tangogps between a call to request display and a call to release display... This is

Re: yaml rule to stop suspending when using gps

2009-02-27 Thread Johny Tenfinger
On Fri, Feb 27, 2009 at 11:15, Helge Hafting helge.haft...@hist.no wrote: Looks like the problem is that ophonekitd crashes from the 'unexpected' activity. We are close to release new testing image from current unstable. IMHO actually that bug is a blocker ;) So I think it will be fixed in

Re: yaml rule to stop suspending when using gps

2009-02-25 Thread Helge Hafting
Johny Tenfinger wrote: So simply use script wrapper to tangoGPS: #!/bin/sh mdbus -s org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage org.shr.ophonekitd.Usage.RequestResource 'CPU' mdbus -s org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage org.shr.ophonekitd.Usage.RequestResource

Re: yaml rule to stop suspending when using gps

2009-02-25 Thread Petr Vanek
Then I tried running the commands by hand, and got this: $ mdbus -s org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage org.shr.ophonekitd.Usage.ReleaseResource 'Display' Service name not found Is there a typo in the example, or does shr unstable move things around a bit?\

Re: yaml rule to stop suspending when using gps

2009-02-25 Thread William Kenworthy
On Wed, 2009-02-25 at 11:19 +0100, Helge Hafting wrote: Johny Tenfinger wrote: So simply use script wrapper to tangoGPS: #!/bin/sh mdbus -s org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage org.shr.ophonekitd.Usage.RequestResource 'CPU' mdbus -s org.shr.ophonekitd.Usage

Re: yaml rule to stop suspending when using gps

2009-02-25 Thread Johny Tenfinger
On Wed, Feb 25, 2009 at 11:19, Helge Hafting helge.haft...@hist.no wrote: Is there a typo in the example, or does shr unstable move things around a bit? No - it will not work when ophonekitd is not running :P Maybe it crashed... ___ Openmoko

Re: yaml rule to stop suspending when using gps

2009-02-25 Thread Petr Vanek
On Sat, 21 Feb 2009 13:36:33 +0100 Johny Tenfinger seba.d...@gmail.com (JT) wrote: So simply use script wrapper to tangoGPS: #!/bin/sh mdbus -s org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage what is the advantage of using org.shr.ophonekitd.Usage rather then org.freesmartphone.ousaged ? We

Re: yaml rule to stop suspending when using gps

2009-02-25 Thread Johny Tenfinger
On Wed, Feb 25, 2009 at 12:58, Petr Vanek van...@penguin.cz wrote: what is the advantage of using org.shr.ophonekitd.Usage rather then org.freesmartphone.ousaged ? We loose fso - shr compability plus this week ophonekitd seems to crash a lot more often then usual... You shouldn't set resource

Re: yaml rule to stop suspending when using gps

2009-02-25 Thread Petr Vanek
On Wed, 25 Feb 2009 13:03:56 +0100 Johny Tenfinger seba.d...@gmail.com (JT) wrote: On Wed, Feb 25, 2009 at 12:58, Petr Vanek van...@penguin.cz wrote: what is the advantage of using org.shr.ophonekitd.Usage rather then org.freesmartphone.ousaged ? We loose fso - shr compability plus this week

Re: yaml rule to stop suspending when using gps

2009-02-25 Thread Klaus Kurzmann
* Petr Vanek van...@penguin.cz [090225 13:33]: On Wed, 25 Feb 2009 13:03:56 +0100 Johny Tenfinger seba.d...@gmail.com (JT) wrote: On Wed, Feb 25, 2009 at 12:58, Petr Vanek van...@penguin.cz wrote: what is the advantage of using org.shr.ophonekitd.Usage rather then

Re: yaml rule to stop suspending when using gps

2009-02-25 Thread Petr Vanek
org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage org.shr.ophonekitd.Usage.RequestResource Display which requests the resource until you release it. That way you can wrap for example tangogps between a call to request display and a call to release display... i perfectly understand, thank you.

Re: yaml rule to stop suspending when using gps

2009-02-21 Thread Johny Tenfinger
Now you can enable and disable auto-suspending and auto-dimming in shr-settings (under Power settings there are two toggles). ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community

Re: yaml rule to stop suspending when using gps

2009-02-21 Thread Al Johnson
On Saturday 21 February 2009, Johny Tenfinger wrote: Now you can enable and disable auto-suspending and auto-dimming in shr-settings (under Power settings there are two toggles). That's the answer to a different question though. ___ Openmoko

Re: yaml rule to stop suspending when using gps

2009-02-21 Thread William Kenworthy
Tkx, but what I was hoping for was a way to say If tangogps is running, dont turn screen off or suspend, even if on battery If I am using gps, there are two scenarios - I am using it to navigate hence I am looking at the screen, or I am waiting for a lock. Having it continually dimming or

Re: yaml rule to stop suspending when using gps

2009-02-21 Thread Johny Tenfinger
So simply use script wrapper to tangoGPS: #!/bin/sh mdbus -s org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage org.shr.ophonekitd.Usage.RequestResource 'CPU' mdbus -s org.shr.ophonekitd.Usage /org/shr/ophonekitd/Usage org.shr.ophonekitd.Usage.RequestResource 'Display' /usr/bin/tangogps mdbus -s

Re: yaml rule to stop suspending when using gps

2009-02-21 Thread Johny Tenfinger
On Sat, Feb 21, 2009 at 13:36, Johny Tenfinger seba.d...@gmail.com wrote: So simply use script wrapper to tangoGPS: Eh, line wrapping... Without #!/bin/sh there are only five lines. I hope you will read it correctly ;) ___ Openmoko community mailing

Re: yaml rule to stop suspending when using gps

2009-02-21 Thread arne anka
Thanks for the dbus lines - saved me some research to find them! does the mdbus calls work for you with a recent frameworkd (ie ms5)? every attempt to do something like this dies on my debian/fso with an auth error -- be i root or not. ___ Openmoko

Re: yaml rule to stop suspending when using gps

2009-02-21 Thread Dylan Reilly
To my knowledge, there is no specific action available to the oevents subsystem of frameworkd that would allow one to set up a rule in rules.yaml (maybe I am wrong). However, newer frameworkd's have resource requesting that will allow one to request CPU resource which will stop frameworkd from