I have various Apple macOS systems; all of them have an APC UPS attached, all recognize the UPS and allow shutdown parameter tweaking via obvious methods in the system preferences.
Is there a way to easily get a list of UPS events? I've looked and looked and have never found anything, even in
/var/log/
files.
I do see this in the output of log show
(part of 250+MB of log output):
2023-07-02 17:16:17.376729-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : 44 Type : 2 IV: 0) with key Is Charging
2023-07-02 17:16:17.376740-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : 45 Type : 2 IV: 1) with key Is Charging
2023-07-02 17:16:17.376749-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : d0 Type : 2 IV: 0) with key Power Source State
2023-07-02 17:16:17.376760-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : 66 Type : 1 IV: 100) with key Current Capacity
2023-07-02 17:16:17.376769-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : 68 Type : 1 IV: 6716) with key Time to Empty
2023-07-02 17:16:17.376778-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : 44 Type : 257 IV: 0) with key Is Charging
2023-07-02 17:16:17.376786-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : 45 Type : 257 IV: 1) with key Is Charging
2023-07-02 17:16:17.376794-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : d0 Type : 257 IV: 0) with key Power Source State
2023-07-02 17:16:17.376802-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 84 U : 40 Type : 257 IV: 1200) with key Set Required Voltage
2023-07-02 17:16:17.376810-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 84 U : 30 Type : 257 IV: 1350) with key Voltage
2023-07-02 17:16:17.376818-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : 66 Type : 257 IV: 100) with key Current Capacity
2023-07-02 17:16:17.376825-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : 68 Type : 257 IV: 6716) with key Time to Empty
2023-07-02 17:16:17.376844-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 84 U : 5a Type : 257 IV: 2) with key Enable Audible Alarm
2023-07-02 17:16:17.376866-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 84 U : 40 Type : 257 IV: 1200) with key Set Required Voltage
2023-07-02 17:16:17.376873-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 84 U : 30 Type : 257 IV: 1342) with key Voltage
2023-07-02 17:16:17.376901-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Skipping duplicate element (UP : 85 U : 44 Type : 257 IV: 0) with key Is Charging
2023-07-02 17:16:17.376963-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] Power Source status isACSource : No , isCharging : No , isDischarging : Yes
2023-07-02 17:16:17.377131-0700 0x13a1 Default 0x0 787 0 ioupsd: (IOHIDLib) [com.apple.iohid:ups] dispatchEvent: {
"Current Capacity" = 100;
"Enable Audible Alarm" = 2;
"Is Charging" = 0;
"Max Capacity" = 100;
"Power Source State" = "Battery Power";
"Set Required Voltage" = 120;
"Time to Empty" = 111;
Voltage = 0;
}
2023-07-02 17:16:17.377581-0700 0x20b6f3 Default 0x0 522 0 powerd: [com.apple.powerd:battery] Received power source(psid:5000) update from pid 787:
2023-07-02 17:16:17.377777-0700 0x20b80f Default 0x0 522 0 powerd: [com.apple.powerd:battery] Battery time remaining posted(0x3000000008c006f) Time:111 Source:Batt
2023-07-02 17:16:17.377795-0700 0x20b80f Default 0x0 522 0 powerd: [com.apple.powerd:battery] Battery capacity change posted(0x80064). Capacity:100 Source:Batt
2023-07-02 17:16:17.377808-0700 0x20b80f Default 0x0 522 0 powerd: [com.apple.powerd:battery] Power Source change. Source:Batt
2023-07-02 17:16:17.378407-0700 0x20b6f3 Default 0x0 522 0 powerd: PowerManagement: UPS low power warning
Asked by e40
(149 rep)
Jul 5, 2023, 05:04 PM
Last activity: Jul 7, 2023, 08:01 PM
Last activity: Jul 7, 2023, 08:01 PM