Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proper ACPI support #2503

Open
9xbt opened this issue Dec 11, 2022 · 18 comments
Open

Add proper ACPI support #2503

9xbt opened this issue Dec 11, 2022 · 18 comments
Assignees
Labels
Complexity: High Enhancement PR Submitted For issues where a WIP PR exists which fixes the problem. Priority: High Work in progress

Comments

@9xbt
Copy link
Contributor

9xbt commented Dec 11, 2022

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

@9xbt 9xbt changed the title Add ACPI read support Add ACPI support Dec 11, 2022
@zarlo
Copy link
Member

zarlo commented Dec 12, 2022

@AsertCreator
Copy link
Contributor

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

@zarlo
Copy link
Member

zarlo commented Dec 12, 2022

yes that can be implemented

@zarlo
Copy link
Member

zarlo commented Dec 12, 2022

i would wait for #2288 but

@ghost
Copy link

ghost commented Dec 12, 2022

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
Copy link
Contributor Author

9xbt commented Dec 15, 2022

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

@AsertCreator
Copy link
Contributor

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

@AsertCreator
Copy link
Contributor

but i dont know if we can detect acpi button rn

@9xbt
Copy link
Contributor Author

9xbt commented Dec 16, 2022

okay

@MishaTy
Copy link
Contributor

MishaTy commented Dec 19, 2022

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

@MishaTy MishaTy changed the title Add ACPI support Add proper ACPI support Dec 19, 2022
@MishaTy MishaTy self-assigned this Dec 19, 2022
@MishaTy MishaTy added Enhancement Complexity: High Priority: High PR Submitted For issues where a WIP PR exists which fixes the problem. Work in progress labels Dec 19, 2022
@9xbt
Copy link
Contributor Author

9xbt commented Oct 9, 2023

Is this fixed @MishaTy ?

@MishaProductions
Copy link
Member

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

@ADev531
Copy link

ADev531 commented Oct 27, 2023

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

@zarlo
Copy link
Member

zarlo commented Oct 27, 2023

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
Copy link

ADev531 commented Dec 6, 2023

Is there an updates?

@valentinbreiz
Copy link
Member

valentinbreiz commented Dec 6, 2023

Is there an updates?

Yes LAI is being ported to Cosmos by @MishaProductions

image

@ADev531
Copy link

ADev531 commented Jan 28, 2024

is there update again? its going great, i think

@9xbt 9xbt mentioned this issue May 25, 2024
@ADev531
Copy link

ADev531 commented Nov 19, 2024

Will this stop and continue at gen 3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: High Enhancement PR Submitted For issues where a WIP PR exists which fixes the problem. Priority: High Work in progress
Projects
None yet
Development

No branches or pull requests

7 participants