ACPI: shutdown button [Solved]

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
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

ACPI: shutdown button [Solved]

Post by pcmattman »

I've got ACPICA running at the moment and it works well for things like shutting down the system or going to sleep (S3), but I'm currently a bit stuck on the fixed event handlers for the power button and other such devices. In both QEMU and VirtualBox there doesn't seem to be any actual devices for the power button (and no _PRW control methods), but the FADT specifies that it is handled by a fixed event. I have installed a fixed event handler and enabled it but still don't seem to have any response when the (virtual) power button is pushed.

At this point in time, all GPEs are enabled, and the fixed event for the power button has a handler installed via ACPICA, and has been enabled. There are no IRQs that fire upon hitting the power button (I would expect the SCI, but no...).

I'm not sure where to look next - anyone been here before?
Last edited by pcmattman on Mon Sep 24, 2012 12:16 am, edited 1 time in total.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: ACPI: shutdown button

Post by pcmattman »

Fixed! The solution ended up being to use the I/O APIC - after I implemented support, I could start receiving SCIs.

I can now use the ACPI Shutdown feature in VirtualBox, and the "system_powerdown" monitor command in QEMU, to shut down my OS - cool! :)
Post Reply