what is the difference between shutdown command and writing to /sys/power/state

From: Agarwal, Lomesh
Date: Wed Sep 19 2007 - 14:50:50 EST


Does linux handles writing "disk" to /sys/power/state and shutdown -P
now differently (except writing to disk part)? I have a Xen system and
if I try both (in dom0 which is linux) then writing "disk" powers off
the system while issuing shutdown command halts the system but the
system is still power on. Dom0 is using ramdisk so writing "disk" to
/sys/power/state should essentially be same as shutdown command.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/