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

Prevent AMD laptops from waking sporadically when put to sleep with S0ix #55

Open
1 task
obiwac opened this issue Jan 20, 2025 · 1 comment
Open
1 task
Labels
Milestone

Comments

@obiwac
Copy link
Collaborator

obiwac commented Jan 20, 2025

User Story

As an AMD laptop user I want to be able to put my laptop to sleep using S0ix without it waking sporadically so that I can extend the battery life of my laptop.

Implementation Notes

Currently, suspending to idle on AMD laptops which use S0ix (#32) sporadically wakes because the EC often interrupts the CPU for non-wake events. These events can't be masked as the EC is also responsible for other important wake events such as the lid opening or the power button being pressed which we definitely do want to interrupt the idling CPU. Since they're all emitted by the EC they all share the same GPE number.

I believe an AMD PMC driver, which can be used to tell the SMU (system management unit, a power management chip on AMD CPUs) when the system intends to enter a deep lower power idle state, will fix this problem. See amd-pmc on Linux.

Acceptance Criteria

  • AMD laptops can be put to sleep normally without sporadically waking.
@obiwac obiwac added the Power label Jan 20, 2025
@obiwac obiwac added this to the Q1 - 2025 milestone Jan 20, 2025
@obiwac
Copy link
Collaborator Author

obiwac commented Jan 20, 2025

I have started working on an AMD PMC driver: obiwac/freebsd-s0ix#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant