S3 resume problems on HP compaq nc4010
Hi there,
This seemed like the most likely place to bring up my ACPI woes :) I've recently purchased an HP compaq nc4010 (it's mostly identical to the nc4000) and haven't been able to get ACPI S3 (memory) suspend working.
I've tried a handful of different 2.6 kernels (including 2.6.6-rc3.mm1 for kicks) all of which exhibit the same behaviour. On the whole, ACPI works flawlessly and returns incredibly detailed information about every part of the system.
I can enter S3 sleep by "echo -n 3>/proc/acpi/sleep" or "echo mem>/sys/power/state" and the laptop switches to a console vt, prints a few things which seem reasonable about going to sleep, and powers down.
The wireless goes out, and the power light flashes in a manner I'd expect from a sleeping laptop.
If I reactive the laptop (usually with the power button) the wireless light comes back on, the power light goes green and the fan spins up. But nothing else.
The screen remains black and un-backlit, the keyboard doesn't respond to events (caps lock key doesn't light the light and typing "find /" doesn't produce disk activity) and afaict the network card doesn't come back either (I can't ping the machine from elsewhere).
So it almost entirely seems to be not waking up from sleep.
I've tried the various tricks outlined in the kernel documentation, an all-modules kernel with no framebuffer booted with init=/bin/bash still produces the same behaviour.
I'd like to get this working; are there any further tricks I could try? If not, what's the best way to go about starting to debug *why* this doesn't work?
Thanks,
Scott
(Please Cc: me, I'm not subscribed)
Signature · 2 lines
Have you ever, ever felt like this? Had strange things happen? Are you going round the twist?
A message that is not in the archive (sent off-list or not yet received): 1083777804.4093.71.camel-ad/8hwxc12xSZ/j2TXCDgVaTQe2KTcn/@public.gmane.org
Hi!
Quoted 4 lines
This seemed like the most likely place to bring up my ACPI woes :) I've recently purchased an HP compaq nc4010 (it's mostly identical to the nc4000) and haven't been able to get ACPI S3 (memory) suspend working.
Does ACPI S4 work for you? Try that first, its easier.
Pavel
Signature · 8 lines
When do you have heart between your knees? ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
A message that is not in the archive (sent off-list or not yet received): 20040509015516.GA5487-I/[email protected]
Quoted 7 lines · Pavel Machek
Quoted 4 lines
This seemed like the most likely place to bring up my ACPI woes :) I've recently purchased an HP compaq nc4010 (it's mostly identical to the nc4000) and haven't been able to get ACPI S3 (memory) suspend working.
Does ACPI S4 work for you? Try that first, its easier.
Nope, swsusp does actually resume the keyboard and screen but then locks up. pm-disk doesn't even suspend.
Scott
Signature · 2 lines
Have you ever, ever felt like this? Had strange things happen? Are you going round the twist?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi!
Quoted 9 lines
Quoted 7 lines
Quoted 4 lines
This seemed like the most likely place to bring up my ACPI woes :) I've recently purchased an HP compaq nc4010 (it's mostly identical to the nc4000) and haven't been able to get ACPI S3 (memory) suspend working.
Does ACPI S4 work for you? Try that first, its easier.
Nope, swsusp does actually resume the keyboard and screen but then locks up. pm-disk doesn't even suspend.
What are the last messages? Do you suspend from singleuser mode, no modules?
Pavel
Signature · 9 lines
Horseback riding is like software... ...vgf orggre jura vgf serr. ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
A message that is not in the archive (sent off-list or not yet received): 20040509213919.GA13603-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org
Quoted 5 lines · Pavel Machek
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
This seemed like the most likely place to bring up my ACPI woes :) I've recently purchased an HP compaq nc4010 (it's mostly identical to the nc4000) and haven't been able to get ACPI S3 (memory) suspend working.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Does ACPI S4 work for you? Try that first, its easier.
Nope, swsusp does actually resume the keyboard and screen but then locks up. pm-disk doesn't even suspend.
What are the last messages? Do you suspend from singleuser mode, no modules?
For both S3 and S4 you get a message about switching to the sleep state, S4 you get some messages as it writes the pages to the disk, then the machine powers off.
S3 resume you get nothing, because the screen never comes back (and nothing in the logs either).
S4 you get the messages about restoring from swap, then the screen switches to show the messages it showed whilst suspending and it locks.
Have tried by booting init=/bin/bash with no modules loaded.
Scott
Signature · 2 lines
Have you ever, ever felt like this? Had strange things happen? Are you going round the twist?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi!
Quoted 20 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
This seemed like the most likely place to bring up my ACPI woes :) I've recently purchased an HP compaq nc4010 (it's mostly identical to the nc4000) and haven't been able to get ACPI S3 (memory) suspend working.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Does ACPI S4 work for you? Try that first, its easier.
Nope, swsusp does actually resume the keyboard and screen but then locks up. pm-disk doesn't even suspend.
What are the last messages? Do you suspend from singleuser mode, no modules?
For both S3 and S4 you get a message about switching to the sleep state, S4 you get some messages as it writes the pages to the disk, then the machine powers off.
S3 resume you get nothing, because the screen never comes back (and nothing in the logs either).
Quoted 6 lines
S4 you get the messages about restoring from swap, then the screen switches to show the messages it showed whilst suspending and it locks.
Have tried by booting init=/bin/bash with no modules loaded.
Can you confirm that you did not have intel-agp or similar (AGP or DRI drivers) loaded? Even loading then unloading it hurts.
If so, you can try following tricks....
If you want to trick swsusp/S3 into working, you might want to try:
* go with minimal config, turn off drivers like USB, AGP you don't really need
* turn off APIC and preempt
* use ext2. At least it has working fsck. [If something seemes to go wrong, force fsck when you have a chance]
* turn off modules
* use vga text console, shut down X. [If you really want X, you might want to try vesafb later]
* try running as few processes as possible, preferably go to single user mode.
* due to video issues, swsusp should be easier to get working than S3. Try that first.
Pavel
Signature · 9 lines
Horseback riding is like software... ...vgf orggre jura vgf serr. ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
A message that is not in the archive (sent off-list or not yet received): 20040509215621.GB15307-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org
Quoted 12 lines · Pavel Machek
Quoted 8 lines
S3 resume you get nothing, because the screen never comes back (and nothing in the logs either).
S4 you get the messages about restoring from swap, then the screen switches to show the messages it showed whilst suspending and it locks.
Have tried by booting init=/bin/bash with no modules loaded.
Can you confirm that you did not have intel-agp or similar (AGP or DRI drivers) loaded? Even loading then unloading it hurts.
I deliberately compiled those out as modules, and when booting with init=/bin/bash the agpgart and ati_agp aren't loaded. (if they're loaded, it makes no difference).
Quoted 3 lines
* go with minimal config, turn off drivers like USB, AGP you don't really need
Tried it.
Quoted 2 lines
* turn off APIC and preempt
Tried it.
Quoted 3 lines
* use ext2. At least it has working fsck. [If something seemes to go wrong, force fsck when you have a chance]
Would the filesystem really make a difference to whether it can or can't come back?
Quoted 2 lines
* turn off modules
Tried it.
Quoted 3 lines
* use vga text console, shut down X. [If you really want X, you might want to try vesafb later]
Tried it.
Quoted 3 lines
* try running as few processes as possible, preferably go to single user mode.
Tried it.
Quoted 3 lines
* due to video issues, swsusp should be easier to get working than S3. Try that first.
Doesn't work either. I got swsusp2 to work, but that has to shut down X and unload all the modules otherwise it won't resume; and that takes longer than a simple shutdown and boot -- so I abandoned it. Plus it scared me -- too much pretty :)
Scott
Signature · 2 lines
Have you ever, ever felt like this? Had strange things happen? Are you going round the twist?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi!
Quoted 5 lines
Quoted 3 lines
* use ext2. At least it has working fsck. [If something seemes to go wrong, force fsck when you have a chance]
Would the filesystem really make a difference to whether it can or can't come back?
It should not... but if you damage your reseir/whatever don't come back to me ;-).
Quoted 7 lines
Quoted 3 lines
* due to video issues, swsusp should be easier to get working than S3. Try that first.
Doesn't work either. I got swsusp2 to work, but that has to shut down X and unload all the modules otherwise it won't resume; and that takes longer than a simple shutdown and boot -- so I abandoned it. Plus it scared me -- too much pretty :)
Can you try just without dri/agp with swsusp2? That might do the trick. Try to locate exactly which modules cause problems.
dri/agp are known offenders, and fix is known by now.
Complain to Nigel about prettyness... I certainly did ;-).
Pavel
Signature · 9 lines
Horseback riding is like software... ...vgf orggre jura vgf serr. ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
A message that is not in the archive (sent off-list or not yet received): 20040509232856.GA2504-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org
Hi.
Quoted 10 lines · Pavel Machek
Quoted 7 lines
Quoted 3 lines
* due to video issues, swsusp should be easier to get working than S3. Try that first.
Doesn't work either. I got swsusp2 to work, but that has to shut down X and unload all the modules otherwise it won't resume; and that takes longer than a simple shutdown and boot -- so I abandoned it. Plus it scared me -- too much pretty :)
Can you try just without dri/agp with swsusp2? That might do the trick. Try to locate exactly which modules cause problems.
It should work fine without having to shutdown X, and even better now we have last week's pagedir patch applied.
Quoted 3 lines
dri/agp are known offenders, and fix is known by now.
Complain to Nigel about prettyness... I certainly did ;-).
You can't please everyone :> If you want it to look ugly, turn on debugging info!
Nigel
Signature · 15 lines
Nigel & Michelle Cunningham C/- Westminster Presbyterian Church Belconnen 61 Templeton Street, Cook, ACT 2614. +61 (2) 6251 7727(wk); +61 (2) 6254 0216 (home) Evolution (n): A hypothetical process whereby infinitely improbable events occur with alarming frequency, order arises from chaos, and no one is given credit. ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
Quoted 11 lines · Scott James Remnant
Quoted 7 lines · Pavel Machek
Quoted 4 lines
This seemed like the most likely place to bring up my ACPI woes :) I've recently purchased an HP compaq nc4010 (it's mostly identical to the nc4000) and haven't been able to get ACPI S3 (memory) suspend working.
Does ACPI S4 work for you? Try that first, its easier.
Nope, swsusp does actually resume the keyboard and screen but then locks up. pm-disk doesn't even suspend.
Even with init=/bin/bash? I have reports from people successfully using swsusp on an nc4000.
Please elaborate "does actually resume the keyboard and screen", what does it print before locking up? Do you have $VENDOR-agp loaded? Which kernel version?
Signature · 9 lines
Stefan Seyfried ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
A message that is not in the archive (sent off-list or not yet received): 20040510001943.GC9213-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org
Quoted 5 lines · Stefan Seyfried
Even with init=/bin/bash? I have reports from people successfully using swsusp on an nc4000.
Please elaborate "does actually resume the keyboard and screen", what does it print before locking up? Do you have $VENDOR-agp loaded? Which kernel version?
ok. I was offline writing this, now i see Pavel has already adressed these issues.
Signature · 9 lines
Stefan Seyfried ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3