当我打开控制台一段时间后,我会看到以下重复出现的错误(大约每隔一分钟左右):
error 11:54:38.442473 -0400 kernel stateNumber is On
error 11:54:44.443962 -0400 kernel stateNumber is Suspended
error 11:54:59.812599 -0400 kernel stateNumber is On
error 11:55:05.814085 -0400 kernel stateNumber is Suspended
error 11:55:20.683909 -0400 kernel stateNumber is On
error 11:55:26.685270 -0400 kernel stateNumber is Suspended
error 11:55:35.133940 -0400 kernel stateNumber is On
error 11:55:41.135341 -0400 kernel stateNumber is Suspended
error 11:55:44.957541 -0400 kernel stateNumber is On
error 11:55:50.958927 -0400 kernel stateNumber is Suspended
所有这些错误都与内核(AppleIRController)有关,但控制台中没有详细信息可以进一步解释。我设法找到 kext 文件并使用卸载它
sudo kextunload /System/Library/Extensions/com.apple.driver.AppleIRController.kext
但我无法卸载它,因为它有一个实例 1:
(kernel) Can't unload kext com.apple.driver.AppleIRController; classes have instances:
(kernel) Kext com.apple.driver.AppleIRController class AppleIRController has 1 instance.
Failed to unload com.apple.driver.AppleIRController - (libkern/kext) kext is in use or retained (cannot unload).
真的,我只想通过删除 kext 文件或禁用 AppleIRController 来解决控制台中的内核错误。
这篇文章有帮助:
但我仍然无法删除 AppleIRController kext。我最近更新到了 OS Sierra,我怀疑它可能存在一些错误(这只是其中之一)。有什么想法吗?提前谢谢。