ACPI Power off failed on a real hardware

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
melgmry0101b
Member
Member
Posts: 109
Joined: Wed Nov 10, 2010 10:49 am

ACPI Power off failed on a real hardware

Post by melgmry0101b »

Hi everyone,
I was implementing ACPI , i got all data that i want to shutdown the PC , then i enabled the ACPI
after that i sent (SLP_TYPa | SLP_EN) to (PM1a_CN) and if PM1b_CN != 0 , i sent (SLP_TYPb | SLP_EN) to it.
It worked on VPC and Bochs , but it didn't run on my real hardware.
Am i missing anything ?, Should I do anything else to make a real hardware shutdown ?
--------------------------------
Thanks in advance.
Cognition
Member
Member
Posts: 191
Joined: Tue Apr 15, 2008 6:37 pm
Location: Gotham, Batmanistan

Re: ACPI Power off failed on a real hardware

Post by Cognition »

Make sure you're retrieving the correct values from the namespace and writing them to the proper bits. There's also some required AML methods you should run (if they exist) prior to sleep/shutdown. The steps necessary are covered in depth under sections 7.3 and 7.4 of the ACPI 5.0 specification. If you're using ACPICA it provides two functions that will allow you to transition to the soft off state AcpiEnterSleepStatePrep and AcpiEnterSleepState.
Reserved for OEM use.
Post Reply