Bug#594099: ITP: pm-utils-light -- pm-utils replacement for embedded hardware

2010-08-24 Thread Josselin Mouette
Le lundi 23 août 2010 à 18:12 +0100, Enrico Zini a écrit :
   Description : pm-utils replacement for embedded hardware
 
  Pros:
  * It tries its best to run hooks in exactly the same way as pm-utils.
  * It's faster
  * It can load hooks from a .so file, which is much faster, avoids
context switches and allows to keep state conveniently in memory.
  * .so files will be loaded also if they are not executable. Install a
non-executable .so file to have it loaded by pm-utils light but ignored by
pm-utils.
  * It allows to cancel a resume, for example in order to go back to sleep in
case of a resume for usb disconnect.
  .
  Cons:
  * No support for quirks
  * It does not ship the functions and pm-functions shell libraries, so plugins
cannot make use of them

It looks like an interesting piece software, but having to choose
between one implementation that is slow and one that doesn’t support
quirks looks like a lose-lose situation to me.

Are there any efforts underway to merge the two projects, or at least
their functionality?

Cheers,
-- 
 .''`.
: :' : “You would need to ask a lawyer if you don't know
`. `'   that a handshake of course makes a valid contract.”
  `---  J???rg Schilling




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#594099: ITP: pm-utils-light -- pm-utils replacement for embedded hardware

2010-08-24 Thread Enrico Zini
On Tue, Aug 24, 2010 at 09:53:14AM +0200, Josselin Mouette wrote:

 It looks like an interesting piece software, but having to choose
 between one implementation that is slow and one that doesn’t support
 quirks looks like a lose-lose situation to me.
 
 Are there any efforts underway to merge the two projects, or at least
 their functionality?

Not as far as I know, and I'm not sure it would be possible. We talked
about it in the pm-utils list, but it does not sound feasible.

pm-utils achieves lots of flexibility by using rather complex
shellscripts that source a large library of useful functions. Running
those shellscripts on the freerunner takes seconds of real time:
http://www.mail-archive.com/pm-ut...@lists.freedesktop.org/msg01952.html

It also implements a cancel resume exit code from hooks, that is
currently used to resuspend right away if the phone ususpended just
because you unplugged your USB cable. Normal pm-utils won't be able to
support that anytime soon, but they agreed to standardise the exit code
(see the whole thread linked earlier).

The lack of quirks support is not as bad as it sounds, as you'd use
pm-utils-light on embedded hardware where you generally have an intimate
relationship with the hardware and are either in a position to fix the
drivers getting rid of the quirks, or in a need to handle quirks with
hardware-specific custom code.

I'd say that the systems that need quirk support are more than fast
enough to handle standard pm-utils without issues. I wouldn't suggest
people to install pm-utils-light unless they really know what they are
doing.


Ciao,

Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini enr...@enricozini.org


signature.asc
Description: Digital signature


Bug#594099: ITP: pm-utils-light -- pm-utils replacement for embedded hardware

2010-08-23 Thread Enrico Zini
Package: wnpp
Severity: wishlist
Owner: Enrico Zini enr...@debian.org

* Package name: pm-utils-light
  Version : 0.6
  Upstream Author : Enrico Zini enr...@enricozini.org
* URL : http://pkg-fso.nomeata.de/sid/pm-utils-light
* License : GPL
  Programming Lang: C
  Description : pm-utils replacement for embedded hardware

 Pros:
 * It tries its best to run hooks in exactly the same way as pm-utils.
 * It's faster
 * It can load hooks from a .so file, which is much faster, avoids
   context switches and allows to keep state conveniently in memory.
 * .so files will be loaded also if they are not executable. Install a
   non-executable .so file to have it loaded by pm-utils light but ignored by
   pm-utils.
 * It allows to cancel a resume, for example in order to go back to sleep in
   case of a resume for usb disconnect.
 .
 Cons:
 * No support for quirks
 * It does not ship the functions and pm-functions shell libraries, so plugins
   cannot make use of them


This is currently available in the pkg-fso repository. It gained a few
users, and I've been asked to upload it to sid.

Some more details in this announcement:
http://lists.alioth.debian.org/pipermail/pkg-fso-maint/2009-November/002223.html

Ciao,

Enrico



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org