Jump to content
soumaxetuirk

GUIDE: How to Fix Brightness hotkeys in DSDT

107 posts in this topic

Recommended Posts

If you have a working Brightness Slider and you might be using Brightness slider or manual hotkeys to control brightness then this guide may help you to use your Native hotkeys of laptop.

 

(All the Credits goes to @RehabMan  :thumbsup_anim:   For OS-X-ACPI-Debug Kext and DSDT Patches.)

 

 

This step assumes that you are using RehabMan's VoodooPS2Controller or Acidanthera's PS2Controller

  1. Install the kext: https://github.com/RehabMan/OS-X-ACPI-Debug
  2. Open MaciASL and click on patch.(Add rehab man repo)
  3. Apply "Add DSDT Debug Methods" and "Instrument EC Queries" that are under Brightness Fix.
  4. Save the DSDT and restart
  5. Look in Syslog as you press the key corresponding to brightness to determine which _QXX methods handle the keys

(UPDATE: From Sierra Apple changed logging process. So you won't find ACPIdebug result using syslog command. Instead use following command )

log show --last 5 | grep ACPIDebug

6. Then patch DSDT:

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;

Change the variable _Q1D/_Q1C as per the log. 

7. Try compiling and check if it generates errors
8. If it does, then change the PS2M to PS2X according to the one found in your DSDT
9. Save and place the compiled DSDT.
10. Now you should see that you have your corresponding keys to change your brightness smile_osx.png

 

 

:) FOR  more detail and Queries,Check Out original Post of @RehabMan Here;

http://www.insanelym...18#entry1997112

Get Latest Version of  OS-X-ACPI-Debug kext here:

https://bitbucket.org/RehabMan/os-x-acpi-debug/downloads

Edited by soumaxetuirk

Share this post


Link to post
Share on other sites
Advertisement

Yeah! This works for me perfectly.

 

The only change was:

  1. PS2M to PS2K - according to my value found in my DSDT.
  2. The _Q1D/_Q1C to _Q11/_Q12
  3. And i remove the old version of VoodooPS2Controller and install VoodooPS2Controller 1.8.14 version.
  4. Remove AppleACPIPS2Nub too.

 

Repair the disk permissions and rebuild the cache, and tadaaa! My native brightness keys works now like a charm.

 

Thank you very much @RehabMan and @soumaxetuirk  ;)

PS: I will translate this for Portuguese forum! Is awesome  :D

Share this post


Link to post
Share on other sites

This step assumes that you are using RehabMan's [/size]VoodooPS2Controller

  • Install the kext: https://github.com/RehabMan/OS-X-ACPI-Debug
  • Open MaciASL and click on patch.(Add rehab man repo)
  • Apply "Add DSDT Debug Methods" and "Instrument EC Queries" that are under Brightness Fix.
  • Save the DSDT and restart
  • Look in Syslog as you press the key corresponding to brightness to determine which _QXX methods handle the keys
  • Then patch DSDT:

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;
Change the variable _Q[/size]1D[/size]/_Q[/size]1C[/size] as per the log. [/size]

 

7. Try compiling and check if it generates errors[/size]

8. If it does, then change the [/size]PS2M to PS2X[/size] according to the one found in your DSDT[/size]

9. Save and place the compiled DSDT.[/size]

10. Now you should see that you have your corresponding keys to change your brightness [/size]smile_osx.png

 

Hmmmm... this guide seems very similar to one I've already written.

Share this post


Link to post
Share on other sites

i am kind of sure its not in this forum.Truly No,because i  searched and asked for years tried many different methods to fix my brightness hotkeys....

atlast when i got some solution from i thought to  write it here..

 

i got from a tutorial 

http://www.tonymacx86.com/yosemite-laptop-support/151708-guide-hp-dv6-7040tx-clover.html

Share this post


Link to post
Share on other sites

i am kind of sure its not in this forum.Truly No,because i  searched and asked for years tried many different methods to fix my brightness hotkeys....

atlast when i got some solution from i thought to  write it here..

 

i got from a tutorial 

http://www.tonymacx86.com/yosemite-laptop-support/151708-guide-hp-dv6-7040tx-clover.html

 

Ok.

 

Thank you for your explanation. Thus, fine by me.

Share this post


Link to post
Share on other sites

Here in our Forum?

 

@soumaxetuirk, If this is true, it would be good to put the source of this topic.

Not on this forum. I find it too much work to maintain my guides in multiple places.

 

But when someone uses another's work, it is customary and respectful to quote the source, even if it is on a different forum. Instead, post #1 reads as if this is the author's own work. I first came up with the EC instrumentation/patching technique when trying to fix the brightness keys on my Lenovo u430.

 

Later, I helped gygabyte666 do the same on his Envy (a laptop I had previously). The conversation starts here: http://www.insanelymac.com/forum/topic/290687-wip-hp-envy-17t-j000-quad-haswell-10851091010/page-18?do=findComment&comment=1997112

 

Note that the details of the technique differ depending on the PS2 driver you're using and what you find out via instrumentation. For example, there are not always two separate methods for each key (in the case of the u430 they are separate, yet the HP Envy shares one method for more than one key). And you'll need to send different codes and ACPIKeyboard.kext if you're using a PS2 driver other than mine. There is more details at my ACPIKeyboard.kext README at github.

Share this post


Link to post
Share on other sites

Both my brightness down key (F2) and my brightness up key (F3) are _Q13.  Here's the DSDT code for it.  Any recommendations for patching?

                    Method (_Q13, 0, NotSerialized)
                    {
                        If (LEqual (HKNO, 0x07))
                        {
                            Store (0x07, P80H)
                            Notify (^^^GFX0.DD02, 0x87)
                            Notify (^^^PEG0.PEGP.DD02, 0x87)
                        }

                        If (LEqual (HKNO, 0x08))
                        {
                            Store (0x08, P80H)
                            Notify (^^^GFX0.DD02, 0x86)
                            Notify (^^^PEG0.PEGP.DD02, 0x86)
                        }

                        If (LAnd (LGreaterEqual (HKNO, 0x13), LLessEqual (HKNO, 0x1E)))
                        {
                            If (LNotEqual (HKNO, 0x13))
                            {
                                ^^^^WMID.WGWE (0x04, Zero)
                            }
                            Else
                            {
                                If (LEqual (HKNO, 0x13))
                                {
                                    If (BTLS)
                                    {
                                        GLSD ()
                                        Store (Zero, WLRF)
                                        Store (Zero, WARF)
                                        GLRS ()
                                        Store (Zero, WLON)
                                        GLSD ()
                                        Store (One, BTOF)
                                        GLRS ()
                                        Store (Zero, BTON)
                                        GLSD ()
                                        Store (Zero, WWRF)
                                        Store (Zero, WAON)
                                        Store (One, WWOF)
                                        Store (Zero, BTLS)
                                        GLRS ()
                                    }
                                    Else
                                    {
                                        If (WLST)
                                        {
                                            GLSD ()
                                            Store (One, WARF)
                                            Store (One, WLRF)
                                            Store (Zero, WLED)
                                            GLRS ()
                                            Store (One, WLON)
                                        }
                                        Else
                                        {
                                            GLSD ()
                                            Store (Zero, WLRF)
                                            Store (Zero, WARF)
                                            Store (One, WLED)
                                            GLRS ()
                                            Store (Zero, WLON)
                                        }

                                        If (BLTH)
                                        {
                                            GLSD ()
                                            Store (Zero, BTOF)
                                            GLRS ()
                                            Store (One, BTON)
                                        }
                                        Else
                                        {
                                            GLSD ()
                                            Store (One, BTOF)
                                            GLRS ()
                                            Store (Zero, BTON)
                                        }

                                        If (WWAN)
                                        {
                                            If (LEqual (BTAP, One))
                                            {
                                                GLSD ()
                                                Store (Zero, WWOF)
                                                Store (One, WAON)
                                                Store (One, WWRF)
                                                GLRS ()
                                            }
                                        }
                                        Else
                                        {
                                            GLSD ()
                                            Store (One, WWOF)
                                            Store (Zero, WWRF)
                                            GLRS ()
                                            Store (Zero, WAON)
                                        }

                                        Store (One, BTLS)
                                    }
                                }
                            }
                        }

                        If (LEqual (HKNO, 0x04))
                        {
                            Notify (GFX0, 0x80)
                        }
                    }

Share this post


Link to post
Share on other sites

Both my brightness down key (F2) and my brightness up key (F3) are _Q13.  Here's the DSDT code for it.  Any recommendations for patching?

                    Method (_Q13, 0, NotSerialized)
                    {
                        If (LEqual (HKNO, 0x07))
                        {
                            Store (0x07, P80H)
                            Notify (^^^GFX0.DD02, 0x87)
                            Notify (^^^PEG0.PEGP.DD02, 0x87)
                        }

                        If (LEqual (HKNO, 0x08))
                        {
                            Store (0x08, P80H)
                            Notify (^^^GFX0.DD02, 0x86)
                            Notify (^^^PEG0.PEGP.DD02, 0x86)
                        }

                        If (LAnd (LGreaterEqual (HKNO, 0x13), LLessEqual (HKNO, 0x1E)))
                        {
                            If (LNotEqual (HKNO, 0x13))
                            {
                                ^^^^WMID.WGWE (0x04, Zero)
                            }
                            Else
                            {
                                If (LEqual (HKNO, 0x13))
                                {
                                    If (BTLS)
                                    {
                                        GLSD ()
                                        Store (Zero, WLRF)
                                        Store (Zero, WARF)
                                        GLRS ()
                                        Store (Zero, WLON)
                                        GLSD ()
                                        Store (One, BTOF)
                                        GLRS ()
                                        Store (Zero, BTON)
                                        GLSD ()
                                        Store (Zero, WWRF)
                                        Store (Zero, WAON)
                                        Store (One, WWOF)
                                        Store (Zero, BTLS)
                                        GLRS ()
                                    }
                                    Else
                                    {
                                        If (WLST)
                                        {
                                            GLSD ()
                                            Store (One, WARF)
                                            Store (One, WLRF)
                                            Store (Zero, WLED)
                                            GLRS ()
                                            Store (One, WLON)
                                        }
                                        Else
                                        {
                                            GLSD ()
                                            Store (Zero, WLRF)
                                            Store (Zero, WARF)
                                            Store (One, WLED)
                                            GLRS ()
                                            Store (Zero, WLON)
                                        }

                                        If (BLTH)
                                        {
                                            GLSD ()
                                            Store (Zero, BTOF)
                                            GLRS ()
                                            Store (One, BTON)
                                        }
                                        Else
                                        {
                                            GLSD ()
                                            Store (One, BTOF)
                                            GLRS ()
                                            Store (Zero, BTON)
                                        }

                                        If (WWAN)
                                        {
                                            If (LEqual (BTAP, One))
                                            {
                                                GLSD ()
                                                Store (Zero, WWOF)
                                                Store (One, WAON)
                                                Store (One, WWRF)
                                                GLRS ()
                                            }
                                        }
                                        Else
                                        {
                                            GLSD ()
                                            Store (One, WWOF)
                                            Store (Zero, WWRF)
                                            GLRS ()
                                            Store (Zero, WAON)
                                        }

                                        Store (One, BTLS)
                                    }
                                }
                            }
                        }

                        If (LEqual (HKNO, 0x04))
                        {
                            Notify (GFX0, 0x80)
                        }
                    }

 

Use ACPIDebug to find out the value of HKNO (Hot Key Number) for each key, then write code to check it and send the appropriate code.

 

For example, this is the patch for HP Envy 15 J-series (maybe K series too):

into method label _Q13 parent_label H_EC replace_content
begin
Store(HKNO, Local0)\n
If (LEqual(Local0,7))\n
{\n
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0205)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0285)\n
}\n
If (LEqual(Local0,8))\n
{\n
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0206)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0286)\n
}\n
If (LEqual(Local0,4))\n
{\n
// Mirror toggle\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x026e)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x02ee)\n
}\n
end;
Seems likely to be the same.

Share this post


Link to post
Share on other sites

Thanks, RehabMan, that worked.  With HP Envy laptops, it seems that the _Qxx value is only one variable controlling keyboard functions and that the HKNO value must also be established.  The patch you posted above that worked for gygabyte666 also worked for me.

Share this post


Link to post
Share on other sites
I can't find the correct hotkey for my lenovo, the hotkeys are F11 and F12, but when I open the console.app I see anything in the system.log when I press the hotkeys.

 

How can I do it? Thanks.

Share this post


Link to post
Share on other sites

 

I can't find the correct hotkey for my lenovo, the hotkeys are F11 and F12, but when I open the console.app I see anything in the system.log when I press the hotkeys.
 
How can I do it? Thanks.

 

 

Have you installed ACPIDebug.kext?

Share this post


Link to post
Share on other sites

Thanks to RehabMan, Toleda and a tons of people whose names I can't remember (I've been reading a lot of InsanelyMac and others for the past few months.) I've got myself running a decent a usable daily driver hackintosh on my Dell Inspiron 14z 5423 (Ultrabookish version, i7 3rd gen model.).

 

1) Syspref > Displays has a working brightness slider.

 

2) However the Fn+F5 (Brightness Increase) and Fn+F4 (Brightness Decrease) shows odd behavior. Each boot, they will work once. If I Press Fn+F5 it will MAX (no stepping.) my LCD brightness. Further Fn+F5 or Fn+F4 keystrokes do nothing.

If I rather press Fn+F4 it will decrease my brightness to ZERO w/o any stepping either (plain dark, impossible to see anything at all.) which often causes me to boot the system from power off button. After the key combo has been first pressed, Fn+F5 won't work either.

 

When I tried to patch my DSDT with "Instrument EC Queries" I realized I've got no "_Q##" methods at all. I then checked the next patch below it and the "Instrument GPE Queries" had something in store (matches and patches.) so I applied it. Installed ACPIDebug.kext to S/L/E and booted. Now, every time I do the key combo it gives me the output of "GPE _L17". But as others have mentioned above, it seems that _L17 is a shared method because both Fn+F5 and Fn+F4 will call the same method.

 

Nevertheless, I identified another 2 buttons (!!) which will invoke the same method (_L17), those are the "W"-like button (sometimes referred to as "Wave") and the Dell-custom button to set your own hotkeys in Windows, which are located in the upper-right area of the top cover (Silver buttons. The "gears" button has no output in Console.app.). (See attached "silver-button.jpg" image.)

 

Anyone has any idea of what I should do/look for next? If anyone thinks this deserves a new thread (if it feels like any sort of 'hijacking'.) please just PM me and I'll copy/paste this into a new thread and delete this message. Reason I thought of leaving this attached to this thread is just for further reference of fellow 14Z 5423 owners which might have a hard time finding this stuff later.  :)

 

Attached are a photo of the whole keyboard "layout", the custom Dell keys which share the _L17 method and my original (extracted from Linux.) DSDT.aml (DSDT_notfixed.aml) and the one I'm currently booting with ("DSDT_current.aml"). Also a kextstat output with any custom .kexts I'm loading other than Apple's default/AppleHDA patched. If any more info is to be provided, let me know.

 

Thanks a lot to anyone willing to help me and look into this.

DSDT.zip

kextstat.txt

post-1190283-0-20825800-1439775247_thumb.jpg

post-1190283-0-48853400-1439775309_thumb.jpg

Share this post


Link to post
Share on other sites

Thanks to RehabMan, Toleda and a tons of people whose names I can't remember (I've been reading a lot of InsanelyMac and others for the past few months.) I've got myself running a decent a usable daily driver hackintosh on my Dell Inspiron 14z 5423 (Ultrabookish version, i7 3rd gen model.).

 

1) Syspref > Displays has a working brightness slider.

 

2) However the Fn+F5 (Brightness Increase) and Fn+F4 (Brightness Decrease) shows odd behavior. Each boot, they will work once. If I Press Fn+F5 it will MAX (no stepping.) my LCD brightness. Further Fn+F5 or Fn+F4 keystrokes do nothing.

If I rather press Fn+F4 it will decrease my brightness to ZERO w/o any stepping either (plain dark, impossible to see anything at all.) which often causes me to boot the system from power off button. After the key combo has been first pressed, Fn+F5 won't work either.

Are your keys handled via ACPI or PS2?

Share this post


Link to post
Share on other sites

You didn't answer the question.

 

With this I realized that I didn't had a clue whether my keys were ACPI or PS2 controlled.

While I tried to realize which was the case, I found this (please correct me if that's the wrong method.): 

 

Your brightness keys (usually one of the Fn+F1...F12 keys) may be handled with PS2 or ACPI. Most newer computers use ACPI for these keys. If your trackpad is Synaptics and you're using my fork VoodooPS2Controller.kext (https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller), you can make either case work.

 
The first step is to determine if they are handled by PS2 or ACPI. With my driver, you can use 'ioio -s ApplePS2Keyboard LogScanCodes 1' to turn on the key logging to system.log. The ioio binary is available here: https://github.com/RehabMan/OS-X-ioio (please read the README for download locations).
 
After turning on key logging, monitor system.log with Console.app to determine what PS2 codes (if any) are generated when you press your keys). If they generate PS2 codes, you can map them to backlight control by following the wiki: https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller/wiki/How-to-Use-Custom-Keyboard-Mapping
 
From here. I recognize that those are your own instructions even though the guy who posted it didn't seem to link the work to it's man.
After running "ioio -s ApplePS2Keyboard LogScanCodes 1", I went to the Console.app and filtered by "ApplePS2Keyboard", where I found the following output:
 
Aug 23 00:21:20 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 3b=7a down // F1
Aug 23 00:21:22 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 3c=78 down // F2
Aug 23 00:21:24 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 3d=63 down // F3
Aug 23 00:21:25 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 3e=76 down // F4
Aug 23 00:21:27 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 3f=60 down // F5
Aug 23 00:21:29 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 40=61 down // F6
Aug 23 00:21:30 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 41=62 down // F7
Aug 23 00:21:32 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 42=64 down // F8
Aug 23 00:21:33 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 43=65 down // F9
Aug 23 00:21:35 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 44=6d down // F10
Aug 23 00:21:36 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 57=67 down // F11
Aug 23 00:21:44 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key 58=6f down // F12
Aug 23 00:21:48 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key e020=4a down // Mute Sound, next key after F12 - it's a multimedia-only key
// FN+F1 didn't output anything
// FN+F2 Couldn't be tried as it would kill my WiFi (the OFF effect always works the *1st* time, then I can't turn it on)
Aug 23 00:24:40 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key e01e=80 down // FN+F3
Aug 23 00:22:14 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key e005=91 down // FN+F4 - Brightness Down
// FN+F5 - Brightness Up, which didn't 'work' after the previous combo was pressed
// FN+F6 - no function assigned (no orange icon)
// FN+F7 - no function assigned (no orange icon)
Aug 23 00:27:43 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key e010=4d down // FN+F8
Aug 23 00:27:44 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key e022=34 down // FN+F9
Aug 23 00:27:45 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key e019=42 down // FN+F10
Aug 23 00:27:47 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key e02e=49 down // FN+F11
Aug 23 00:27:48 Evandros-MacBook-Air kernel[0]: ApplePS2Keyboard: sending key e030=48 down // FN+F12

So I guess my keys are PS2 controlled.

Thanks in advance.

 

 

PS: A note on the "sending key e005=91 down // FN+F4" line. A few hours ago I did press "FN+F5" which is "Brightness Up", setting my brightness to max level. Just afterwards neither of brightness controls seemed to work. (as I already expected.)

 

Just now as I write this and had this debugging phase ongoing, I forgot the effects of "FN+F4" (which would usually render my screen completely black). It didn't - the brightness splash icon and slider appeared on the screen - but they still showed "max" and didn't decrease this time. Right after I tried "FN+F5" which seemed to have no effect and to output nothing to the console as well.

 

It seems that some weird looping is going on once it first enters the GPE _L17 method/area. Like if further keydowns won't trigger the method anymore as it is still running, not until the loop ends, at least. Not to mention that it seems the "method" stores the data from the first loop and all further calls will just set the previous values. Really don't know what else to try.  :(

Share this post


Link to post
Share on other sites

Conclusion...

 

Brightness keys (Fn+F4/Fn+F5) are PS2, not ACPI. Your keys are also 'breakless' (they send make codes, but no break codes).

 

I assume this computer is Dell?

Share this post


Link to post
Share on other sites

Conclusion...

 

Brightness keys (Fn+F4/Fn+F5) are PS2, not ACPI. Your keys are also 'breakless' (they send make codes, but no break codes).

 

I assume this computer is Dell?

 

That's right, Sir.

Share this post


Link to post
Share on other sites

That's right, Sir.

What is in your native DSDT header? The header is the line with 'DefinitionBlock' at the beginning.

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 DoZe
      Hi :0)
       
      Hope As usual a perfect matching DSDT for this good Laptop.
       
      Regards, Ray
       
       
      SendMeStudiMac.zip
    • By MaLd0n
      --Donations via PayPal--
      https://tinyurl.com/r2bvzm7
       
      --Original Topic--
      https://www.olarila.com/topic/6874-olarila-hackbook-lenovo-ideapad-s145-mojave-catalina-full-dsdt-patches/
       

       
      -Perfect HackBook, HDMI Audio/Video, Bluetooth, AirPlay, Sleep, Lid Sleep, Auto Sleep, Audio, etc!
      -Wifi card has been replaced with Dell DW1560!
      -I'm using a S145-15IWL Model with Intel Core i5 8265u / Intel UHD Graphics 620
      -Update bios/uefi to last version
       
      --Installation--
      https://www.olarila.com/topic/5794-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/
       
      --Clover Folder--
      Just paste EFI folder inside EFI partition
      https://www.olarila.com/files/Clover.Folder/Lenovo IdeaPad S145.zip
      Notebooks with ELAN trackpad use it with my folder above
      IdeaPad S145 ELAN.zip
       
      Bluetooth Broadcom
      Bluetooth Broadcom.zip
       
      CPUFriend for i5-8265U
      CPUFriend i5-8265U.zip
       
      --Full DSDT Patches--
      -My DSDT
      DSDT Lenovo IdeaPad S145.zip
       
      This DSDT work on S145-14IWL, S145-15IWL, V14-IWL, V15-IWL models
      -Patches
      -FIX ERRORS AND WARNINGS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA SERIE 11 ID -DMAC -REMOVE LINES, PROBLEMATIC and UNUSED -SLPB -DARWIN / WINDOWS 2015 -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -REAL TIME CLOCK -ARTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -FWHD -USBX -PMCR -PPMC -XSPI -GMM -IMEI -EC -PRWs -_DSMs -PNLF -BRIGHTNESS KEYS -I2C -NATIVE USB -ARPT -GFX0 -DTGP -kUSBCompanionIndex -io-device-location -FULL RENAMED DEVICES   --IGPU Patch--
      Video solution with HDMI Audio and Video
      <key>PciRoot(0x0)/Pci(0x2,0x0)</key> <dict> <key>AAPL,GfxYTile</key> <data> AQAAAA== </data> <key>AAPL,ig-platform-id</key> <data> CQClPg== </data> <key>device-id</key> <data> pT4AAA== </data> <key>enable-hdmi20</key> <data> AQAAAA== </data> <key>framebuffer-con0-alldata</key> <data> AAAIAAIAAACYAAAA </data> <key>framebuffer-con0-enable</key> <integer>1</integer> <key>framebuffer-con1-alldata</key> <data> AQEJAAAIAADHAQAA </data> <key>framebuffer-con1-enable</key> <integer>1</integer> <key>framebuffer-con2-alldata</key> <data> AgYKAAAEAADHAQAA </data> <key>framebuffer-con2-enable</key> <integer>1</integer> <key>framebuffer-fbmem</key> <data> AACQAA== </data> <key>framebuffer-patch-enable</key> <data> AQAAAA== </data> <key>framebuffer-stolenmem</key> <data> AAAwAQ== </data> <key>framebuffer-unifiedmem</key> <data> AAAAgA== </data> <key>hda-gfx</key> <string>onboard-1</string> <key>model</key> <string>Intel Corporation, Cannon Point-LP Iris Plus Graphics 655</string> </dict>   --Native USB Fix for Notebooks - No Injector/Kext Required--
      https://www.olarila.com/topic/6878-guide-native-usb-fix-for-notebooks-no-injectorkext-required/
      https://www.olarila.com/topic/6181-guide-native-usb-fix-for-desktops-no-injectorkext-required-skylake/
       
       
      -ScreenShots

































      -Links
       
       
      Clover https://github.com/CloverHackyColor/CloverBootloader
      AirportBrcmFixup.kext https://github.com/acidanthera/AirportBrcmFixup
      AppleALC.kext https://github.com/acidanthera/AppleALC
      Brcm Bluetooth https://github.com/acidanthera/BrcmPatchRAM
      Lilu.kext https://github.com/acidanthera/Lilu
      SystemProfilerMemoryFixup.kext https://github.com/Goldfish64/SystemProfilerMemoryFixup
      VirtualSMC.kext https://github.com/acidanthera/VirtualSMC
      VoodooI2C.kext https://github.com/alexandred/VoodooI2C
      VoodooPS2Controller.kext https://github.com/acidanthera/VoodooPS2
      WhateverGreen.kext https://github.com/acidanthera/WhateverGreen
      MaciASL - https://github.com/acidanthera/MaciASL
      acpica - https://github.com/acpica/acpica
      AptioMemoryFix.efi https://github.com/acidanthera/AptioFixPkg
      ApfsDriverLoader.efi https://github.com/acidanthera/AppleSupportPkg
      HFSPlus.efi https://github.com/JrCs/CloverGrowerPro/blob/master/Files/HFSPlus/X64/HFSPlus.efi?raw=true
      Hackintool https://github.com/headkaze/Hackintool
       
      -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 kevin_1351
      tl;dr: VirtualSMC causes me a flood of log messages and correlated cpu spikes. FakeSMC doesn't.
       
      Hi, I have almost finalized my Huawei Matebook X Pro Opencore setup and everything is working very well besides wifi/bt ofc (which is about to change).
       
      However, I noticed how the cpu usage sometimes went up a little and when looking at the Console I could see a never-ending flood of:
      default 14:05:05.983292+0100 loginwindow clamshellStateChanged | Clamshell state changed: closed=0, shouldSleepWhenClosed=2 default 14:05:05.982975+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:05.982996+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:06.985932+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:06.985949+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:06.986134+0100 loginwindow clamshellStateChanged | Clamshell state changed: closed=0, shouldSleepWhenClosed=2 default 14:05:39.426574+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:39.426729+0100 loginwindow clamshellStateChanged | Clamshell state changed: closed=0, shouldSleepWhenClosed=2 default 14:05:39.426585+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:41.431085+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:41.431097+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:41.431246+0100 loginwindow clamshellStateChanged | Clamshell state changed: closed=0, shouldSleepWhenClosed=2 default 14:05:42.433068+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:42.433227+0100 loginwindow clamshellStateChanged | Clamshell state changed: closed=0, shouldSleepWhenClosed=2 default 14:05:42.433078+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:43.434453+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:43.434465+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:43.434622+0100 loginwindow clamshellStateChanged | Clamshell state changed: closed=0, shouldSleepWhenClosed=2 default 14:05:44.436155+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0 default 14:05:44.436166+0100 kernel PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0  
      As you can see, multiple of these per second. Another guy with the same computer is also having this issue and posted a dsdt change to fix it. This fix didn't solve anything though
      He tried to limit the Notify call by implementing a state change requirement before calling Notify.
       
      Here is the original acpi:
      Scope (_SB) { Device (LID) { Name (_HID, EisaId ("PNP0C0D") /* Lid Device */) // _HID: Hardware ID Method (_LID, 0, NotSerialized) // _LID: Lid Status { Local0 = One Local0 = ^^PCI0.LPCB.EC0.RPIN (0x05, 0x06) If ((Local0 == 0x55)) { Local0 = Zero } Else { Local0 = One } ^^PCI0.GFX0.CLID = Local0 Return (Local0) } } Device (PWRB) { Name (_HID, EisaId ("PNP0C0C") /* Power Button Device */) // _HID: Hardware ID Method (_STA, 0, NotSerialized) // _STA: Status { Return (0x0B) } } } Scope (_SB.PCI0.LPCB.EC0) { Method (_Q81, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF { Local0 = ^^^^LID._LID () If ((Local0 == Zero)) { ADBG ("LID-OFF") SGOV (0x02030009, Zero) SGOV (0x02060000, Zero) } Else { ADBG ("LID-ON") SGOV (0x02030009, One) SGOV (0x02060000, One) Notify (ALSD, 0x80) // Status Change } Notify (LID, 0x80) // Status Change } } Which he changed to: 
      Scope (_SB) { Device (LID) { Name (_OLD, One) // assuming everything else.. the lid should start open? Name (_HID, EisaId ("PNP0C0D") /* Lid Device */) // _HID: Hardware ID Method (_LID, 0, NotSerialized) // _LID: Lid Status { Local0 = One Local0 = ^^PCI0.LPCB.EC0.RPIN (0x05, 0x06) If ((Local0 == 0x55)) { Local0 = Zero } Else { Local0 = One } Return (Local0) } } Device (PNLF) { Name (_HID, EisaId ("APP0002")) // _HID: Hardware ID Name (_CID, "backlight") // _CID: Compatible ID Name (_UID, 0x0A) // _UID: Unique ID Name (_STA, 0x0B) // _STA: Status } Device (PWRB) { Name (_HID, EisaId ("PNP0C0C") /* Power Button Device */) // _HID: Hardware ID Method (_STA, 0, NotSerialized) // _STA: Status { Return (0x0B) } } } Scope (_SB.PCI0.LPCB.EC0) { Method (_Q81, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF { Local0 = ^^^^LID._LID () If ((Local0 == Zero)) { ADBG ("LID-OFF") SGOV (0x02030009, Zero) SGOV (0x02060000, Zero) } Else { ADBG ("LID-ON") SGOV (0x02030009, One) SGOV (0x02060000, One) Notify (ALSD, 0x80) // Status Change } If ((^^^^LID._OLD != Local0)) { Notify (LID, 0x80) // Status Change ^^^^LID._OLD = Local0 } } } Besides me not seeing any reason to declare _OLD in LID. The idea itself shouldn't be too bad right? Well, as I said, his fix didn't work.
       
      In fact, to prove that Method _Q81 doesn't have anything to do with the issue at all, I created a Clover/Opencore patch to change _Q81 to XQ81. This resulted in my lid not working at all of course, but the log flooding still persisted!
      So _Q81 doesn't have anything to do with the issue afaik.
       
      Now, further Google searches led me to a chinese post where he tied the issue to VirtualSMC. And indeed, by migrating to FakeSMC the issue is no more.
       
      Unfortunately, I'm very fond of VirtualSMC for various reasons. So I would very much like to keep it. If not I'd have to implement the old way of doing Battery monitoring etcetc. Which isn't very elegant and update proof as it requires DSDT patching.
       
      So, I do believe that the issue may very well be in the DSDT code, perhaps in the ambient light part. I'm not very skilled at this and just started studying the ACPI spec 3 days ago.
       
      Could someone please help me out? Thanks a lot in advance
       
       
      origin.zip
      OC.zip
    • By MaLd0n
      Now have a Olarila app, just download app and clover folder for your Chipset! https://www.olarila.com/topic/5165-olarila-app-images-and-folders/   Install MacOS with Olarila Image, Step by Step, Install and Post Install
      https://www.olarila.com/topic/5794-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/
        First... If you need DSDT edits... -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   Installation --Create a bootable copy of El Capitan /  Sierra / High Sierra / Mojave https://github.com/chris1111/Create-Install-Media/releases   --Install Clover in USB stick https://github.com/CloverHackyColor/CloverBootloader/releases   --Replace with my Clover folder https://www.olarila.com/topic/5676-clover-folder-for-all-chipsets/   --Install EL Capitan / Sierra / High Sierra and boot into system!     Post Installation   --Install Clover and replace with my folder   https://www.olarila.com/topic/5676-clover-folder-for-all-chipsets/     --Reboot and activate video!   Bingo! Now you need a fine tune! DSDT Time!   My DSDT GA P35-DS3   DSDT.MaLd0n.zip     Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -DARWIN -LPC -HDEF -RTC -EHCI -UHCI -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -EC -PNLF --Native Power Management
       
      Use Clover, check Generate P and C States
       
      --Brightness
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
       
      --AUDIO
       
      Device HDEF + AppleAlc + Lilu
       
      --install Lan driver by Mieze
        -Atheros   http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel   http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek   http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   --Links   -FakeSMC   https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio   https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/293863-applehda-patch-requests/   -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 and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!  
    • By MaLd0n
      Now have a Olarila app, just download app and clover folder for your Chipset! https://www.olarila.com/topic/5165-olarila-app-images-and-folders/   Nehalem, SandyBridge, IvyBridge, Haswell, Broadwell   https://www.olarila.com/topic/5794-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/   Skylake, Kabylake and Coffeelake is here https://www.olarila.com/topic/5794-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/   Install MacOS with Olarila Image, Step by Step, Install and Post Install
       
      https://www.olarila.com/topic/5794-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/
          First...   ***Update bios to last available version!***   If you need a full patched DSDT...  -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   Installation   --Create a bootable copy of macOS Sierra / High Sierra / Mojave   https://github.com/chris1111/Create-Install-Media/releases   --Install Clover in USB stick   https://github.com/CloverHackyColor/CloverBootloader/releases   --Replace with my Clover folder https://www.olarila.com/topic/5676-clover-folder-for-all-chipsets/   --Install Sierra/High Sierra and boot into system!   Post Installation --Install Clover and replace with my folder   https://www.olarila.com/topic/5676-clover-folder-for-all-chipsets/   --Reboot and activate video!   Bingo!   Now you need a fine tune! DSDT time!   --DSDT   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC -XHCI -PLUGIN TYPE -XXXX to HDEF -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -USBX -PMCR -EC -PNLF -HDMI
       
      --Power Management
      - 1 Generation Intel Processors, use Generate P and C States in config.plist
      - 2 and 3 Generations Intel Processors, Generate SSDT with Piker script and drop CpuPm and Cpu0Ist SSDTs
      ssdtPRGen.command.zip
      Credits-https://github.com/Piker-Alpha/ssdtPRGen.sh
      - 4 Generation+ Intel Processors, use PluginType=1 in DSDT, SSDT or Clover config.plist
       
      for check Power, Frequency, Temperature and Utilization, use it
       
      Install Intel Power Gadget.pkg.zip
       
      --Brightness
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
       
      --Clover
       
      https://sourceforge.net/projects/cloverefiboot/files/Installer/
       
      --AUDIO
       
      Use DSDT + AppleAlc
       
      --install Lan driver by Mieze
        -Atheros   http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel   http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek   http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   --Links   -FakeSMC   https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio   https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/314406-voodoohda-289/   -USB   https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads   It's time to Rock   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Apple, 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, 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 and many, many, many others!   We're all here to have fun and learn from each other!  
×