Cosmos: How to work with ACPI and shut a computer down?

Created on 12 Sep 2016  路  9Comments  路  Source: CosmosOS/Cosmos

Previously, there was a nice function named Cosmos.Sys.Deboot.ShutDown();, but now it's gone. All I found is Cosmos.System.Power.Reboot(); and Cosmos.HAL.Power.Reboot();. I couldn't find any function to turn off the computer. Could you please help me? My C# level is intermediate, so I'm afraid I can't contribute to Cosmos.

Pending User Response Question

Most helpful comment

All 9 comments

If you want you can implement ACPI, there's an implementation somewhere and if you want I can give you the link. If you don't want to implement ACPI you can just use Stop function in your Kernel and shutdown manually

Thanks!

Cosmos will have an ACPI implementation soon(#542) and this issue is a bit old.

Where do I put the ACPI.cs file

ACPI is already implemented in Cosmos.

thank you

You simple have to call: Cosmos.System.Power.Shutdown();

It doesn't have a definition for shutdown(do i have to do using ACPI?)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seba4316 picture seba4316  路  8Comments

fanoI picture fanoI  路  8Comments

artizzq picture artizzq  路  9Comments

lammaurice034 picture lammaurice034  路  5Comments

TFTWPhoenix picture TFTWPhoenix  路  7Comments