Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-11 Thread Rafael J. Wysocki
Hi, On Wednesday, 11 July 2007 05:14, Nigel Cunningham wrote: Hi. On Wednesday 11 July 2007 11:59:48 Matthew Garrett wrote: On Wed, Jul 11, 2007 at 11:39:37AM +1000, Nigel Cunningham wrote: Yeah, that is a bit confusing. At the moment, I'm doing the suspend to ram platform

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-11 Thread Nigel Cunningham
Hi. On Wednesday 11 July 2007 20:09:04 Rafael J. Wysocki wrote: On Wednesday, 11 July 2007 05:14, Nigel Cunningham wrote: On Wednesday 11 July 2007 11:59:48 Matthew Garrett wrote: On Wed, Jul 11, 2007 at 11:39:37AM +1000, Nigel Cunningham wrote: Yeah, that is a bit confusing. At the

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-11 Thread Rafael J. Wysocki
On Wednesday, 11 July 2007 12:14, Nigel Cunningham wrote: Hi. On Wednesday 11 July 2007 20:09:04 Rafael J. Wysocki wrote: On Wednesday, 11 July 2007 05:14, Nigel Cunningham wrote: On Wednesday 11 July 2007 11:59:48 Matthew Garrett wrote: On Wed, Jul 11, 2007 at 11:39:37AM +1000, Nigel

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-11 Thread David Brownell
On Tuesday 10 July 2007, Nigel Cunningham wrote: Yeah, the bit I consider to be ugly is opening the files from within the kernel, but it seemed to be necessary in order to provide the functionality without having to rely on userspace or do some sort of messy work to figure out how to access

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-11 Thread Nigel Cunningham
Hi. On Thursday 12 July 2007 02:04:33 David Brownell wrote: On Tuesday 10 July 2007, Nigel Cunningham wrote: Yeah, the bit I consider to be ugly is opening the files from within the kernel, but it seemed to be necessary in order to provide the functionality without having to rely on

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-10 Thread David Brownell
On Monday 09 July 2007, Nigel Cunningham wrote: Hi. On Tuesday 10 July 2007 02:26:32 David Brownell wrote: On Monday 09 July 2007, Marcelo Tosatti wrote: On Sun, Jul 08, 2007 at 07:44:03PM -0700, David Brownell wrote: Better a /sys/power/wakeup_event (or whatever) that's more

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-10 Thread Nigel Cunningham
Hi. On Wednesday 11 July 2007 02:51:03 David Brownell wrote: On Monday 09 July 2007, Nigel Cunningham wrote: Hi. On Tuesday 10 July 2007 02:26:32 David Brownell wrote: On Monday 09 July 2007, Marcelo Tosatti wrote: On Sun, Jul 08, 2007 at 07:44:03PM -0700, David Brownell wrote:

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-10 Thread Matthew Garrett
On Wed, Jul 11, 2007 at 08:16:40AM +1000, Nigel Cunningham wrote: Yeah, the bit I consider to be ugly is opening the files from within the kernel, but it seemed to be necessary in order to provide the functionality without having to rely on userspace or do some sort of messy work to figure

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-10 Thread Nigel Cunningham
Hi. On Wednesday 11 July 2007 10:45:50 Matthew Garrett wrote: On Wed, Jul 11, 2007 at 08:16:40AM +1000, Nigel Cunningham wrote: Yeah, the bit I consider to be ugly is opening the files from within the kernel, but it seemed to be necessary in order to provide the functionality without

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-10 Thread Matthew Garrett
On Wed, Jul 11, 2007 at 10:53:35AM +1000, Nigel Cunningham wrote: On Wednesday 11 July 2007 10:45:50 Matthew Garrett wrote: How are you going to shift into suspend to disk without going via userspace? It's quite plausible that people will want different configuration at that point (or,

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-10 Thread Nigel Cunningham
Hi. On Wednesday 11 July 2007 11:23:02 Matthew Garrett wrote: On Wed, Jul 11, 2007 at 10:53:35AM +1000, Nigel Cunningham wrote: On Wednesday 11 July 2007 10:45:50 Matthew Garrett wrote: How are you going to shift into suspend to disk without going via userspace? It's quite plausible

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-10 Thread Matthew Garrett
On Wed, Jul 11, 2007 at 11:39:37AM +1000, Nigel Cunningham wrote: Yeah, that is a bit confusing. At the moment, I'm doing the suspend to ram platform dependent preparation and cleanup in this scenario. That's definitely the right thing to do in the case where we write an image, then

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-10 Thread Nigel Cunningham
Hi. On Wednesday 11 July 2007 11:59:48 Matthew Garrett wrote: On Wed, Jul 11, 2007 at 11:39:37AM +1000, Nigel Cunningham wrote: Yeah, that is a bit confusing. At the moment, I'm doing the suspend to ram platform dependent preparation and cleanup in this scenario. That's definitely the

Re: [linux-pm] Re: Hibernate after alarm wakes from STR

2007-07-09 Thread Nigel Cunningham
Hi. On Tuesday 10 July 2007 02:26:32 David Brownell wrote: On Monday 09 July 2007, Marcelo Tosatti wrote: On Sun, Jul 08, 2007 at 07:44:03PM -0700, David Brownell wrote: Better a /sys/power/wakeup_event (or whatever) that's more easily found. It could link to the device issuing the