Re: [Suspend-devel] [RFC][PATCH] swsusp: Reduce code duplication between user.c and disk.c

2007-05-07 Thread Johannes Berg
Hi, > However, this modifies the user-observable behavior in such a way that > if the user sets 'shutdown mode = platform' in the s2disk's configuration > file, > the kernel will use the hibernation mode resulting from the sysfs interface > settings. That is, if there is 'shutdown mode = platfor

Re: [Suspend-devel] s2both on powerpc

2007-04-09 Thread Johannes Berg
On Mon, 2007-04-09 at 22:16 +0200, Rafael J. Wysocki wrote: > On Monday, 9 April 2007 22:05, Johannes Berg wrote: > > On Mon, 2007-04-09 at 19:26 +0200, Cedric Boutillier wrote: > > > On 4/9/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > > > You can try to

Re: [Suspend-devel] s2both on powerpc

2007-04-09 Thread Johannes Berg
On Mon, 2007-04-09 at 19:26 +0200, Cedric Boutillier wrote: > On 4/9/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > You can try to add "shutdown method = shutdown" to the s2disk's > > configuration > > file as a workaround. > > Thanks ! This did the trick. Now s2disk works as expected. Urk

Re: [Suspend-devel] s2both on powerpc

2007-04-01 Thread Johannes Berg
On Sun, 2007-04-01 at 22:57 +0200, Tim Dijkstra wrote: > That was the initial idea, so I added the /dev/pmu stuff to s2ram. I > misunderstood however how s2both uses the bits from s2ram. Rafael/Pavel > added a ioctl to /dev/snapshot to trigger suspend to state s3, this > uses more or less the same

Re: [Suspend-devel] s2both on powerpc

2007-04-01 Thread Johannes Berg
On Sun, 2007-04-01 at 18:18 +0200, Cédric Boutillier wrote: > Yes it resumes, I'll test it again tomorrow if I can get around to it. > but I am stuck at some point because after the image > is reloaded from swap, the system freezes when (usb) modules are > reloaded. That is a problem I got with

Re: [Suspend-devel] s2both on powerpc

2007-04-01 Thread Johannes Berg
On Sun, 2007-04-01 at 17:31 +0200, Cédric Boutillier wrote: > Indeed, cat /sys/power/state returns only disk. Phew. Yeah, could be that we still had the bug in .16, I lost track. > I must have got the colorful screen with an old 2.6.16 kernel. This is > the only one that let me reproduce that, s

Re: [Suspend-devel] s2both on powerpc

2007-04-01 Thread Johannes Berg
> What I got is the following : > a) a colorfull screen and no suspend with >- s2both >- echo mem > /s/p/s What kernel are you running? I thought we fixed that bug where echo mem > ... crapped out... Oh well. I'll fix it for good (by making it work) in .22 johannes signature.asc Descri

Re: [Suspend-devel] s2both on powerpc

2007-04-01 Thread Johannes Berg
On Sat, 2007-03-31 at 22:17 +0200, Tim Dijkstra wrote: > Hmm, ok I misunderstood then. I thought that in our previous tests > you said it used echo mem ... maybe you were using your patches;) Yes, I do of course run my patches. "Eat your own dogfood" ;) > That would maybe explain why s2both does

Re: [Suspend-devel] s2both on powerpc

2007-03-31 Thread Johannes Berg
On Sat, 2007-03-31 at 21:08 +0200, Tim Dijkstra wrote: > And to ask your earlier question, s2both uses something slightly different > than s2ram. s2ram tries first some ioctl on /dev/pmu, if that fails it > tries > echo mem > /sys/power/state. > > Johannes told me these two should be more or less

Re: [Suspend-devel] s2both on powerpc

2007-03-30 Thread Johannes Berg
On Fri, 2007-03-30 at 14:01 +0200, Tim Dijkstra wrote: > --- suspend.c 16 Mar 2007 16:02:22 - 1.70 > +++ suspend.c 29 Mar 2007 19:42:43 - > @@ -207,8 +207,13 @@ > swap.dev = blkdev; > swap.offset = offset; > error = ioctl(dev, SNAPSHOT_SET_SWAP_AREA, &swap)

Re: [Suspend-devel] s2both on powerpc -- another one

2007-03-24 Thread Johannes Berg
On Sat, 2007-03-24 at 21:16 +0100, Tim Dijkstra wrote: > OK, have to see what liblzf claims to support. But compression is not > essential, lets first see if we can get it to work without. True. Getting -ENOSPC is a bit weird, should be easy to find though. > > - resume needs to grow a timeout