Repository navigation
iio: aop_als: add opt-in J613 system-sleep report quiescing - #152
Draft
tonibergholm wants to merge 3 commits into
Draft
tonibergholm wants to merge 3 commits into
tonibergholm wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
J613 ambient-light reports continue during s2idle. This draft adds an opt-in ALS suspend/resume candidate: with
aop_als.j613_suspend_quiesce=1onapple,j613, ordinary system suspend sets the report interval to zero and resume restores 200000 us. Defaults remain unchanged. Failed suspend attempts to restore reporting before returning the error.The first commit adds opt-in ordinary system PM callbacks to the Rust platform adapter (
HAS_PM=falseby default). The second uses them in the ALS driver. Runtime PM, noirq and hibernation callbacks are outside this draft. Lid-angle reporting is unchanged.Test machine: MacBook Air 13-inch M3 (2024), J613 / T8122, Omarchy. OS firmware 14.7, system firmware 27.0, m1n1-aurora package 1.6.1.aurora17-5. Local display/camera modules and experimental CPU thermal DT bindings were present during the .20 tests; GPU remained capped at state 2. No firmware or calibration contents are included.
Validation:
aurora-2026.10.17.20, kernel7.1.12-2-20261017.20-sep-ARCH, sourcec46d7dcdb8712ea9aeb0ce47b439ffae76371e55.The earlier .19 longer candidate run reduced AOP interrupt frequency to about 1 Hz, but the sequential battery comparisons did not establish an energy saving. The .20 short test's charge gauge increased. No battery-saving claim follows.
This is draft review material: broader/repeated-cycle reliability, firmware error paths and other boards remain unqualified. It was built against .20, not the entire current development head; the two original affected files were verified byte-identical at base
339ea0487dfce434f8769d39046db95be03f6e48. Review of the generic Rust PM adapter and maintainer preference for the opt-in design are requested. Kernel DCO sign-off remains pending author certification before this is ready for submission/merge.Evidence: build and awake loads, .20 native sleep, .19 longer comparison.
Prepared with Codex assistance; physical wake/unlock checks were confirmed by the owner at the laptop.
Submission follow-up: head
1d1f5c3e7fd2800fb73741a63ccb5e356dfa0a92differs from native-tested843b84dfccd3c1471b8f7ec843fcebb60125e975only by shortening the module-parameter description. The .20 module rebuild passed without warnings/errors; strict checkpatch on the source diff reports 0 errors and 0 warnings. This description-only revision has not been loaded for another native cycle. No hosted checks were reported when inspected.