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.
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?)
Most helpful comment
ACPI: https://files.gitter.im/CosmosOS/Cosmos/v8bF/ACPI.cs