Created
February 16, 2025 21:12
-
-
Save lamchau/cb2191febc6d8dcc4e215e58406674ab to your computer and use it in GitHub Desktop.
lnav for pmset -g log
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
{ | |
"pmset": { | |
"_______": "/Users/$USER/.config/lnav/formats/installed", | |
"$schema": "https://lnav.org/schemas/format-v1.schema.json", | |
"title": "macOS pmset", | |
"description": "format for macOS power management setting logs", | |
"timestamp-format": [ | |
"%Y-%m-%d %H:%M:%S %z" | |
], | |
"regex": { | |
"basic": { | |
"pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2} [+-]?\\d{4})\\s+(?<message_type>[\\w\\.\\s]+)\\t+(?<details>.+)$", | |
"multiline": true | |
} | |
}, | |
"value": { | |
"message_type": { | |
"kind": "string", | |
"identifier": true | |
}, | |
"details": { | |
"kind": "string", | |
"identifier": false | |
} | |
}, | |
"sample": [ | |
{ "line": "2025-02-02 20:32:43 -0800 HibernateStats \thibmode=3 standbydelaylow=0 standbydelayhigh=0 \t 10913" }, | |
{ "line": "2025-02-02 20:32:43 -0800 WakeTime \tWakeTime: 0.163 sec" }, | |
{ "line": "2025-02-02 20:32:43 -0800 Kernel Client Acks \tDelays to Sleep notifications: [AppleDCPDPTXRemotePortProxy driver is slow(msg: SetState to 0)(60 ms)]" }, | |
{ "line": "2025-02-02 20:32:43 -0800 Kernel Client Acks \tDelays to Wake notifications: [AppleSN012776Amp driver is slow(msg: SetState to 1)(50 ms)] [AppleDCPDPTXRemotePortProxy driver is slow(msg: SetState to 1)(56 ms)] [AppleCS42L84Audio driver is slow(msg: DidChangeState to 1)(77 ms)] [Codec Output driver is slow(msg: WillChangeState to 1)(77 ms)] [usb-drd2-port-hs driver is slow(msg: SetState to 3)(94 ms)] [AppleConvergedIPCOLYBTControl driver is slow(msg: SetState to 1)(120 ms)] [AppleMultiFunctionManager driver is slow(msg: SetState to 1)(124 ms)] [RTBuddy(ANS2) driver is slow(msg: SetState to 2)(133 ms)] [usb-drd2-port-ss driver is slow(msg: SetState to 3)(147 ms)] [usb-drd2-port-ss driver is slow(msg: DidChangeState to 3)(53 ms)] [AppleDCPDPTXRemotePortProxy driver is slow(msg: SetState to 0)(57 ms)] [AppleDCPDPTXRemotePortProxy driver is slow(msg: SetState to 1)(59 ms)] [Codec Output driver is slow(msg: WillChangeState to 1)(77 ms)] [usb-drd2-port-hs driver is slow(msg: SetState to 3)(94 ms)] [AppleConvergedIPCOLYBTControl driver is slow(msg: SetState to 1)(117 ms)] [AppleMultiFunctionManager driver is slow(msg: SetState to 1)(119 ms)] [RTBuddy(ANS2) driver is slow(msg: SetState to 2)(134 ms)] [usb-drd2-port-ss driver is slow(msg: SetState to 3)(127 ms)] [AppleDCPDPTXRemotePortProxy driver is slow(msg: SetState to 0)(62 ms)] [AppleDCPDPTXRemotePortProxy driver is slow(msg: SetState to 1)(52 ms)] [Codec Output driver is slow(msg: SetState to 1)(76 ms)] [usb-drd2-port-hs driver is slow(msg: SetState to 3)(89 ms)] [AppleConvergedIPCOLYBTControl driver is slow(msg: SetState to 1)(123 ms)] [AppleMultiFunctionManager driver is slow(msg: SetState to 1)(124 ms)] [RTBuddy(ANS2) driver is slow(msg: SetState to 2)(135 ms)] [usb-drd2-port-ss driver is slow(msg: SetState to 3)(127 ms)]" }, | |
{ "line": "2025-02-02 20:32:45 -0800 com.apple.sleepservices.sessionTerminated\tSleepService: window has terminated." } | |
], | |
"highlights": { | |
"charge": { | |
"color": "lime", | |
"pattern": "Charge:\\d+%" | |
}, | |
"duration": { | |
"color": "magenta", | |
"pattern": "(\\d+ (secs|ms))" | |
}, | |
"wake": { | |
"color": "Green3", | |
"pattern": "xWake" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment