Jump to content
MaLd0n

DSDT Auto-Patcher

5,756 posts in this topic

Recommended Posts

Share this post


Link to post
Share on other sites
Advertisement

Thanks a lot i really appreciate it, one question MaLd0n in the auto patcher for DX58so why didn't you add the code AHCI SATA orange icon in the patcher? is it positive to use that code or the IOAHCIBlockStorageInjector.kext?

 

thanks.

Share this post


Link to post
Share on other sites
Thanks a lot i really appreciate it, one question MaLd0n in the auto patcher for DX58so why didn't you add the code AHCI SATA orange icon in the patcher? is it positive to use that code or the IOAHCIBlockStorageInjector.kext?

 

thanks.

 

I injected the device ID 3a22(need the kext IOAHCIBlockStorageInjector.kext) into the SATA device because...

ESB2 AHCI (silver icons for internal HDs instead of orange ones)

This "fix" was not used ->hotplug problems.

 

If you want to use 2681 you can use...

 

 

:D

Share this post


Link to post
Share on other sites
Thanks .... but is required

GA-P35-DQ6 DSDT Auto Patcher? ;)

 

you can test?

 

DSDT Auto-Patcher GA P35-DQ6

 

 

Use Extra Folder and LegacyHda ALC889A

 

MSI P45 NEO3-FR V2 ----> DSDT.aml Please!!!

 

w9w9bc@gmail.com

 

Upload your DSDT

run on terminal

perl -e 'open(CMD, "ioreg -lw0 \| grep DSDT|") or die; while(<CMD>) { chomp; if($_ =~ /\"DSDT\.?\d?\"=<([^>]*)>/) { $buff = $1; open(PIP, "|xxd -r -p > ~/Desktop/dsdt.aml") or die; print PIP "$1"; } }'

 

send me also a kextstat and ioreg -fl

Share this post


Link to post
Share on other sites

DSDT Auto Patcher The test is failed ..

Currently being used to attach the dsdt ;)

 

GA-P35 DQ6

E6300 2.8Ghz

DDR2 PC6400*2

8600 GTS 256M

 

 

 

DSDT

 

 

Sorry

Do not upload files

dsdt.aml.zip

Share this post


Link to post
Share on other sites

Is there any way I can see what each individual patch does? My GA-P35-DS3 DSDT already has a lot of patches, but there are a couple there I'd like to apply by myself.

Share this post


Link to post
Share on other sites
DSDT Auto Patcher The test is failed ..

Currently being used to attach the dsdt :(

 

GA-P35 DQ6

E6300 2.8Ghz

DDR2 PC6400*2

8600 GTS 256M

 

 

 

DSDT

 

 

Sorry

Do not upload files

 

please do not quote the whole post.

 

what you want to do in DSDT?

IT'S OK!

 

DSDT Auto Patcher will not work for you

your DSDT is fully edited

if you want to test must remove

restart

apply

 

but you do not need

 

ADVISE is not using the ESB2!

Device (SATA)
           {
               Name (_ADR, 0x001F0002)
               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               [color="#FF0000"][b]0x81, 0x26[/b][/color], 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

 

Is there any way I can see what each individual patch does? My GA-P35-DS3 DSDT already has a lot of patches, but there are a couple there I'd like to apply by myself.

 

Use DSDT EDITOR and PATCHER

http://www.insanelymac.com/forum/index.php?showtopic=223205

what you want to apply the DSDT?

 

 

M/B - MSI P45 NEO3-FR V2

VGA - Geforce 9600GT

 

MSI P45 NEO3-FR V2..... DSDT.....Please!!!!! help me!!

 

w9w9bc@gmail.com

 

Post #7

Share this post


Link to post
Share on other sites
Upload your DSDT

run on terminal

 

 

perl -e 'open(CMD, "ioreg -lw0 \| grep DSDT|") or die; while(<CMD>) { chomp; if($_ =~ /\"DSDT\.?\d?\"=<([^>]*)>/) { $buff = $1; open(PIP, "|xxd -r -p > ~/Desktop/dsdt.aml") or die; print PIP "$1"; } }'

 

send me also a kextstat and ioreg -fl

 

Can you make this into a script for linux and mac

and make it zip them all up, so it becomes easy to upload

 

 

Thank you.

 

From my Vmware installed of Mac OS X 10.6.5

 

 

using a boot cd, to start my vm.

d_k_i.zip

Share this post


Link to post
Share on other sites
*ESB2 AHCI (silver icons for internal HDs instead of orange ones)

This "fix" was not used as it reduces capabilities, including real 64bit sata transfer and hotplug.

 

Hi guys.... what about this issue mentioned by maldon?? i've edited the dsdt few times ago for native esb2 on my ich10 mb without problems so far... is it true?? it's best to leave original ich10 detection and put ahciblockstorage.kext???? Haven't found threads about this.... hope i'll get explanation...

tnx all.

Share this post


Link to post
Share on other sites
Hi guys.... what about this issue mentioned by maldon?? i've edited the dsdt few times ago for native esb2 on my ich10 mb without problems so far... is it true?? it's best to leave original ich10 detection and put ahciblockstorage.kext???? Haven't found threads about this.... hope i'll get explanation...

tnx all.

I inject ESB2 ID in my ICH9 mobo (Asus P5E) and also never had a problem.

Share this post


Link to post
Share on other sites
Can you make this into a script for linux and mac

and make it zip them all up, so it becomes easy to upload

 

 

Thank you.

 

From my Vmware installed of Mac OS X 10.6.5

 

 

using a boot cd, to start my vm.

 

This script won't work on Linux. You can run "sudo cat /proc/acpi/dsdt > dsdt.aml" to extract DSDT on Linux.

 

These patchers are intended to be run on the machine for which you are preparing the DSDT, you can't run them on other computer or in a virtual machine.

 

Hi guys.... what about this issue mentioned by maldon?? i've edited the dsdt few times ago for native esb2 on my ich10 mb without problems so far... is it true?? it's best to leave original ich10 detection and put ahciblockstorage.kext???? Haven't found threads about this.... hope i'll get explanation...

tnx all.

 

the problem of hotplug I confirm

this problem exists

Share this post


Link to post
Share on other sites

Just an idea, but has anyone here actually tried to add "AHCI-CAP" (with the C5 value changed) additionally to the ESB2 device-id change on a ICH10 based board?

 

BTW: 64-bit mode is NOT disabled here so using ESB2 does NOT disable it. At least not here! And looking at the port speed, which is still set to 3 Gigabit... how exactly should it slow down the SATA ports? In fact; the drive speed with and without the device change to ESB2 is EXACTLY the same.

Also. I am using ESB2 (on my desktop hack) since Master Chief wrote about his find here, and I haven't had a single corrupted drive.

Share this post


Link to post
Share on other sites

Can I use it to patch an unmodified DSDT.aml from a Live Ubuntu CD or does your patcher actually only patch a running OS that has DSDT override? If it only works on a running OS then you cannot really use this patcher unless you run Leopard 10.5 etc. that does not have DSDT override.

Share this post


Link to post
Share on other sites
Use DSDT EDITOR and PATCHER

http://www.insanelymac.com/forum/index.php?showtopic=223205

what you want to apply the DSDT?

 

Thanks MaLd0n! My DSDT is kinda different from the original GA-P35-DS3 (I'm using a patched one I found a while ago). Since it's working well since May and I'm not using some patches from yours (for example, I had a few problems when trying to patch my DSDT to use the Realtek network interface: it didn't work right when using VMWare's bridged network and Rivet to share media with my XBOX 360 so I'm using a kext for that) I just patched my DSDT with the shutdown fix found on the patch list and now everything is working fine.

 

Ah, e só agora percebi que você é brasileiro. Valeu!

Share this post


Link to post
Share on other sites
Can I use it to patch an unmodified DSDT.aml from a Live Ubuntu CD or does your patcher actually only patch a running OS that has DSDT override? If it only works on a running OS then you cannot really use this patcher unless you run Leopard 10.5 etc. that does not have DSDT override.

 

DSDT override does not depend on Mac OS version, it's a bootloader (Chameleon) feature.

Even if your bootloader supports DSDT override, it will use the original DSDT from BIOS if you do not provide a modified one, so you can use this patcher, yes.

if you want to patch from Linux or Windows you can use DSDT EDITOR and PATCHER

extract the patch from DSDT Auto-Patcher GA.../CONTENTS/RESOURCES/JAVA/patch.txt

:)

 

 

 

Thanks MaLd0n! My DSDT is kinda different from the original GA-P35-DS3 (I'm using a patched one I found a while ago). Since it's working well since May and I'm not using some patches from yours (for example, I had a few problems when trying to patch my DSDT to use the Realtek network interface: it didn't work right when using VMWare's bridged network and Rivet to share media with my XBOX 360 so I'm using a kext for that) I just patched my DSDT with the shutdown fix found on the patch list and now everything is working fine.

 

Ah, e só agora percebi que você é brasileiro. Valeu!

 

Everest

http://www.insanelymac.com/forum/index.php?showtopic=225991

DSDT EDITOR Linux_Mac_Win

http://www.insanelymac.com/forum/index.php?showtopic=223205

Share this post


Link to post
Share on other sites

@MaLd0n,

 

Thanks for the reply. I am still lost as to how one can use this in OSX if they depend on booting OSX with DSDT? Don't you have to at least patch the HPET in order to boot OSX in SNow Leopard?

 

So I should try and boot without a DSDT or DSDT override=no? Maybe I am not thinking clearly on this or overlooking something.

 

Tell me how I can boot cleanly without kernel panics etc? I thought I had to have at least the HPET patch in place in order to boot OSX SL?

 

Thanks

 

 

EDITED A FEW MINUTES LATER:

 

So I basically have to try to boot to OSX with or without DSDT override but making sure no patching is already done to the DSDT which I understand but do you understand my point to?

 

You say another way is to use DSDT editor in Linux or windows and load the patch from java directory. Can I do that in OSX to? Run the DSDT editor load my Vanilla DSDT.aml then load your patch?

 

I did try it and it seems to have removed a lot of stuff and did not fix the Local to "local" error as well as one more error but the DSDT editor fix them.

 

It really cut out a lot of script from my DSDT. A bunch of devices? I was curious as to why they were removed?

 

Thanks

Share this post


Link to post
Share on other sites
@MaLd0n,

 

Thanks for the reply. I am still lost as to how one can use this in OSX if they depend on booting OSX with DSDT? Don't you have to at least patch the HPET in order to boot OSX in SNow Leopard?

 

So I should try and boot without a DSDT or DSDT override=no? Maybe I am not thinking clearly on this or overlooking something.

 

Tell me how I can boot cleanly without kernel panics etc? I thought I had to have at least the HPET patch in place in order to boot OSX SL?

 

Thanks

 

Extract your original DSDT in Windows or Linux

Extract the patch --> DSDT Auto-Patcher GA.../CONTENTS/RESOURCES/JAVA/patch.txt

Use DSDT EDITOR and PATCHER, apply the patch in original DSDT

DSL / Load from file
Patch / Load from file
AML / Compile/button Fix errors
AML / Save to file...
replace the DSDT

 

or

 

Use Nullcpupowermanagement.kext(some other kext if you need), delete DSDT

NullCPUPowerManagement.kext.zip

Reboot

Apply "DSDT Auto-Patcher GA P35-DS3"

copy DSDT to folder Extra

Delete Nullcpupowermanagement.kext, etc

Reboot

 

or

 

apply the patches individually

Use DSDT EDITOR and PATCHER

 

 

 

 

I did try it and it seems to have removed a lot of stuff and did not fix the Local to "local" error as well as one more error but the DSDT editor fix them.

:)

has no reason to be in the patch

the DSDT EDITOR need to do their part

 

It really cut out a lot of script from my DSDT. A bunch of devices? I was curious as to why they were removed?

they are not used by OSX

Share this post


Link to post
Share on other sites

@MaLd0n,

 

I am trying the first method which I did before and its not patching the GA-G41M-ES2L Correctly? It didn't fix HPET, I get kernel Panic and it left PX40 as PX40? It left Azul and lot of other stuff did not change and I still think it removed too much or maybe it didn't?

 

 

My Mobo is v1.4 Bios F9, but that should not affect the patching right?

 

Here is my Original DSDT extracted from Ubuntu Live CD and also attached is the DSDT that was patched by your first method above.

 

My Untouched DSDT:

 

GA_G41M_ES2l.dsl.zip

 

Patched DSDT:

 

Patched_DSDT.dsl.zip

 

As you can see its not patching right.

 

 

 

EDITED:

 

I am getting two issues. One is the HPET error. No HPETS Available, CPUs configured Incorrectly. 2nd error is ACPI_SMC_PlatofrmPlugin _CST Evaluation Failed.

 

My ID is for LCPB is 27B8 not 27B9. Changing it made no difference I still get the error.

 

I have nothing set special in my com.apple.Boot.plist, just the usual graphics and ethernet.

 

Maybe that patch is for G41MT? Or G41M version 1.3?

Share this post


Link to post
Share on other sites
@MaLd0n,

 

It didn't fix HPET, I get kernel Panic

HPET is enabled in bios?

 

HPET fix, yes

before

Device (HPET)
               {
                   Name (_HID, EisaId ("PNP0103"))
                   Name (ATT3, ResourceTemplate ()
                   {
                       IRQNoFlags ()
                           {0}
                       IRQNoFlags ()
                           {8}
                       Memory32Fixed (ReadWrite,
                           0xFED00000,         // Address Base
                           0x00000400,         // Address Length
                           )
                   })
                   Name (ATT4, ResourceTemplate ()
                   {
                   })
                   Method (_STA, 0, NotSerialized)
                   {
                       If (LGreaterEqual (OSFX, 0x03))
                       {
                           If (HPTF)
                           {
                               Return (0x0F)
                           }
                           Else
                           {
                               Return (0x00)
                           }
                       }
                       Else
                       {
                           Return (0x00)
                       }
                   }

                   Method (_CRS, 0, NotSerialized)
                   {
                       If (LGreaterEqual (OSFX, 0x03))
                       {
                           If (HPTF)
                           {
                               Return (ATT3)
                           }
                           Else
                           {
                               Return (ATT4)
                           }
                       }
                       Else
                       {
                           Return (ATT4)
                       }
                   }
               }

 

after

Device (HPET)
               {
                   Name (_HID, EisaId ("PNP0103"))
                   Name (ATT3, ResourceTemplate ()
                   {
                       IRQNoFlags ()
                           {0}
                       IRQNoFlags ()
                           {8}
                       Memory32Fixed (ReadWrite,
                           0xFED00000,         // Address Base
                           0x00000400,         // Address Length
                           )
                   })
                   Name (ATT4, ResourceTemplate ()
                   {
                   })
                   Method (_STA, 0, NotSerialized)
                   {
                       Return (0x0F)
                   }

                   Method (_CRS, 0, NotSerialized)
                   {
                       Return (ATT3)
                   }
               }

 

 

and it left PX40 as PX40?
PATCH Gigabyte GA G41M-ES2L

DTGP

HID/CID

HPET

IRQs

RTC

SBUS

SHUTDOWN

EHCI

LPC

REMOVED DEVICES

_WAK

No "renamed devices" in patch

I see no difference

rename or not

whatever

 

oSxFr33k_DSDT.zip

Share this post


Link to post
Share on other sites

@MaLd0n,

 

I edited my post above. My LPCB ID is 27B8 not 27B9 and HPET is set and to 64 bit in Bios unless while I was messing around it may have gotten reset, Ill check it sorry if it did.

 

The DSDT is very nice and compact and if I can get it to work Great!!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By MaLd0n
      Install MacOS with Olarila Image, Step by Step, Install and Post Install  
      https://www.olarila.com/topic/5794-hackintosh-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/
          First... If you need DSDT edits for SkyLake, KabyLake or CoffeeLake... -Post your full Clover folder with original tables in Origin folder(Extract with F4 in Clover boot screen) -Post Ioreg, extract with Ioreg Explorer http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222606 -Run it, post files generated in your desktop http://www.insanelymac.com/forum/index.php?app=core&module=attach&section=attach&attach_id=222609  Installation   --Create a bootable copy of macOS Sierra Check out the link http://www.insanelymac.com/forum/files/file/559-flash-drive-maker/   --Create a bootable copy of macOS HighSierra Check out the link http://diskmakerx.com/   --Paste my EFI folder into EFI partition  EFI GA H110M-S2.zip     --Install Sierra/High Sierra and boot into system!   Post Installation   --Paste my EFI folder into EFI partition  EFI GA H110M-S2.zip     --Reboot and activate video!   -Nvidia WebDriver Sierra http://www.insanelymac.com/forum/topic/312525-nvidia-web-driver-updates-for-macos-sierra-update-07212017/ -Nvidia WebDriver High Sierra http://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-10162017/ -Cuda http://www.insanelymac.com/forum/topic/302795-cuda-90214-is-out-update-10162017/   --DSDT My DSDT with Skylake patches DSDT.GA H110M-S2.zip   Patches -FIX ERRORS AND WARNINGS -HPET -SATA -DMAC -SLPB -DARWIN -LPC -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -RTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -USBX -PMCR -EC -PNLF -HDMI   -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 kylon
      A big thanks to wegface for teaching me a lot of things.
       
       
      Tested on Catalina 10.15.4 and Clover EFI 5104 (Catalina Patcher)
       
      Not Working:
      - realtek sd card reader (pm me if you have a fix)
       
      Notes:
      **CPU patches are disabled, if you are using a locked BIOS you must enable them**
       
      Clover EFI:
      - Install it in UEFI Mode and change your hdd partition table to GPT.
      - You will be able to install ANY OS in EFI mode, even if this pc does not support EFI at all! (No guide available for this)
       
      You will need:
      My unlocked BIOS (OPTIONAL) (here) Latest Clover config from CCE Bank (here) (asus k53sj-kylon) Rehabman Voodoo PS2 Controller (here) acidanthera AppleALC (here) acidanthera Lilu (here) acidanthera VirtualSMC (here) acidanthera SMCBatteryManager (here) acidanthera SMCLightSensor (here) acidanthera WhateverGreen (here) Mieze Realtek RTL8111 (here)
    • 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
×