Jump to content

[Solved] Ventura 13.6 on Lynnfield i5-750. How to fix sleep, reboot and have full CPU PM?


26 posts in this topic

Recommended Posts

Hello,

 

Trying to make a fully working Ventura 13.6 on very-very old Lynnfield i5-750 (overclocked@3.6Ghz), Gigabyte GA-P55A-UD4 (F15), Non-Metal Radeon 5850. I've applied OCLP, so I have full GPU acceleration and Ventura works pretty solid: benchmarks are close to Win 10. FileVault works, USB ports are mapped with USBMap and work, audio works. I use iMac11,1 which is the closest option (Lynnfield).

Some issues:

  • Fixed Sleep - when I press Speep in top menu or standby is activated by the macos, I see SSDs activity LED is blinking, so it's writing something despite hibernate mode is set to 0, then PC switches off and when I wake it with my mouse of KB, it starts to boot from Bios, so no Standby:
  • Spoiler

    2023-10-08 21:00:44 +0000 Sleep Entering Sleep state due to 'Software Sleep pid=149': Using AC (Charge:0%)
    2023-10-10 19:20:43 +0000 Sleep Entering Sleep state due to 'Software Sleep pid=149':TCPKeepAlive=disabled Using AC (Charge:0%)

    Fixed Partial CPU PM (without P-States):

  • Spoiler

    ioregcpu1.png.5a4da5aa947ffd87047015225aa185b2.png

    ioregcpu2.png.f5e18b3c38a58bb3fa0e6aefa457b78e.pngioregcpu3.png.ece9b6c79bf2a2fdc1ed3c63c2262692.pngioregcpu4.png.29a562730c90779332876c5b7195d1f4.png

     

    Fixed Boot log (Failed to get CPU P States):

  • Spoiler

    2023-10-16 20:18:19.851582+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States!
    2023-10-16 20:18:19.851583+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States!
    2023-10-16 20:18:19.851591+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get max non-turbo PState. Set max non-turbo PState to default value 1
    2023-10-16 20:18:19.851593+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get max non-turbo PState. Set max non-turbo PState to default value 1
    2023-10-16 20:18:19.851925+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States!
    2023-10-16 20:18:19.851927+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States!
    2023-10-16 20:18:19.852256+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States!
    2023-10-16 20:18:19.852258+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States!
    2023-10-16 20:18:19.852587+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States!
    2023-10-16 20:18:19.852589+0000 0x522 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States!

    Fixed Reboot not working (will attach a photo with verbose output for reboot)

  • Fixed (1.1 HID devices are not working, despite having IOHIDFamily Patch) USB 1.1 not working: OCLP Root Patch should fix it with USBInjector1.1.kext, but don't work for me. USB related error in macOS boot log:
  • Spoiler

    2023-10-20 18:46:12.002790+0000 0x93       Default     0x0                  0      0    kernel: (IOPCIFamily) console relocated to 0xf80000000
    2023-10-20 18:46:12.003224+0000 0xc3       Default     0x0                  0      0    kernel: (IOUSBFamily) AppleUSBLegacyRoot@(null): AppleUSBLegacyRoot::init: enabling legacy matching
    2023-10-20 18:46:18.179498+0000 0x263      Error       0x0                  0      0    kernel: (IOUSBFamily) AppleUSBLegacyRoot@(null): AppleUSBLegacyRoot::usbServiceCallback: controller <private> (EHC1) usbServiceArray <private>(count 1) options 0x00000000
    2023-10-20 18:46:18.179505+0000 0x263      Error       0x0                  0      0    kernel: (IOUSBFamily) AppleUSBLegacyRoot@(null): AppleUSBLegacyRoot::usbServiceCallback: [0] <private>
    2023-10-20 18:46:18.179509+0000 0x263      Error       0x0                  0      0    kernel: (IOUSBFamily) AppleUSBLegacyRoot@(null): AppleUSBLegacyRoot::usbServiceCall: controller <private> (EHC1) usbService <private> (IOUSBHostInterface) options 0x00000000
    2023-10-20 18:46:18.179527+0000 0x263      Error       0x0                  0      0    kernel: (IOUSBFamily) AppleUSBLegacyRoot@(null): AppleUSBLegacyRoot::getOrCreateLegacyControllerGated: located existing AppleUSBController@fd000000
    2023-10-20 18:46:18.179531+0000 0x263      Error       0x0                  0      0    kernel: (IOUSBFamily) AppleUSBLegacyRoot@(null): AppleUSBLegacyRoot::usbServiceCallGated: IOUSBHostInterface <private> (IOUSBHostInterface)
    2023-10-20 18:46:18.179583+0000 0x263      Default     0x0                  0      0    kernel: (IOUSBFamily) USBMSC Identifier (non-unique): 0x00000000 0x8564 0x1000 0x1075, 2
    2023-10-20 18:46:18.193776+0000 0x263      Error       0x0                  0      0    kernel: (IOUSBFamily) AppleUSBLegacyRoot@(null): AppleUSBLegacyRoot::usbServiceCall: usbServiceCallbackGated completed with 0x00000000 and service <private>
    2023-10-20 18:46:18.193782+0000 0x263      Error       0x0                  0      0    kernel: (IOUSBFamily) AppleUSBLegacyRoot@(null): AppleUSBLegacyRoot::usbServiceCall: registering AppleUSBInterface@0 (<private>) for matching
    2023-10-20 18:46:18.195322+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195328+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195334+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195339+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195345+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195350+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195356+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195361+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195367+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195376+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195381+0000 0x263      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195387+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195392+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195397+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195403+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195408+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195414+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195419+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195424+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195430+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195435+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195441+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195446+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195452+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195805+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195823+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195829+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195834+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195839+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195845+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195850+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195859+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195864+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195869+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195874+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195883+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195889+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195894+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails
    2023-10-20 18:46:18.195899+0000 0x320      Default     0x0                  0      0    kernel: AppleUSBInterface: family specific matching fails

     

  • kernel_task/coreduetd sometimes use 1 core at 100%, to fix it I have to reboot, then the issue can go away or sometimes I need to reboot several times. VoodooTSCSync is installed. This issue can be ralated to firmware throttling:

https://support.apple.com/en-gb/102172
 

Quote

 

If kernel_task is using a large percentage of your Mac CPU

One of the functions of the kernel task process is to help manage the temperature of your CPU. Activity Monitor may show that a system process called kernel_task is using a large percentage of your CPU and during this time you may notice more fan activity. One of the functions of kernel_task is to help manage CPU temperature by making the CPU less available to processes that are using it intensely. In other words, kernel_task responds to conditions that cause your CPU to become too hot, even if your Mac doesn't feel hot to you. It does not itself cause those conditions. When the CPU temperature decreases, kernel_task automatically reduces its activity.

 

Spoiler

kernel_task_cpu.png.f8978d2eabd5d3f9c32f7c1d716fb5ce.png

  • Constant MEMORYSTATUS_CMD_CONVERT_MEMLIMIT_MB in macOS logs (can be related to legacy WLAN drivers injected via OC):
  • Spoiler

    23-10-15 18:34:42.068639+0000  localhost runningboardd[197]: (RunningBoard) Created Activity ID: 0x6def, Description: lookupHandleForPredicate
    2023-10-15 18:34:42.069032+0000  localhost runningboardd[197]: (RunningBoard) [com.apple.runningboard:process] _resolveProcessWithIdentifier pid 145 euid 0 auid 0
    2023-10-15 18:34:42.069045+0000  localhost runningboardd[197]: (RunningBoard) [com.apple.runningboard:process] Resolved pid 145 to [osservice<com.apple.AirPlayXPCHelper>:145]
    2023-10-15 18:34:42.069076+0000  localhost runningboardd[197]: (RunningBoard) [com.apple.runningboard:jetsam] memorystatus_control error: MEMORYSTATUS_CMD_CONVERT_MEMLIMIT_MB(-1) returned -1 22 (Invalid argument)
    2023-10-15 18:34:42.069079+0000  localhost runningboardd[197]: (RunningBoard) [com.apple.runningboard:jetsam] memorystatus_control error: MEMORYSTATUS_CMD_CONVERT_MEMLIMIT_MB(0) returned -1 22 (Invalid argument)
    2023-10-15 18:34:42.069183+0000  localhost airportd[338]: (IO80211) Apple80211GetVirtualIfListCopy: @[129.726121] exit -3903/0xfffff0c1, ifCount[0]
    2023-10-15 18:34:42.069631+0000  localhost airportd[338]: (IO80211) Apple80211GetIfListCopy: @[129.726569] enter
    2023-10-15 18:34:42.069633+0000  localhost airportd[338]: (IO80211) _getIfListCopy: enter @[129.726571]
    2023-10-15 18:34:42.069771+0000  localhost airportd[338]: (IO80211) _getIfListCopy/  7687: @[129.726710] getifaddrs nInterfaces[ 20], count[  1]
    2023-10-15 18:34:42.069777+0000  localhost airportd[338]: (IO80211) _getIfListCopy: @[129.726716] exit 0/0x00000000, total time [0.000144], ifCount[1]
    2023-10-15 18:34:42.070363+0000  localhost airportd[338]: (IO80211) Apple80211GetIfListCopy: @[129.727301] exit -3903/0xfffff0c1, ifCount[0]
    2023-10-15 18:34:42.070367+0000  localhost airportd[338]: (IO80211) Apple80211GetVirtualIfListCopy: @[129.727306] enter
    2023-10-15 18:34:42.070369+0000  localhost airportd[338]: (IO80211) _getIfListCopy: enter @[129.727307]
    2023-10-15 18:34:42.070507+0000  localhost airportd[338]: (IO80211) _getIfListCopy/  7687: @[129.727446] getifaddrs nInterfaces[ 20], count[  1]
    2023-10-15 18:34:42.070513+0000  localhost airportd[338]: (IO80211) _getIfListCopy: @[129.727452] exit 0/0x00000000, total time [0.000145], ifCount[1]
    2023-10-15 18:34:42.070572+0000  localhost runningboardd[197]: (RunningBoardServices) [com.apple.runningboard:general] Full encoding handle <private>, with data 56e47ef000000091, and pid 145
    2023-10-15 18:34:42.070704+0000  localhost runningboardd[197]: (RunningBoard) [com.apple.runningboard:process] [osservice<com.apple.AirPlayXPCHelper>:145] Memory Limits: active 0 inactive 0

    Fixed AHCI error in boot logs (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004):

  • Spoiler

    2023-10-15 12:45:36.458074+0000 0x695 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004
    2023-10-15 12:45:36.458092+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] NormalCompletion::4754:Error = 0xe0030004 occurred, tag = 22
    2023-10-15 12:45:36.458098+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] MarkFailedRequests::5124:request->fTag = 22
    2023-10-15 12:45:36.476836+0000 0x695 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] WaitSecsForNotBusy::3905:port 1 PxTFD: 0x150
    2023-10-15 12:45:36.476851+0000 0x695 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030003
    2023-10-15 12:45:36.476870+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6282:
    2023-10-15 12:45:36.476874+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6319:Enabling device features
    2023-10-15 12:45:36.575541+0000 0x950 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004
    2023-10-15 12:45:36.575566+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] SetUltraDMAMode::2539:exiting with failure: 0xE0030004
    2023-10-15 12:45:36.646813+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6325:Calling ResendFromRecoveryQueue
    2023-10-15 12:45:36.653245+0000 0x695 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004
    2023-10-15 12:45:36.653259+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] NormalCompletion::4754:Error = 0xe0030004 occurred, tag = 24
    2023-10-15 12:45:36.653265+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] MarkFailedRequests::5124:request->fTag = 24
    2023-10-15 12:45:36.665785+0000 0x695 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] WaitSecsForNotBusy::3905:port 1 PxTFD: 0x150
    2023-10-15 12:45:36.665803+0000 0x695 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030003
    2023-10-15 12:45:36.665819+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6282:
    2023-10-15 12:45:36.665823+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6319:Enabling device features
    2023-10-15 12:45:36.725468+0000 0x950 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004
    2023-10-15 12:45:36.725494+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] SetUltraDMAMode::2539:exiting with failure: 0xE0030004
    2023-10-15 12:45:36.796815+0000 0x695 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6325:Calling ResendFromRecoveryQueue
    2023-10-15 12:45:37.421991+0000 0x950 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004
    2023-10-15 12:45:37.422006+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] NormalCompletion::4754:Error = 0xe0030004 occurred, tag = 26
    2023-10-15 12:45:37.422011+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] MarkFailedRequests::5124:request->fTag = 26
    2023-10-15 12:45:37.434408+0000 0x950 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] WaitSecsForNotBusy::3905:port 1 PxTFD: 0x150
    2023-10-15 12:45:37.434419+0000 0x950 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030003
    2023-10-15 12:45:37.434434+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6282:
    2023-10-15 12:45:37.434437+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6319:Enabling device features
    2023-10-15 12:45:37.525508+0000 0x695 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004
    2023-10-15 12:45:37.525533+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] SetUltraDMAMode::2539:exiting with failure: 0xE0030004
    2023-10-15 12:45:37.605160+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6325:Calling ResendFromRecoveryQueue
    2023-10-15 12:45:39.791305+0000 0x950 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004
    2023-10-15 12:45:39.791322+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] NormalCompletion::4754:Error = 0xe0030004 occurred, tag = 28
    2023-10-15 12:45:39.791328+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] MarkFailedRequests::5124:request->fTag = 28
    2023-10-15 12:45:39.813813+0000 0x950 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] WaitSecsForNotBusy::3905:port 1 PxTFD: 0x150
    2023-10-15 12:45:39.813826+0000 0x950 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030003
    2023-10-15 12:45:39.813842+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6282:
    2023-10-15 12:45:39.813845+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6319:Enabling device features
    2023-10-15 12:45:39.902020+0000 0x695 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004
    2023-10-15 12:45:39.902046+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] SetUltraDMAMode::2539:exiting with failure: 0xE0030004
    2023-10-15 12:45:40.006711+0000 0x950 Default 0x0 0 0 kernel: (IOAHCIBlockStorage) [AHCI][DISK][001F0210] InitiateDeviceRecovery::6325:Calling ResendFromRecoveryQueue
    2023-10-15 12:45:40.962074+0000 0x695 Default 0x0 0 0 kernel: (AppleAHCIPort) [AHCI][PRT][001F0210] AbortCommands::5381:port 1 - called, deviceWithError -1, errCode = 0xe0030004

     

ioregcpu1.png

ioregcpu2.png

ioregcpu3.png

ioregcpu4.png

kernel_task_cpu.png

Edited by mrmacdi2
On 10/20/2023 at 8:17 PM, FirstTimeCustomac said:

Can you post your current EFI and ACPI dump?

Sure!

DSDT.aml

OC/Kexts

AppleALC.kext
CryptexFixup.kext
FeatureUnlock.kext
Lilu.kext
NoAVXFSCompressionTypeZlib-AVXpel.kext
RSRHelper.kext
RTCMemoryFixup.kext
RealtekRTL8111.kext
RestrictEvents.kext
SMCProcessor.kext
SMCSuperIO.kext
USBToolBox.kext
UTBMap.kext
VirtualSMC.kext
VoodooTSCSync.kext
WhateverGreen.kext

On 10/20/2023 at 10:00 PM, cankiulascmnfye said:

I've tried injecting them, but Ventura freezes 10-15 seconds after boot without KP etc (I was disabling DummyPowerManagement in OC when these kexts were used)

My CPU is overclocked: 3.6Ghz instead of stock 2.6, so I think it can be the issue as well. Will test without overclocking.

Edited by mrmacdi2
5 hours ago, Slice said:

CPU PM depends on SMBIOS. Change model to something else for example Mac mini.

The closest SMBios for my CPU is iMac11,1 (Lynnfield). Haven't found Mac Mini with Lynnfiled.

19 hours ago, mrmacdi2 said:

USB 1.1 not working: OCLP Root Patch should fix it with USBInjector1.1.kext, but don't work for me. USB related error in macOS boot log:

BTW I also have this patch enabled in OC: IOHIDFamily Patch which forces _isSingleUser

Some update: I've tried one more time adding AppleIntelCPUPowermanagement.kext, AppleIntelCPUPowerManagemantClient.kext and ASPP-Override.kext, disabling DummyPowerManagement in OC, using iMac11,1 SMBios and it's not freezes anymore even with overclocking!

But in IOReg I see that PowerStates are missing, but they are available when CPU runs at stock clock. Is it bug or feature?

 

Also coreduetd is jeavily using my CPU - will keep an eye on it.

Edited by mrmacdi2
  • Like 1
5 hours ago, mrmacdi2 said:

Sure!

DSDT.aml 20.94 kB · 2 downloads config_insanely.plist 38.91 kB · 2 downloads

OC/Kexts

AppleALC.kext
CryptexFixup.kext
FeatureUnlock.kext
Lilu.kext
NoAVXFSCompressionTypeZlib-AVXpel.kext
RSRHelper.kext
RTCMemoryFixup.kext
RealtekRTL8111.kext
RestrictEvents.kext
SMCProcessor.kext
SMCSuperIO.kext
USBToolBox.kext
UTBMap.kext
VirtualSMC.kext
VoodooTSCSync.kext
WhateverGreen.kext

I've tried injecting them, but Ventura freezes 10-15 seconds after boot without KP etc (I was disabling DummyPowerManagement in OC when these kexts were used)

My CPU is overclocked: 3.6Ghz instead of stock 2.6, so I think it can be the issue as well. Will test without overclocking.

 

 

Well, if you generate an EFI with OCLP for iMac11,1 and check then contents of the kext folder as well as the config you will see that these kexts are required for Lynnfield CPUs.

2 hours ago, Slice said:

Set macmini no matter if it has other cpu.

Will it improve chances with sleep or it fixes something else?

2 hours ago, cankiulascmnfye said:

 

 

Well, if you generate an EFI with OCLP for iMac11,1 and check then contents of the kext folder as well as the config you will see that these kexts are required for Lynnfield CPUs.

I’ve used OCLP only for root patching, OC confit I did myself long time ago and I tune it for new versions of macOS periodically)

OCLP adds kexts and fixes especially for real macs, so for my PC it’s a little bit overwhelming with irrelevant stuff.

Edited by mrmacdi2
7 hours ago, mrmacdi2 said:

Some update: I've tried one more time adding AppleIntelCPUPowermanagement.kext, AppleIntelCPUPowerManagemantClient.kext and ASPP-Override.kext, disabling DummyPowerManagement in OC, using iMac11,1 SMBios and it's not freezes anymore even with overclocking!

But in IOReg I see that PowerStates are missing, but they are available when CPU runs at stock clock. Is it bug or feature?

 

Also coreduetd is jeavily using my CPU - will keep an eye on it.

Looks like the fix for me was in a new patched DSDT for my MB, which I’ve found, without it my PC was freezing after boot.

And that’s why without it injecting hasn’t worked previously.

17 hours ago, mrmacdi2 said:

Will it improve chances with sleep or it fixes something else?

I’ve used OCLP only for root patching, OC confit I did myself long time ago and I tune it for new versions of macOS periodically)

OCLP adds kexts and fixes especially for real macs, so for my PC it’s a little bit overwhelming with irrelevant stuff.

 

I've analyzed the config and fiiles OCLP generates for macs and created instruction of files and settings that are required for Wintel Systems.

 

https://github.com/5T33Z0/OC-Little-Translated/blob/main/14_OCLP_Wintel/Nehalem-Westmere_Ventura.md#config-edits

I’ve fixed the Reboot issue using FadtEnableReset quirk in OC, also fixed USB1.1 - added deprecated kexts to inject via OC, because OCLP root patch requires these kexts to be injected for USB1.1 to work properly.

4 hours ago, cankiulascmnfye said:

 

I've analyzed the config and fiiles OCLP generates for macs and created instruction of files and settings that are required for Wintel Systems.

 

https://github.com/5T33Z0/OC-Little-Translated/blob/main/14_OCLP_Wintel/Nehalem-Westmere_Ventura.md#config-edits

Thanks! I seen it before - extremely valuable source of information.

On 10/21/2023 at 3:22 PM, mrmacdi2 said:

Some update: I've tried one more time adding AppleIntelCPUPowermanagement.kext, AppleIntelCPUPowerManagemantClient.kext and ASPP-Override.kext, disabling DummyPowerManagement in OC, using iMac11,1 SMBios and it's not freezes anymore even with overclocking!

But in IOReg I see that PowerStates are missing, but they are available when CPU runs at stock clock. Is it bug or feature?

 

Also coreduetd is jeavily using my CPU - will keep an eye on it.

Hi there, Stephen here.

 

Where do you add those AppleIntel files and how. I have a crashing issue with one important application.

 

Thanks.

Regards,

Stephen

17 hours ago, Stephen Mannheim said:

Hi there, Stephen here.

 

Where do you add those AppleIntel files and how. I have a crashing issue with one important application.

 

Thanks.

Regards,

Stephen

Hi, in OC. Your signature is empty, so it's not clear what you are talking about.

Edited by mrmacdi2

I've almost fixed sleep: it goes to sleep well, wakes up easily, but USB devices are disconnected and ejected when going to sleep, looks like USB power not supplied.

It's a workaround, will try to patch _PTS in DSDT later.

AHCI errors in logs also fixed with AHCI kext patch.

Edited by mrmacdi2
On 10/21/2023 at 11:40 PM, Slice said:

Set Macmini5,2 which has SandyBridge CPU just to see what will change. For example CPU Power Management.

CPU PM works fine at stock freq using iMac11,1 (PStates, CStates are there):

Spoiler

ioregcpu_pstates.thumb.png.66f0ce08454c98aedb6e292f6d65f0bb.png

But when I use overclocking, PStates disappear(

Spoiler

Will add screen later

Also, despite having EIST (Enhanced Speed Step enabled in Bios), CPU PM uses only 2 multipliers: x9 and x20/x21 for all cores. HWMonitor shows CPU Package Multiplier, not per core, so maybe this behavior is OK:

Spoiler

cpu_no_eist3.png.4e8c260085965c4e90c599962420dd5b.png

 

cpu_no_eist.png.52bb65f650a058ccb3a40bb3610a187a.png

 

Edited by mrmacdi2

_PTS in my MB:

Method (\_PTS, 1, NotSerialized)  // _PTS: Prepare To Sleep
    {
        Local0 = (Arg0 | 0xF0)
        DBG1 = Local0
        OSTP ()
        If ((Arg0 == 0x01)){}
        If ((Arg0 == 0x03)){}
        If ((Arg0 == 0x05))
        {
            SMIP = 0x99
        }

        If ((Arg0 == 0x04))
        {
            If (!PICF)
            {
                Sleep (0x64)
            }
        }
    }

 

Strange, now I see PStates in overclocked state in IOReg just after reboot:

Spoiler

overclocked_pstates.thumb.png.bd5448043c776fb44cbfdcafd82ec228.png

What I did is switched to FakeSMC3 instead of VirtualSMC and enabled EIST (Enhanced Speed Step) in Bios.

image.png.651dbbf69a3da1246c1de7c03971a419.png

Edited by mrmacdi2
  • Like 1
On 10/21/2023 at 11:40 PM, Slice said:

Set Macmini5,2 which has SandyBridge CPU just to see what will change. For example CPU Power Management.

I'll try it, because Speed Step is quite limited at the moment: only 2 states - Low and High, no states in between despite PStates are in IOReg.

On 10/23/2023 at 6:20 PM, mrmacdi2 said:

I've almost fixed sleep: it goes to sleep well, wakes up easily, but USB devices are disconnected and ejected when going to sleep, looks like USB power not supplied.

Fixed after renaming USB controllers via ACPI patch in OC . Now USB devices are not disconnected when PC sleeps.

 

But USB 1.1 HID devices are not working when I connect them directly to USB ports and not via USB Hub, despite having IOHIDFamily Patch, OCLP root patch to enable USB 1.1 and injecting AppleUSBUHCI.kext and AppleUSBUHCIPCI.kext.

Edited by mrmacdi2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...