Excessive wakes from Keyboard Maestro per console

I often have trouble with my Macbook Air not staying asleep…decided to check the Console and found something I hadn’t seen before: KM was “caught causing excessive wakeups.” The below are from a search for Keyboard in the log file:

5/26/15 7:00:47.000 PM kernel[0] Apple Internal Keyboard / Trackpad::start Start Succeeded
5/26/15 7:01:09.947 PM Keyboard Maestro Engine[336] Keyboard Maestro Engine: Daemon launched by login window. Initiating login actions.
5/26/15 7:01:19.027 PM Keyboard Maestro Engine[336] Performance: Please update this scripting addition to supply a value for ThreadSafe for each event handler: "/Library/ScriptingAdditions/SIMBL.osax"
5/26/15 7:01:19.285 PM Keyboard Maestro Engine[336] Bartender: Loaded BartenderHelperNinety
5/27/15 2:13:07.000 AM kernel[0] process Keyboard Maestro[336] caught causing excessive wakeups. Observed wakeups rate (per sec): 208; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 101928
5/27/15 9:11:47.629 AM Keyboard Maestro[1636] Keyboard Maestro: Engine is already running
5/27/15 9:11:48.512 AM Keyboard Maestro[1636] Performance: Please update this scripting addition to supply a value for ThreadSafe for each event handler: "/Library/ScriptingAdditions/SIMBL.osax"
5/27/15 9:11:48.000 AM kernel[0] Keyboard Maestro (map: 0xffffff8033c76960) triggered DYLD shared region unnest for map: 0xffffff8033c76960, region 0x7fff94200000->0x7fff94400000. While not abnormal for debuggers, this increases system memory footprint until the target exits.



First thought: if you’re running SIMBL, you’re already living so far out on the edge you shouldn’t be looking at the console…

As per the console message about wakes - without knowing what Keyboard Maestro is doing at the time, there is not much to suggest.

My guess would be that Keyboard Maestro is trying to run a macro while your Mac is mostly asleep at 2AM. Macs do all sorts of weird half-waking states these days, and Keyboard Maestro’s macro processing engine runs at a rate of 1000 times a second, so if the Mac is trying to sleep and Keyboard Maestro is trying to run a macro, you might well get that sort of message until such time as the Mac goes to sleep.

I have a KM macro which automatically puts my Mac back to sleep, after 30 seconds, if it wakes up between the hours of 12:30 AM to 7:30 AM.

1 Like