* Documentation on /sys/power/resume @ 2007-05-26 23:51 Bill Davidsen 2007-05-27 10:53 ` Rafael J. Wysocki 0 siblings, 1 reply; 6+ messages in thread From: Bill Davidsen @ 2007-05-26 23:51 UTC (permalink / raw) To: Linux Kernel M/L 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? -- Bill Davidsen <davidsen@tmr.com> "We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Documentation on /sys/power/resume 2007-05-26 23:51 Documentation on /sys/power/resume Bill Davidsen @ 2007-05-27 10:53 ` Rafael J. Wysocki 2007-05-27 12:53 ` Bill Davidsen 0 siblings, 1 reply; 6+ messages in thread From: Rafael J. Wysocki @ 2007-05-27 10:53 UTC (permalink / raw) To: Bill Davidsen; +Cc: Linux Kernel M/L, Pavel Machek Hi, On Sunday, 27 May 2007 01:51, Bill Davidsen wrote: > 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 -- If you don't have the time to read, you don't have the time or the tools to write. - Stephen King ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Documentation on /sys/power/resume 2007-05-27 10:53 ` Rafael J. Wysocki @ 2007-05-27 12:53 ` Bill Davidsen 2007-05-27 13:06 ` Rafael J. Wysocki 0 siblings, 1 reply; 6+ messages in thread From: Bill Davidsen @ 2007-05-27 12:53 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: Linux Kernel M/L, Pavel Machek Rafael J. Wysocki wrote: > Hi, > > On Sunday, 27 May 2007 01:51, Bill Davidsen wrote: >> 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. > 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. -- Bill Davidsen <davidsen@tmr.com> "We have more to fear from the bungling of the incompetent than from the machinations of the wicked." - from Slashdot ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Documentation on /sys/power/resume 2007-05-27 12:53 ` Bill Davidsen @ 2007-05-27 13:06 ` Rafael J. Wysocki 2007-05-27 13:17 ` Bill Davidsen 0 siblings, 1 reply; 6+ messages in thread From: Rafael J. Wysocki @ 2007-05-27 13:06 UTC (permalink / raw) To: Bill Davidsen; +Cc: Linux Kernel M/L, Pavel Machek On Sunday, 27 May 2007 14:53, Bill Davidsen wrote: > Rafael J. Wysocki wrote: > > Hi, > > > > On Sunday, 27 May 2007 01:51, Bill Davidsen wrote: > >> 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. > > > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Documentation on /sys/power/resume 2007-05-27 13:06 ` Rafael J. Wysocki @ 2007-05-27 13:17 ` Bill Davidsen 2007-05-27 15:35 ` Matthew Garrett 0 siblings, 1 reply; 6+ messages in thread From: Bill Davidsen @ 2007-05-27 13:17 UTC (permalink / raw) To: Rafael J. Wysocki; +Cc: Linux Kernel M/L, Pavel Machek Rafael J. Wysocki wrote: > On Sunday, 27 May 2007 14:53, Bill Davidsen wrote: > >> Rafael J. Wysocki wrote: >> >>> Hi, >>> >>> On Sunday, 27 May 2007 01:51, Bill Davidsen wrote: >>> >>>> 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. >>> >>> >> 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. -- bill davidsen <davidsen@tmr.com> CTO TMR Associates, Inc Doing interesting things with small computers since 1979 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Documentation on /sys/power/resume 2007-05-27 13:17 ` Bill Davidsen @ 2007-05-27 15:35 ` Matthew Garrett 0 siblings, 0 replies; 6+ messages in thread From: Matthew Garrett @ 2007-05-27 15:35 UTC (permalink / raw) To: Bill Davidsen; +Cc: Rafael J. Wysocki, Linux Kernel M/L, Pavel Machek On Sun, May 27, 2007 at 09:17:25AM -0400, Bill Davidsen wrote: > 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. -- Matthew Garrett | mjg59@srcf.ucam.org ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-27 15:36 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-05-26 23:51 Documentation on /sys/power/resume Bill Davidsen 2007-05-27 10:53 ` Rafael J. Wysocki 2007-05-27 12:53 ` Bill Davidsen 2007-05-27 13:06 ` Rafael J. Wysocki 2007-05-27 13:17 ` Bill Davidsen 2007-05-27 15:35 ` Matthew Garrett
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox