On Tue, 2009-04-14 at 13:02 +0300, Tom wrote:
> There are a couple of major advantages in using this app over a
> script, the first:
> with this app it'll work, with a script with mdbus calls it won't. ;]
mdbus calls work fine, though admittedly slowly - not sure what you
mean?
> When the app that requests the resource closes, the framework
> automatically releases it, so when you call mdbus request, the
> resource is requested, though then mdbus exists and the resource is
> freed, with this app it shouldn't happen (not sure how it wrote it,
> though that's why an app is needed in the first place, just a simple
> dbus call and a system() call.
This is an advantage to the script! - you make a call to request the
resource, and a second call to release it - its under your control when
you do it.
> Second of all, mdbus takes a couple of seconds to start, so 2
> consequtive call to mdbus make apps terribly slow to launch, this app
> shouldn't have any impact.
>
This is one area where the program should definitely help - though only
if its overhead + other commands needed such as xrandr dont add up to
more time than just the script.
> Tom.
>
> On Tue, Apr 14, 2009 at 12:35 PM, William Kenworthy
> <
[hidden email]> wrote:
> Is there any advantage using this over a simple shell script
> using mdbus
> calls?
>
> BillK
>
>
> On Tue, 2009-04-14 at 12:20 +0300, Tom wrote:
> > Thanks a lot, I'm glad someone finally did it!
> > A few suggestions:
> > I think adding a special flag for every common resource is a
> good
> > idea, i.e:
> > 'fsoraw --cpu --display APP' or even 'fsoraw -c -d APP' for
> quick cli
> > usage.
> > is more elegant in my opinion, don't you agree?
> > And I also think -f should be on by default, afterall it'll
> be used
> > "behind the scenes" and normal users would want the app to
> run even if
> > not possible to ask for the cpu... just my opinion though.
> >
> > Thanks,
> > Tom.
> >
> >
> > On Tue, Apr 14, 2009 at 5:27 AM, Nicola Mfb
> <
[hidden email]>
> > wrote:
> > I wrote a little c tool for launching programs
> preallocating
> > FSO resources.
> > I'm using it to prevent fso dimming/suspending while
> tangogps
> > is
> > running without change/reset shr settings.
> > To achieve this modify the Exec line in
> > /usr/share/applications/tangogps.desktop in:
> >
> > Exec=fsoraw -r CPU,Display tangogps
> >
> > sources at
> >
>
http://noko.svn.sourceforge.net/viewvc/noko/trunk/fsoraw> > there is a rude bitbake recipie too.
> >
> > Suggestion and bugs are welcome (if someone
> interested).
> >
> > regards
> >
> > Nicola
> >
> > _______________________________________________
> > Shr-devel mailing list
> >
[hidden email]
> >
>
http://lists.projects.openmoko.org/mailman/listinfo/shr-devel> >
> >
> > _______________________________________________
> > Shr-devel mailing list
> >
[hidden email]
> >
>
http://lists.projects.openmoko.org/mailman/listinfo/shr-devel>
> --
> William Kenworthy <
[hidden email]>
> Home in Perth!
>
>
>
--
William Kenworthy <
[hidden email]>
Home in Perth!
_______________________________________________
Shr-devel mailing list
[hidden email]
http://lists.projects.openmoko.org/mailman/listinfo/shr-devel