Most recent kernel where this bug did not occur: Distribution:Redflag 5.0 Hardware Environment:HP NX6130 Laptop Software Environment:Redflag 5.0, single user, text console mode Problem Description: can't resume from S3, LCD is blank, caps lock/num lock have reaction, but can't shutdown/reboot when typing "halt/reboot" commands under the blank console. Also can't use sys rq to shutdown/reset of the machine (Alt+Sysrq+O) Steps to reproduce: 1. compile 2.6.14-2 kernel on Redfalg5.0, remove almose all unnecessary components, including module support, usb, network, etc. Only enable IDE disk driver, and compile the kernel to a very small image 2. boot the new 2.6.14-2 kernel image with single user and text console mode 3. execut the scripts below: #!/bin/sh vbetool vbestate save > /tmp/delme; echo "begin s3..." > /tmp/log date >> /tmp/log echo "mem" > /sys/power/state sleep 5 echo "now, come back" >> /tmp/log date >> /tmp/log vbetool post; vbetool vbestate restore < /tmp/delme; setfont halt -p 4. machine enters into sleep state, the power button light flickers. CPU fan/IDE device shutdown 5. press power button to resume, IDE/fan begin to run, when press capslock/numlock, they all have reaction 6. but LCD is blank, and can't see the text console, type "halt"/"shutdown", but no reaction. 7. press alt+sysrq+o hasn't reaction too.
Created attachment 6563 [details] hardware configuration
Did S3 even work under the machine before? I mean if this is a recent regression. How about not do the vbe restore in the script?
Created attachment 6564 [details] result of "cat /proc/acpi/dsdt| iasl -d"
Only test kernel 2.6.9,2.6.13,2.6.14 and 2.6.14-2, and they all can't work. Even I remove vbetool lines from the scripts, it still can't resume.
Created attachment 6565 [details] result of acpidump
Created attachment 6566 [details] dmesg
Created attachment 6567 [details] dmesg of kernel 2.6.14-2
Created attachment 6568 [details] kernel configuration file
Created attachment 6569 [details] dmidecode
Created attachment 6570 [details] biosdecode
Created attachment 6571 [details] madt
Created attachment 6572 [details] vpddecode
Created attachment 6573 [details] gcc version
Created attachment 6574 [details] /proc/acpi/wakeup
boot nx6130 with USB hard disc, and remove IDE and unnecessary modules, it can do S3 perfectly. Of course, I am under text console mode and use vbetool to repost graphics card. The kernel is 2.6.14 and distro is Debian
tried the patch on http://www.codon.org.uk/~mjg59/tmp/external-drivers- ide_sleep.dpatch, when sleep, show message: "IDE device ACPI handler is NULL" and can't resume too. also tried hdparm -y /dev/hda, and no good result.
The ide patch mentioned in comment#16 is not complete yet. That is the reason for ACPI HANDLE IS NULL. So, It's not surprise it doesn't work. Could you try to remove error detecting code before invoking _GTM and _STM And hardcode with : For invoking _GTM: { acpi_handle tmp; acpi_get_handle(NULL, \\_SB.C002.C0A6.C1D5, &tmp); status = acpi_evaluate_object(tmp, "_GTM", NULL, &buffer); ... } For invoking _STM: { acpi_handle tmp; acpi_get_handle(NULL, \\_SB.C002.C0A6.C1D5, &tmp); status = acpi_evaluate_object(stat->handle, "_STM", &input, NULL); .. }
sorry, it shoud be: acpi_get_handle(NULL, "\\_SB.C002.C0A6.C1D5", &tmp);
S3 works now in both console mode and x window. Thanks everyone! Here is the conclusion of the method: 1. Update ide.c according the patch and Luming's comments. 2. Use vbetool to restore the graphics.
Then the patch at http://bugzilla.kernel.org/show_bug.cgi?id=2039 should work for you. Please try.
Austin confirmed the patch fixed his issue (http://bugzilla.kernel.org/show_bug.cgi?id=2039)
Hi Austin, is there any chance you can try the piix driver instead of the generic the IDE driver? The IDE mantainer thought the piix driver should work for you without the patch. Thanks!
Shaohua,We will try it soon. Thanks for your help. -- Austin
I seem to have a similar problem with my Dell Inspiron 9300. Suspend to RAM worked up to 2.6.12, after which point it ceased to function, freezing due to an apparent IDE failure on resume (usually the console comes up and remains interactive until I try to run a command, at which point the harddrive light remains continuously on). The machine uses the ICH6 SATA controller with an SATA hard drive. I am presently running the 2.6.15-rc5 kernel. I have attached the output of dmesg, lspci and a dump of the machine's DSDT. I hope this will provide another data point to this bug. Thanks.
Created attachment 6807 [details] Dell Inspiron 9300 DSDT
Created attachment 6808 [details] Dell Inspiron 9300 lspci output
I forgot to mention that the aforementioned patch works with neither the piix nor the generic IDE driver. Don't hesitate to email with any further questions (S3 suspend is quite nice to have in between lectures).
Shaohua, could you tell more about using the piix driver? I want to try it but am not clear about how to use it. Thanks. -Henry
The ata_piix in 2.6.16-rc6 can resume from S3 on Thinkpad T43P and NAPA sdv. Please try if it can work for HP nx6130. Note: please only try 2.6.16-rc6, not the latest stock kernel.
Same bug also appears on my HP nc6220. This patch fixes the problem for me! -> http://oisec.net/~cliff/linux-2.6.15_ide-gtm-stm.diff
Can anyone please verify if the problem still occurs on 2.6.18?
I am still having this problem with HP nx8220 with 2.6.18.2 kernel, but this patch helps: http://bugzilla.kernel.org/show_bug.cgi?id=2039
The failure for the original submitter is gone with the IDE fixes in bug #2039 closing as a duplicate. If the other submitters have issues not fixed by bug #2039 please submit a sighting specific to your system. *** This bug has been marked as a duplicate of bug 2039 ***