Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a hotpatch for whiskey lake? #100

Open
ntd8466 opened this issue May 18, 2021 · 1 comment
Open

Is there a hotpatch for whiskey lake? #100

ntd8466 opened this issue May 18, 2021 · 1 comment

Comments

@ntd8466
Copy link

ntd8466 commented May 18, 2021

I'm new to patching and i want to use ssdt instead of patching ddst. Is there a way to do that?

@Jie2GG
Copy link

Jie2GG commented Aug 24, 2021

Please reference SSDT

DefinitionBlock ("", "SSDT", 2, "hack", "atk", 0x00000000)
{
    External (_SB_.ATKD, DeviceObj)
    External (_SB_.KBLV, FieldUnitObj)
    External (_SB_.PCI0.LPCB.EC0_.ST9E, MethodObj)    // 3 Arguments
    External (_SB_.PCI0.LPCB.EC0_.WRAM, MethodObj)    // 2 Arguments

    If (_OSI ("Darwin"))
    {
        Scope (_SB.ATKD)
        {
            Method (SKBV, 1, NotSerialized)
            {
                ^^PCI0.LPCB.EC0.WRAM (0x09F0, ^^KBLV)
                ^^PCI0.LPCB.EC0.ST9E (0x1F, 0xFF, Arg0)
                Return (Arg0)
            }
        }
    }

    Device (_SB.ALS0)
    {
        Name (_HID, "ACPI0008" /* Ambient Light Sensor Device */)  // _HID: Hardware ID
        Name (_CID, "smc-als")  // _CID: Compatible ID
        Name (_ALI, 0x96)  // _ALI: Ambient Light Illuminance
        Name (_ALR, Package (0x01)  // _ALR: Ambient Light Response
        {
            Package (0x02)
            {
                0x64, 
                0x96
            }
        })
        Method (_STA, 0, NotSerialized)  // _STA: Status
        {
            If (_OSI ("Darwin"))
            {
                Return (0x0F)
            }
            Else
            {
                Return (Zero)
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants