Skip to content

The test branch: a lid close wakes; a charger under a closed lid, and the refused re-entry - #147

Merged
CoreyH merged 2 commits into
mainfrom
docs/s2rcf-lid-charger
Dec 2, 2026
Merged

CoreyH merged 2 commits into
mainfrom
docs/s2rcf-lid-charger

Conversation

@CoreyH

@CoreyH CoreyH commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Notebook and results for the afternoon of 2026-12-02, no code in the repo's tools.

  • A 72-minute lid close on 7.3.0-s2rcf woke on the lid.
  • Lid closed, charger plugged in a minute later: a clean deep wake ("USB-C_plug"), then the kernel's dark-wake re-entry refused by apple_smc_prepare (-16), systemd's fall-back to s2idle, the Mac awake under the closed lid. No hang.
  • One s2idle sleep by itself woke after 61 s (s2idle/s2idle-test.sh, a one-off run as root).
  • PLAN.md: the reply upstream is next.

🤖 Generated with Claude Code

…s it and the kernel's re-entry is refused

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No blocking issues. Three corrections would make the results easier to interpret and reproduce.

Approach Recording each run alongside its raw trace makes the observations checkable before the upstream reply.

Reviewed changes I reviewed the notebook, follow-up plan, captured logs, and one-off s2idle helper.

  • Lid-open wake. The journal records a lid wake after about 72 minutes of deep sleep.
  • Charger wake under a closed lid. The journal records a USB-C wake, apple_smc_prepare returning -EBUSY during deep re-entry, and an immediate unsuccessful systemd fallback to s2idle.
  • Standalone s2idle. The captured freeze write returned zero after 61 seconds with an RTC alarm armed. The helper passed bash -n. I reviewed the hardware runs from their captured evidence.

Non-blocking

  • The prepare error leaves more than one explanation open. At the pinned kernel revision, apple_smc_saved_guard() can return -EBUSY even when the mutex trylock succeeds. Qualify the zero-counter inference with “if the error came from `apple_smc_prepare_guard())” and distinguish a failed trylock from a saved-state rejection. Notebook · Pinned kernel source
  • The Dec 1 breadcrumb leaves the wake sequence open. Even if the charger went in with the lid closed, the retained 0x7e only puts execution in the resume path. “This chain ran then too” should say it could have run, since the Dec 1 record does not establish a USB-C wake, a refused re-entry, or an s2idle fallback. Notebook
  • The helper can report success when the suspend write fails. It saves the freeze status in rc, then exits with the status of the logging pipeline, whose final tail can succeed even after a failed write. Add exit "$rc" after collecting the trace so callers receive the suspend result. Helper

Pullfrog  | Fix it ➔ | View workflow run | Using gpt-6.2-sol | 𝕏

…; the s2idle script exits with the write's status; the reply is posted (Pullfrog on #147)

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

a6603c8 addresses all three findings from the previous review.

  • Clarified the SMC refusal. Distinguished a failed trylock from a saved-state refusal and scoped the no-wait inference to the guard. Pinned kernel source
  • Qualified the December 1 hang hypothesis. The 0x7e breadcrumb establishes that execution reached the resume path. The charger wake and fallback sequence remains a hypothesis.
  • Preserved the freeze write status. The helper returns the captured status after logging and passed bash -n.
  • Recorded the upstream reply. Confirmed the comment on the kernel PR. Upstream reply

Pullfrog  | View workflow run | Using gpt-6.2-sol | 𝕏

@CoreyH
CoreyH merged commit 9571a2d into main Dec 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant