Contribute
Register

Stuck at MACH Reboot, update from 10.12.6

Status
Not open for further replies.
Problems:
- CPU PM not implemented
- backlight control not implemented
- AzulPatcher4600.kext not recommended (no idea what it does)
- what is Test2-2016.efi?
- ACPI/origin files are too old (you forgot to press F4... please read "Problem Reporting" carefully). Due to this mistake, I did not check your ACPI patching.
- VirtualBox installed. Remove.
- same for MotoHelperDaemon
- config.plist/SystemParameters/InjectKexts=Yes is wrong. Should be "Detect"
- duplicate kexts installed (do not install any kext to *both* /S/L/E and /L/E as you have with DummyHDA.kext)
- you did not patch ACPI for instant wake

See guides:
https://www.tonymacx86.com/threads/guide-native-power-management-for-laptops.175801/
https://www.tonymacx86.com/threads/...rol-using-applebacklightinjector-kext.218222/
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

- CPU PM fixed
- add backlight control
- delete AzulPatcher4600.kext, but HD4600 black screen sometimes.(https://github.com/coderobe/AzulPatcher4600/releases)
- delete Test2-2016.efi
- lastest ACPI/origin files.
- delete VirtualBox and MotoHelper
- config.plist/SystemParameters/InjectKexts=Detect
- delete duplicate kexts
- add instant wake, which goes ok now.

Code:
[zhuxi@bogon RehabMan-patchmatic]$kextstat|grep -y acpiplat
   15    2 0xffffff7f82420000 0xa5000    0xa5000    com.apple.driver.AppleACPIPlatform (6.1) 1804645B-B360-305E-B1BE-916F5E3E1CC4 <14 13 12 11 7 6 5 4 3 1>
[zhuxi@bogon RehabMan-patchmatic]$kextstat|grep -y appleintelcpu
[zhuxi@bogon RehabMan-patchmatic]$kextstat|grep -y applelpc
  111    0 0xffffff7f824e1000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 7C24E741-BD4A-3917-83AC-E956A03ADC20 <99 12 5 4 3>
[zhuxi@bogon RehabMan-patchmatic]$kextstat|grep -y applehda
ls -l /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*
pmset -g assertions
pmset -g
system_profiler SPSerialATADataType|grep TRIM
  115    1 0xffffff7f822a4000 0x1f000    0x1f000    com.apple.driver.AppleHDAController (280.12) 55162F3D-B7E9-315C-A7E1-C5C4C02F03EC <114 113 92 12 7 6 5 4 3 1>
  136    0 0xffffff7f82b52000 0xb7000    0xb7000    com.apple.driver.AppleHDA (999.1.1fc1) 7FC2BABA-4D4F-34FC-93E2-3E3244DEB73D <135 115 114 113 107 92 6 5 4 3 1>
  138    0 0xffffff7f822c3000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (280.12) 2D6BB587-0D94-3E6D-AFBE-A4A03F37A6A9 <4 3>
[zhuxi@bogon RehabMan-patchmatic]$ls -l /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*
ls: /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*: No such file or directory
[zhuxi@bogon RehabMan-patchmatic]$pmset -g assertions
2018-01-17 15:28:09 +0800
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:
   pid 117(hidd): [0x0000000d0009803f] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968025.3"
    Timeout will fire in 600 secs Action=TimeoutActionRelease
Kernel Assertions: 0x4=USB
   id=500  level=255 0x4=USB mod=01/01/1970, 8:00 AM description=com.apple.usb.externaldevice.1d100000 owner=IOUSBHostDevice
   id=501  level=255 0x4=USB mod=01/01/1970, 8:00 AM description=com.apple.usb.externaldevice.1a100000 owner=IOUSBHostDevice
   id=504  level=255 0x4=USB mod=01/01/1970, 8:00 AM description=com.apple.usb.externaldevice.1d120000 owner=TaiDuGamerMouse
   id=505  level=255 0x4=USB mod=01/01/1970, 8:00 AM description=com.apple.usb.externaldevice.1d140000 owner=USB HD Webcam
Idle sleep preventers: IODisplayWrangler
[zhuxi@bogon RehabMan-patchmatic]$pmset -g
System-wide power settings:
Currently in use:
standby              1
womp                 1
halfdim              1
hibernatefile        /var/vm/sleepimage
powernap             1
gpuswitch            2
networkoversleep     0
disksleep            10
sleep                10
autopoweroffdelay    28800
hibernatemode        3
autopoweroff         1
ttyskeepawake        1
displaysleep         10
standbydelay         10800
[zhuxi@bogon RehabMan-patchmatic]$system_profiler SPSerialATADataType|grep TRIM
          TRIM Support: No
Code:
[zhuxi@bogon RehabMan-patchmatic]$sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f713ba50 [0x7fffb277e980]> { URL = "FakeSMC.kext/ -- file:///Library/Extensions/", ID = "org.netkas.driver.FakeSMC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f711e660 [0x7fffb277e980]> { URL = "IntelGraphicsFixup.kext/ -- file:///Library/Extensions/", ID = "as.lvs1974.IntelGraphicsFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f4621310 [0x7fffb277e980]> { URL = "Lilu.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.Lilu" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f712cff0 [0x7fffb277e980]> { URL = "VoodooPS2Mouse.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Mouse" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f711d410 [0x7fffb277e980]> { URL = "VoodooPS2Controller.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.voodoo.driver.PS2Controller" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f7129dc0 [0x7fffb277e980]> { URL = "VoodooPS2Keyboard.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Keyboard" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f711f150 [0x7fffb277e980]> { URL = "VoodooPS2Trackpad.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Trackpad" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f71176d0 [0x7fffb277e980]> { URL = "FakePCIID.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.FakePCIID" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f4624e00 [0x7fffb277e980]> { URL = "GenericUSBXHCI.kext/ -- file:///Library/Extensions/", ID = "net.osx86.kexts.GenericUSBXHCI" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f46214b0 [0x7fffb277e980]> { URL = "FakePCIID_XHCIMux.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.FakePCIID.XHCIMux" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f7107d00 [0x7fffb277e980]> { URL = "RealtekRTL8111.kext/ -- file:///Library/Extensions/", ID = "com.insanelymac.RealtekRTL8111" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f71063b0 [0x7fffb277e980]> { URL = "FakePCIID_Intel_HDMI_Audio.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Intel-HDMI-Audio" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f70fbcb0 [0x7fffb277e980]> { URL = "ACPIBatteryManager.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f70f9e40 [0x7fffb277e980]> { URL = "FakePCIID_Intel_HD_Graphics.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Intel-HD-Graphics" }
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileUSBLANMerge.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileUSBSwch.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileMTP.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileMS.kext/ is in hash exception list, allowing to load
Kext with invalid signatured (-67030) allowed: <OSKext 0x7fe4f6817480 [0x7fffb277e980]> { URL = "DummyHDA.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.AppleHDA" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f68087e0 [0x7fffb277e980]> { URL = "CodecCommander.kext/ -- file:///System/Library/Extensions/", ID = "org.tw.CodecCommander" }
KernelCache ID: 23A9A97BA2BEE9F7285B6636F5B1D553
 

Attachments

  • attatchments.zip
    4.7 MB · Views: 63
Last edited:
- CPU PM fixed
- add backlight control
- delete AzulPatcher4600.kext, but HD4600 black screen sometimes.(https://github.com/coderobe/AzulPatcher4600/releases)
- delete Test2-2016.efi
- lastest ACPI/origin files.
- delete VirtualBox and MotoHelper
- config.plist/SystemParameters/InjectKexts=Detect
- delete duplicate kexts
- add instant wake, which goes ok now.

Code:
[zhuxi@bogon RehabMan-patchmatic]$kextstat|grep -y acpiplat
   15    2 0xffffff7f82420000 0xa5000    0xa5000    com.apple.driver.AppleACPIPlatform (6.1) 1804645B-B360-305E-B1BE-916F5E3E1CC4 <14 13 12 11 7 6 5 4 3 1>
[zhuxi@bogon RehabMan-patchmatic]$kextstat|grep -y appleintelcpu
[zhuxi@bogon RehabMan-patchmatic]$kextstat|grep -y applelpc
  111    0 0xffffff7f824e1000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 7C24E741-BD4A-3917-83AC-E956A03ADC20 <99 12 5 4 3>
[zhuxi@bogon RehabMan-patchmatic]$kextstat|grep -y applehda
ls -l /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*
pmset -g assertions
pmset -g
system_profiler SPSerialATADataType|grep TRIM
  115    1 0xffffff7f822a4000 0x1f000    0x1f000    com.apple.driver.AppleHDAController (280.12) 55162F3D-B7E9-315C-A7E1-C5C4C02F03EC <114 113 92 12 7 6 5 4 3 1>
  136    0 0xffffff7f82b52000 0xb7000    0xb7000    com.apple.driver.AppleHDA (999.1.1fc1) 7FC2BABA-4D4F-34FC-93E2-3E3244DEB73D <135 115 114 113 107 92 6 5 4 3 1>
  138    0 0xffffff7f822c3000 0x2000     0x2000     com.apple.driver.AppleHDAHardwareConfigDriver (280.12) 2D6BB587-0D94-3E6D-AFBE-A4A03F37A6A9 <4 3>
[zhuxi@bogon RehabMan-patchmatic]$ls -l /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*
ls: /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*: No such file or directory
[zhuxi@bogon RehabMan-patchmatic]$pmset -g assertions
2018-01-17 15:28:09 +0800
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:
   pid 117(hidd): [0x0000000d0009803f] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968025.3"
    Timeout will fire in 600 secs Action=TimeoutActionRelease
Kernel Assertions: 0x4=USB
   id=500  level=255 0x4=USB mod=01/01/1970, 8:00 AM description=com.apple.usb.externaldevice.1d100000 owner=IOUSBHostDevice
   id=501  level=255 0x4=USB mod=01/01/1970, 8:00 AM description=com.apple.usb.externaldevice.1a100000 owner=IOUSBHostDevice
   id=504  level=255 0x4=USB mod=01/01/1970, 8:00 AM description=com.apple.usb.externaldevice.1d120000 owner=TaiDuGamerMouse
   id=505  level=255 0x4=USB mod=01/01/1970, 8:00 AM description=com.apple.usb.externaldevice.1d140000 owner=USB HD Webcam
Idle sleep preventers: IODisplayWrangler
[zhuxi@bogon RehabMan-patchmatic]$pmset -g
System-wide power settings:
Currently in use:
standby              1
womp                 1
halfdim              1
hibernatefile        /var/vm/sleepimage
powernap             1
gpuswitch            2
networkoversleep     0
disksleep            10
sleep                10
autopoweroffdelay    28800
hibernatemode        3
autopoweroff         1
ttyskeepawake        1
displaysleep         10
standbydelay         10800
[zhuxi@bogon RehabMan-patchmatic]$system_profiler SPSerialATADataType|grep TRIM
          TRIM Support: No
Code:
[zhuxi@bogon RehabMan-patchmatic]$sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f713ba50 [0x7fffb277e980]> { URL = "FakeSMC.kext/ -- file:///Library/Extensions/", ID = "org.netkas.driver.FakeSMC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f711e660 [0x7fffb277e980]> { URL = "IntelGraphicsFixup.kext/ -- file:///Library/Extensions/", ID = "as.lvs1974.IntelGraphicsFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f4621310 [0x7fffb277e980]> { URL = "Lilu.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.Lilu" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f712cff0 [0x7fffb277e980]> { URL = "VoodooPS2Mouse.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Mouse" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f711d410 [0x7fffb277e980]> { URL = "VoodooPS2Controller.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.voodoo.driver.PS2Controller" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f7129dc0 [0x7fffb277e980]> { URL = "VoodooPS2Keyboard.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Keyboard" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f711f150 [0x7fffb277e980]> { URL = "VoodooPS2Trackpad.kext/ -- file:///Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/", ID = "org.rehabman.voodoo.driver.PS2Trackpad" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f71176d0 [0x7fffb277e980]> { URL = "FakePCIID.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.FakePCIID" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f4624e00 [0x7fffb277e980]> { URL = "GenericUSBXHCI.kext/ -- file:///Library/Extensions/", ID = "net.osx86.kexts.GenericUSBXHCI" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f46214b0 [0x7fffb277e980]> { URL = "FakePCIID_XHCIMux.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.FakePCIID.XHCIMux" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f7107d00 [0x7fffb277e980]> { URL = "RealtekRTL8111.kext/ -- file:///Library/Extensions/", ID = "com.insanelymac.RealtekRTL8111" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f71063b0 [0x7fffb277e980]> { URL = "FakePCIID_Intel_HDMI_Audio.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Intel-HDMI-Audio" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f70fbcb0 [0x7fffb277e980]> { URL = "ACPIBatteryManager.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f70f9e40 [0x7fffb277e980]> { URL = "FakePCIID_Intel_HD_Graphics.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Intel-HD-Graphics" }
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileUSBLANMerge.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileUSBSwch.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileMTP.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns/MotMobileMS.kext/ is in hash exception list, allowing to load
Kext with invalid signatured (-67030) allowed: <OSKext 0x7fe4f6817480 [0x7fffb277e980]> { URL = "DummyHDA.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.AppleHDA" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fe4f68087e0 [0x7fffb277e980]> { URL = "CodecCommander.kext/ -- file:///System/Library/Extensions/", ID = "org.tw.CodecCommander" }
KernelCache ID: 23A9A97BA2BEE9F7285B6636F5B1D553

Before I look at any of your updated files, what is the issue?
 
Before I look at any of your updated files, what is the issue?
- You said that AzulPatcher4600.kext is not recommended, I remove it but HD4600 wokes not well.
- I doubt that disable discrete graphics does not work.
 
You will need to provide details and problem reporting files.

I provide files in post #31.
No idea what you mean.
Discrete graphics with Nvidia Optimus not expected to work.
I doubt that I have some problem in disabling discrete graphics(The fan is
roaring).

There is _OFF method in my SSDT-4-PARADISE.aml.
Code:
        Method (_OFF, 0, Serialized)  // _OFF: Power Off
        {
            ....

            SGPO (HLRS, One)
            SGPO (PWEN, Zero)
            Store (Zero, \_SB.PCI0.LPCB.EC0.DGPW)   //see here
            Return (Zero)
        }
Store (Zero, \_SB.PCI0.LPCB.EC0.DGPW) accesses the EC0.
I want to tell which method I should call in DSDT, \_SB.PCI0.LPCB.EC0.DGPW or \_SB.PCI0.PEG0.PEGP._OFF?

All file is provided in post #31.
 
I provide files in post #31.

No details regarding the problem there.

I doubt that I have some problem in disabling discrete graphics(The fan is
roaring).

There is _OFF method in my SSDT-4-PARADISE.aml.
Code:
        Method (_OFF, 0, Serialized)  // _OFF: Power Off
        {
            ....

            SGPO (HLRS, One)
            SGPO (PWEN, Zero)
            Store (Zero, \_SB.PCI0.LPCB.EC0.DGPW)   //see here
            Return (Zero)
        }
Store (Zero, \_SB.PCI0.LPCB.EC0.DGPW) accesses the EC0.
I want to tell which method I should call in DSDT, \_SB.PCI0.LPCB.EC0.DGPW or \_SB.PCI0.PEG0.PEGP._OFF?

All file is provided in post #31.

As per guide, you must move all EC related to code to _REG.
Read here:
https://www.tonymacx86.com/threads/guide-disabling-discrete-graphics-in-dual-gpu-laptops.163772/
 
Bingo!

Last question, if I want to write a HD driver or other something like you where should I start?
Can you recommand some books, article or blogs to me?
PS:I am engaged in iOS development, I think I can make it if you help me.:D

What do you mean by "HD driver"?
 
What do you mean by "HD driver"?
For example, FakePCIID series which you write fix hd4600 graphics card.
I can use xCode to develop iOS app, but I have no ideas about how to fix graphics card or audio card by write a kext.
 
Status
Not open for further replies.
Back
Top