Re: [Suspend-devel] freeze everything but s2ram?

2006-10-08 Thread Pavel Machek
Hi! Could it be that the pm_ops-finish(SUSPEND_MEM) is somehow running asynchronously? And that something in the hardware forbids accessing certain memory regions while the AML code is still executed? Just wild guessing :-) Or asked the other way round: What exactly is forbidden

Re: [Suspend-devel] freeze everything but s2ram?

2006-10-07 Thread Stefan Seyfried
On Fri, Oct 06, 2006 at 07:37:23PM +0200, Stefan Seyfried wrote: On Fri, Oct 06, 2006 at 03:54:08PM +0200, Stefan Seyfried wrote: Hi, i just had an idea :-) ok, so how about this: it does not work. Index: s2ram.c ===

Re: [Suspend-devel] freeze everything but s2ram?

2006-10-07 Thread Tim Dijkstra
On Sat, 7 Oct 2006 14:51:31 +0200 Stefan Seyfried [EMAIL PROTECTED] wrote: On Fri, Oct 06, 2006 at 10:30:25PM +0200, Tim Dijkstra wrote: Just curious; why do you ever want to do s2ram instead of s2disk? I meant s2both, duh... It's a waste of battery power. s2ram only takes about

Re: [Suspend-devel] freeze everything but s2ram?

2006-10-07 Thread Stefan Seyfried
On Sat, Oct 07, 2006 at 08:16:56PM +0200, Rafael J. Wysocki wrote: usually it segfaults somewhere around here. Or more exactly, since i tried reordering the stuff, it segfaults in the first glibc function used. Not always, but every second or third suspend. Hm, actually I'd prefer if it

Re: [Suspend-devel] freeze everything but s2ram?

2006-10-07 Thread Rafael J. Wysocki
On Saturday, 7 October 2006 22:16, Stefan Seyfried wrote: On Sat, Oct 07, 2006 at 08:16:56PM +0200, Rafael J. Wysocki wrote: usually it segfaults somewhere around here. Or more exactly, since i tried reordering the stuff, it segfaults in the first glibc function used. Not always, but

[Suspend-devel] freeze everything but s2ram?

2006-10-06 Thread Stefan Seyfried
Hi, i just had an idea :-) Is it possible, by using the uswsusp infrastructure, to freeze everything but the s2ram process during suspend to RAM? I mean the following: start s2ram - chvt away from X - freeze everything else - save video state etc. - echo mem /sys/power/state - post video etc.

Re: [Suspend-devel] freeze everything but s2ram?

2006-10-06 Thread Rafael J. Wysocki
On Friday, 6 October 2006 15:54, Stefan Seyfried wrote: Hi, i just had an idea :-) Is it possible, by using the uswsusp infrastructure, to freeze everything but the s2ram process during suspend to RAM? Yup. I mean the following: start s2ram - chvt away from X - freeze everything

Re: [Suspend-devel] freeze everything but s2ram?

2006-10-06 Thread Stefan Seyfried
On Fri, Oct 06, 2006 at 03:54:08PM +0200, Stefan Seyfried wrote: Hi, i just had an idea :-) ok, so how about this: Index: s2ram.c === RCS file: /cvsroot/suspend/suspend/s2ram.c,v retrieving revision 1.45 diff -u -p -r1.45