Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Stefan Seyfried
On Thu, Nov 30, 2006 at 05:17:47PM -0500, Peter Jones wrote: > On Thu, Nov 30, 2006 at 03:00:43PM -0500, I wrote: > > On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: > > > > > So it is a good idea to tell the engineer to do "mkswap" on the swap > > > partition before putting the disk int

Re: [Suspend-devel] [linux-pm] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-11-30 Thread Rafael J. Wysocki
On Thursday, 30 November 2006 23:34, Alan Stern wrote: > On Thu, 30 Nov 2006, Rafael J. Wysocki wrote: > > > > > On the other hand, a stopped process might be waiting for a signal that > > > > can be sent by an unfreezable process -- and the stopped process might > > > > be > > > > holding a lo

Re: [Suspend-devel] [linux-pm] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-11-30 Thread Alan Stern
On Thu, 30 Nov 2006, Rafael J. Wysocki wrote: > > > On the other hand, a stopped process might be waiting for a signal that > > > can be sent by an unfreezable process -- and the stopped process might be > > > holding a lock which is needed by some other unfreezable process, so you > > > need t

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Peter Jones
On Thu, Nov 30, 2006 at 03:00:43PM -0500, I wrote: > On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: > > > So it is a good idea to tell the engineer to do "mkswap" on the swap > > partition before putting the disk into the replacement hardware. > > Ugh, no it's not. You really want the

Re: [Suspend-devel] acer travel mate 2413 NLM - s2ram - f -a 3 DOES WORK - under a user on suse 10.1 final remastered, NOT under root on suse 10.1 final

2006-11-30 Thread jan sekal
I hope, this is what you need: l158dio:~ # s2ram -i This machine can be identified by: sys_vendor = "Acer" sys_product = "TravelMate 2410" sys_version = "0100 " bios_version = "V1.04 " See /usr/src/linux/Doc*/power/video.txt for details, then reimplement neccessary

Re: [Suspend-devel] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-11-30 Thread Rafael J. Wysocki
On Thursday, 30 November 2006 16:07, Rafael J. Wysocki wrote: > On Thursday, 30 November 2006 01:21, Rafael J. Wysocki wrote: > > On Thursday, 30 November 2006 00:55, Pavel Machek wrote: > > > Hi! > > > > > > > > > I do not like the counting idea; it should be simpler to just check > > > > > > if

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Daniel Drake
On Thu, 2006-11-30 at 15:00 -0500, Peter Jones wrote: > Ugh, no it's not. You really want the UUID on the swap area to remain > the same. Why? [not questioning your reasoning, this is coming from someone who knows very little about swap structure and what the UUID is used for] Daniel ---

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Stefan Seyfried
On Thu, Nov 30, 2006 at 03:00:43PM -0500, Peter Jones wrote: > On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: > > > So it is a good idea to tell the engineer to do "mkswap" on the swap > > partition before putting the disk into the replacement hardware. > > Ugh, no it's not. You reall

Re: [Suspend-devel] [linux-pm] Dangers of touching disk between suspend and resume

2006-11-30 Thread Peter Jones
On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote: > So it is a good idea to tell the engineer to do "mkswap" on the swap > partition before putting the disk into the replacement hardware. Ugh, no it's not. You really want the UUID on the swap area to remain the same. -- Peter -

Re: [Suspend-devel] [linux-pm] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-11-30 Thread Rafael J. Wysocki
On Thursday, 30 November 2006 17:04, Rafael J. Wysocki wrote: > On Thursday, 30 November 2006 16:43, Alan Stern wrote: > > On Thu, 30 Nov 2006, Rafael J. Wysocki wrote: > > > > > In fact, I really mean that if we want a process to go to the > > > refrigerator, we > > > have to set PF_FREEZE for i

Re: [Suspend-devel] s2ram success report - Hewlett-Packard Compaq nx7010 (PG589EA#ABZ)

2006-11-30 Thread Stefan Seyfried
On Thu, Nov 30, 2006 at 06:09:33PM +0100, Roberto Oppedisano wrote: > Hi there! > As you can see to make s2ram work I only need to use "-sf" arg. Ok. > Kind regards > Roberto > > poppero1:~# s2ram -i > This machine can be identified by: >sys_vendor = "Hewlett-Packard " >sys_product =

Re: [Suspend-devel] [linux-pm] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-11-30 Thread Rafael J. Wysocki
On Thursday, 30 November 2006 16:43, Alan Stern wrote: > On Thu, 30 Nov 2006, Rafael J. Wysocki wrote: > > > In fact, I really mean that if we want a process to go to the refrigerator, > > we > > have to set PF_FREEZE for it (otherwise try_to_freeze() won't do anytning). > > Thus because we want

Re: [Suspend-devel] [linux-pm] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-11-30 Thread Alan Stern
On Thu, 30 Nov 2006, Rafael J. Wysocki wrote: > In fact, I really mean that if we want a process to go to the refrigerator, we > have to set PF_FREEZE for it (otherwise try_to_freeze() won't do anytning). > Thus because we want stopped processes to go to the refrigerator once they > have received

Re: [Suspend-devel] Remove useless errror messages

2006-11-30 Thread Rafael J. Wysocki
On Thursday, 30 November 2006 13:53, Stefan Seyfried wrote: > On Thu, Nov 30, 2006 at 10:53:56AM +0100, Tim Dijkstra wrote: > > > So by checking errno we can distinguish 'to old > > kernel' from 'real error'? > > Yes, i think so. I have not checked all the possible cases where the > error return

Re: [Suspend-devel] [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

2006-11-30 Thread Rafael J. Wysocki
Hi, On Thursday, 30 November 2006 01:21, Rafael J. Wysocki wrote: > On Thursday, 30 November 2006 00:55, Pavel Machek wrote: > > Hi! > > > > > > > I do not like the counting idea; it should be simpler to just check if > > > > > all the processes are still stopped. > > > > > > > > I thought about

Re: [Suspend-devel] Remove useless errror messages

2006-11-30 Thread Tim Dijkstra
Op Thu, 30 Nov 2006 13:53:46 +0100 schreef Stefan Seyfried <[EMAIL PROTECTED]>: > > BTW, what is the first kernel with the correct code? It's not in > > 2.16.18, is it? Ah, I see they just released 2.6.19, is it in there? > > I think it is (i pushed it through Andrew), but i have not checked it.

Re: [Suspend-devel] [RFC][PATCH -mm] PM: Change ordering of suspend and resume code

2006-11-30 Thread Stefan Seyfried
On Sun, Nov 26, 2006 at 10:31:50PM +0100, Pavel Machek wrote: > Hi! > > HPC nx6325. Someone has reported he's managed to get s2ram working on it, > > but it looks like his machine is slightly different to this one ... > > Is there some way to identify your model? Can you post s2ram strings? > Ste

Re: [Suspend-devel] Remove useless errror messages

2006-11-30 Thread Stefan Seyfried
On Thu, Nov 30, 2006 at 10:53:56AM +0100, Tim Dijkstra wrote: > So by checking errno we can distinguish 'to old > kernel' from 'real error'? Yes, i think so. I have not checked all the possible cases where the error return value is set, but i think it cannot return -ENOTTY other than for this ca

Re: [Suspend-devel] s2ram success report on CLEVO D500P

2006-11-30 Thread Gilles Grandou
Pavel Machek wrote: > On Thu 2006-11-30 00:51:06, Gilles Grandou wrote: >> lspci -v >> [...] >> 01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility >> Radeon 9600 M10] (prog-if 00 [VGA]) >> >> using radeon xorg server. > > And no binary modules, right? right ;) Gilles. -

Re: [Suspend-devel] Remove useless errror messages

2006-11-30 Thread Tim Dijkstra
Op Thu, 30 Nov 2006 08:11:09 +0100 schreef Stefan Seyfried <[EMAIL PROTECTED]>: > Hi, > > On Wed, Nov 29, 2006 at 10:16:12PM +0100, Tim Dijkstra wrote: > > On Wed, 29 Nov 2006 12:09:02 +0100 > > "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote: > > > > On Wednesday, 29 November 2006 11:59, Tim Dijk