Skip to content

Power management on MOOS

WaffleBell edited this page Jan 9, 2024 · 5 revisions

This page covers power management and sleep in MOOS, we will go through the way it works so you can use Power more efficiently

ACPI

ACPI(Advanced Configuration and Power Interface) is the main heart of MOOS, it initialises core components like Multi-Core on the CPU, not only that but reading vendor and Device ID's of off PCIe components like sound cards and graphics cards, it also allows the PIT Timer and ACPI timer to work. Another feature is Power Management which is what were going to be talking about

ACPI can also do much more, but at the moment MOOS only has limited capabilities within ACPI, so we can't. Our main mission for now is to try and get battery, AC adapter, temperature, fan, and other critical system events to work

Shutdown

To shutdown the computer you will need to obviously need to decide where and when you want the system to call the ACPI Shutdown. In previous commits and releases to call shutdown you had to use ACPI.Shutdown() but in later releases we did a clean up on some code so we changed the call to Power.Shutdown() to make things easier

Restart/Reboot

To reboot the computer you will need to obviously need to decide where and when you want the system to call the ACPI Reboot. In previous commits and releases to call reboot you had to use ACPI.Restart() but in later releases we did a clean up on some code so we changed the call to Power.Reboot() to make things easier

System Sleep

This feature has not been implemented yet.