Jump to content
2 posts in this topic

Recommended Posts

  • 5 months later...

Hi kgrogess,
 

Try to inject the IMEI into the DSDT with MaciASL:

########################################
# IGPU
########################################

into_all all label GFX0 set_label begin IGPU
end;
into_all all code_regex GFX0
replaceall_matched begin IGPU
end;

########################################
# GFX0
########################################

into method label _DSM parent_adr 0x00020000 remove_entry;
into device name_adr 0x00020000 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
Store (Package()\n
{\n
"device-id", Buffer() {0x16, 0x01, 0x00, 0x00},\n
"model", Buffer() {"Intel HD Graphics 3000"},\n
"AAPL,snb-platform-id", Buffer() { 0x00, 0x00, 0x01, 0x00 },\n
"hda-gfx", Buffer() { "onboard-1" }\n
}, Local0)\n
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
Return (Local0)\n
}\n
end;

########################################
# IMEI
########################################


into device label IMEI parent_label PCI0 remove_entry;
into device label PCI0 insert
begin
Device (IMEI)\n
{\n
    Name (_ADR, 0x00160000) // _ADR: Address\n
    Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method\n
    {\n
        If (LEqual (Arg2, Zero))\n
        {\n
            Return (Buffer (One)\n
            {\n
                0x03\n                                       
            })\n
        }\n
        Return (Package (0x02)\n
        {\n
            "device-id", \n
            Buffer (0x04)\n
            {\n
                0x3A, 0x1C, 0x00, 0x00\n                        
            }\n
        })\n
    }\n
}\n
end;

########################################
# DTGP
########################################

into method label DTGP remove_entry;
into definitionblock code_regex . insert
begin
Method (DTGP, 5, NotSerialized)\n
{\n
    If (LEqual (Arg0, Buffer (0x10)\n
            {\n
                /* 0000 */    0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, \n
                /* 0008 */    0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B\n
            }))\n
    {\n
        If (LEqual (Arg1, One))\n
        {\n
            If (LEqual (Arg2, Zero))\n
            {\n
                Store (Buffer (One)\n
                    {\n
                        0x03\n
                    }, Arg4)\n
                Return (One)\n
            }\n
            If (LEqual (Arg2, One))\n
            {\n
                Return (One)\n
            }\n
        }\n
    }\n
    Store (Buffer (One)\n
        {\n
            0x00\n
        }, Arg4)\n
    Return (Zero)\n
}\n
end;
×
×
  • Create New...