NoobsPlanet

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics, posts and unlimited download to our resources, as well as connect with other members through your own private inbox!

Brightness Keys Remapping F11 and F12 for Hackintosh

noobsplanet

Well-known member
Staff member
Administrator
Moderator
Welcome guys all Hackintosh lovers,
We're using the brightness keys Fn+B and Fn+S for brightness keys, or some of you may not know about this and setting brightness from preferences slider. Currently some may have bugs like Fn+ 11 and Fn+12 will freeze your pc for some seconds but now you will not longer face this and keys will be working perfect for brightness. :cool: In this guide I am gonna guide you step by step to make a brightness keys remap through F11 and F12, which is an issue for a Hackintosh. This is a very simple patch. Before we begin let's understand why we're unable to patch this? Because we are unable to patch the keys to call the the EC Queries method and we failed. According to the RehabMan's brightness patch, he said :
RehabMan said:
some of the recent Dell laptops have a complex path from EC queries (or even a single query method) through NEVT that eventually lands in the BRT6 method.
Yes, and exactly he mention about BRT6 method and it worked like a charm. And this guide is pretty simple and easy, let's go and start this but before we begin make sure you have completed the following things :
1) Brightness is working for System Prefrences > Displays. See Guides
2) Basic knowledge for how to patch DSDT. See Guides
3) If you've already patched your DSDT then make sure you have DSDT.dsl

I will go straight to guide and patch the BRT6 patch, grab your DSDT.dsl (Disassemble DSDT with MaciASL ) and open with MaciASL, Click patch and copy and paste the following code and click apply.
Swift:
into method label BRT6 replace_content
begin
    If (LEqual (Arg0, One))\n
    {\n
// Brightness Up\n
        Notify (^^LPCB.PS2K, 0x0406)\n
    }\n
    If (And (Arg0, 0x02))\n
    {\n
// Brightness Down\n
        Notify (^^LPCB.PS2K, 0x0405)\n
    }\n
end;
Now, click on compile and if no errors were found, click File > Save. Then, File > Save As > Machine Language. Now you will have a DSDT.aml copy and move to EFI/Clover/ACPI/patched/ then open your config.plist and enable the following two patches if exits like below image.[Just untick from disabled] (Assuming you are using a config.plist from RehabMan's OS X laptop config, otherwise you may need to add it manually) i.e. change OSID to XSID and change _DSM to XDSM. Save the config.plist with File > Save.

Screen Shot 2019-01-19 at 1.42.59 PM.png


Now, the last step is you need to place the patched SSDT-XOSI.aml, you can download it from resources and pace it into /EFI/Clover/ACPI/patched/ and reboot your system. Now, your Fn + F11 and Fn+ F12 should be functioning correctly. Thank You!!

Source : TonyMacx86
Special Thanks : RehabMan
 
Last edited:

noobsplanet

Well-known member
Staff member
Administrator
Moderator
nice one..will try it later..
but can't understand how its works or do DSDT Patch..process seems to be very length
There nothing any complicated, you can do it. Actually, you don't need to dive deep into that guide, that guide is mixed with 2 content, one extracting DSDT and next is patching the disabling of unsupported DGPU. In this scenario, you just extract your ACPI files and patch your DSDT.dsl as mention.
 

noobsplanet

Well-known member
Staff member
Administrator
Moderator
If i want set bright in keys Fn+F2 and Fn+F3?, how to?. Because in my laptop that keys is for default.

MThanks.
If you can increase and decrease brightness via Fn+B and Fn+S then this guide is for you. I will talk about remaining brightness keys for HP laptops later separately. But Meanwhile you may try this, backup your DSDT files, if it didn't work, be sure to revert it back.
 

noobsplanet

Well-known member
Staff member
Administrator
Moderator
I set bright in keys F2 and F3 (+ and -) and work.

Thanks.

Offtopic I still have to fix the glitch problems on the screen at startup, sound and that the battery does not show me the load or discharge.

Greets.

I follow this link and work. https://noobsplanet.com/index.php?threads/enable-and-control-brightness-backlight-for-mojave.72/ then i go to keyboard, quick functions, screen and change screen brightness.

And apologize if I bother you.
All will not have this problem, some will have working brightness keys out of the box from installation it's because of their laptop keyboard is similar to that of Mac keyboard. So, no need to apply the patch if you a set with F2 and F3 if that is your default shortcut for brightness.
Graphics related things are offtopic here so don't mention about it here as well.(y)
 

Wizard

New member
I set bright in keys F2 and F3 (+ and -) and work.

Thanks.

Offtopic I still have to fix the glitch problems on the screen at startup, sound and that the battery does not show me the load or discharge.

Greets.

I follow this link and work. https://noobsplanet.com/index.php?threads/enable-and-control-brightness-backlight-for-mojave.72/ then i go to keyboard, quick functions, screen and change screen brightness.

And apologize if I bother you.
Hey would you please explain how to make hotkeys work. I have working brightness but only through slider.
 

Roamaz

Member
Hey would you please explain how to make hotkeys work. I have working brightness but only through slider.
Go to System preferences, click in keyboard, go to fast functions and click in Screen: You must see Up bright and Down Bright, double click in F14 and read messages, then click in other key (F2, F1, etc), after double click in F15 and do same back.


See Video, is in Spanish but is easy.
 
Last edited:

Wizard

New member
Go to System preferences, click in keyboard, go to fast functions and click in Screen: You must see Up bright and Down Bright, double click in F14 and read messages, then click in other key (F2, F1, etc), after double click in F15 and do same back.


See Video, is in Spanish but is easy.
Well I don't have setting like you
 

Roamaz

Member
Well, it should be there, try all the controls to see.

Or follow this link.
 

Wizard

New member
Well, it should be there, try all the controls to see.

Or follow this link.
NO its not there, my brightness is working but not the hotkeys
 
D

Dreamwhite

Guest
I've successfully applied the patch and the keys are mapped via sysprefs/keyboard/shortcuts but the backlight control is lagging. If I press the button for lowering brightness it isn't smooth
 

noobsplanet

Well-known member
Staff member
Administrator
Moderator
I've successfully applied the patch and the keys are mapped via sysprefs/keyboard/shortcuts but the backlight control is lagging. If I press the button for lowering brightness it isn't smooth
I don't understand what you mean. Can you please explain in detail and attach the screenshot(video if necessary) of your problem?
 

themacman

New member
This worked perfectly for Clover. How do I adapt this for OpenCore which does not use a DSDT? Do I edit the SSDT-GPIO kext or create a new one?
 
Top