Linux 3.0-rc4 intermittent failure to resume
G'day all,
I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.
About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.
32 bit userspace with a statically linked 64 bit s2disk, s2both & resume. 64 bit kernel.
Brad
Signature · 3 lines
Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish.
Quoted 10 lines · Brad Campbell
G'day all,
I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.
About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.
32 bit userspace with a statically linked 64 bit s2disk, s2both & resume. 64 bit kernel.
Do you use the i915 driver?
Rafael
Quoted 7 lines · Rafael J. Wysocki
Quoted 6 lines · Brad Campbell
G'day all,
I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.
Quoted 7 lines
Quoted 4 lines
About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.
32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.
Do you use the i915 driver?
Indeed I do.
Quoted 8 lines · Brad Campbell
Quoted 7 lines · Rafael J. Wysocki
Quoted 6 lines · Brad Campbell
G'day all,
I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.
32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.
Do you use the i915 driver?
Indeed I do.
Just a follow up to this.
It looks like adding "early writeout = y" to my /etc/suspend.conf has worked around the problem.
If I had "shutdown method = reboot", then it would resume every time, but with "shutdown method = platform" it would fail to resume most of the time.
I'm running a Core 2 Duo with an Intel X18-M 160GB SSD on an intel AHCI controller.
Adding "early writeout = y" does not appear to change the progress statistics, or apparent speed of the suspend, but it has now survived 7 suspend/power off/resume cycles that it would never had survived before.
Odd ??
Quoted 12 lines · Brad Campbell
Quoted 11 lines · Brad Campbell
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Brad Campbell
G'day all,
I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.
About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.
Do you use the i915 driver?
Indeed I do.
Just a follow up to this.
It looks like adding "early writeout = y" to my/etc/suspend.confhas worked around the problem.
Ok, so after _lots_ of investigating it was not early writeout. The culprit was/is the Ubuntu initramfs scripts.
On the occasions it failed to resume (which were many) it turns out /bin/resume was being called prior to udev having created /dev/snapshot.
I put a simple wait loop in the resume script to wait for the creation of /dev/snapshot and I've not had a fail to resume since.
Curse you asynchronous dynamic device creation <shakes fist>
Regards,
Brad
Quoted 12 lines · Brad Campbell
Quoted 11 lines · Brad Campbell
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Brad Campbell
G'day all,
I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.
About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.
Do you use the i915 driver?
Indeed I do.
Just a follow up to this.
It looks like adding "early writeout = y" to my/etc/suspend.confhas worked around the problem.
Ok, so after _lots_ of investigating it was not early writeout. The culprit was/is the Ubuntu initramfs scripts.
On the occasions it failed to resume (which were many) it turns out /bin/resume was being called prior to udev having created /dev/snapshot.
I put a simple wait loop in the resume script to wait for the creation of /dev/snapshot and I've not had a fail to resume since.
Curse you asynchronous dynamic device creation <shakes fist>
Regards,
Brad
Quoted 24 lines · Brad Campbell
Quoted 12 lines · Brad Campbell
Quoted 11 lines · Brad Campbell
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Brad Campbell
G'day all,
I've recently moved from tuxonice to mainline uswsusp. I'm getting intermittent failure to resume problems. No message in dmesg that I can find, it just boots clean. Is there something I can do to get some debug info on this? It's really, really annoying.
About 75% of the time it works perfectly, and I can find no rhyme or reason to why it suddenly just decides to ignore the saved state.
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
32 bit userspace with a statically linked 64 bit s2disk, s2both& resume. 64 bit kernel.
Do you use the i915 driver?
Indeed I do.
Just a follow up to this.
It looks like adding "early writeout = y" to my/etc/suspend.confhas worked around the problem.Ok, so after _lots_ of investigating it was not early writeout. The culprit was/is the Ubuntu initramfs scripts.
Quoted 7 lines
On the occasions it failed to resume (which were many) it turns out
/bin/resumewas being called prior to udev having created/dev/snapshot.I put a simple wait loop in the resume script to wait for the creation of
/dev/snapshotand I've not had a fail to resume since.Curse you asynchronous dynamic device creation <shakes fist>
Thank you very much for nailing this down, I was afraid there were some obscure bug lurking in the kernel code.
Take care,
Rafael
Quoted 5 lines · Rafael J. Wysocki
Quoted 3 lines · Brad Campbell
On the occasions it failed to resume (which were many) it turns out
/bin/resumewas being called prior to udev having created/dev/snapshot.
Quoted 7 lines
Quoted 4 lines
I put a simple wait loop in the resume script to wait for the creation of
/dev/snapshotand I've not had a fail to resume since.Curse you asynchronous dynamic device creation<shakes fist>
Thank you very much for nailing this down, I was afraid there were some obscure bug lurking in the kernel code.
Yeah, no worries.
I set up a loop to do automated suspend/resume cycles.
I managed over 100 cycles while compiling 2 kernels in the background.
Over the 100 cycles the kernel locked up twice, but both times were in very early boot. I power cycled the machine and it resumed with no problems, so the issue is not with the suspend/resume code.