Contribute
Register

[Guide] Patching DSDT/SSDT for LAPTOP backlight control

thing is, you only have a few kexts in /L/E and not all, but newer versions of macOS, Catalina, you would be best to have them all just in clover/kexts/other

So, you are suggesting me to include all kexts which are required to patch audio, brightness, graphics in Clover/kexts/Others? Will it work the same way as if they were in /L/E?
 
So, you are suggesting me to include all kexts which are required to patch audio, brightness, graphics in Clover/kexts/Others? Will it work the same way as if they were in /L/E?
yep, i have tested both ways and see no issues :)

i used to always have all my 3rd party kexts in /L/E and now with Catalina, i have all my 3rd party kexts in clover/kexts/other (actually, i am now on OpenCore so they are all in OC/kexts
 
So, you are suggesting me to include all kexts which are required to patch audio, brightness, graphics in Clover/kexts/Others? Will it work the same way as if they were in /L/E?
You can use in /L/E but you will need to use a LiluFriend kext too.
Older kexts can not work properly on /Clover/Kexts but all the newer kexts works fine.
 
Hey guys,
Would my brightness keys be in PS2K or PS2M. PS2M has the SYNA1201 device and PS2K has the PNP0303.
Code:
Scope (_SB.PCI0.LPCB)
    {
        Device (PS2K)
        {
            Name (_HID, "MSFT0001")  // _HID: Hardware ID
            Name (_CID, EisaId ("PNP0303"))  // _CID: Compatible ID
            Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
            {
                IO (Decode16,
                    0x0060,             // Range Minimum
                    0x0060,             // Range Maximum
                    0x01,               // Alignment
                    0x01,               // Length
                    )
                IO (Decode16,
                    0x0064,             // Range Minimum
                    0x0064,             // Range Maximum
                    0x01,               // Alignment
                    0x01,               // Length
                    )
                IRQ (Edge, ActiveHigh, Exclusive, )
                    {1}
            })
            Name (_PRS, ResourceTemplate ()  // _PRS: Possible Resource Settings
            {
                StartDependentFn (0x00, 0x00)
                {
                    FixedIO (
                        0x0060,             // Address
                        0x01,               // Length
                        )
                    FixedIO (
                        0x0064,             // Address
                        0x01,               // Length
                        )
                    IRQNoFlags ()
                        {1}
                }
                EndDependentFn ()
            })
        }
    }

    Scope (_SB.PCI0.LPCB)
    {
        Device (PS2M)
        {
            Name (_HID, "SYNA1201")  // _HID: Hardware ID
            Method (_UID, 0, Serialized)  // _UID: Unique ID
            {
                Return (Zero)
            }

            Name (_CID, EisaId ("PNP0F13"))  // _CID: Compatible ID
            Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
            {
                IRQ (Edge, ActiveHigh, Exclusive, )
                    {12}
            })
            Name (_PRS, ResourceTemplate ()  // _PRS: Possible Resource Settings
            {
                StartDependentFn (0x00, 0x00)
                {
                    IRQNoFlags ()
                        {12}
                }
                EndDependentFn ()
            })
        }
    }
 
Hey guys,
Would my brightness keys be in PS2K or PS2M. PS2M has the SYNA1201 device and PS2K has the PNP0303.
Code:
Scope (_SB.PCI0.LPCB)
    {
        Device (PS2K)
        {
            Name (_HID, "MSFT0001")  // _HID: Hardware ID
            Name (_CID, EisaId ("PNP0303"))  // _CID: Compatible ID
            Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
            {
                IO (Decode16,
                    0x0060,             // Range Minimum
                    0x0060,             // Range Maximum
                    0x01,               // Alignment
                    0x01,               // Length
                    )
                IO (Decode16,
                    0x0064,             // Range Minimum
                    0x0064,             // Range Maximum
                    0x01,               // Alignment
                    0x01,               // Length
                    )
                IRQ (Edge, ActiveHigh, Exclusive, )
                    {1}
            })
            Name (_PRS, ResourceTemplate ()  // _PRS: Possible Resource Settings
            {
                StartDependentFn (0x00, 0x00)
                {
                    FixedIO (
                        0x0060,             // Address
                        0x01,               // Length
                        )
                    FixedIO (
                        0x0064,             // Address
                        0x01,               // Length
                        )
                    IRQNoFlags ()
                        {1}
                }
                EndDependentFn ()
            })
        }
    }

    Scope (_SB.PCI0.LPCB)
    {
        Device (PS2M)
        {
            Name (_HID, "SYNA1201")  // _HID: Hardware ID
            Method (_UID, 0, Serialized)  // _UID: Unique ID
            {
                Return (Zero)
            }

            Name (_CID, EisaId ("PNP0F13"))  // _CID: Compatible ID
            Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
            {
                IRQ (Edge, ActiveHigh, Exclusive, )
                    {12}
            })
            Name (_PRS, ResourceTemplate ()  // _PRS: Possible Resource Settings
            {
                StartDependentFn (0x00, 0x00)
                {
                    IRQNoFlags ()
                        {12}
                }
                EndDependentFn ()
            })
        }
    }

This should be PS2K. K stands for Keyboard, where M for Mouse. Anyway, you can ensure it by using IORegistryExplorer app.
 
Hi, i can't get my brightness Key working, in console i see:

fn + F2 = Brightness Low
fn + F3 = Brightness High


When Press fn + F2 = ACPIDebug: EC _Q0B enter
When Release fn + F2 = ACPIDebug: EC _Q2B enter
When Press fn + F3 = ACPIDebug: EC _Q0C enter
When Release fn + F3 = ACPIDebug: EC _Q2C enter

How can i fix It in DSDT, i'm a bit confusing because the event when i release the Key didn't exit but generate another enter event as you can see...
 
Hi, i can't get my brightness Key working, in console i see:

fn + F2 = Brightness Low
fn + F3 = Brightness High


When Press fn + F2 = ACPIDebug: EC _Q0B enter
When Release fn + F2 = ACPIDebug: EC _Q2B enter
When Press fn + F3 = ACPIDebug: EC _Q0C enter
When Release fn + F3 = ACPIDebug: EC _Q2C enter

How can i fix It in DSDT, i'm a bit confusing because the event when i release the Key didn't exit but generate another enter event as you can see...

Use only _Q0B and _Q0C

If using hotpatch, rename to XQ0B and XQ0C and implement the brightness code.
If not using hotpatch, remove body code for these methods and implement the brightness code.
 
Use only _Q0B and _Q0C

If using hotpatch, rename to XQ0B and XQ0C and implement the brightness code.
If not using hotpatch, remove body code for these methods and implement the brightness code.
Using Only _Q0B for Brightness down and _Q0C for Brightness up It works Only for the First click...

Then nothing, the keys didn't response more...

For the hotpatch i don't know how to Do It, i know how to rename the keys but i don't know how to implement Brightness code, can you explain me how to Do It?...

Thanks a lot
 
I'm trying to turn on key logging to the system.log but when trying to run the command I get command not found?
Code:
~ % sudo /Users/bin 'ioio -s ApplePS2Keyboard LogScanCodes 1'
sudo: /Users/bin: command not found
 
Back
Top