Contribute
Register

x1 carbon 2015 usbinject 10.13.2

Status
Not open for further replies.
Last compile

Code:
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20171110 (64-bit version)(RM)
* Copyright (c) 2000 - 2017 Intel Corporation
*
* Disassembling to non-symbolic legacy ASL operators
*
* Disassembly of iASLAUaiP9.aml, Thu Jan 11 11:50:01 2018
*
* Original Table Header:
*     Signature        "SSDT"
*     Length           0x00000443 (1091)
*     Revision         0x02
*     Checksum         0xA0
*     OEM ID           "hack"
*     OEM Table ID     "UIAC-ALL"
*     OEM Revision     0x00000000 (0)
*     Compiler ID      "INTL"
*     Compiler Version 0x20171110 (538382608)
*/
DefinitionBlock ("", "SSDT", 2, "hack", "UIAC-ALL", 0x00000000)
{
    Device (UIAC)
    {
        Name (_HID, "UIA00000")  // _HID: Hardware ID
        Name (RMCF, Package ()
        {    "AppleBusPowerControllerUSB",
            Package ()
            {
                "kUSBSleepPortCurrentLimit",
                0x0834,
                "kUSBSleepPowerSupply",
                0x0A28,
                "kUSBWakePortCurrentLimit",
                0x0834,
                "kUSBWakePowerSupply",
                0x0C80
            },
              "8086_9cb1", Package()
            {
                "port-count", Buffer() { 15, 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 },
                    },
                 
                       "HS07",
                    Package ()
                    {
                        "UsbConnector",
                        255,
                        "port",
                        Buffer (0x04)
                        {
                             0x07, 0x00, 0x00, 0x00                      
                        }
                    },
               
                    "HS08", Package() //camara
                    {
                        "UsbConnector", 255,
                        "port", Buffer() { 8, 0, 0, 0 },
                    },
             
                    "SSP1", Package() //usb 3.0 right
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 12, 0, 0, 0 },
                    },
                    "SSP2", Package() //usb3.0 left
                    {
                        "UsbConnector", 3,
                        "port", Buffer() { 13, 0, 0, 0 },
                    },
                
                },
            },         
        })
    }

//
// Disabling EHCI #1
//
    External(_SB.PCI0, DeviceObj)
    External(_SB.PCI0.LPC, DeviceObj)
    External(_SB.PCI0.EH01, DeviceObj)
    Scope(_SB.PCI0)
    {
        // registers needed for disabling EHC#1
        Scope(EH01)
        {
            OperationRegion(PSTS, PCI_Config, 0x54, 2)
            Field(PSTS, WordAcc, NoLock, Preserve)
            {
                PSTE, 2  // bits 2:0 are power state
            }
        }
        Scope(LPC)
        {
            OperationRegion(RMLP, PCI_Config, 0xF0, 4)
            Field(RMLP, DWordAcc, NoLock, Preserve)
            {
                RCB1, 32, // Root Complex Base Address
            }
            // address is in bits 31:14
            OperationRegion(FDM1, SystemMemory, Add(And(RCB1,Not(Subtract(ShiftLeft(1,14),1))),0x3418), 4)
            Field(FDM1, DWordAcc, NoLock, Preserve)
            {
                ,15,    // skip first 15 bits
                FDE1,1, // should be bit 15 (0-based) (FD EHCI#1)
            }
        }
        Device(RMD1)
        {
            //Name(_ADR, 0)
            Name(_HID, "RMD10000")
            Method(_INI)
            {
                // disable EHCI#1
                // put EHCI#1 in D3hot (sleep mode)
                Store(3, ^^EH01.PSTE)
                // disable EHCI#1 PCI space
                Store(1, ^^LPC.FDE1)
            }
        }
    }
}
//EOF

Finally, USB configuration looks ok.

Lid not working

You will need to provide details on "lid not working".
And you will probably need to debug your _LID method (use ACPIDebug.kext).
 
Finally, USB configuration looks ok.



You will need to provide details on "lid not working".
And you will probably need to debug your _LID method (use ACPIDebug.kext).

The problem is when I use the apple logo in menu and sleep the computer goes to sleep. If I close the lid it takes more than 3 minutes to start the led to blink.

I installed acpidebug but don't understand the third phase...you can explain me?

ACPIdebug its correctly loaded because I can see in ioreg.

Attached problem files.
 

Attachments

  • debug_3006.zip
    1.4 MB · Views: 81
The problem is when I use the apple logo in menu and sleep the computer goes to sleep. If I close the lid it takes more than 3 minutes to start the led to blink.

I installed acpidebug but don't understand the third phase...you can explain me?

ACPIdebug its correctly loaded because I can see in ioreg.

Attached problem files.

You need to instrument your _LID method such that you can tell if it is being called and what it is returning.
You will need to read the ACPI spec and ACPIDebug README to understand (as well as have some programming skills).

Also, it sounds like everything is working...
If sleep eventually happens via the lid, then the _LID method must be working.
Keep in mind assertions may need to clear before sleep happens, so the delay you have may be normal for the case there are assertions not cleared that take a while.
You need to pay attention to your 'pmset -g assertions' output such that you know whether there are assertions pending.
 
Status
Not open for further replies.
Back
Top