I am trying to find a way to intercept the pressing of the computer's power button to run my code.
So far I haven't been able to find any info about this, pointers are appreciated. My OS runs in long mode.
intercept power button?
Re: intercept power button?
Search wiki for ACPI. Could be a hard ride.platatomi wrote:I am trying to find a way to intercept the pressing of the computer's power button to run my code.
So far I haven't been able to find any info about this, pointers are appreciated. My OS runs in long mode.
Re: intercept power button?
You have to support ACPI. The easiest route is to integrate ACPICA.
There's a wiki page for that. It's a relatively easy thing to do. It took me a few hours to do it.
After you have it integrated, you can intercept power button events.
There's a wiki page for that. It's a relatively easy thing to do. It took me a few hours to do it.
After you have it integrated, you can intercept power button events.