Anonymous user
UACPI: Difference between revisions
→Hooking Up the Power Button
[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).▼
▲
▲
<source lang="c">
|