Contribute
Register

Instant wake Due to EHC1 and EHC2

Status
Not open for further replies.
Joined
Nov 12, 2012
Messages
213
Motherboard
Lenovo G570
CPU
2.4 GHz Intel Core i5
Graphics
Intel HD 3000
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
instate wake due to ECH1 and ECH2 when i Disassemble DSDT using command u mention on patching DSDT/SSDT guide after that i tried to patch USB using your patch repo after i applied patch values has been changed but after saving in .aml format the old values has back everytime .

how do i solve this problem i m not completely figure it out .
 
instate wake due to ECH1 and ECH2 when i Disassemble DSDT using command u mention on patching DSDT/SSDT guide after that i tried to patch USB using your patch repo after i applied patch values has been changed but after saving in .aml format the old values has back everytime .

how do i solve this problem i m not completely figure it out .

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
if [ -d ~/Downloads/RehabMan ]; then rm -R ~/Downloads/RehabMan; fi
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract

Note: It is easier if you use copy/paste instead of typing the commands manually.

Post contents of Downloads/RehabMan directory (as ZIP).

Also, post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

And output from:
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc

Also, post EFI/Clover folder.
 
i m trying to patch when i m trying to save my DSDT after compile, apply patches just gone i don't know why ..
 
i m trying to patch when i m trying to save my DSDT after compile, apply patches just gone i don't know why ..

Saving does not make patches "gone".

You're going to have to explain what you're looking at.
 
for Example in my DSDT i have a this before
PHP:
 Name (_PRW, Package (0x02)  // _PRW: Power Resources for Wake            {
                0x0D, 
                0x03
            })
            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                Store (Package (0x13)
                    {
                        "device-id", 
                        Buffer (0x04)
                        {
                             0x26, 0x1C, 0x00, 0x00                         
                        }, 


                        "built-in", 
                        Buffer (One)
                        {
                             0x00                                           
                        }, 


                        "AAPL,clock-id", 
                        Buffer (One)
                        {
                             0x01                                           
                        }, 


                        "device_type", 
                        Buffer (0x05)
                        {
                            "EHCI"
                        }, 


                        "AAPL,current-available", 
                        0x0834, 
                        "AAPL,current-extra", 
                        0x0898, 
                        "AAPL,current-extra-in-sleep", 
                        0x0640, 
                        "AAPL,device-internal", 
                        0x02, 
                        "AAPL,max-port-current-in-sleep", 
                        0x0834, 
                        Buffer (One)
                        {
                             0x00                                           
                        }
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }
        }

this is the patch i applied means this is after
PHP:
Method (_DSM, 4, NotSerialized)\n{\n
    If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n
    Return (Package()\n
    {\n
        "built-in", Buffer() { 0x00 },\n
        "AAPL,clock-id", Buffer() { 0x01 },\n
        "device_type", Buffer() { "EHCI" },\n
        "AAPL,current-available", 2100,\n
        "AAPL,current-extra", 2200,\n
        "AAPL,current-extra-in-sleep", 1600,\n
        "AAPL,device-internal", 0x02,\n
        "AAPL,max-port-current-in-sleep", 2100,\n
    })\n
}\n
end;
But after compiling and save my DSDT in .aml and check saving DSDT the Before values has been back .

and i see the OS check patch but i don't understand that patch because window 7 , window 8 , vista os check and i not using dual boot .
if it is necessary so which one i apply .

HTML:
cd "to directory where you placed all SSDT/DSDT"
iasl -da -dl *.aml
i used this command for disassemble DSDT.
 
for Example in my DSDT i have a this before

Code:
 Name (_PRW, Package (0x02)  // _PRW: Power Resources for Wake            {
                0x0D, 
                0x03
            })
            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                Store (Package (0x13)
                    {
                        "device-id", 
                        Buffer (0x04)
                        {
                             0x26, 0x1C, 0x00, 0x00                         
                        }, 


                        "built-in", 
                        Buffer (One)
                        {
                             0x00                                           
                        }, 


                        "AAPL,clock-id", 
                        Buffer (One)
                        {
                             0x01                                           
                        }, 


                        "device_type", 
                        Buffer (0x05)
                        {
                            "EHCI"
                        }, 


                        "AAPL,current-available", 
                        0x0834, 
                        "AAPL,current-extra", 
                        0x0898, 
                        "AAPL,current-extra-in-sleep", 
                        0x0640, 
                        "AAPL,device-internal", 
                        0x02, 
                        "AAPL,max-port-current-in-sleep", 
                        0x0834, 
                        Buffer (One)
                        {
                             0x00                                           
                        }
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }
        }

this is the patch i applied means this is after

Code:
Method (_DSM, 4, NotSerialized)\n{\n
    If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }\n
    Return (Package()\n
    {\n
        "built-in", Buffer() { 0x00 },\n
        "AAPL,clock-id", Buffer() { 0x01 },\n
        "device_type", Buffer() { "EHCI" },\n
        "AAPL,current-available", 2100,\n
        "AAPL,current-extra", 2200,\n
        "AAPL,current-extra-in-sleep", 1600,\n
        "AAPL,device-internal", 0x02,\n
        "AAPL,max-port-current-in-sleep", 2100,\n
    })\n
}\n
end;
But after compiling and save my DSDT in .aml and check saving DSDT the Before values has been back .

There are some transformations that happen upon compiling. Don't expect the code to be the same after compile/disassemble cycle.

and i see the OS check patch but i don't understand that patch because window 7 , window 8 , vista os check and i not using dual boot .
if it is necessary so which one i apply .

It has nothing to do with dual-boot.
 
which OS fix patch i have to apply .

after extracting using patchmatic commend i use
Code:
[COLOR=#000000]cd "to directory where you placed all SSDT/DSDT"
[/COLOR][COLOR=#000000]iasl -da -dl *.aml[[/COLOR]/code] for [COLOR=#000000]disassemble DSDT.[/COLOR]

[COLOR=#000000]will you please disassemble for me.[/COLOR]
 
Status
Not open for further replies.
Back
Top