* what is the difference between shutdown command and writing to /sys/power/state
@ 2007-09-19 18:50 Agarwal, Lomesh
2007-09-19 21:34 ` Rafael J. Wysocki
0 siblings, 1 reply; 7+ messages in thread
From: Agarwal, Lomesh @ 2007-09-19 18:50 UTC (permalink / raw)
To: linux-kernel
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what is the difference between shutdown command and writing to /sys/power/state
2007-09-19 18:50 what is the difference between shutdown command and writing to /sys/power/state Agarwal, Lomesh
@ 2007-09-19 21:34 ` Rafael J. Wysocki
2007-09-19 21:37 ` Agarwal, Lomesh
0 siblings, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2007-09-19 21:34 UTC (permalink / raw)
To: Agarwal, Lomesh; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: what is the difference between shutdown command and writing to /sys/power/state
2007-09-19 21:34 ` Rafael J. Wysocki
@ 2007-09-19 21:37 ` Agarwal, Lomesh
2007-09-20 0:09 ` Rafael J. Wysocki
0 siblings, 1 reply; 7+ messages in thread
From: Agarwal, Lomesh @ 2007-09-19 21:37 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: linux-kernel
Can you tell me the differences?
Also what do you mean by - depending also on what you mean by 'now'? I
gave now as a time parameter to shutdown command. How can it be
interpreted in a different way?
-----Original Message-----
From: Rafael J. Wysocki [mailto:rjw@sisk.pl]
Sent: 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" 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what is the difference between shutdown command and writing to /sys/power/state
2007-09-19 21:37 ` Agarwal, Lomesh
@ 2007-09-20 0:09 ` Rafael J. Wysocki
2007-09-20 17:53 ` Agarwal, Lomesh
2007-09-20 18:11 ` Agarwal, Lomesh
0 siblings, 2 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2007-09-20 0:09 UTC (permalink / raw)
To: Agarwal, Lomesh; +Cc: linux-kernel
On Wednesday, 19 September 2007 23:37, Agarwal, Lomesh wrote:
> Can you tell me the differences?
> Also what do you mean by - depending also on what you mean by 'now'? I
Please tell me what kernel version you're referring to.
> gave now as a time parameter to shutdown command. How can it be
> interpreted in a different way?
Sorry, I have misunderstood your post (the "now" doesn't look as a part of the
command).
Greetings,
Rafael
> -----Original Message-----
> From: Rafael J. Wysocki [mailto:rjw@sisk.pl]
> Sent: 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" 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').
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: what is the difference between shutdown command and writing to /sys/power/state
2007-09-20 0:09 ` Rafael J. Wysocki
@ 2007-09-20 17:53 ` Agarwal, Lomesh
2007-09-20 18:11 ` Agarwal, Lomesh
1 sibling, 0 replies; 7+ messages in thread
From: Agarwal, Lomesh @ 2007-09-20 17:53 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: linux-kernel
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] 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, Lomesh wrote:
> Can you tell me the differences?
> Also what do you mean by - depending also on what you mean by 'now'? I
Please tell me what kernel version you're referring to.
[Agarwal, Lomesh] 2.6.18
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: what is the difference between shutdown command and writing to /sys/power/state
2007-09-20 0:09 ` Rafael J. Wysocki
2007-09-20 17:53 ` Agarwal, Lomesh
@ 2007-09-20 18:11 ` Agarwal, Lomesh
2007-09-20 20:25 ` Rafael J. Wysocki
1 sibling, 1 reply; 7+ messages in thread
From: Agarwal, Lomesh @ 2007-09-20 18:11 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: linux-kernel
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.
Thanks,
Lomesh
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] 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, Lomesh wrote:
> Can you tell me the differences?
> Also what do you mean by - depending also on what you mean by 'now'? I
Please tell me what kernel version you're referring to.
> gave now as a time parameter to shutdown command. How can it be
> interpreted in a different way?
Sorry, I have misunderstood your post (the "now" doesn't look as a part
of the
command).
Greetings,
Rafael
> -----Original Message-----
> From: Rafael J. Wysocki [mailto:rjw@sisk.pl]
> Sent: 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" 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').
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what is the difference between shutdown command and writing to /sys/power/state
2007-09-20 18:11 ` Agarwal, Lomesh
@ 2007-09-20 20:25 ` Rafael J. Wysocki
0 siblings, 0 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2007-09-20 20:25 UTC (permalink / raw)
To: Agarwal, Lomesh; +Cc: linux-kernel
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.
It's quite old for current standards. :-)
I'll need to get the source and look into it to be able to answer, so please
give me some time.
BTW, please don't top post.
Greetings,
Rafael
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-09-20 20:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-19 18:50 what is the difference between shutdown command and writing to /sys/power/state Agarwal, Lomesh
2007-09-19 21:34 ` Rafael J. Wysocki
2007-09-19 21:37 ` Agarwal, Lomesh
2007-09-20 0:09 ` Rafael J. Wysocki
2007-09-20 17:53 ` Agarwal, Lomesh
2007-09-20 18:11 ` Agarwal, Lomesh
2007-09-20 20:25 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®