Re: [Suspend-devel] s2ram/s2disk on AMD64 Asus A8N SLI Deluxe, nForce 4

2006-11-22 Thread Jason Lunz
[EMAIL PROTECTED] said: >> [EMAIL PROTECTED]:~$ sudo s2ram -i >> This machine can be identified by: >> sys_vendor = "System manufacturer" >> sys_product = "System Product Name" >> sys_version = "System Version" >> bios_version = "ASUS A8N-SLI DELUXE ACPI BIOS Revision 1015" >> S

[Suspend-devel] [PATCH] add pointer to hibernate scripts to ususpend README

2006-11-06 Thread Jason Lunz
sure, here's an updated patch. Jason --- Add a pointer to hibernate scripts to the ususpend README. --- README | 13 + 1 file changed, 13 insertions(+) Index: suspend/README === --- suspend.orig/README +++ suspend/

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-06 Thread Jason Lunz
On Mon, Nov 06, 2006 at 08:08:59AM +0100, Stefan Seyfried wrote: > Well, the common upstream solution will soon be pm-utils, so maybe > the hibernate users should start looking at that, so that it does > what they want :-) Why wouldn't the pm-utils authors start with hibernate as a base? It looks

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-05 Thread Jason Lunz
On Sun, Nov 05, 2006 at 11:19:52PM +0100, Pavel Machek wrote: > > configuration issues. I think suspend.sf.net ought to point users to > > hibernate just as suspend2 does. > > I guess we can take README patch ;-). OK, how about this? Jason --- README | 13 + 1 file changed, 13 in

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-05 Thread Jason Lunz
On Sun, Nov 05, 2006 at 10:22:24PM +0100, Pavel Machek wrote: > Well, having some default scripts in suspend.sf.net package... would > not be that bad. Not all the stuff is done best in C. hibernate supports swsusp, ususpend, and suspend2 equally. It isn't an integrated part of any of them. So all

Re: [Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-11-05 Thread Jason Lunz
On Sun, Nov 05, 2006 at 06:18:34PM +0100, Pavel Machek wrote: > Okay, why not. If you resend the patch, and noone dislikes it, I can > apply it.. Here it is again. Just to be clear, the patch is for Bernard's hibernate scripts; I just CC'd suspend-devel because it may be of general interest to usu

Re: [Suspend-devel] Suspend with cryptsetup encrypted swap?

2006-10-30 Thread Jason Lunz
On Mon, Oct 30, 2006 at 12:14:30PM +, Matej Cepl wrote: > Why not for swap? OK, except that suspend cannot work :-). Does it > mean that I should switch to inserting password for swap? yes, that's necessary. luks is nice for managing the passwords. Jason -

Re: [Suspend-devel] Suspend with cryptsetup encrypted swap?

2006-10-17 Thread Jason Lunz
On Mon, Oct 16, 2006 at 01:26:16PM +0200, Matej Cepl wrote: > is something like this possible? I have here notebook with Fedora Core > 5 with swap encrypted using cryptsetup create. Is it possible to > suspend/resume such notebook with ususpend? Yes, it works just fine. I've been running a laptop

[Suspend-devel] [PATCH] select ususpend method based on battery charge

2006-10-11 Thread Jason Lunz
The advantage to using s2both is that if the battery runs out while suspended to ram, the system can still resume from disk (after power is restored). The disadvantage is that it's slower, and most of the time the disk image is never used. This implementation of USuspendMethodAuto takes two integ

Re: [Suspend-devel] [PATCH 1/2] print s2disk benchmarks during resume

2006-09-25 Thread Jason Lunz
On Mon, Sep 25, 2006 at 08:22:09AM +0200, Stefan Seyfried wrote: > - What happens if i suspend with a "timing enabled" s2disk and resume with a > "pre-timing-enabled" resume? (Somebody updates the package but forgets to > run mkinitrd). > Will it just fail (invalid header) or will it cause tota

Re: [Suspend-devel] [PATCH] add optional pause during resume

2006-09-24 Thread Jason Lunz
On Sun, Sep 24, 2006 at 08:28:21PM +0200, Pavel Machek wrote: > If you want to do it _right_, write timing info onto disk, then read > it from there. That will not slow the user down, while still telling > them nice statistics when resume is done. Hmmm? where? there's no fs mounted. Is there a pla

Re: [Suspend-devel] [PATCH] add optional pause during resume

2006-09-24 Thread Jason Lunz
On Sun, Sep 24, 2006 at 07:17:46PM +0200, Rafael J. Wysocki wrote: > But then you probably won't be using this switch any more. ;-) I will when the async i/o support comes in 2.6.19. > I think it would be better to make it possible to compile out the > benchmarking code. Maybe eventually. Right

Re: [Suspend-devel] [PATCH] add optional pause during resume

2006-09-24 Thread Jason Lunz
On Sun, Sep 24, 2006 at 10:11:17AM +0200, Pavel Machek wrote: > I'm not sure I like this one. It is little too specialized... without this, I can't see the i/o timings at all. Is there another way to do it? I guess it could be a command-line option, or an #ifdef used only by someone benchmarking.

[Suspend-devel] [PATCH] make shutdown method configurable

2006-09-23 Thread Jason Lunz
Make it possible to set the s2disk shutdown method in the config file. Jason --- HOWTO |6 ++ resume.c |5 + suspend.c | 14 +- swsusp.h |2 +- 4 files changed, 25 insertions(+), 2 deletions(-) Index: suspend/suspend.c ===

[Suspend-devel] [PATCH] add optional pause during resume

2006-09-23 Thread Jason Lunz
Add an option to allow the user to wait for keypress during the resume process so that image i/o stats may be read. Jason --- HOWTO |4 resume.c | 13 + suspend.c |5 + swsusp.h |2 +- 4 files changed, 23 insertions(+), 1 deletion(-) Index: suspend/resu

Re: [Suspend-devel] [PATCH 2/2] benchmark helper

2006-09-23 Thread Jason Lunz
On Fri, Sep 22, 2006 at 03:38:39PM +0200, Pavel Machek wrote: > Ok, I'm not applying this one, but command line switch selecting > between reboot/platform/shutdown/S3 would be welcome. OK. The patch was obviously only meant for testing. I'll send patches that make the reboot-on-s2disk and pause-on

Re: [Suspend-devel] [PATCH 1/2] print s2disk benchmarks during resume

2006-09-22 Thread Jason Lunz
On Fri, Sep 22, 2006 at 03:48:20PM +0200, Pavel Machek wrote: > Well, it did not apply (reject) and did not compile when applied I was working against the debian uswsusp 0.2 package - i'll use cvs next time. sorry. > (missing swsusp.h changes). I fixed it up, but please check it after > me... I

[Suspend-devel] [PATCH 2/2] benchmark helper

2006-09-21 Thread Jason Lunz
Make it easier to benchmark a lot of s2disk cycles. Reboot the machine instead of powering off, and wait for keypress after printing timings during resume. --- resume.c |1 + suspend.c |1 + 2 files changed, 2 insertions(+) Index: suspend-0.2/suspend.c

[Suspend-devel] [PATCH 0/2] s2disk benchmarking

2006-09-21 Thread Jason Lunz
The following two patches add suspend/resume benchmarking. The first is the more important one. During suspend, it times the image writeout + fsync(), and stores the result in the swsusp header. During resume, it times image load, then prints writeout, readin, and total timings and speeds. The s

[Suspend-devel] [PATCH 1/2] print s2disk benchmarks during resume

2006-09-21 Thread Jason Lunz
Print s2disk benchmarks. The image writeout time is saved in the swsusp_info header during suspend, then statistics are printed during resume about elapsed time and image load/store speed for writeout, readin, and total. --- resume.c | 24 +++- suspend.c | 11 +++

Re: [Suspend-devel] Suspend read/write "benchmarks"

2006-09-19 Thread Jason Lunz
[EMAIL PROTECTED] said: > Seems okay to me... if 45% image is significantly faster than 50% > image, lets do it... agreed. I also found that limiting the image (even a little) produces faster writeout and much more consistent writeout times. I'm still fooling around with my patch that prints benc

Re: [Suspend-devel] [PATCH] smooth image writeout progress display

2006-09-18 Thread Jason Lunz
[EMAIL PROTECTED] said: > Hmm.. we can probably do that. Is smoothly-running progressbar really > all that important? it is to me. That's why I wrote the patch, because I got tired of looking at inaccurate progress output. And I don't use splash. I agree about correctness, but this *is* correct.

Re: [Suspend-devel] [PATCH] smooth image writeout progress display

2006-09-18 Thread Jason Lunz
On Mon, Sep 18, 2006 at 01:10:45PM +0200, Tim Dijkstra wrote: > > It would be nice to actually benchmark this, and hardcode the option that > > provides acceptable performance... > > Sure, maybe Jason can provide some numbers. yeah, i'll whip up a writeout-timing patch tonight. That might be use

[Suspend-devel] [PATCH] smooth image writeout progress display

2006-09-17 Thread Jason Lunz
Increase the granularity of calls to start_writeout() when early_writeout is used. This results in a smooth progress display during writeout, rather than a noticeable pause each 20% of the way through. I think performance shouldn't be hurt, since we're still batching pages 1% at a time, down from

Re: [Suspend-devel] [RFC] Installation instructions for SUSE 10.1

2006-08-12 Thread Jason Lunz
On Thu, Aug 10, 2006 at 11:55:09AM +0200, Sheer El-Showk wrote: > piix9092 0 [permanent] > ide_core 115900 3 ide_cd,piix,ide_disk > > Your patch was at the more general level of the ide drivers so do you > have any idea why it didn't work on this particular drive

Re: [Suspend-devel] [RFC] Installation instructions for SUSE 10.1

2006-08-09 Thread Jason Lunz
On Thu, Aug 10, 2006 at 12:54:19AM +0200, Sheer El-Showk wrote: > Is this a similar problem to what you were having on your laptop > before the patch? Would you expect your patch to work for me or do > you think its an unrelated problem? Whatever it is I definately have > an issue with the disk t

Re: [Suspend-devel] [RFC] Installation instructions for SUSE 10.1

2006-08-09 Thread Jason Lunz
On Wed, Aug 09, 2006 at 10:12:10PM +0200, Rafael J. Wysocki wrote: > AFAIK, the AHCI suspend to RAM support is on its way, but does anyone know > about the other SATA/PATA drivers? AFAICT, the situation with drivers/ide is that it happens to work (by luck) well enough for most people that it's bee

Re: [Suspend-devel] [RFC] Installation instructions for SUSE 10.1

2006-08-09 Thread Jason Lunz
On Wed, Aug 09, 2006 at 06:27:13PM +0200, Sheer El-Showk wrote: > So, might this general IDE fix solve my problem? I compiled > 2.6.18-rc3-mm2 and tried 's2ram -f' but it just crashed while > suspending so I couldn't test this. Maybe. Which ide driver are you using? There's plenty of other stuff

Re: [Suspend-devel] [RFC] Installation instructions for SUSE 10.1

2006-08-09 Thread Jason Lunz
On Wed, Aug 09, 2006 at 01:42:17PM +0200, Rafael J. Wysocki wrote: > The fix was for AMD/NVidia IDE, but Alan vetoed it on the basis that it should > be done at the general level. Everyone agreed, but I don't know if anyone > took care of that. Jason? I redid the patch at the general IDE level.

Re: [Suspend-devel] HP dv8000t (core duo) dead on resume

2006-08-07 Thread Jason Lunz
[EMAIL PROTECTED] said: > I've tried running s2ram with all of the suggested arguments from > init=/bin/bash, with and without noapic, running kernel 2.6.18-rc3, I > believe. This was configured with *minimal* support -- no modules, sound, > usb, IDE, SMP, preempt, cpufreq, mce etc. (I've done simi

Re: [Suspend-devel] Dell Inspiron 2200 -- some luck!!!

2006-08-04 Thread Jason Lunz
[EMAIL PROTECTED] said: > (aside from your fierce opposition to the competition, is there any rational > reason why I should not have suspend2 in my kernel?) On more than one occasion, the suspend2 patches have broken both in-kernel swsusp and uswsusp on my laptop. Come to think of it, I wonder h

Re: [Suspend-devel] Dell Inspiron 2200 -- no luck

2006-08-04 Thread Jason Lunz
[EMAIL PROTECTED] said: > Would that kill keyboard leds? the opposite, actually. After about 30 seconds or so hung, my capslock LED would start blinking on and off Jason - Take Surveys. Earn Cash. Influence the Future of IT

Re: [Suspend-devel] Dell Inspiron 2200 -- no luck

2006-08-04 Thread Jason Lunz
[EMAIL PROTECTED] said: > I guess it's an IDE-related problem similar to the one which Jason Lunz's > patch fixed, or a (P)SATA-related one. If it's like what I saw, most of the time the hang will keep the hard drive LED on solid. But not always. Jason --

Re: [Suspend-devel] [PATCH] whitelist s2ram entry for HP zv5000 laptop

2006-07-10 Thread Jason Lunz
On Mon, Jul 10, 2006 at 08:31:13AM +0200, Stefan Seyfried wrote: > Ok, try the following (not with s2ram, but with plain vbetool. If it works, > it will be in s2ram real soon ;-): > > --- > #!/bin/bash > X=`vbetool vbemode get` > echo mem > /sys/

Re: [Suspend-devel] partial success - 64-bit s2ram on HP zv5000

2006-07-05 Thread Jason Lunz
On Wed, Jul 05, 2006 at 07:42:46PM +0200, Luca Tettamanti wrote: > I'm not sure that the setting is preserved. Anyway the bus is locked > and it seems that it's caused by IDE. > I saw patches on lkml that added support for running ACPI methods to > bring IDE back to life. But it seems that it's onl

Re: [Suspend-devel] resume problems on Dell X200 revisited

2006-07-05 Thread Jason Lunz
[EMAIL PROTECTED] said: > Any suggestions? (Even if only how to figure out what pnp device > 00:07 and 00:08 are?) I found this info in dmesg output after boot, where the pnp code initializes and probes hardware. Jason Using Tomcat but need to do more? Need to support web services, security? G

Re: [Suspend-devel] [PATCH] support 64-bit kernel check in s2ram whitelist

2006-07-05 Thread Jason Lunz
On Wed, Jul 05, 2006 at 10:16:39AM +0200, Stefan Seyfried wrote: > The "Get video state buffer size failed" adn "base is 0x0" looks suspicious > to me. yeah. The program should probably exit when that fails - in my case it then calls LRMI_alloc_real() with size 0, so it's not surprising it crashes

Re: [Suspend-devel] [PATCH] support 64-bit kernel check in s2ram whitelist

2006-07-04 Thread Jason Lunz
On Wed, Jul 05, 2006 at 01:29:30AM +0200, Pavel Machek wrote: > But we are running them under emulator, so that should not be a > problem... and they are probably 16-bit x86 instructions, anyway. yes, I see. That emulator seems be causing the segfaults when I use -s: # gdb s2ram GNU gdb 6.4.90-de

Re: [Suspend-devel] [PATCH] whitelist s2ram entry for HP zv5000 laptop

2006-07-04 Thread Jason Lunz
On Wed, Jul 05, 2006 at 01:21:11AM +0200, Pavel Machek wrote: > > Further investigation shows that it works within X, whether or > > not the boot console is using framebuffer. I'm not unloading any > > modules, or doing anything other than running "s2ram -f -p". > > After resume int

Re: [Suspend-devel] [PATCH] support 64-bit kernel check in s2ram whitelist

2006-07-04 Thread Jason Lunz
On Tue, Jul 04, 2006 at 06:34:00PM +, Pavel Machek wrote: > I'd prefer not to apply this. It is better to just fix the kernel. > Whitelist is for video problems, not for random kernel bugs. I agree, I'm not about to switch to a 32-bit kernel. But giving a warning like this could save people a

Re: [Suspend-devel] partial success - 64-bit s2ram on HP zv5000

2006-07-04 Thread Jason Lunz
On Tue, Jul 04, 2006 at 06:40:02PM +, Pavel Machek wrote: > Disable MCE checking and see what happens? ha! very funny. I'll try that. But I think it won't help - by the time the mce check fires, the machine has been hung for 20-30 seconds. Jason Using Tomcat but need to do more? Need to supp

Re: [Suspend-devel] partial success - 64-bit s2ram on HP zv5000

2006-07-04 Thread Jason Lunz
On Tue, Jul 04, 2006 at 10:53:27PM +0200, Luca Tettamanti wrote: > The blinking is done by the kernel panic handler. yes. > >bcm43xx: set security called enabled = 1 encrypt = 1 > >hda: dma_timer_expiry: dma status == 0x21 > >hda: DMA timeout error > > > >HARDWARE ERROR > >CPU 0: Machine Check Ex

[Suspend-devel] partial success - 64-bit s2ram on HP zv5000

2006-07-04 Thread Jason Lunz
On Mon, Jul 03, 2006 at 11:48:08PM +0200, Pavel Machek wrote: > Important info is "did kernel get control and crashed, or did it lock > up in firmware". Beeping patch can be used to debug that, as can be > Linus's RTC hack present in very new kernels. I tried out netconsole, and it works very well

[Suspend-devel] [PATCH] support 64-bit kernel check in s2ram whitelist

2006-07-04 Thread Jason Lunz
nel.\n"); + if (test_mode) { machine_known(id); goto out; Index: suspend-0.2/whitelist.c === --- suspend-0.2.orig/whitelist.c +++ suspend-0.2/whitelist.c @@ -57,7 +57,7 @@ /* The full mat

[Suspend-devel] [PATCH] whitelist s2ram entry for HP zv5000 laptop

2006-07-04 Thread Jason Lunz
full match is: +* { "Hewlett-Packard ", "Pavilion zv5000 (DP523AV) ", "F.35", "F.35", VBE_POST|NOFB }, +* but I don't see any reason to match that tightly. - Jason Lunz */ + { "Hewlett-Packard

Re: [Suspend-devel] s2ram problems on Dell X200

2006-07-04 Thread Jason Lunz
[EMAIL PROTECTED] said: > Interesting idea. I just booted knoppix 5.0.1 on my amd64, and tried a > 32-bit "echo mem > /sys/power/state" from a running X desktop. It > suspended successfully, and it still failed to resume, but this time at > least the hard drive isn't on solid. Otherwise the same, t

Re: [Suspend-devel] s2ram problems on Dell X200

2006-07-04 Thread Jason Lunz
[EMAIL PROTECTED] said: > Interesting datapoint would be "does it work ok with 32-bit kernel"? > Some live-CD might help answer that question. Interesting idea. I just booted knoppix 5.0.1 on my amd64, and tried a 32-bit "echo mem > /sys/power/state" from a running X desktop. It suspended successf

[Suspend-devel] ususpend + yaird HOWTO

2006-07-03 Thread Jason Lunz
On Mon, Jul 03, 2006 at 08:34:58PM +0200, Rafael J. Wysocki wrote: > Great. I'd like to create a HOWTO patch describing this, but I have no > experience with initramfs and/or yaird. Would you please describe > shortly all steps needed to make it work? It's not bad. I really think that getting us

Re: [Suspend-devel] s2ram problems on Dell X200

2006-07-03 Thread Jason Lunz
[EMAIL PROTECTED] said: > - screen blank and black > - no keyboard -- caps lock doesn't do anything and typing things like > "ls", "find /" doesn't do anything; > - no network -- cannot ssh in > Seem to be able to get out only with the three-seconds-power-button push. same for me. HD light on s

[Suspend-devel] [PATCH] initramfs generation with yaird

2006-06-14 Thread Jason Lunz
on debian unstable, this is all I needed to get yaird to generate an initramfs image with ususpend support. Jason --- Templates.cfg.orig 2006-06-14 23:33:34.0 -0400 +++ Templates.cfg 2006-06-14 23:39:58.0 -0400 @@ -400,6 +400,8 @@ # TEMPLATE resume

Re: [Suspend-devel] suspend in shell

2006-06-14 Thread Jason Lunz
[EMAIL PROTECTED] said: > I'm familiar with hibernate script, but I see a couple of minor issues: Thanks for looking at it. Here's a version that's less half-assed; the last one was a quick search-and-replace job. > suspend may fail, yet you don't propagate the return value. Is this > correct? I

Re: [Suspend-devel] suspend in shell

2006-06-14 Thread Jason Lunz
[EMAIL PROTECTED] said: > [EMAIL PROTECTED] said: >> Or if somebody wants to make a scriptlet to support it (use the >> sysfs_power_state scriptlet as a guide), I'll happily merge it for >> the next release. > > That's exactly what I did. I'll post it tonight when my laptop's on. > It's completely

Re: [Suspend-devel] suspend in shell

2006-06-13 Thread Jason Lunz
[EMAIL PROTECTED] said: > Or if somebody wants to make a scriptlet to support it (use the > sysfs_power_state scriptlet as a guide), I'll happily merge it for > the next release. That's exactly what I did. I'll post it tonight when my laptop's on. It's completely straightforward. Jason ___