mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* s2disk: system powers up again after power off
@ 2008-07-15 12:47 Martin Michlmayr
  2008-07-15 13:05 ` Avuton Olrich
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Michlmayr @ 2008-07-15 12:47 UTC (permalink / raw)
  To: linux-kernel, Rafael J. Wysocki

When I use s2disk to suspend my HP 2510p notebook, it writes
everything to disk, and powers off... but after 2-3 seconds it often
powers on again.  This doesn't happen all the time but quite
frequently (definitely in the majority of cases).

I believe I've never seen this when I use "halt" to power off the
machine (but I don't use halt very often).

Any idea?
-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-15 12:47 s2disk: system powers up again after power off Martin Michlmayr
@ 2008-07-15 13:05 ` Avuton Olrich
  2008-07-15 20:24   ` Rafael J. Wysocki
  0 siblings, 1 reply; 14+ messages in thread
From: Avuton Olrich @ 2008-07-15 13:05 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: linux-kernel, Rafael J. Wysocki

On Tue, Jul 15, 2008 at 5:47 AM, Martin Michlmayr <tbm@cyrius.com> wrote:
> When I use s2disk to suspend my HP 2510p notebook, it writes
> everything to disk, and powers off... but after 2-3 seconds it often
> powers on again.  This doesn't happen all the time but quite
> frequently (definitely in the majority of cases).
>
> I believe I've never seen this when I use "halt" to power off the
> machine (but I don't use halt very often).
>
> Any idea?

Ugh, this happens here too, this started occuring before 2.6.25 but
every time I try to bisect it takes hours and I end up screwing up
somewhere along the way, so I haven't had time to bisect this
correctly.
-- 
avuton
--
 "I've got a fever. And the only prescription is more cowbell." --
Christopher Walken

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-15 13:05 ` Avuton Olrich
@ 2008-07-15 20:24   ` Rafael J. Wysocki
  2008-07-15 22:48     ` Avuton Olrich
  2008-07-16 12:36     ` Martin Michlmayr
  0 siblings, 2 replies; 14+ messages in thread
From: Rafael J. Wysocki @ 2008-07-15 20:24 UTC (permalink / raw)
  To: Avuton Olrich; +Cc: Martin Michlmayr, linux-kernel

On Tuesday, 15 of July 2008, Avuton Olrich wrote:
> On Tue, Jul 15, 2008 at 5:47 AM, Martin Michlmayr <tbm@cyrius.com> wrote:
> > When I use s2disk to suspend my HP 2510p notebook, it writes
> > everything to disk, and powers off... but after 2-3 seconds it often
> > powers on again.  This doesn't happen all the time but quite
> > frequently (definitely in the majority of cases).
> >
> > I believe I've never seen this when I use "halt" to power off the
> > machine (but I don't use halt very often).
> >
> > Any idea?
> 
> Ugh, this happens here too, this started occuring before 2.6.25 but
> every time I try to bisect it takes hours and I end up screwing up
> somewhere along the way, so I haven't had time to bisect this
> correctly.

Please try to put "shutdown method = shutdown" into the s2disk's configuration
file and see what happens in that case.

Thanks,
Rafael




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-15 20:24   ` Rafael J. Wysocki
@ 2008-07-15 22:48     ` Avuton Olrich
  2008-07-15 22:59       ` Rafael J. Wysocki
  2008-07-16 12:36     ` Martin Michlmayr
  1 sibling, 1 reply; 14+ messages in thread
From: Avuton Olrich @ 2008-07-15 22:48 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Martin Michlmayr, linux-kernel

On Tue, Jul 15, 2008 at 1:24 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> On Tuesday, 15 of July 2008, Avuton Olrich wrote:
>> On Tue, Jul 15, 2008 at 5:47 AM, Martin Michlmayr <tbm@cyrius.com> wrote:
>> > When I use s2disk to suspend my HP 2510p notebook, it writes
>> > everything to disk, and powers off... but after 2-3 seconds it often
>> > powers on again.  This doesn't happen all the time but quite
>> > frequently (definitely in the majority of cases).
>> >
>> > I believe I've never seen this when I use "halt" to power off the
>> > machine (but I don't use halt very often).
>> >
>> > Any idea?
>>
>> Ugh, this happens here too, this started occuring before 2.6.25 but
>> every time I try to bisect it takes hours and I end up screwing up
>> somewhere along the way, so I haven't had time to bisect this
>> correctly.
>
> Please try to put "shutdown method = shutdown" into the s2disk's configuration
> file and see what happens in that case.

Anything a little less fancy? I use pm-hibernate, or gnome's Power
Manager to hibernate; I don't even have s2disk installed, sorry I
should have mentioned that.
-- 
avuton
--
 "I've got a fever. And the only prescription is more cowbell." --
Christopher Walken

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-15 22:48     ` Avuton Olrich
@ 2008-07-15 22:59       ` Rafael J. Wysocki
  2008-07-15 23:09         ` Avuton Olrich
  0 siblings, 1 reply; 14+ messages in thread
From: Rafael J. Wysocki @ 2008-07-15 22:59 UTC (permalink / raw)
  To: Avuton Olrich; +Cc: Martin Michlmayr, linux-kernel

On Wednesday, 16 of July 2008, Avuton Olrich wrote:
> On Tue, Jul 15, 2008 at 1:24 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> > On Tuesday, 15 of July 2008, Avuton Olrich wrote:
> >> On Tue, Jul 15, 2008 at 5:47 AM, Martin Michlmayr <tbm@cyrius.com> wrote:
> >> > When I use s2disk to suspend my HP 2510p notebook, it writes
> >> > everything to disk, and powers off... but after 2-3 seconds it often
> >> > powers on again.  This doesn't happen all the time but quite
> >> > frequently (definitely in the majority of cases).
> >> >
> >> > I believe I've never seen this when I use "halt" to power off the
> >> > machine (but I don't use halt very often).
> >> >
> >> > Any idea?
> >>
> >> Ugh, this happens here too, this started occuring before 2.6.25 but
> >> every time I try to bisect it takes hours and I end up screwing up
> >> somewhere along the way, so I haven't had time to bisect this
> >> correctly.
> >
> > Please try to put "shutdown method = shutdown" into the s2disk's configuration
> > file and see what happens in that case.
> 
> Anything a little less fancy? I use pm-hibernate, or gnome's Power
> Manager to hibernate; I don't even have s2disk installed, sorry I
> should have mentioned that.

Martin mentioned s2disk in his original post.  Never mind.

Please try to do "echo shutdown > /sys/power/disk" before hibernation and
see what happens.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-15 22:59       ` Rafael J. Wysocki
@ 2008-07-15 23:09         ` Avuton Olrich
  2008-07-15 23:32           ` Rafael J. Wysocki
  0 siblings, 1 reply; 14+ messages in thread
From: Avuton Olrich @ 2008-07-15 23:09 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Martin Michlmayr, linux-kernel

On Tue, Jul 15, 2008 at 3:59 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> On Wednesday, 16 of July 2008, Avuton Olrich wrote:
>> On Tue, Jul 15, 2008 at 1:24 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
>> > On Tuesday, 15 of July 2008, Avuton Olrich wrote:
>> >> On Tue, Jul 15, 2008 at 5:47 AM, Martin Michlmayr <tbm@cyrius.com> wrote:
>> >> > When I use s2disk to suspend my HP 2510p notebook, it writes
>> >> > everything to disk, and powers off... but after 2-3 seconds it often
>> >> > powers on again.  This doesn't happen all the time but quite
>> >> > frequently (definitely in the majority of cases).
>> >> >
>> >> > I believe I've never seen this when I use "halt" to power off the
>> >> > machine (but I don't use halt very often).
>> >> >
>> >> > Any idea?
>> >>
>> >> Ugh, this happens here too, this started occuring before 2.6.25 but
>> >> every time I try to bisect it takes hours and I end up screwing up
>> >> somewhere along the way, so I haven't had time to bisect this
>> >> correctly.
>> >
>> > Please try to put "shutdown method = shutdown" into the s2disk's configuration
>> > file and see what happens in that case.
>>
>> Anything a little less fancy? I use pm-hibernate, or gnome's Power
>> Manager to hibernate; I don't even have s2disk installed, sorry I
>> should have mentioned that.
>
> Martin mentioned s2disk in his original post.  Never mind.
>
> Please try to do "echo shutdown > /sys/power/disk" before hibernation and
> see what happens.

Well, that certainly works (powers off as expected). Should I be
putting this in my startup scripts or is there something I need to do
to help fix this problem, kernel-wise?

Thanks!
-- 
avuton
--
 "I've got a fever. And the only prescription is more cowbell." --
Christopher Walken

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-15 23:09         ` Avuton Olrich
@ 2008-07-15 23:32           ` Rafael J. Wysocki
  2008-07-16  3:32             ` Avuton Olrich
  0 siblings, 1 reply; 14+ messages in thread
From: Rafael J. Wysocki @ 2008-07-15 23:32 UTC (permalink / raw)
  To: Avuton Olrich; +Cc: Martin Michlmayr, linux-kernel

On Wednesday, 16 of July 2008, Avuton Olrich wrote:
> On Tue, Jul 15, 2008 at 3:59 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> > On Wednesday, 16 of July 2008, Avuton Olrich wrote:
> >> On Tue, Jul 15, 2008 at 1:24 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> >> > On Tuesday, 15 of July 2008, Avuton Olrich wrote:
> >> >> On Tue, Jul 15, 2008 at 5:47 AM, Martin Michlmayr <tbm@cyrius.com> wrote:
> >> >> > When I use s2disk to suspend my HP 2510p notebook, it writes
> >> >> > everything to disk, and powers off... but after 2-3 seconds it often
> >> >> > powers on again.  This doesn't happen all the time but quite
> >> >> > frequently (definitely in the majority of cases).
> >> >> >
> >> >> > I believe I've never seen this when I use "halt" to power off the
> >> >> > machine (but I don't use halt very often).
> >> >> >
> >> >> > Any idea?
> >> >>
> >> >> Ugh, this happens here too, this started occuring before 2.6.25 but
> >> >> every time I try to bisect it takes hours and I end up screwing up
> >> >> somewhere along the way, so I haven't had time to bisect this
> >> >> correctly.
> >> >
> >> > Please try to put "shutdown method = shutdown" into the s2disk's configuration
> >> > file and see what happens in that case.
> >>
> >> Anything a little less fancy? I use pm-hibernate, or gnome's Power
> >> Manager to hibernate; I don't even have s2disk installed, sorry I
> >> should have mentioned that.
> >
> > Martin mentioned s2disk in his original post.  Never mind.
> >
> > Please try to do "echo shutdown > /sys/power/disk" before hibernation and
> > see what happens.
> 
> Well, that certainly works (powers off as expected). Should I be
> putting this in my startup scripts or is there something I need to do
> to help fix this problem, kernel-wise?

The problem is probably that in the "platform" mode, which is the default,
some devices are set up for wake-up and they trigger that immediately after
powering off.  I think we can figure out which devices do it and try to provide
a fix, but that will certainly take time.

In the meantime, if there are no adverse effects of using the "shutdown" mode
on your box, I'd recommend putting the "echo ..." into startup or hibernation
scripts.

BTW, is the problem also present in linux-next?

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-15 23:32           ` Rafael J. Wysocki
@ 2008-07-16  3:32             ` Avuton Olrich
  0 siblings, 0 replies; 14+ messages in thread
From: Avuton Olrich @ 2008-07-16  3:32 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Martin Michlmayr, linux-kernel

On Tue, Jul 15, 2008 at 4:32 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> On Wednesday, 16 of July 2008, Avuton Olrich wrote:
>> On Tue, Jul 15, 2008 at 3:59 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
>> > On Wednesday, 16 of July 2008, Avuton Olrich wrote:
>> >> On Tue, Jul 15, 2008 at 1:24 PM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
>> >> > On Tuesday, 15 of July 2008, Avuton Olrich wrote:
>> >> >> On Tue, Jul 15, 2008 at 5:47 AM, Martin Michlmayr <tbm@cyrius.com> wrote:
>> >> >> > When I use s2disk to suspend my HP 2510p notebook, it writes
>> >> >> > everything to disk, and powers off... but after 2-3 seconds it often
>> >> >> > powers on again.  This doesn't happen all the time but quite
>> >> >> > frequently (definitely in the majority of cases).
>> >> >> >
>> >> >> > I believe I've never seen this when I use "halt" to power off the
>> >> >> > machine (but I don't use halt very often).
>> >> >> >
>> >> >> > Any idea?
>> >> >>
>> >> >> Ugh, this happens here too, this started occuring before 2.6.25 but
>> >> >> every time I try to bisect it takes hours and I end up screwing up
>> >> >> somewhere along the way, so I haven't had time to bisect this
>> >> >> correctly.
>> >> >
>> >> > Please try to put "shutdown method = shutdown" into the s2disk's configuration
>> >> > file and see what happens in that case.
>> >>
>> >> Anything a little less fancy? I use pm-hibernate, or gnome's Power
>> >> Manager to hibernate; I don't even have s2disk installed, sorry I
>> >> should have mentioned that.
>> >
>> > Martin mentioned s2disk in his original post.  Never mind.
>> >
>> > Please try to do "echo shutdown > /sys/power/disk" before hibernation and
>> > see what happens.
>>
>> Well, that certainly works (powers off as expected). Should I be
>> putting this in my startup scripts or is there something I need to do
>> to help fix this problem, kernel-wise?
>
> BTW, is the problem also present in linux-next?

No, it appears to be fixed in linux-next, thanks!
-- 
avuton
--
 "I've got a fever. And the only prescription is more cowbell." --
Christopher Walken

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-15 20:24   ` Rafael J. Wysocki
  2008-07-15 22:48     ` Avuton Olrich
@ 2008-07-16 12:36     ` Martin Michlmayr
  2008-07-16 15:37       ` Rafael J. Wysocki
  1 sibling, 1 reply; 14+ messages in thread
From: Martin Michlmayr @ 2008-07-16 12:36 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Avuton Olrich, linux-kernel

* Rafael J. Wysocki <rjw@sisk.pl> [2008-07-15 22:24]:
> Please try to put "shutdown method = shutdown" into the s2disk's configuration
> file and see what happens in that case.

Yep, this work.

-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-16 12:36     ` Martin Michlmayr
@ 2008-07-16 15:37       ` Rafael J. Wysocki
  2008-07-16 16:01         ` Martin Michlmayr
  2008-08-16 13:48         ` Martin Michlmayr
  0 siblings, 2 replies; 14+ messages in thread
From: Rafael J. Wysocki @ 2008-07-16 15:37 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: Avuton Olrich, linux-kernel

On Wednesday, 16 of July 2008, Martin Michlmayr wrote:
> * Rafael J. Wysocki <rjw@sisk.pl> [2008-07-15 22:24]:
> > Please try to put "shutdown method = shutdown" into the s2disk's configuration
> > file and see what happens in that case.
> 
> Yep, this work.

This is a workaround, though.

Can you check if the problem is present in linux-next, please?

Rafael

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-16 15:37       ` Rafael J. Wysocki
@ 2008-07-16 16:01         ` Martin Michlmayr
  2008-07-16 20:06           ` Rafael J. Wysocki
  2008-08-16 13:48         ` Martin Michlmayr
  1 sibling, 1 reply; 14+ messages in thread
From: Martin Michlmayr @ 2008-07-16 16:01 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Avuton Olrich, linux-kernel

* Rafael J. Wysocki <rjw@sisk.pl> [2008-07-16 17:37]:
> This is a workaround, though.
> 
> Can you check if the problem is present in linux-next, please?

I'm pretty right now because I'm going to OSCON next week, but I can
try rc1 when I'm back.
-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-16 16:01         ` Martin Michlmayr
@ 2008-07-16 20:06           ` Rafael J. Wysocki
  0 siblings, 0 replies; 14+ messages in thread
From: Rafael J. Wysocki @ 2008-07-16 20:06 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: Avuton Olrich, linux-kernel

On Wednesday, 16 of July 2008, Martin Michlmayr wrote:
> * Rafael J. Wysocki <rjw@sisk.pl> [2008-07-16 17:37]:
> > This is a workaround, though.
> > 
> > Can you check if the problem is present in linux-next, please?
> 
> I'm pretty right now because I'm going to OSCON next week, but I can
> try rc1 when I'm back.

That will suffice.

Thanks,
Rafael



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-07-16 15:37       ` Rafael J. Wysocki
  2008-07-16 16:01         ` Martin Michlmayr
@ 2008-08-16 13:48         ` Martin Michlmayr
  2008-08-16 19:09           ` Rafael J. Wysocki
  1 sibling, 1 reply; 14+ messages in thread
From: Martin Michlmayr @ 2008-08-16 13:48 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Avuton Olrich, linux-kernel

* Rafael J. Wysocki <rjw@sisk.pl> [2008-07-16 17:37]:
> > > Please try to put "shutdown method = shutdown" into the s2disk's configuration
> > > file and see what happens in that case.
> > Yep, this work.
> 
> This is a workaround, though.
> 
> Can you check if the problem is present in linux-next, please?

I finally got a chance to test 2.6.27-rc2 and confirm that my laptop
correctly powers off with "shutdown method = platform now".

Do you have any idea which patch might have fixed this?  It would be
nice to include it in Debian's 2.6.26 kernel.
-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: s2disk: system powers up again after power off
  2008-08-16 13:48         ` Martin Michlmayr
@ 2008-08-16 19:09           ` Rafael J. Wysocki
  0 siblings, 0 replies; 14+ messages in thread
From: Rafael J. Wysocki @ 2008-08-16 19:09 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: Avuton Olrich, linux-kernel

On Saturday, 16 of August 2008, Martin Michlmayr wrote:
> * Rafael J. Wysocki <rjw@sisk.pl> [2008-07-16 17:37]:
> > > > Please try to put "shutdown method = shutdown" into the s2disk's configuration
> > > > file and see what happens in that case.
> > > Yep, this work.
> > 
> > This is a workaround, though.
> > 
> > Can you check if the problem is present in linux-next, please?
> 
> I finally got a chance to test 2.6.27-rc2 and confirm that my laptop
> correctly powers off with "shutdown method = platform now".
> 
> Do you have any idea which patch might have fixed this?  It would be
> nice to include it in Debian's 2.6.26 kernel.

There was a series of commits ending with commit
337001b6c42938f49a880b1b8306c3ed771a7e61 ("PCI: Simplify PCI device PM code").

Unfortunately I don't think it's practicable to backport all of those patches.

Thanks,
Rafael


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-08-16 19:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-15 12:47 s2disk: system powers up again after power off Martin Michlmayr
2008-07-15 13:05 ` Avuton Olrich
2008-07-15 20:24   ` Rafael J. Wysocki
2008-07-15 22:48     ` Avuton Olrich
2008-07-15 22:59       ` Rafael J. Wysocki
2008-07-15 23:09         ` Avuton Olrich
2008-07-15 23:32           ` Rafael J. Wysocki
2008-07-16  3:32             ` Avuton Olrich
2008-07-16 12:36     ` Martin Michlmayr
2008-07-16 15:37       ` Rafael J. Wysocki
2008-07-16 16:01         ` Martin Michlmayr
2008-07-16 20:06           ` Rafael J. Wysocki
2008-08-16 13:48         ` Martin Michlmayr
2008-08-16 19:09           ` 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®