Contribute
Register

[solved] X230T Reboot when i Shutdown on Sierra

Status
Not open for further replies.
OK, Here in ZIP

thank for help

PS: I have the "advanced menu" in my BIOS, if it help.
 

Attachments

  • Rehab 5.zip
    1.9 MB · Views: 101
Last edited:
OK, Here in ZIP

thank for help

Comments:
- why is IOAHCIBlockStorage.kext patched? (no need)
- HDAEnabler.kext is a bad idea (patched ACPI to inject layout-id instead)
- what is CellPhoneHelper.kext?
- BrcmBluetoothInjector.kext should be BrcmPatchRAM2.kext + BrcmFirmwareRepo.kext
- use Clover TRIM patch instead of trimforce
- make sure you test sleep/restart/shutdown without any USB devices plugged in
- your USB configuration doesn't look right... You have HS01/HS02/HS04 all marked UsbConnector=3, but only two SSxx ports exist (for each USB3 related HSxx port, should be corresponding SSxx port). Either you forgot an SSxx port, or one of the HSxx ports is marked with the wrong connector.
- if the device at HS04 is internal, it should be marked UsbConnector=255
- "Shutdown Fix" patch not applied to DSDT
- you used the wrong _PRW patch

And at that last mistake.... I stopped looking.
 
- why is IOAHCIBlockStorage.kext patched? (no need)

Have you vanilla IOAHCIFamily.kext from 10.12.3 ?

- HDAEnabler.kext is a bad idea (patched ACPI to inject layout-id instead)

HDAEnabler.kext removed

- what is CellPhoneHelper.kext?

It’s for my 3G module (F5521gw Sony Ericsson), to be recognizing at WWAN card.

- BrcmBluetoothInjector.kext should be BrcmPatchRAM2.kext + BrcmFirmwareRepo.kext

Ok, now I use BrcmPatchRAM2.kext + BrcmFirmwareRepo.kext

- use Clover TRIM patch instead of trimforce

I do « sudo trimforce disabled » and add Clover Trim in kexttopatch

- make sure you test sleep/restart/shutdown without any USB devices plugged in

Ok, I test without USB, Shut down now work, thank

- your USB configuration doesn't look right... You have HS01/HS02/HS04 all marked UsbConnector=3, but only two SSxx ports exist (for each USB3 related HSxx port, should be corresponding SSxx port). Either you forgot an SSxx port, or one of the HSxx ports is marked with the wrong connector.

Ok, HS04 at internal 255 (only HS04 is connected to my 3G card F5521gw)

- if the device at HS04 is internal, it should be marked UsbConnector=255

Yes, HS04 is internal, HP24(Bluetooth) and HP26(Webcam), I mark them 255

"Shutdown Fix" patch not applied to DSDT

I can’t apply, 0 changes

you used the wrong _PRW patch

Why? I need 0X0D PRW?

Here my SSDT-UIAC in code : it is right?

Code:
DefinitionBlock ("", "SSDT", 2, "hack", "UIAC-ALL", 0)
{
    Device(UIAC)
    {
        Name(_HID, "UIA00000")

        Name(RMCF, Package()
        {
            "HUB1", Package()
            {
                "port-count", Buffer() { 5, 0, 0, 0 },
                "ports", Package()
                {
                    "HP15", Package()
                    {
                        //"UsbConnector", 255,
                        "portType", 2,
                        "port", Buffer() { 5, 0, 0, 0 },
                    },
                                    },
            },
            "HUB2", Package()
            {
                "port-count", Buffer() { 6, 0, 0, 0 },
                "ports", Package()
                {
                    "HP22", Package()
                    {
                        //"UsbConnector", 0,
                        "portType", 2,
                        "port", Buffer() { 2, 0, 0, 0 },
                    },
                    "HP24", Package()
                    {
                        //"UsbConnector", 255,
                        "portType", 2,
                        "port", Buffer() { 4, 0, 0, 0 },
                    },
                    "HP26", Package()
                    {
                        //"UsbConnector", 255,
                        "portType", 2,
                        "port", Buffer() { 6, 0, 0, 0 },
                    },
                },
            },
            "EH01", Package()
            {
                "port-count", Buffer() { 1, 0, 0, 0 },
                "ports", Package()
                {
                    "PR11", Package()
                    {
                        "UsbConnector", 255,
                        "port", Buffer() { 1, 0, 0, 0 },
                    },
                },
            },
            "EH02", Package()
            {
                "port-count", Buffer() { 1, 0, 0, 0 },
                "ports", Package()
                {
                    "PR21", Package()
                    {
                        "UsbConnector", 255,
                        "port", Buffer() { 1, 0, 0, 0 },
                    },
                },
            },
            "8086_1e31", Package()
            {
                "port-count", Buffer() { 6, 0, 0, 0 },
                "ports", Package()
                {
                    "HS01", Package()
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 1, 0, 0, 0 },
                    },
                    "HS02", Package()
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 2, 0, 0, 0 },
                    },
                    "HS04", Package()
                    {
                        "UsbConnector", 255,
                        "port", Buffer() { 4, 0, 0, 0 },
                    },
                    "SSP5", Package()
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 5, 0, 0, 0 },
                    },
                    "SSP6", Package()
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 6, 0, 0, 0 },
                    },

                },
            },
        })
    }
}
//EOF
 
Last edited:
Have you vanilla IOAHCIFamily.kext from 10.12.3 ?

You can install it with the macOS installer.

It’s for my 3G module (F5521gw Sony Ericsson), to be recognizing at WWAN card.

Try without the WWAN card (possibly should be marked internal anyway).
You can disable the port with uia_exclude=HS04

I can’t apply, 0 changes

There are a few different versions of the patch. Look at the patch to discern what it does, what it is looking for.
Make sure you're applying to native/disassembled DSDT.

Why? I need 0X0D PRW?

Yes, of course. Your original _PRW methods use 0x0d, not 0x6d.
Always pay attention to the preview of changes when applying a patch to insure the patch is sensible.

Here my SSDT-UIAC in code : it is right?

Code:
DefinitionBlock ("", "SSDT", 2, "hack", "UIAC-ALL", 0)
{
    Device(UIAC)
    {
        Name(_HID, "UIA00000")

        Name(RMCF, Package()
        {
            "HUB1", Package()
            {
                "port-count", Buffer() { 5, 0, 0, 0 },
                "ports", Package()
                {
                    "HP15", Package()
                    {
                        //"UsbConnector", 255,
                        "portType", 2,
                        "port", Buffer() { 5, 0, 0, 0 },
                    },
                                    },
            },
            "HUB2", Package()
            {
                "port-count", Buffer() { 6, 0, 0, 0 },
                "ports", Package()
                {
                    "HP22", Package()
                    {
                        //"UsbConnector", 0,
                        "portType", 2,
                        "port", Buffer() { 2, 0, 0, 0 },
                    },
                    "HP24", Package()
                    {
                        //"UsbConnector", 255,
                        "portType", 2,
                        "port", Buffer() { 4, 0, 0, 0 },
                    },
                    "HP26", Package()
                    {
                        //"UsbConnector", 255,
                        "portType", 2,
                        "port", Buffer() { 6, 0, 0, 0 },
                    },
                },
            },
            "EH01", Package()
            {
                "port-count", Buffer() { 1, 0, 0, 0 },
                "ports", Package()
                {
                    "PR11", Package()
                    {
                        "UsbConnector", 255,
                        "port", Buffer() { 1, 0, 0, 0 },
                    },
                },
            },
            "EH02", Package()
            {
                "port-count", Buffer() { 1, 0, 0, 0 },
                "ports", Package()
                {
                    "PR21", Package()
                    {
                        "UsbConnector", 255,
                        "port", Buffer() { 1, 0, 0, 0 },
                    },
                },
            },
            "8086_1e31", Package()
            {
                "port-count", Buffer() { 8, 0, 0, 0 },
                "ports", Package()
                {
                    "HS01", Package()
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 1, 0, 0, 0 },
                    },
                    "HS02", Package()
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 2, 0, 0, 0 },
                    },
                    "HS04", Package()
                    {
                        "UsbConnector", 255,
                        "port", Buffer() { 4, 0, 0, 0 },
                    },
                    "SSP5", Package()
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 5, 0, 0, 0 },
                    },
                    "SSP6", Package()
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 6, 0, 0, 0 },
                    },

                },
            },
        })
    }
}
//EOF

I think I already checked it/commented on it...
 
You can install it with the macOS installer.

I've extracted it from MacOs Installer with "Pacifist App" but i have the same log in terminal with :
- sudo touch /System/Library/Extensions && sudo kextcache -u /
Code:
AppleDataSetManagement.kext - dependency for com.apple.iokit.IOAHCIBlockStorage lacks valid OSBundleCompatibleVersion.
AppleDataSetManagement.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
AppleDataSetManagement.kext - dependency for com.apple.iokit.IOAHCIBlockStorage lacks valid OSBundleCompatibleVersion.

Try without the WWAN card (possibly should be marked internal anyway).
You can disable the port with uia_exclude=HS04

When disable the WWAN card no change

There are a few different versions of the patch. Look at the patch to discern what it does, what it is looking for.
Make sure you're applying to native/disassembled DSDT.

I try on my native/disassembled DSDT, 0 Change (Normal or V2)

Yes, of course. Your original _PRW methods use 0x0d, not 0x6d.
Always pay attention to the preview of changes when applying a patch to insure the patch is sensible.

I do the DSDT again with _PRW method 0X0D. Do i need "7-serie/8-serie USB"?

I think I already checked it/commented on it...

It is best to have just HS04 in internal or HS04 and SSP8 both in internal?


When i shut down from the menu bar with the mouse connected in USB it's reboot, but when i shut down with the trackpad it'snt reboot :confused:o_O
 

Attachments

  • Rehab 6.zip
    1.9 MB · Views: 87
Last edited:
I've extracted it from MacOs Installer with "Pacifist App" but i have the same log in terminal with :
- sudo touch /System/Library/Extensions && sudo kextcache -u /
Code:
AppleDataSetManagement.kext - dependency for com.apple.iokit.IOAHCIBlockStorage lacks valid OSBundleCompatibleVersion.
AppleDataSetManagement.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
AppleDataSetManagement.kext - dependency for com.apple.iokit.IOAHCIBlockStorage lacks valid OSBundleCompatibleVersion.

It is because you're using the trimforce command instead of using the Clover TRIM patch.
You should turn off trimforce and use the macOS installer to restore kexts to vanilla.

When disable the WWAN card no change

Remove it or disable the port instead.

I try on my native/disassembled DSDT, 0 Change (Normal or V2)

It is because your _PTS is declared as Method(\_PTS instead of Method(_PTS).

I do the DSDT again with _PRW method 0X0D. Do i need "7-serie/8-serie USB"?

The USB patch you mention is for injecting USB power properties.
There are various ways to do it, so it depends on how you want to accomplish.

It is best to have just HS04 in internal or HS04 and SSP8 both in internal?

UsbConnector=255 should be used for ports that are attached to internal devices.
But there is nothing connected to SSP8, so it can't be an internal device...

When i shut down from the menu bar with the mouse connected in USB it's reboot, but when i shut down with the trackpad it'snt reboot :confused:o_O

Work on getting your USB setup correct.
Also, you have forgotten FakePCIID_XHCIMux.kext.
 
Remove it or disable the port instead.

Ok, now it's disabled, no error in terminal, and Trim is active from the Clover KextToPatch, thank

Remove it or disable the port instead.

What is the purpose of disabling this port, to see if it is him who prevents shutdown?

The USB patch you mention is for injecting USB power properties.
There are various ways to do it, so it depends on how you want to accomplish.

Is it a good way to implement USB PowerPropertie?

UsbConnector=255 should be used for ports that are attached to internal devices.
But there is nothing connected to SSP8, so it can't be an internal device...

OK, but it'snt possible to have an internal USB2 device connected in USB3 Internal?
The HS04 is the F5521gw WWAN card (Mini PCIe card) is it possible to connect them via PCI?

Work on getting your USB setup correct.
Also, you have forgotten FakePCIID_XHCIMux.kext.

KakePCIID it's for the port discovering or for all the time?
If i understand, All the HSxx Port is moved to EH0x (PR1x or PR2x)? Right?

Sorry, for all my question, i'm french and i have a little trouble with these great and nice guide.
thank again
 
What is the purpose of disabling this port, to see if it is him who prevents shutdown?

Yes.

Is it a good way to implement USB PowerPropertie?

Many ways (patch DSDT, config.plist/Devices/Arbitrary, config.plist/Devices/USB/Inject, add-on SSDT, etc).
Depends on your preference.

OK, but it'snt possible to have an internal USB2 device connected in USB3 Internal?
The HS04 is the F5521gw WWAN card (Mini PCIe card) is it possible to connect them via PCI?

A USB2 internal device would connect to an HSxx port.
A USB3 internal device would connect to an SSPx port.
A device which is both (such as a hub) would connect to both.
USB devices are connected via USB to a USB controller, the USB controller, in turn, is connected via PCIe.
USB devices do not connect directly to PCIe.

KakePCIID it's for the port discovering or for all the time?

Per USB guide, FakePCIID_XHCIMux.kext is recommended for your 7-series chipset.

If i understand, All the HSxx Port is moved to EH0x (PR1x or PR2x)? Right?

Yes. Which is typically what both macOS and ACPI for 7-series assumes.
 
Per USB guide, FakePCIID_XHCIMux.kext is recommended for your 7-series chipset.

Yes. Which is typically what both macOS and ACPI for 7-series assumes.

Ok, I do the guide with FakePCIID an FakePCIIDMux, now my laptop don't reboot.

I disable the card 3G with "uia_exclude=HP14"
When the 3G card goes internally in the PR11 Hub (with FakePCIIDMux) Mac no longer recognizes it.

What is the different "portType" options for the HPxx port? Is it 0, 3, 255?

Here the Zip with report:
 

Attachments

  • Rehab 7.zip
    1.9 MB · Views: 105
Ok, I do the guide with FakePCIID an FakePCIIDMux, now my laptop don't reboot.

So... problem solved, correct?

What is the different "portType" options for the HPxx port? Is it 0, 3, 255?

We don't know.
No one has replied with data/info from a Mac that uses it.
 
Status
Not open for further replies.
Back
Top