On Mon, 7 May 2007, Pavel Machek wrote: > > (A) Remote wakeup may be enabled on some devices, there can be > > a certain power drain on the batteries or power line, it may > > not be safe to disassemble the machine, etc. > > > > (B) Remote wakeup is completely disabled, there is no power > > drain at all, it is safe to disassemble the machine provided > > you don't switch components like disks, etc. > > > ... > > > > I don't see any reason why (A) and (B) shouldn't both be allowed for > > hibernate, as in fact they are now by way of /sys/power/disk. And I don't > > see any reason why they shouldn't both be allowed for normal non-hibernate > > shutdowns as well. > > No, sorry, that does not work. Software can't select (A) vs. (B). Only > user can, by physically switching real power switch, or by unplugging > the machine. Okay. Then what exactly is the difference between the kind of poweroff we do during hibernate (say with "platform" in /sys/power/disk) and the kind of poweroff we do during a normal system shutdown? > And yes, there's documentation about expectations of swsusp, in > Doc*/power/swsusp.txt. It says this near the start: * If you change * your hardware while system is suspended... well, it was not good idea; * but it will probably only crash. with similar warnings elsewhere. This appears to refer to confusion in the kernel after the image is restored; it doesn't seem to mean that you could damage equipment or electrocute yourself. Alan Stern _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm