Skip to content

j81: screen off, suspend and resume work - #194

Merged
henrikklee merged 5 commits into
OrchardLinux:mainfrom
ricktav:j81/power
Nov 22, 2026
Merged

henrikklee merged 5 commits into
OrchardLinux:mainfrom
ricktav:j81/power

Conversation

@ricktav

@ricktav ricktav commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Screen off, suspend and resume work on the iPad Air 2 (J81). This sets screen_off, suspend and resume from untested to working, with a CHANGELOG line and the regenerated matrix. It changes no code.

Testing

  • iPad Air 2 Wi-Fi (J81, iPad5,3) running an installed Omarchy (internal storage, j81: internal storage (ANS1) — install and launch Omarchy on the iPad Air 2 #188), kernel 7.3.0-rc1-orchard-apple-4k. The kernel and modules were built from j81: speakers — SmartIO, MCA v1 and MAX98721 on the iPad Air 2 #192's branch (audio); nothing in it touches power management.

  • The kernel offers s2idle only (/sys/power/mem_sleep). omarchy-powerd darkens the screen on idle, locks, and then suspends through logind.

  • Five suspend cycles in one boot: three from idle, woken by the Home button (wakeup_irq=56), and two from a Power press, woken by Power (wakeup_irq=57), one of them with the USB cable unplugged:

    Entered by Cable Asleep Woken by Screen lit after the press Wi-Fi reconnected
    idle in 21 s Home 35 ms 4 s
    idle in 2.5 min Home 34 ms 4 s
    idle in 1 h Home 42 ms 7 s
    Power in 25 s Power 34 ms 4 s
    Power out 3 min Power 34 ms 6 s
  • /sys/power/suspend_stats: 5 successes, 0 failures.

  • dwc2 keeps the USB gadget session over sleep, so the USB network (SSH) stays up. With the cable unplugged during sleep, plugging it back in after the resume brings the USB network back by itself.

  • After the hour-long sleep: Bluetooth came back (a Bluetooth keyboard and the QC45 headphones worked), touch works, and the speakers play.

  • Battery: 66% to 64% over the hour asleep, against roughly 1% per 1.5 minutes awake and busy.

  • Screen off: Power darkens and locks the screen; Power or Home within the ~10 s before suspend lights it again in about 1 ms.

  • tools/catalog/generate matrix --check passes.

🤖 Generated with Claude Code

ricktav and others added 5 commits November 20, 2026 19:17
An iPad Air 2 running Omarchy goes dark when idle or on Power and then
suspends (s2idle) through omarchy-powerd. It suspended and resumed five
times, for 21 seconds to an hour: three times from idle, woken by Home,
and twice from Power, woken by Power, once with the USB cable unplugged.
The display, touch, Wi-Fi, Bluetooth and the USB network came back.
Over the hour asleep the battery dropped about 2%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SmartIO on the A8/A8X (AppleA7IOP version 1), MCA version 1 in the S8000 MCA driver, the MAX98721 speaker amplifier driver, the T7001 NCO, the device tree and a UCM profile; both speakers play in stereo. The headphone jack and the microphones are not part of it. Squashed from ricktav's j81/audio (17aa5eb); patch files renumbered to follow main.
Patch numbers follow main's, and the changelog, compatibility table and
driver catalog are combined with the other J81 changes. ricktav's patches
are unchanged.
@henrikklee
henrikklee marked this pull request as ready for review November 22, 2026 18:08
@henrikklee
henrikklee merged commit efb6fbe into OrchardLinux:main Nov 22, 2026
2 of 4 checks 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.

2 participants