UACPI: Difference between revisions

33 bytes removed ,  2 months ago
[unchecked revision][unchecked revision]
No edit summary
Line 175:
 
Note that some of the more modern hardware routes the power button in a more complicated way, via an embedded controller.
 
In order to hook that up you will need to write an EC driver, find the EC device in the AML namespace, attach an address
In order to hook that up you will need to:
space handler to the EC node, then find a power button object in the namespace, attach a notify handler to the device and
- Write an EC driver
then handle notifications with value 0x80 (S0 Power Button Pressed).
In- order to hook that up you will need to write an EC driver, findFind the EC device in the AML namespace, attach an address space handler
space- handler to the EC node, then findFind a power button object in the namespace, attach a notify handler to the device and
then- handleWait for notifications with value 0x80 (S0 Power Button Pressed).
 
<source lang="c">
Anonymous user