CosmosOS / Cosmos

Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!
https://www.goCosmos.org
BSD 3-Clause "New" or "Revised" License
2.89k stars 544 forks source link

Add proper ACPI support #2503

Open 9xbt opened 1 year ago

9xbt commented 1 year ago

I want to detect when the user presses the phisical power button on the PC and save unsaved progress to disk and then shut down and it seems like that feature is not implemented. Can Cosmos devs implement it? Thanks

zarlo commented 1 year ago

https://github.com/CosmosOS/Cosmos/blob/master/source/Cosmos.Core/ACPI.cs

AsertCreator commented 1 year ago

is it possible to detect cosmos running on laptop and read battery status (charging, discharging, percentage). i think it is possible to implement

zarlo commented 1 year ago

yes that can be implemented

zarlo commented 1 year ago

i would wait for https://github.com/CosmosOS/Cosmos/pull/2288 but

ptobuon commented 1 year ago

is it possible to detect cosmos running on laptop and read battery status (charging, discharging, percentage). i think it is possible to implement

That would be cool

9xbt commented 1 year ago

okay yeah nice but how can i detect when the pc wants to shut down @zarlo

AsertCreator commented 1 year ago

oh i know! we need to override power functions. better rewrite entire power class with ability to stop shutdown/restart

AsertCreator commented 1 year ago

but i dont know if we can detect acpi button rn

9xbt commented 1 year ago

okay

MishaTy commented 1 year ago

Basic ACPI support already existed for a long time, however we need an ACPI interrupter and to handle the SCI.

9xbt commented 9 months ago

Is this fixed @MishaTy ?

MishaProductions commented 9 months ago

Nope, still need to figure out how to port LAI correctly as my port has stack issues

ADev531 commented 9 months ago

ACPI has functions like detect cpu temp, standby, get oem, etc. but, rsdt has fadt, we can use usb mouse or keyboard?

zarlo commented 9 months ago

we can use usb mouse or keyboard?

it will help us make drivers for it as it will give use access to better timers

ADev531 commented 7 months ago

Is there an updates?

valentinbreiz commented 7 months ago

Is there an updates?

Yes LAI is being ported to Cosmos by @MishaProductions

image

ADev531 commented 5 months ago

is there update again? its going great, i think