s2disk: system powers up again after power off
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?
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 9 lines · Martin Michlmayr
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.
Signature · 4 lines
avuton -- "I've got a fever. And the only prescription is more cowbell." -- Christopher Walken
Quoted 9 lines · Avuton Olrich
Quoted 8 lines · Martin Michlmayr
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).
Quoted 6 lines
Quoted 1 line
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
Quoted 12 lines · Rafael J. Wysocki
Quoted 11 lines · Avuton Olrich
Quoted 9 lines · Martin Michlmayr
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?
Quoted 7 lines
Quoted 4 lines
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.
Signature · 4 lines
avuton -- "I've got a fever. And the only prescription is more cowbell." -- Christopher Walken
Quoted 18 lines · Avuton Olrich
Quoted 17 lines · Rafael J. Wysocki
Quoted 15 lines · Avuton Olrich
Quoted 9 lines · Martin Michlmayr
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.
Quoted 6 lines
Quoted 2 lines
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
Quoted 22 lines · Rafael J. Wysocki
Quoted 21 lines · Avuton Olrich
Quoted 19 lines · Rafael J. Wysocki
Quoted 9 lines · Avuton Olrich
Quoted 8 lines · Martin Michlmayr
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).
Quoted 6 lines
Quoted 1 line
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.
Quoted 8 lines
Quoted 3 lines
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!
Signature · 4 lines
avuton -- "I've got a fever. And the only prescription is more cowbell." -- Christopher Walken
Quoted 27 lines · Avuton Olrich
Quoted 26 lines · Rafael J. Wysocki
Quoted 24 lines · Avuton Olrich
Quoted 12 lines · Rafael J. Wysocki
Quoted 11 lines · Avuton Olrich
Quoted 9 lines · Martin Michlmayr
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?
Quoted 7 lines
Quoted 4 lines
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.
Quoted 8 lines
Quoted 4 lines
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
Quoted 30 lines · Rafael J. Wysocki
Quoted 29 lines · Avuton Olrich
Quoted 28 lines · Rafael J. Wysocki
Quoted 18 lines · Avuton Olrich
Quoted 17 lines · Rafael J. Wysocki
Quoted 15 lines · Avuton Olrich
Quoted 9 lines · Martin Michlmayr
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.
Quoted 6 lines
Quoted 2 lines
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.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
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!
Signature · 4 lines
avuton -- "I've got a fever. And the only prescription is more cowbell." -- Christopher Walken
Quoted 2 lines · Rafael J. Wysocki
Please try to put "shutdown method = shutdown" into the s2disk's configuration file and see what happens in that case.
Yep, this work.
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 5 lines · Martin Michlmayr
Quoted 2 lines · Rafael J. Wysocki
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
Quoted 3 lines · Rafael J. Wysocki
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.
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 7 lines · Martin Michlmayr
Quoted 3 lines · Rafael J. Wysocki
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
Quoted 7 lines · Rafael J. Wysocki
Quoted 3 lines
Quoted 2 lines
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.
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 7 lines · Martin Michlmayr
Quoted 6 lines · Rafael J. Wysocki
Quoted 3 lines
Quoted 2 lines
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.
Quoted 7 lines
Quoted 1 line
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