Jump to content
[ IMPORTANT ] Premium and Donators users ×
Olarila Professional Hackintosh Services ×

[Guide] Easy Brightness Hotkey Remapping


MaLd0n

Recommended Posts

  • Administrators

Easy Brightness Hotkey Remapping on hackintosh

 

-Support Olarila Vanilla Hackintosh by making a donation HERE

-About Premium Users you can check HERE

-Problems with Paypal HERE

-Installation Guide HERE

-Hackintosh EFI folders HERE

-Hackintosh USB Remap HERE

-How to update OpenCore and Kexts HERE

-Guides and Tutorials HERE

 

Let's Start

 

Download Maciasl from HERE

Download Lilu and WhateverGreen

 

1- Apply PNLF Patch or use SSDT PNLF

 PNLF for Sandy Bridge / Ivy Bridge / Haswell / Broadwell / Sky Lake / Kaby Lake processors

SSDT PNLF-KABY-.aml.zip

DSDT patch

into_all device label PNLF remove_entry;
into scope label _SB insert
begin
Device (PNLF)\n
        {\n
            Name (_HID, EisaId ("APP0002"))  // _HID: Hardware ID\n
            Name (_CID, "backlight")  // _CID: Compatible ID\n
            Name (_UID, 0x10)  // _UID: Unique ID\n
            Name (_STA, 0x0B)  // _STA: Status\n
        }\n
end

 

PNLF for Coffe Lake / Whiskey Lake / Comet Lake / Ice Lake processors

SSDT  PNLF-COFFEE+.aml.zip

DSDT patch

into_all device label PNLF remove_entry;
into scope label _SB insert
begin
Device (PNLF)\n
        {\n
            Name (_HID, EisaId ("APP0002"))  // _HID: Hardware ID\n
            Name (_CID, "backlight")  // _CID: Compatible ID\n
            Name (_UID, 0x13)  // _UID: Unique ID\n
            Name (_STA, 0x0B)  // _STA: Status\n
        }\n
end

 

2- Brightness Keys

Use BrightnessKeys.kext for automatic handling of brightness keys based on ACPI Specification

On some Laptops, may be required ACPI patch _OSI to XOSI and SSDT-XOSI.

 

-Credits

Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad, headkaze, onemanosx, erroruser, Jenny David, Sampath007, Facebook Hackintosh community, Facebook Olarila community and many, many, many others!

 

We're all here to have fun and learn from each other!

  • Like 2

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

  • Administrators
7 hours ago, Deihmos said:

How can I do this patch with an SSDT? I am looking for a way to just use SSDTs with OpenCore.

in this case u need use rename

example

_Q11 to _Q1x and inject SSDT with new remap

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

25 minutes ago, MaLd0n said:

in this case u need use rename

example

_Q11 to _Q1x and inject SSDT with new remap

I have made some progress but not there as yet. This is my final issue that I am trying to resolve. The brightness keys should be fn+f3 for up and fn+f2 for down.

I have the renames but the SSDT has an issue. What am I doing wrong?

 

SSDT-BLCT.dsl DSDT.dsl config.plist.zip

Link to comment
Share on other sites

  • Administrators

first u need check what methods _Qxx u need rename

check the name of the device ps2 too

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

2 hours ago, MaLd0n said:

first u need check what methods _Qxx u need rename

check the name of the device ps2 too

I have done that. It is _Q1C and _Q1D  and I have already done the renames. I am not sure what code I need for fn+f2 and fn+f3.

DefinitionBlock("", "SSDT", 2, "hack", "BrightFN", 0)
{
    External(_SB.PCI0.LPCB.KBD0, DeviceObj)
    External(_SB.PCI0.LPCB.EC0, DeviceObj)
    External(_SB.PCI0.LPCB.EC0.XQ1C, MethodObj)
    External(_SB.PCI0.LPCB.EC0.XQ1D, MethodObj)
    
    Scope (_SB.PCI0.LPCB.EC0)
    {
        Method (_Q1C, 0, NotSerialized)//down
        {
            If (_OSI ("Darwin"))
            {
                Notify(\_SB.PCI0.LPCB.KBD0, 0x0405)
                Notify(\_SB.PCI0.LPCB.KBD0, 0x20)
            }
            Else
            {
                \_SB.PCI0.LPCB.EC0.XQ1C()
            }
        }
    
        Method (_Q1D, 0, NotSerialized)//up
        {
            If (_OSI ("Darwin"))
            {
                Notify(\_SB.PCI0.LPCB.KBD0, 0x0406)
                Notify(\_SB.PCI0.LPCB.KBD0, 0x10)
            }
            Else
            {
                \_SB.PCI0.LPCB.EC0.XQ1D()
            }
        }
    }
}
//EOF
 

Edited by Deihmos
Link to comment
Share on other sites

  • Administrators
3 hours ago, Deihmos said:

When I press the brightness keys the PC reboots. I did the rename _Q1C to XQ1C and _Q1D to XQ1D. IS that incorrect ? If not, what should it be?

u have a dual boot?

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

46 minutes ago, MaLd0n said:

u have a dual boot?

Yes I have a dual boot but just wanted to see if I can get everything working with SSDTs. This is the only thing I have outstanding and I just can't figure it out. Everything else is working fine. 

I do have a DSDT that you did.

 

Link to comment
Share on other sites

  • Administrators

if u dont use dual boot why use a incomplete solution provide by SSDT. use full DSDT patched

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

  • Administrators
3 hours ago, lightpower said:

is there a PNLF Patch for comet lake?

update first post. check

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

On 9/9/2020 at 10:38 AM, MaLd0n said:

if u dont use dual boot why use a incomplete solution provide by SSDT. use full DSDT patched

I use dual boot. I also have the DSDT but I don't see any difference between using the SSDTs vs DSDT. I get the same results but can dual boot with the SSDTs.

 

voodoops2 now handles ACPI notification for brightness keys without any patches.

Edited by Deihmos
Link to comment
Share on other sites

  • Administrators
1 hour ago, Deihmos said:

I use dual boot. I also have the DSDT but I don't see any difference between using the SSDTs vs DSDT. I get the same results but can dual boot with the SSDTs.

have many difference. with ssdt the system is always a little slippery

but if u reaaly need dual boot and need boot windows from opencore, use ssdt

i'm using bootkey

 

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

On 9/9/2020 at 1:28 AM, Deihmos said:

I got it done. The code was not correct. Now I have everything working with SSDTs.

I don't use OpenCore for dual boot because I don't want my PC to act like a Mac. Hopefully an option is added to disable it. 

@Deihmos could you please share the ssdt code (and oc renames) that worked for you?

Im trying to do the same thing with SSDT for HP Elitebook 840 G6.

Edited by miki1987
Link to comment
Share on other sites

  • Administrators
1 hour ago, miki1987 said:

@Deihmos could you please share the ssdt code (and oc renames) that worked for you?

https://github.com/acidanthera/BrightnessKeys

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

Thank you for the quick reply @MaLd0n!

I dont know what is my problem exactly, my special keys (fn+f3 and fn+f4) controls brightness perfectly, but everytime I reboot from Windows, it doesn't work anymore (if I hold power button for 30secs to reset my EC, or something :)... then it works again, but always after windows stops working).

I tried this kext but reboots always when I try to load it. I dont use any special SSDT or DSDT patches for this. I tried booting with "-v" and "-brkeysdbg" for debug output, but I got nothing meaningful. Just freezes while booting with this kext.

TY

https://github.com/lonacluka/HP-EliteBook-840-G6-Hackintosh

Edited by miki1987
added github link
Link to comment
Share on other sites

  • Administrators

--Update first post with updated procedure with new kexts, etc--

-Guides and Tutorials HERE

-Hackintosh Tutorial Database - HERE

-The largest EFI folder collection for Hackintosh HERE

-Support Olarila Vanilla Hackintosh by making a donation HERE

-Professional Consulting for macOS Hackintosh since 2006 HERE

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...