ioreg command
Current ioreg command is fancy and complex. Here's another version that produces the same output and is slihgtly easier to understand:
`echo $(ioreg -rc IOHIDSystem | awk '/HIDIdleTime/{printf "%1d\n", $NF/1000000000}' | tail -1)`
Possibly should switch to the less complex command for the future builds?
issue