Re: Disc driver is module, software suspend fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 29 Mar 2005, Pavel Machek wrote:

> You insmod driver for your swap device, then you echo device numbers
> to /sys... then initiate resume.

So you're saying, let the machine come all the way up, log in as root, 
"echo 8:5 > /sys/power/resume" (I think that was the name), then "echo 
resume > /sys/power/state"?  Hmm, you would have to bypass "swapon -a",
e.g. boot with the -b kernel parameter.  

Or I'll bet one could do something equivalent in the initrd -- much more 
user friendly.  But the friendliest of all would be if the swsusp resume 
call were not a late_initcall but rather were called just before the root 
was mounted, after the initrd (if any) had loaded whatever modules.  I 
think you're confirming that that approach would not blow up the kernel -- 
if it will work with the root mounted and user space in full roar (well, 
skimpy roar with the -b switch), then it's got to be OK at the earlier 
time.

I'll see what I can do.


James F. Carter          Voice 310 825 2897    FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555
Email: [email protected]  http://www.math.ucla.edu/~jimc (q.v. for PGP key)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux