Re: [Suspend-devel] s2both on powerpc

2007-04-02 Thread Cédric Boutillier
Hi all ! Thanks to Alan Stern's help on usb-devel list, I have a working suspend-to-disk. My USB issues seem to have gone away thanks to his patch. I need to unload (resp. reload) some modules before (resp. after) suspending, in order to avoid a lockup after resuming (no prompt, and limit keyboar

Re: [Suspend-devel] s2both on powerpc

2007-04-01 Thread Cédric Boutillier
Hi ! On 4/1/07, Johannes Berg <[EMAIL PROTECTED]> wrote: > Have you gotten it to resume? > I'd test s2both but I haven't gotten s2disk to resume yet... Need to > test that patch. Yes it resumes, but I am stuck at some point because after the image is reloaded from swap, the system freezes when (us

Re: [Suspend-devel] s2both on powerpc

2007-04-01 Thread Cédric Boutillier
Hi ! On 4/1/07, Johannes Berg <[EMAIL PROTECTED]> wrote: > What kernel are you running? I thought we fixed that bug where echo mem Oh ! I apologize ! I tested so many kernels on Friday that I completely lost myself in all the versions I tried to reproduce this colorful screen using echo mem >

Re: [Suspend-devel] s2both on powerpc

2007-03-31 Thread Cédric Boutillier
On 3/31/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > On Saturday, 31 March 2007 21:08, Tim Dijkstra wrote: > > Cédric Boutillier schreef: > > > > Cedric gets a `colorful' screen and no suspend when using > > echo mem > /s/p/s, but using the ioctl on

Re: [Suspend-devel] s2both on powerpc

2007-03-31 Thread Cédric Boutillier
On 3/31/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > On Saturday, 31 March 2007 19:02, you wrote: > > Hi ! > > > > On 3/30/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > > Which version of the suspend utilities do you use? > > > > Well, I do not know exactly what you mean by "suspend ut

Re: [Suspend-devel] s2both on powerpc

2007-03-31 Thread Cédric Boutillier
Hi ! On 3/30/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > Which version of the suspend utilities do you use? Well, I do not know exactly what you mean by "suspend utilities" but I am using kernel 2.6.18. I compiled a "mini" kernel from debian sources (2.6.18) without any USB, wireless, bl

Re: [Suspend-devel] s2both on powerpc

2007-03-30 Thread Cédric Boutillier
Hi all ! On 3/29/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > I think this should be reported to the USB development team > (linux-usb-devel@lists.sourceforge.net) possibly with a Cc to LKML. I sent an email to the usb list. We'll see if they can help me with this. I did some experiments,

Re: [Suspend-devel] s2both on powerpc

2007-03-29 Thread Cédric Boutillier
Hi Raphael, On 3/29/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > I think so, but I'd like Cédric to try one more thing: revert your patch and > apply the > appended one. If that works, the comment won't even be necessary (I think). I reverted Tim's patch and applied yours. I got exactly

Re: [Suspend-devel] s2both on powerpc

2007-03-29 Thread Cédric Boutillier
Hi ! On 3/29/07, Tim Dijkstra <[EMAIL PROTECTED]> wrote: > To narrow the problem down a bit further, could you make sure that in > your /etc/uswsusp.conf you have: > shutdown method = poweroff When I addthis line to my /etc/uswsusp.conf, I get an error when I try to dpkg-reconfigure uswsusp. I f

Re: [Suspend-devel] s2both on powerpc

2007-03-29 Thread Cédric Boutillier
Hi Tim, On 3/28/07, Tim Dijkstra <[EMAIL PROTECTED]> wrote: > Did you see any messages from resume? I guess you didn't else resume > would have restored the swap signature. Do you have resume > and /etc/uswsusp.conf on your initramfs? You can unpack it with the > little script I attached. I have

Re: [Suspend-devel] s2both on powerpc

2007-03-28 Thread Cédric Boutillier
Hi ! When I reboot after having executed s2both, I see the following message: "Invalidating stale suspend image" or something similar (I cannot find it in the logs though). I don't know if this helps understanding what happens. Cedric On 3/28/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > I

Re: [Suspend-devel] s2both on powerpc

2007-03-28 Thread Cédric Boutillier
Hi ! Here are some news. Thanks to Tim's patch, I got to the next step : I got a screen, saying that tasks are being stopped, and memory is being written to disk. Everything seems to go fine, but then, the system does not suspend ! Instead, the screen becomes white/red, and gets darker and dark

Re: [Suspend-devel] s2both on powerpc

2007-03-27 Thread Cédric Boutillier
Hi ! Tim said: > Apparently it should be an `unsigned long long', which would make > printf("blkdev: %llu \n", blkdev); the correct way to print it. héhé ! I got a non zero result !!! Thanks Tim ! (Should I be happy ? :) ) $sudo s2both suspend: resume_dev = 268462812 blkdev: 771 suspend: Could n

Re: [Suspend-devel] s2both on powerpc

2007-03-27 Thread Cédric Boutillier
Hi ! > Apparently, resume_dev = 268462812 before calling set_swap_file(). > I've no idea where these 0:0 come from, but I do have idea why it doesn't > work. I don't know how to fix that right now, though. > > Greetings, > Rafael The fact that I got 0:0 might come from the fact that I am far fro

Re: [Suspend-devel] s2both on powerpc

2007-03-25 Thread Cédric Boutillier
On 3/25/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > Hm, this shouldn't be 0:0 in any case. > > Can you please post your suspend.conf? > > Rafael > Here is the content of the file: % cat /etc/uswsusp.conf # /etc/uswsusp.conf(8) -- Configuration file for s2disk/s2both resume device = /dev/hd

Re: [Suspend-devel] s2both on powerpc

2007-03-25 Thread Cédric Boutillier
Hi ! > Could you print out `blkdev'? Just to be sure, could you send the output of > ls -l /dev/hda3 ? I didn't know exactly how to print blkdev, but I finally managed to write something. error = ioctl(dev, SNAPSHOT_SET_SWAP_AREA, &swap); printf("Error: errno = %d\n", errno); if

Re: [Suspend-devel] s2both on powerpc

2007-03-24 Thread Cédric Boutillier
Hi Tim ! On 3/24/07, Tim Dijkstra <[EMAIL PROTECTED]> wrote: > First of all, thanks for testing! I am glad if I can be of any help on this. I am pretty interested in having a suspend-to-disk solution working on my iBook. > Which kernel are you using? Could you try to catch the error code that >