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!

Patch Brightness keys using console.app hackintosh Qxx method.

noobsplanet

Well-known member
Staff member
Administrator
Moderator
Due to difference in real mac and hackintosh keyboard many hackintosh system will miss the brightness control through Fn+ n Keys. I hope you've now working brightness, that you can check it from SystemPrefs -> Displays. If you can't find slider then you first need to make brightness work first then only after remapping keyboard for it.


Reboot your system and you should see slider in SysPrefs->Displays. Now before following this guide, you should has at least basic knowledge of how DSDT working, edits and use. You can see the very basic of DSDT here :
console-hero-800x400.jpg

Open MaciASL and click on add sources and set source as http://raw.github.com/RehabMan/OS-X-ACPI-Debug/master then apply "OS Check Fix", "Add DSDT Debug Methods" and apply "Instrument EC Queries" then reboot your system. After reboot open console.app from Applications -> console.app and system.log and press the Fn+brightness keys on the keyboard to detect.

After you have determined which methods correspond to the brightness keys, you can patch the methods like below but be sure to replace the keys

Assuming _Q16 is brightness decrease, and _Q17 is for brightness increase.
Remapping Brightness Keys:
into method label _Q16 replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n
end;
into method label _Q17 replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n
end;
That's it. Compile and save this file as ACPI Language and don't forget to place patched DSDT into Clover/ACPI/patched/.
Thank You!! If you guys have any problem then let me know.
 
Top