lesgrieve / lockunlock

macOS script to display log in/out time
Apache License 2.0
11 stars 1 forks source link

missing wake/unlock entry for macOS 13.4.1 Ventura #2

Open scguo opened 1 year ago

scguo commented 1 year ago

I have been using this script for a few days and it seems to catch all uses of my Mac Mini. Today I ended up not seeing my current unlock entry.

I think the relevant wake entry would be found using: com.apple.message.domain: com.apple.sleepwake.waketime com.apple.message.waketype: Full Wake from Deep Idle from the powerd process under "Mac Analytics Data"

I could not find any source of a login event but I think a helpful metric may be "Screen Time->Pickups" ?

scguo commented 1 year ago

After digging through the loginwindow log I found this event that may be a positive indicator of successes and failures: 2023-07-08 15:12:39.267953-0400 localhost loginwindow[45210]: [com.apple.loginwindow.logging:Standard] -[LWKeybagSupport messagetraceKeybagUnlockResult:success:] | Calling AnalyticsSendEvent with domain: com.apple.login.keybagunlockresult.fus, and result: { UnlockSuccess = YES; }