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

2007-09-20 Thread Rafael J. Wysocki
On Thursday, 20 September 2007 20:11, Agarwal, Lomesh wrote: > Can someone tell me the flow of code for these two scenarios - > I write disk to /sys/power/state. How does system go to hibernation? How > does this trigger ACPI driver functions? > I issue shutdown command. > I am using 2.6.18 kernel.

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

2007-09-20 Thread Agarwal, Lomesh
] [mailto:[EMAIL PROTECTED] On Behalf Of Rafael J. Wysocki Sent: Wednesday, September 19, 2007 5:09 PM To: Agarwal, Lomesh Cc: linux-kernel@vger.kernel.org Subject: Re: what is the difference between shutdown command and writing to /sys/power/state On Wednesday, 19 September 2007 23:37, Agarwal

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

2007-09-20 Thread Agarwal, Lomesh
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rafael J. Wysocki Sent: Wednesday, September 19, 2007 5:09 PM To: Agarwal, Lomesh Cc: linux-kernel@vger.kernel.org Subject: Re: what is the difference between shutdown command and writing to /sys/power

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

2007-09-19 Thread Rafael J. Wysocki
ptember 19, 2007 2:35 PM > To: Agarwal, Lomesh > Cc: linux-kernel@vger.kernel.org > Subject: Re: what is the difference between shutdown command and writing > to /sys/power/state > > On Wednesday, 19 September 2007 20:50, Agarwal, Lomesh wrote: > > Does linux handles writing &qu

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

2007-09-19 Thread Agarwal, Lomesh
Wednesday, September 19, 2007 2:35 PM To: Agarwal, Lomesh Cc: linux-kernel@vger.kernel.org Subject: Re: what is the difference between shutdown command and writing to /sys/power/state On Wednesday, 19 September 2007 20:50, Agarwal, Lomesh wrote: > Does linux handles writing "disk"

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

2007-09-19 Thread Rafael J. Wysocki
On Wednesday, 19 September 2007 20:50, Agarwal, Lomesh wrote: > Does linux handles writing "disk" to /sys/power/state and shutdown -P > now differently (except writing to disk part)? Yes, it does (depending also on what you mean by 'now'). Greetings, Rafael - To unsubscribe from this list: send t

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

2007-09-19 Thread Agarwal, Lomesh
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