Skip to contentSkip to conversation

Help!!!! Help on wake up from S3.

Devel Sean Shoufu Luo 2 participants 2 messages Jan 25, 2010 ACPI component architecture (acpica)

lore
Share & tools
lore

Sean Shoufu Luo

author
#0 lore raw

Maybe anyone here can give suggestion for me to wake up my client from S3.

I'm a newbieeeee on ACPI. But now I need support the feature STR (suspend-to-RAM) on our unix-like OS. I transplanted ACPICA and implemented OS service layer, then initialize core system, and I success to enumerate all devices, success to put it into S1 and wake up from it. Also, I can soft off by putting it into S5.

However, when I'm trying to put it into S3, once AcpiEnterSleepStatePrep() called, I found, the light of power button begin to flash, and when AcpiEnterSleepState() called, the light still flash and the power consuming goes down around 1.1w. Till now, everything looks well, and it looks like Linux's. But the problem comes, when I pressed the power button at the second time, I found the the light of power button become yellow but still flash, lasting about 3/4 seconds, it turned to be green again, and monitor is lighted, system goes up. But, it does't jump to the WakingVector that I install with AcpiSetFirmwareWakingVecotr() before I put it into S3, instead, it booted from IDE ...

I debug it by dump all values set to be registers (including SLP_TYP & SLP_EN) and compared with Linux's to found no difference. Also, I'm sure my hardware is ACPI-compatible, and I use Xubuntu to verify it woks (STR).

Does anybody have same experience or any suggestion on it? Or how can I found why it not jump to waking vector ... any tool to spy what happened in BIOS??

My ACPICA version is 20091214.

Any Suggestion will be greatly appreciate.

Sean
--

Happy is everything!

#1 lore raw
Quoted 6 lines · Sean Shoufu Luo

But the problem comes, when I pressed the power button at the second time, I found the the light of power button become yellow but still flash, lasting about 3/4 seconds, it turned to be green again, and monitor is lighted, system goes up. But, it does't jump to the WakingVector that I install with AcpiSetFirmwareWakingVecotr() before I put it into S3, instead, it booted from IDE ...

The symptoms you are descriping sound like a triple fault, which is very easy to trigger from wake up code. Are you sure your wake up code is not called? I would strongly suggest you to start with a simple infinite loop using a near jump to check if it actually reached your vector.

Joerg