Jump to content
soumaxetuirk

GUIDE: How to Fix Brightness hotkeys in DSDT

101 posts in this topic

Recommended Posts

It could be your DSDT is old enough to not have any checks for "Windows 2012".

 

You should read each patch carefully. And check your own DSDT for the code the patch is trying to match on.

hi rehabman,, i was try patch dsdt with OS Check Fix,, in my dsdt it's OOSI and i try rename all of OOSI to _OSI and use youre patch ,, i success compile that and no error, but and cant see generated key in system.log,, only if i press fn+f4 showing EC_ Q0A1 or EC_Q0A0,, 

here's my DSDT you can check my work : https://www.dropbox.com/s/4eleofoc1m305k8/DSDT.aml?dl=0

Share this post


Link to post
Share on other sites
Advertisement

hi rehabman,, i was try patch dsdt with OS Check Fix,, in my dsdt it's OOSI and i try rename all of OOSI to _OSI and use youre patch ,, i success compile that and no error, but and cant see generated key in system.log,, only if i press fn+f4 showing EC_ Q0A1 or EC_Q0A0,, 

here's my DSDT you can check my work : https://www.dropbox.com/s/4eleofoc1m305k8/DSDT.aml?dl=0

Yours is OOSI because you're using Clover autopatching. Not a good idea to mix Clover DSDT "Fixes" with manual patching.

Share this post


Link to post
Share on other sites

YES

Let's check.

 

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip

Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

 

In terminal,

if [ -d ~/Downloads/RehabMan ]; then rm -R ~/Downloads/RehabMan; fi
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract
Note: It is easier if you use copy/paste instead of typing the commands manually.

 

Post contents of Downloads/RehabMan directory (as ZIP).

 

Also, post ioreg with IORegistryExplorer v2.1.

Share this post


Link to post
Share on other sites

Yours is OOSI because you're using Clover autopatching. Not a good idea to mix Clover DSDT "Fixes" with manual patching.

so i need to extract my DSDT using windows or linux ?

Share this post


Link to post
Share on other sites

so i need to extract my DSDT using windows or linux ?

You can press F4 in Clover. It will write native files to EFI/Clover/ACPI/origin.

Share this post


Link to post
Share on other sites

You can press F4 in Clover. It will write native files to EFI/Clover/ACPI/origin.

i was try , and i get native dsdt,, and i try use your patch OS Checks fix, but still no key generated, i thinks my fn key is PS2 key not ACPI key

Share this post


Link to post
Share on other sites

i was try , and i get native dsdt,, and i try use your patch OS Checks fix, but still no key generated, i thinks my fn key is PS2 key not ACPI key

Post native and patched DSDT.

 

Also ioreg (IORegistryExplorer v2.1).

Share this post


Link to post
Share on other sites

DSDT is not patched to instrument EC query methods.

i was try to clean install and try to patch dsdt again, and it's work rehabman,, thank you for help me,,  :D

Share this post


Link to post
Share on other sites

If anyone has Elantech touchpad/keyboard, there is a very easy way to configure them, as well as other system functions.

You just need to edit the Info plist of the kext and switch between Apple mode or Vendor mode. i have the native sliders working thanks to that

 

post-1517295-0-48795600-1454402600_thumb.png

Share this post


Link to post
Share on other sites

here is my DSDT file, and thank you very much for your help in all thisattachicon.gifDSDT.aml.zip

 

OK, I patched your DSDT using the patch RehabMan developed for the HP Envy17-J series.  It worked on my laptop as well and makes the brightness keys (F2 + F3) functional.

 

DSDT.aml.zip

Share this post


Link to post
Share on other sites

OK, I patched your DSDT using the patch RehabMan developed for the HP Envy17-J series.  It worked on my laptop as well and makes the brightness keys (F2 + F3) functional.

 

attachicon.gifDSDT.aml.zip

I wanted to thank you for your help, the patch you did, it's working perfect, for your time and give away that little or great knowledge you have on the subject !!! "Mnfesq" Thank you !!! and a great excuse for my bad English !!!

Share this post


Link to post
Share on other sites

Hi! I got working brightness keys but Keyboard and Touchpad stop working 5sec after I press one of the keys.

What's the problem?

I installed Debug version of the Kext from RehabMan's Github and it just stops working, no warning or error.

Share this post


Link to post
Share on other sites

Hi! I got working brightness keys but Keyboard and Touchpad stop working 5sec after I press one of the keys.

What's the problem?

I installed Debug version of the Kext from RehabMan's Github and it just stops working, no warning or error.

You probably have a Dell with breakless Fn+Fx keys.

See SSDT-KEY-DELL-WN09.dsl at github for VoodooPS2Controller.

Share this post


Link to post
Share on other sites

You probably have a Dell with breakless Fn+Fx keys.

See SSDT-KEY-DELL-WN09.dsl at github for VoodooPS2Controller.

Hi RehabMan! I have an HP Pavilion, not Dell, but I'll try your recomendation.

Share this post


Link to post
Share on other sites

Is this still working ?

I have a VAIO SVS15 and nothing is visible in system.log when I use my keyboard.

 

ACPIdebug seems to work because it populates the log when I'm using the trackpad. But not the keyboard.

Anyone can help ? ;) 

 

Thanks !

Share this post


Link to post
Share on other sites

When this thread was started, this was the code we were all using:

into method label _Q1D replace_content
begin
// Brightness Down\n
Notify(\_SB.PCI0.LPCB.PS2M, 0x0205)\n
Notify(\_SB.PCI0.LPCB.PS2M, 0x0285)\n
end;
into method label _Q1C replace_content
begin
// Brightness Up\n
Notify(\_SB.PCI0.LPCB.PS2M, 0x0206)\n
Notify(\_SB.PCI0.LPCB.PS2M, 0x0286)\n
end;

Now that I am running Sierra 10.12.1, Brightness Up is controlled with the code 0x0205 and 0x0285 (not 0x0206 and 0x0286).  I can't seem to find any code that controls brightness down.  I have modified my DSDT to make the Brightness Up key (F3) work.  Does anyone else running Sierra 10.12.1 have this issue?

Share this post


Link to post
Share on other sites

When this thread was started, this was the code we were all using:

into method label _Q1D replace_content
begin
// Brightness Down\n
Notify(\_SB.PCI0.LPCB.PS2M, 0x0205)\n
Notify(\_SB.PCI0.LPCB.PS2M, 0x0285)\n
end;
into method label _Q1C replace_content
begin
// Brightness Up\n
Notify(\_SB.PCI0.LPCB.PS2M, 0x0206)\n
Notify(\_SB.PCI0.LPCB.PS2M, 0x0286)\n
end;
Now that I am running Sierra 10.12.1, Brightness Up is controlled with the code 0x0205 and 0x0285 (not 0x0206 and 0x0286).  I can't seem to find any code that controls brightness down.  I have modified my DSDT to make the Brightness Up key (F3) work.  Does anyone else running Sierra 10.12.1 have this issue?

 

It is best to change the keyboard driver such that it generates F14/F15 instead of the real brightness ADB codes.

In my driver, can be done in ACPI. Not sure about other drivers.

Share this post


Link to post
Share on other sites

It is best to change the keyboard driver such that it generates F14/F15 instead of the real brightness ADB codes.

In my driver, can be done in ACPI. Not sure about other drivers.

 

 

Hi, haven't seen you much since Sierra came out.  Hope you were busy in a good way.  I'm using your June 16th version of VoodooPS2Controller.  I tried installing ACPIDebug and also used ioio to try to find the right codes.  I must not have done it right because I only got what was already in my DSDT and not what was actually needed to control brightness.  Is it possible that Apple's ADB codes have changed and that the DSDT patches are calling different ADB codes now?  If you recall, my laptop, like the Haswell Envy uses the same HKNO in _Q13 for both brightness up and down, but the F2 key is 0x07 and the F3 key is 0x08.

Share this post


Link to post
Share on other sites

Hi, haven't seen you much since Sierra came out.  Hope you were busy in a good way.  I'm using your June 16th version of VoodooPS2Controller.  I tried installing ACPIDebug and also used ioio to try to find the right codes.  I must not have done it right because I only got what was already in my DSDT and not what was actually needed to control brightness.  Is it possible that Apple's ADB codes have changed and that the DSDT patches are calling different ADB codes now?  If you recall, my laptop, like the Haswell Envy uses the same HKNO in _Q13 for both brightness up and down, but the F2 key is 0x07 and the F3 key is 0x08.

ADB codes are determined by code in the keyboard kext itself (the keymap).

You can use "Custom ADB Map" to change the PS2->ADB assignments.

Share this post


Link to post
Share on other sites

ADB codes are determined by code in the keyboard kext itself (the keymap).

You can use "Custom ADB Map" to change the PS2->ADB assignments.

 

I got a better idea of what you were saying when I read your post "[README] Common (some unsolved) Problems in 10.12 Sierra" on another forum.  If I were to use the SSDT method you displayed there, would I modify it, save it as SSDT2.aml and put it in Clover\ACPI\Patched?

Share this post


Link to post
Share on other sites

I got a better idea of what you were saying when I read your post "[README] Common (some unsolved) Problems in 10.12 Sierra" on another forum.  If I were to use the SSDT method you displayed there, would I modify it, save it as SSDT2.aml and put it in Clover\ACPI\Patched?

SSDT name is not important. I would give it a more meaningful name. If you're using SortedOrder, don't forget to add the SSDT to the list.

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By MaLd0n
      ---INSTALLATION TUTORIAL---
       
      ---Original Post---
      https://olarila.com/forum/viewtopic.php?f=45&t=9172
       
      ---USB---
      https://pikeralpha.wordpress.com/2016/07/13/simple-skylake-usb-fix-no-kexts-required/
       
      ---CLOVER FOLDER---
       
      CLOVER.zip
       
       
      --MOBO
      GigaByte Z390 M Gaming



      --PROCESSOR
      Intel Core i9-9900K


      --COOLER
      CoolerMaster MasterLiquid ML120R RGB


      --MEMORY
      Corsair Dominator Platinum 16GB (2 x 8GB)


      --GPU
      Sapphiretech Radeon RX 590 8 GB GDDR5


       
      --SSD
      Samsung 970 EVO NVMe M2 Flash Drive


      --POWER SUPPLY
      EVGA 750 N1, 750W


      --WIRELESS
      TP-Link Archer T9E


      --BLUETOOTH
      Orico BTA-403


      --CASE
      Thermaltake View 21 Tempered Glass Edition


      --DSDT Patches--
      -FIX ERRORS AND WARNINGS -FIX ACPI ERRORS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA SERIE 10 ID -DMAC -REMOVE 22K LINES, PROBLEMATIC and UNUSED -FIX K.P in REBOOT -NVRAM / REAL TIME CLOCK -SLPB -DARWIN / WINDOWS 2015 -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -REAL TIME CLOCK -ARTC -IRQs -SBUS -MIKEY -BUS1 -MCHC -ALS0 -SHUTDOWN -UAR1 -LAN -FWHD -USBX -PMCR -PPMC -XSPI -GMM -IMEI -EC -PNLF -ARPT -GFX0 -NVME -DTGP -ACQUIRE MUT0 0XFFFF -OPERATION REGION GPIO -MUTEX MUT0 0x00 -EXTERNAL REFERENCES -UNKNOWNOBJ -HDMI / HDAU -FULL RENAMED DEVICES  
      --SCREENSHOTS--





























      --BruceX--
       
      --USB-C-- test with SanDisk Ultra USB-STICK 128gb


       
      -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
      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, Sampath007, onemanosx, erroruser, Jenny David, Olarila Facebook Community, Hackintosh Facebook Community and many others!
      We're all here to have fun and learn from each other!
    • By AppleBytes
      Hello,
      I'm working on a re-install of OSX on a dell inspiron 9400. I was finally able to get a copy of SL on it. But it still needs MUCH work, as the graphics (NVIDIA Geforce Go 7800) isn't properly recognized -- either by model, or installed VRAM.
      It has 512Mb, but only initializes 256Mb VESA.
      Anyway, as a start, I thought it best to use a valid dsdt.dsl for compilation, and start there. I've managed to remove all the warnings, and errors save 2
      OUTPUT:
      # sudo iasl -ta ./dsdt.dslll Intel ACPI Component Architecture ASL Optimizing Compiler version 20110527-64 [May 27 2011] Copyright (c) 2000 - 2011 Intel Corporation ./dsdt.dslll   3519:                                 Return (0x00) Error    4080 -           Invalid object type for reserved name ^  (found INTEGER, requires Buffer) ./dsdt.dslll   3956:                     Return (Package (0x00) {}) Remark   5072 -         Effective AML package length is zero ^ ASL Input:  ./dsdt.dslll - 4997 lines, 158533 bytes, 1633 keywords Compilation complete. 1 Errors, 0 Warnings, 1 Remarks, 577 Optimizations I'm attaching a copy of the above output, and the dsdt.dsl file in a tarball to this post in hopes someone with the required knowledge can help me fix it.
      FWIW
      SMBIOS I'm using indicates this is a MBP 3,1
      cpu: cd2 (T7400 @2.16Ghz)
      graphics: NVIDIA Geforce Go 7800 ( G70M? )
      ram: 4Gb
      dell inspiron 9400 (Laptop)
       
      Thank you for all your time, and consideration!
       
      --Chris
       
      DSDT-DSL.tar
    • By RagK
      Hey , I have installed MacOS Mojave on my desktop
       I am facing issue in which the front pane USB ports on my cpu are working only after a reboot.
       
      When I start my PC after a shut down the USB ports docent seem to work as USB pen drive is not detected 
       
      Please Help
    • By RagK
      Hey I am running Mojave on my Desktop
       
      I am facing this issue after I open AppStore Can't connect to App Store
       
      I am using USB Tethering from an android phone after installing HoRNDIS-9.2
       
      Also I wrote this Post on my Mac so there is no problem of internet 
       
      I have also added this screenshot .
       
      Please Help to your fullest ! 

×