Skip to content

Add macOS PowerLog sleep and wake, user idle, frontmost app and time zone - #328

Merged
abrignoni merged 1 commit into
mainfrom
feat/macos-powerlog
Sep 27, 2026
Merged

abrignoni merged 1 commit into
mainfrom
feat/macos-powerlog

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Adds macOS PowerLog support. Four artifacts from the live database and its gzip archives in /private/var/db/powerlog/Library/BatteryLife:

  • Sleep and Wake (PLSleepWakeAgent_EventForward_PowerState): state and event codes, wake type and wake reason from the side tables, sleep triggers, UUID and logged time
  • User Idle
  • Frontmost App
  • Time Zone

Times are corrected with PowerLog's own time offset table, using every database in the folder together. A row that several databases hold is reported once, with each database listed. Codes are reported as stored.

🤖 Generated with Claude Code

…zone

Reads PowerLog's live database and its gzip archives under
/private/var/db/powerlog/Library/BatteryLife into four artifacts. Times are corrected with
PowerLog's own time offset table, using the entries of every database in the folder together,
and a row that several databases hold is reported once, with each database listed. State,
event and other codes are reported as stored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit 6207959 into main Sep 27, 2026
11 checks passed
@abrignoni
abrignoni deleted the feat/macos-powerlog branch September 27, 2026 09:20
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