MacOS randomly turns on display and I don't know why (what do the logs mean?)
My M1 iMac display keeps turning on randomly at night. Every other day, the display will turn on randomly after some time period, then, after staying on for a few seconds or minutes, it will tun off again, just to turn back on at some later time. This is quite annoying, since it also happens in the middle of the night, waking me up (it is in the same room where I usually sleep).
Last night and the week before, I grabbed the logs from the console, when it happened. Here is an excerpt from Oct 5:
Oct 5 03:27:52 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[71646]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
Oct 5 03:27:52 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[71646]): Service exited with abnormal code: 78
Oct 5 03:27:52 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 5 03:28:02 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[71647]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
Oct 5 03:28:02 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[71647]): Service exited with abnormal code: 78
Oct 5 03:28:02 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 5 03:28:03 novosibirsk Console[71645]: BUG in libdispatch client: vnode, monitored resource vanished before the source cancel handler was invoked { 0x600001595680[source], ident: 14 / 0xe, handler: 0xf1510001e2619778 }
Oct 5 03:28:10 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0C000000-0300-0000-0000-000000000000[71631]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:10 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.05000000-0500-0000-0000-000000000000[71629]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:10 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0A000000-0700-0000-0000-000000000000[71627]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:12 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[71648]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
Oct 5 03:28:12 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[71648]): Service exited with abnormal code: 78
Oct 5 03:28:12 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 5 03:28:13 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0E000000-0300-0000-0000-000000000000[71624]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:13 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.09000000-0400-0000-0000-000000000000[71625]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:13 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.08000000-0400-0000-0000-000000000000[71635]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:13 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.04000000-0700-0000-0000-000000000000[71639]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:13 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0F000000-0700-0000-0000-000000000000[71637]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:13 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.02000000-0300-0000-0000-000000000000[71636]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:13 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0B000000-0200-0000-0000-000000000000[71640]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:13 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0D000000-0300-0000-0000-000000000000[71638]): Service exited due to SIGKILL | sent by mds[49199]
Oct 5 03:28:22 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[71649]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
Oct 5 03:28:22 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[71649]): Service exited with abnormal code: 78
Oct 5 03:28:22 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 5 03:28:27 novosibirsk com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.501): Service "com.apple.xpc.launchd.unmanaged.loginwindow.140" tried to register for endpoint "com.apple.tsm.uiserver" already registered by owner: com.apple.TextInputMenuAgent
Oct 5 03:28:32 --- last message repeated 1 time ---And here is another excerpt from Oct 12:
Oct 12 01:38:11 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.08000000-0000-0000-0000-000000000000[16491]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:11 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.07000000-0700-0000-0000-000000000000[16489]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:11 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.05000000-0700-0000-0000-000000000000[16490]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:11 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0C000000-0400-0000-0000-000000000000[16497]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:12 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[16509]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
Oct 12 01:38:12 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[16509]): Service exited with abnormal code: 78
Oct 12 01:38:12 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 12 01:38:12 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.02000000-0200-0000-0000-000000000000[16495]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:12 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.09000000-0300-0000-0000-000000000000[16496]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:13 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.01000000-0500-0000-0000-000000000000[16479]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:15 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0D000000-0700-0000-0000-000000000000[16503]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:15 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.06000000-0700-0000-0000-000000000000[16501]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:20 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0E000000-0400-0000-0000-000000000000[16502]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:21 novosibirsk com.apple.xpc.launchd[1]: Coalition Cache Evicted: app<application.com.cisco.webex.Cisco-WebEx-Start.6913563.6913731(501)> [26909]
Oct 12 01:38:22 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[16513]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
Oct 12 01:38:22 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[16513]): Service exited with abnormal code: 78
Oct 12 01:38:22 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 12 01:38:22 novosibirsk com.apple.appkit.xpc.openAndSavePanelService[16511]: assertion failed: 20G165: libxpc.dylib + 97932 [0E990C5D-C4F7-304A-9714-4409647CC2EF]: 0x89
Oct 12 01:38:28 novosibirsk com.apple.xpc.launchd[1] (com.apple.mdworker.shared.04000000-0100-0000-0000-000000000000[16478]): Service exited due to SIGKILL | sent by mds[49199]
Oct 12 01:38:32 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[16520]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
Oct 12 01:38:32 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[16520]): Service exited with abnormal code: 78
Oct 12 01:38:32 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 12 01:38:42 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[16521]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
Oct 12 01:38:42 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper[16521]): Service exited with abnormal code: 78
Oct 12 01:38:42 novosibirsk com.apple.xpc.launchd[1] (com.hp.PSDrMonitorHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Oct 12 01:38:50 novosibirsk com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.user.501): Service "com.apple.xpc.launchd.unmanaged.loginwindow.140" tried to register for endpoint "com.apple.tsm.uiserver" already registered by owner: com.apple.TextInputMenuAgent
Oct 12 01:38:52 --- last message repeated 1 time ---For reference, I have also linked larger portions of the logs here and here.
I suppose that the log line
(com.apple.xpc.launchd.domain.user.501): Service "com.apple.xpc.launchd.unmanaged.loginwindow.140" tried to register for endpoint "com.apple.tsm.uiserver" already registered by owner: com.apple.TextInputMenuAgentindicates that the login screen has been shown, which pretty good indicates the time when the display turned on.
What else comes to my eye is the mass occurrence of
(com.hp.PSDrMonitorHelper): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.right before. I have absolutely no clue what this line means. Might this be related to the HP printer drivers going crazy and somehow triggering the display to turn on? I have an HP printer.
Is it possible to draw conclusions from the logs on how I might fix the issue with the display turning on randomly?
Reset to default