Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-06 Thread Stefan Seyfried
On Mon, Nov 06, 2006 at 12:08:23PM -0500, Jason Lunz wrote: > Why wouldn't the pm-utils authors start with hibernate as a base? It Ask them :-) > looks nearly identical, only far less developed. hibernate's shell > plugin system is quite capable. Maybe too capable. I don't know. I did not desi

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-06 Thread Jason Lunz
On Mon, Nov 06, 2006 at 08:08:59AM +0100, Stefan Seyfried wrote: > Well, the common upstream solution will soon be pm-utils, so maybe > the hibernate users should start looking at that, so that it does > what they want :-) Why wouldn't the pm-utils authors start with hibernate as a base? It looks

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-06 Thread Stefan Seyfried
On Sun, Nov 05, 2006 at 04:50:13PM -0500, Jason Lunz wrote: > On Sun, Nov 05, 2006 at 10:22:24PM +0100, Pavel Machek wrote: > > Well, having some default scripts in suspend.sf.net package... would > > not be that bad. Not all the stuff is done best in C. > > hibernate supports swsusp, ususpend, an

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-05 Thread Jason Lunz
On Sun, Nov 05, 2006 at 11:19:52PM +0100, Pavel Machek wrote: > > configuration issues. I think suspend.sf.net ought to point users to > > hibernate just as suspend2 does. > > I guess we can take README patch ;-). OK, how about this? Jason --- README | 13 + 1 file changed, 13 in

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-05 Thread Pavel Machek
On Sun 2006-11-05 16:50:13, Jason Lunz wrote: > On Sun, Nov 05, 2006 at 10:22:24PM +0100, Pavel Machek wrote: > > Well, having some default scripts in suspend.sf.net package... would > > not be that bad. Not all the stuff is done best in C. > > hibernate supports swsusp, ususpend, and suspend2 equ

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-05 Thread Jason Lunz
On Sun, Nov 05, 2006 at 10:22:24PM +0100, Pavel Machek wrote: > Well, having some default scripts in suspend.sf.net package... would > not be that bad. Not all the stuff is done best in C. hibernate supports swsusp, ususpend, and suspend2 equally. It isn't an integrated part of any of them. So all

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-05 Thread Pavel Machek
Hi! > On Sun, Nov 05, 2006 at 06:18:34PM +0100, Pavel Machek wrote: > > Okay, why not. If you resend the patch, and noone dislikes it, I can > > apply it.. > > Here it is again. Just to be clear, the patch is for Bernard's hibernate > scripts; I just CC'd suspend-devel because it may be of genera

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-05 Thread Jason Lunz
On Sun, Nov 05, 2006 at 06:18:34PM +0100, Pavel Machek wrote: > Okay, why not. If you resend the patch, and noone dislikes it, I can > apply it.. Here it is again. Just to be clear, the patch is for Bernard's hibernate scripts; I just CC'd suspend-devel because it may be of general interest to usu

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-05 Thread Pavel Machek
Hi! > The advantage to using s2both is that if the battery runs out while > suspended to ram, the system can still resume from disk (after power is > restored). The disadvantage is that it's slower, and most of the time > the disk image is never used. > > This implementation of USuspendMethodAuto

[Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-10-11 Thread Jason Lunz
The advantage to using s2both is that if the battery runs out while suspended to ram, the system can still resume from disk (after power is restored). The disadvantage is that it's slower, and most of the time the disk image is never used. This implementation of USuspendMethodAuto takes two integ