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

2006-11-05 Thread Nigel Cunningham
Hi. On Sun, 2006-11-05 at 17:39 -0500, Jason Lunz wrote: > OK, how about this? > > Jason [deletia] > +The hibernate package available at http://www.suspend2.net/downloads/all/ is > a I'm not sure that pointing the user to that directory is the best thing. http://www.suspend2.net/downloads is

Re: [Suspend-devel] [PATCH] Better command line parsing in s2disk/s2both and resume

2006-11-05 Thread Rafael J. Wysocki
Hi, On Sunday, 5 November 2006 23:17, Pavel Machek wrote: > Hi! > > > This patch adds some command line options to s2disk/s2both and resume so > > that > > they are a bit more script-friendly and sets up the infrastructure to add > > more > > such options in the future easily. > > ..and it swi

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] Better command line parsing in s2disk/s2both and resume

2006-11-05 Thread Pavel Machek
Hi! > This patch adds some command line options to s2disk/s2both and resume so that > they are a bit more script-friendly and sets up the infrastructure to add more > such options in the future easily. ..and it switches to getopt()... nice, provided that it works. But maybe we should do the rele

[Suspend-devel] [PATCH] Better command line parsing in s2disk/s2both and resume

2006-11-05 Thread Rafael J. Wysocki
Hi, This patch adds some command line options to s2disk/s2both and resume so that they are a bit more script-friendly and sets up the infrastructure to add more such options in the future easily. It also cleans up the resume error paths. Comments welcome. Greetings, Rafael --- config.c |

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] Small suggestion for Fedora Core users

2006-11-05 Thread Pavel Machek
Hi! > Something like this maybe? Looks okay to me but I know *nothing* about packaging. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo

Re: [Suspend-devel] Small suggestion for Fedora Core users

2006-11-05 Thread Rafael J. Wysocki
On Sunday, 5 November 2006 21:35, Fabio Comolli wrote: > Something like this maybe? Yes, thanks. I'll apply it if there are no objections. Greetings, Rafael > On 11/5/06, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > On Sunday, 5 November 2006 17:08, Stefan Seyfried wrote: > > > On Sun, No

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] Small suggestion for Fedora Core users

2006-11-05 Thread Fabio Comolli
Something like this maybe? Regards, Fabio On 11/5/06, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: On Sunday, 5 November 2006 17:08, Stefan Seyfried wrote: > On Sun, Nov 05, 2006 at 03:24:04PM +0100, Rafael J. Wysocki wrote: > > Hi, > > > > It's just two small changes to Makefile: > > > > > >

Re: [Suspend-devel] Small suggestion for Fedora Core users

2006-11-05 Thread Rafael J. Wysocki
On Sunday, 5 November 2006 17:08, Stefan Seyfried wrote: > On Sun, Nov 05, 2006 at 03:24:04PM +0100, Rafael J. Wysocki wrote: > > Hi, > > > > It's just two small changes to Makefile: > > > > > > * rename install-suspend to install > > > * add resume to install in /usr/sbin > > > > > > Of course

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

Re: [Suspend-devel] Small suggestion for Fedora Core users

2006-11-05 Thread Stefan Seyfried
On Sun, Nov 05, 2006 at 03:24:04PM +0100, Rafael J. Wysocki wrote: > Hi, > > It's just two small changes to Makefile: > > > > * rename install-suspend to install > > * add resume to install in /usr/sbin > > > > Of course, user has to build its own initrd / initramfs with the resume > > binary.

Re: [Suspend-devel] Small suggestion for Fedora Core users

2006-11-05 Thread Rafael J. Wysocki
Hi, On Sunday, 5 November 2006 15:06, Fabio Comolli wrote: > Hi. > With the attached patch I'm able to build an RPM package with > checkinstall to use with Fedora Core 6. > > It's just two small changes to Makefile: > > * rename install-suspend to install > * add resume to install in /usr/sbin >

[Suspend-devel] Small suggestion for Fedora Core users

2006-11-05 Thread Fabio Comolli
Hi. With the attached patch I'm able to build an RPM package with checkinstall to use with Fedora Core 6. It's just two small changes to Makefile: * rename install-suspend to install * add resume to install in /usr/sbin Of course, user has to build its own initrd / initramfs with the resume bin

Re: [Suspend-devel] s2ram success

2006-11-05 Thread Fabio Comolli
I think so, it works very well; I can live without the framebuffer console and s2ram is much more useful ;--) By the way, the exact model is DV4378EA (dv4000 is the generic name of the series). Regards, Fabio On 11/5/06, Pavel Machek <[EMAIL PROTECTED]> wrote: > Hi! > > >

Re: [Suspend-devel] [PATCH] Allow users to abort image saving

2006-11-05 Thread Rafael J. Wysocki
Hi, On Sunday, 5 November 2006 12:25, Pavel Machek wrote: > Hi! > > > > > > Ok, maybe this is something we should look into later, since i really > > > > > often > > > > > see machine freeing memory for 30 seconds, snapshotting for another > > > > > 20 seconds > > > > > and then writing for 10

Re: [Suspend-devel] s2ram success

2006-11-05 Thread Pavel Machek
Hi! > - > [EMAIL PROTECTED] ~]# s2ram > Machine is unknown. > This machine can be identified by: > sys_vendor = "Hewlett-Packard" > sys_product = "Pavilion dv4000 (ES973EA#ABZ)" > sys_version = "

Re: [Suspend-devel] [PATCH] Allow users to abort image saving

2006-11-05 Thread Pavel Machek
Hi! > > > > Ok, maybe this is something we should look into later, since i really > > > > often > > > > see machine freeing memory for 30 seconds, snapshotting for another 20 > > > > seconds > > > > and then writing for 10 seconds (or at least it feels like that :-). > > > > > > The freeing of

Re: [Suspend-devel] [PATCH] Allow users to abort image saving

2006-11-05 Thread Pavel Machek
Hi! > > > Which key do you prefer? > > > > I don't know. Escape sounds pretty logical :-) > > Go ahead, i don't even know if this is an issue (Holger could probably test > > what happens to the escape that sends bootsplash into verbose mode, i'm not > > sure if this one is even propagated to user