Skip to contentSkip to conversation

Documentation on /sys/power/resume

DISCUSSION Bill Davidsen 3 participants 6 messages May 26, 2007 – May 27, 2007

lore
Share & tools
lore
#0 lore raw

Not in the ABI doc, is there and doc at all, and if not could someone who knows where it's used might give me a hint, as a quick look didn't bring enlightenment. Or is it a future hook which doesn't work yet?

Signature · 3 lines
Bill Davidsen <[email protected]>
 "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
#1 lore raw

Hi,

Quoted 3 lines · Bill Davidsen

Not in the ABI doc, is there and doc at all, and if not could someone who knows where it's used might give me a hint, as a quick look didn't bring enlightenment. Or is it a future hook which doesn't work yet?

That's something that in theory may allow you to resume the system from and initrd script.

Basically, you write your resume device's major and minor numbers into it as the "MAJ:MIN" string (eg. "8:3" for /dev/sda3 on my box) and the kernel will try to read the image from this device and restore it.

It only works with partitions and the use of it us discouraged, so it's deliberately undocumented.

Greetings,
Rafael

Signature · 3 lines
If you don't have the time to read,
you don't have the time or the tools to write.
		- Stephen King
#2 lore raw
Quoted 8 lines · Rafael J. Wysocki

Hi,

Quoted 1 line · Bill Davidsen

Not in the ABI doc, is there and doc at all, and if not could someone who knows where it's used might give me a hint, as a quick look didn't bring enlightenment. Or is it a future hook which doesn't work yet?

That's something that in theory may allow you to resume the system from and initrd script.

Quoted 7 lines

Basically, you write your resume device's major and minor numbers into it as the "MAJ:MIN" string (eg. "8:3" for /dev/sda3 on my box) and the kernel will try to read the image from this device and restore it.

It only works with partitions and the use of it us discouraged, so it's deliberately undocumented.

Thanks, that's just different enough from what little info I had to make what I have not work. I'm looking at resume from a non-swap location.

Signature · 3 lines
Bill Davidsen <[email protected]>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
#3 lore raw
Quoted 15 lines · Bill Davidsen
Quoted 14 lines · Rafael J. Wysocki

Hi,

Quoted 3 lines · Bill Davidsen

Not in the ABI doc, is there and doc at all, and if not could someone who knows where it's used might give me a hint, as a quick look didn't bring enlightenment. Or is it a future hook which doesn't work yet?

That's something that in theory may allow you to resume the system from and initrd script.

Basically, you write your resume device's major and minor numbers into it as the "MAJ:MIN" string (eg. "8:3" for /dev/sda3 on my box) and the kernel will try to read the image from this device and restore it.

Quoted 5 lines
Quoted 3 lines

It only works with partitions and the use of it us discouraged, so it's deliberately undocumented.

Thanks, that's just different enough from what little info I had to make what I have not work. I'm looking at resume from a non-swap location.

Only suspend2 can do this right now. The built-in swsusp can resume from a swap file as long as it's not located on LVM.

Greetings,
Rafael

#4 lore raw
Quoted 21 lines · Rafael J. Wysocki
Quoted 19 lines · Bill Davidsen
Quoted 17 lines · Rafael J. Wysocki

Hi,

Quoted 2 lines · Bill Davidsen

Not in the ABI doc, is there and doc at all, and if not could someone who knows where it's used might give me a hint, as a quick look didn't bring enlightenment. Or is it a future hook which doesn't work yet?

That's something that in theory may allow you to resume the system from and initrd script.

Basically, you write your resume device's major and minor numbers into it as the "MAJ:MIN" string (eg. "8:3" for /dev/sda3 on my box) and the kernel will try to read the image from this device and restore it.

It only works with partitions and the use of it us discouraged, so it's deliberately undocumented.

Quoted 6 lines
Quoted 2 lines

Thanks, that's just different enough from what little info I had to make what I have not work. I'm looking at resume from a non-swap location.

Only suspend2 can do this right now. The built-in swsusp can resume from a swap file as long as it's not located on LVM.

Sounds like sispend2 is still needed, I haven't needed a suspending kernel in a few years, and I was hoping that with suspend working in mainline that resume would have been implemented. Sounds as if that's not the case, my swap is RAID1, I was hoping to resume from one of the mirrors, since they are based on a partition. No joy wit or without /sys/power/resume, so I'll look further.

Signature · 3 lines
bill davidsen <[email protected]>
 CTO TMR Associates, Inc
 Doing interesting things with small computers since 1979
#5 lore raw
Quoted 6 lines · Bill Davidsen

Sounds like sispend2 is still needed, I haven't needed a suspending kernel in a few years, and I was hoping that with suspend working in mainline that resume would have been implemented. Sounds as if that's not the case, my swap is RAID1, I was hoping to resume from one of the mirrors, since they are based on a partition. No joy wit or without /sys/power/resume, so I'll look further.

Should work absolutely fine as long as you set up the RAID before attempting to resume.

Signature · 1 line
Matthew Garrett | [email protected]