Subject: port-i386/35747: suspend to ram doesnt works on Asus S5200N
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <avb@avb.bas-net.by>
List: netbsd-bugs
Date: 02/20/2007 20:45:00
>Number:         35747
>Category:       port-i386
>Synopsis:       suspend to ram doesnt works on Asus S5200N
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 20 20:45:00 +0000 2007
>Originator:     Alexander V. Butenko
>Release:        netbsd-4
>Organization:
digiqube
>Environment:
NetBSD ds 4.0_BETA2 NetBSD 4.0_BETA2 (ds) #12: Mon Jan 22 11:38:43 EET 2007  root@ds:/usr/src/sys/arch/i386/compile/ds i386
>Description:
Asus S5200N (similar as Asus S5N). i855GM chipset.
FUJITSU MHT2040AT hdd.

Tests was made in the running netbsd-4 with minimal running processes.

When i disable USB in bios after setting machdep.sleep_state=3 
i'm getting messages:
acpiec0: timeout waiting to EC to respond to EC_COMMAND_QUEURY
acpiec0: GRE command failed AE_ERROR

when USB is enables there is no such errors.

# sysctl -w machdep.acpi_vbios_reset=0
no messages
# sysctl -w machdep.sleep_state=3
acpi0: entering sleep state 3
...and notebook goes to sleep
after a pressing power button i see:

acpi0: good morning
ioapic0: enabling

and then nothing. Machine hangs.

Notebook is very quite. No cooler or hdd sounds.
it seems that hdd is not enabled after waking up.

Let me know if a can provide any additional information.
>How-To-Repeat:
sysctl -w machdep.acpi_vbios_reset=0
sysctl -w machdep.sleep_state=3

>Fix: