Pm1ControlRegisterBlock::set_sleep_typ doesn't write SLP_TYPb
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- operating-systems
Research direction
Start at Pm1ControlRegisterBlock::set_sleep_typ and compare its PM1a/PM1b writes with the linked ACPI specification. Determine the API and test coverage needed for separate non-HW-reduced writes and HW-reduced handling; done means the implementation follows the S5 procedure without assuming both registers use the same value.
Written by the indexing model from the issue text.
Description
From the spec:
The current behavior is that the same value is written to both SLP_TYPa and SLP_TYPb.
My recommended solution is to remove the set_sleep_typ method and instead create a function called enter_soft_off (can also have functions for sleep, although my OS is not at the point where I can implement sleep). This function can do the proper procedure, including checking if it is HW reduced and doing the right steps for HW reduced. I can make a PR with this, but currently my test devices (QEMU q35 and Lenovo Z560 both are not HW reduced, so I can't test the HW reduced logic).
- Dominant language
- Rust
- Stars
- 249
- Forks
- 102
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 6
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-osdev/acpi
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
rust-osdev/acpi#383 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rust-osdev/acpi#371 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
rust-osdev/acpi#366 · 3 comments ·
-
Incorrect pkglength can cause panicMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
rust-osdev/acpi#362 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
rust-osdev/acpi#354 ·
Similar issues
-
claim
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#946 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
storytold/craft-libs#5594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
听歌识曲历史跳转后对应音源界面无法返回Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LingyunStudio/RustMusic#16 ·