[Suspend2-devel] Re: [Pm-utils] Re: Better integration with power management scripts

Rafael J. Wysocki rjw at sisk.pl
Fri Apr 28 13:21:11 PDT 2006


On Friday 28 April 2006 20:42, U Kuehn wrote:
> Rafael J. Wysocki wrote:
> 
> > On Friday 28 April 2006 02:49, Nigel Cunningham wrote:
> 
> >> Even though I still disagree that putting the code in userspace is the right
> >> thing to do,
> > 
> > There are some short-term benefits.  For example, we are able to use the RSA
> > for encryption and we support suspend-to-disk-and-RAM on some machines
> > with the ability to reinitialize the graphics card if necessary.
> >  
> Are you really talking about the Rivest-Shamir-Adleman public key
> encryption algorithm? What are you using it for?

Yes.  We encrypt the image using a symmetric cypher with a random key.  The
key is then passed to the resume part with the help of the RSA.

> >> I'm beginning to think in terms of the question "What does 
> >> uswsusp need to add before Suspend2 can go away?" I guess the answer is
> >> that swsusp is catching up in the guts of the functionality (from my pov,
> >> admittedly). The main improvements I'd still like to see are the things like
> >> the ability to cancel the cycle,
> > 
> > I'm going to implement the ability to cancel the suspend (ie. cancel the image
> > saving).  That should be easy in the user space. ;-)
> > 
> 
> Can uswsusp resume without help from an initrd or initramfs?

Theoretically yes.  Practically, It's a bit tricky and I don't reccoment it.

> If not that would be a rather bad short-term disadvantage.

Yes, it is a disadvantage.  I also thought it would be bad until I actually
tired it. :-)

Greetings,
Rafael


More information about the Pm-utils mailing list