[Yaird-devel] Bug#329319: swsusp: updates for suspend2

C. Scott Ananian cscott at cscott.net
Tue Jan 24 17:01:04 UTC 2006


On Tue, 24 Jan 2006, Hamish Moffatt wrote:

> One issue is that it can't work out where to resume from itself; this
> has to come as a resume2= parameter or hard-coded in the kernel. It
> doesn't seem to be possible to poke it into /proc somewhere as the patch
> does for swsusp.

Looking through
   http://www.suspend2.net/HOWTO-4.html
it seems like writing into /proc/suspend2/resume2 might do what you want?

The docs say that you still need a kernel command-line parameter to 
resume, but thinking about the likely implementation, it seems like 
writing to /proc/suspend2/resume2 and then writing to 
/proc/suspend2/do_resume might Just Work.  Or ought to be made to work!
If you've got a chance to test that hypothesis, I'd appreciate it.
I strongly feel that "ordinary users" shouldn't have to edit the kernel 
command-line parameters for any reason...  although one can imagine resume 
arguments being added in the future at debian-installer time along with 
the root= argument.  I'd prefer to concentrate all information about 
"which partitions are used for what" into /etc/fstab, though.
  --scott

Semtex Nazi UKUSA atomic AMTHUG $400 million in gold bullion early warning 
security Chechnya Sugar Grove HTPLUME pending global action network
                          ( http://cscott.net/ )




More information about the Yaird-devel mailing list