Jump to content
ErmaC

Clover Problems and Solutions

3,187 posts in this topic

Recommended Posts

Is it working? I got only blinking underscore while the same compiled by gcc working.

I can confirm that it works well on my hardware. I compile it on El Cap with Xcode 7Beta + command line tools, and comment out these inf's in clover.fdf as I don't need IDE or SCSI controllers:

 

  #INF  Clover/VBoxIdeControllerDxe/VBoxIdeControllerDxe.inf

  #INF  Clover/VBoxIdeBusDxe/VBoxIdeBusDxe.inf
    INF  Clover/SataControllerDxe/SataControllerDxe.inf
  #INF  MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  #INF  Clover/AtaAtapi/AtaAtapiPassThru.inf
  #INF  MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  #INF  Clover/AtaBus/AtaBusDxe.inf
  #INF  MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  #INF  Clover/DVDBus/ScsiBusDxe.inf
  #INF  MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  #INF  Clover/DVDDisk/ScsiDiskDxe.inf
  #INF  IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
 
Then:
 
./ebuild.sh -clang -release --only-sata0 --x64

Share this post


Link to post
Share on other sites
Advertisement

 

I can confirm that it works well on my hardware. I compile it on El Cap with Xcode 7Beta + command line tools, and comment out these inf's in clover.fdf as I don't need IDE or SCSI controllers:

 

  #INF  Clover/VBoxIdeControllerDxe/VBoxIdeControllerDxe.inf

  #INF  Clover/VBoxIdeBusDxe/VBoxIdeBusDxe.inf
    INF  Clover/SataControllerDxe/SataControllerDxe.inf
  #INF  MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  #INF  Clover/AtaAtapi/AtaAtapiPassThru.inf
  #INF  MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  #INF  Clover/AtaBus/AtaBusDxe.inf
  #INF  MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  #INF  Clover/DVDBus/ScsiBusDxe.inf
  #INF  MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  #INF  Clover/DVDDisk/ScsiDiskDxe.inf
  #INF  IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
 
Then:
 
./ebuild.sh -clang -release --only-sata0 --x64

 

But AtaAtapi is a Sata driver provided AHCI mode. You may exclude it only if you set BiosBlockIO.

Share this post


Link to post
Share on other sites

Thanks, this is valuable info!

Accepted into 3248.

I can also note this MacBook uses 

"Intel HD Graphics 5300"

"AAPL,ig-platform-id" = 0x161e0001

May be someone found this info usefull.

The Broadwell info updated by 3248 is reverted in 3249, please push the change of TheRacerMaster again.

Share this post


Link to post
Share on other sites

The Broadwell info updated by 3248 is reverted in 3249, please push the change of TheRacerMaster again.

Oops! Thanks for the note. Restored.

Share this post


Link to post
Share on other sites

Apologies if this is in the wrong section or not a bug!

 

In my "Custom > Entries" section I have separate entries for Yosemite and El Capitan including patches that are unique to each OS but if i check the boot.log file it appears to be running both regardless of which OS I boot into.

 

boot.log (Relevant section only)

0:115  0:000  Copying global patch settings
0:115  0:000  KextsToPatch: 2 requested
0:115  0:000  KextToPatch 0: IOGraphicsFamily (Yosemite Boot Logo: Patch 1) Kext bin patch, data len: 5
0:115  0:000  KextToPatch 1: IOGraphicsFamily (Yosemite Boot Logo: Patch 2) Kext bin patch, data len: 5
0:115  0:000  Filled in patch settings
0:115  0:000  Copying global patch settings
0:115  0:000  Copying global patch settings
0:115  0:000  KextsToPatch: 2 requested
0:115  0:000  KextToPatch 0: IOGraphicsFamily (El Capitan Boot Logo: Patch 1) Kext bin patch, data len: 5
0:115  0:000  KextToPatch 1: IOGraphicsFamily (El Capitan Boot Logo: Patch 2) Kext bin patch, data len: 5
0:115  0:000  Filled in patch settings
0:115  0:000  Copying global patch settings
0:115  0:000  Copying global patch settings
0:115  0:000  Copying global patch settings
0:115  0:000  CustomEDID ok

Custom > Entries > Yosemite Partition

				<dict>
					<key>Volume</key>
					<string>F57C54E7-2E96-4FA9-B73F-A75D3F237432</string>
					<key>Type</key>
					<string>OSX</string>
					<key>Arguments</key>
					<string>kext-dev-mode=1</string>
					<key>FullTitle</key>
					<string>OS X 10.10.5 (14F27) Yosemite</string>
					<key>InjectKexts</key>
					<true/>
					<key>NoCaches</key>
					<false/>
					<key>Hidden</key>
					<false/>
					<key>KernelAndKextPatches</key>
					<dict>
						<key>KextsToPatch</key>
						<array>
							<dict>
								<key>Comment</key>
								<string>Yosemite Boot Logo: Patch 1</string>
								<key>Find</key>
								<data>hcB0a0g=</data>
								<key>Name</key>
								<string>IOGraphicsFamily</string>
								<key>Replace</key>
								<data>McB0W0g=</data>
							</dict>
							<dict>
								<key>Comment</key>
								<string>Yosemite Boot Logo: Patch 2</string>
								<key>Find</key>
								<data>QYjE6xE=</data>
								<key>Name</key>
								<string>IOGraphicsFamily</string>
								<key>Replace</key>
								<data>QYjE6zE=</data>
							</dict>
						</array>
					</dict>
				</dict>

Custom > Entries > El Capitan Partition

				<dict>
					<key>Volume</key>
					<string>B262BC9F-1104-4184-8314-C6943AB0506E</string>
					<key>Type</key>
					<string>OSX</string>
					<key>FullTitle</key>
					<string>OS X 10.11 (15A243d) El Capitan</string>
					<key>InjectKexts</key>
					<true/>
					<key>NoCaches</key>
					<false/>
					<key>Hidden</key>
					<false/>
					<key>KernelAndKextPatches</key>
					<dict>
						<key>KextsToPatch</key>
						<array>
							<dict>
								<key>Comment</key>
								<string>El Capitan Boot Logo: Patch 1</string>
								<key>Find</key>
								<data>hcB0a0g=</data>
								<key>Name</key>
								<string>IOGraphicsFamily</string>
								<key>Replace</key>
								<data>McB0W0g=</data>
							</dict>
							<dict>
								<key>Comment</key>
								<string>El Capitan Boot Logo: Patch 2</string>
								<key>Find</key>
								<data>AQAAdRc=</data>
								<key>Name</key>
								<string>IOGraphicsFamily</string>
								<key>Replace</key>
								<data>AQAAdBc=</data>
							</dict>
						</array>
					</dict>
				</dict>

Share this post


Link to post
Share on other sites

Hi Slice, can I just check that answer wasn't directly in response to my query please?

Yes, I just have no relation to custom entries. Apianti and sothor did this.

Share this post


Link to post
Share on other sites

Clover build broken building against latest edk2:

 

Speedy-OSX:Clover RehabMan$ ./ebuild.sh 
TOOLCHAIN_DIR: /Users/Admin/Projects/clover.git/edk2/Clover/../../toolchain
Initializing workspace
Loading previous configuration from $WORKSPACE/Conf/BuildEnv.sh
WORKSPACE: /Users/Admin/Projects/clover.git/edk2
EDK_TOOLS_PATH: /Users/Admin/Projects/clover.git/edk2/BaseTools

Running edk2 build for CloverX64 using the command:
build  -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t GCC49 -n 9 

Build environment: Darwin-14.5.0-x86_64-i386-64bit
Build start time: 08:25:28, Aug.25 2015

WORKSPACE        = /Users/Admin/Projects/clover.git/edk2
ECP_SOURCE       = /Users/Admin/Projects/clover.git/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /Users/Admin/Projects/clover.git/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /Users/Admin/Projects/clover.git/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /Users/Admin/Projects/clover.git/edk2/BaseTools


Architecture(s)  = X64
Build target     = RELEASE
Toolchain        = GCC49

Active Platform          = /Users/Admin/Projects/clover.git/edk2/Clover/Clover.dsc
Flash Image Definition   = /Users/Admin/Projects/clover.git/edk2/Clover/Clover.fdf

Processing meta-data .

build.py...
/Users/Admin/Projects/clover.git/edk2/Clover/Clover.dsc(...): error 4000: Instance of library class [VarCheckLib] is not found
	in [/Users/Admin/Projects/clover.git/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf] [X64]
	consumed by module [/Users/Admin/Projects/clover.git/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf]
 

- Failed -
Build end time: 08:25:30, Aug.25 2015
Build total time: 00:00:01

Share this post


Link to post
Share on other sites

You can revert to that version by typing following:

svn up -r 18198 ~/path/to/Clover/edk2

If you didn't do any changes to edk2, you should also revert the conflicts with "theirs-conflict" by typing "tc" on every conflict.

Share this post


Link to post
Share on other sites

Attention!

EDK2 must be revision 18198!

 

New EDK2 improvement will not improve Clover.

Thanks for the information. I didn't find it documented anywhere that Clover requires a specific edk2 rev.

 

Is the Clover setup/build process documented somewhere?

You can revert to that version by typing following:

svn up -r 18198 ~/path/to/Clover/edk2

If you didn't do any changes to edk2, you should also revert the conflicts with "theirs-conflict" by typing "tc" on every conflict.

 

Thanks. It was helpful as I'm not used to svn (prefer git). It saved me having to look up the syntax required to checkout (git term) a particular version.

Share this post


Link to post
Share on other sites

svn co -r 18198 https://svn.code.sf.net/p/edk2/code/trunk/edk2 edk2

 

 

Thanks for the information. I didn't find it documented anywhere that Clover requires a specific edk2 rev.

Is the Clover setup/build process documented somewhere?

 

 

http://clover-wiki.zetam.org/Development#Compiling-from-source

But I afraid the instructions are obsolete.

Or here Post#14 Development

Share this post


Link to post
Share on other sites

Hi Slice

Is it possible to update KernelHaswellE to support 10.10.3+. FakeCPUID does not support it too.

Thanks

 

:gun:

Tell me what to do and I will commit this to repo.

Share this post


Link to post
Share on other sites

Hi there !

 

I'd like to report issues with ShutDown and El Capitan :

 

- when select Restart, the system shuts down, the power led stays ON and the system restart

- when I select ShutDown, the system shuts down, the power led switches OFF but 3 secondes later the power led switches ON and the system restart all by itself !

 

I noticed that

- there is no pb on Yosemite (10.10.5 for the time being)

- when I unplug all my USB devices (except BT which is on a mini-PCIe port), the system shuts down normally.

 

Config :

- 10.11. GM

- Clover v3262

- USB injected by SSDT (no change since 10.10)

 

Method (_SB.PCI0.EHC1._DSM, 4, NotSerialized)
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}

Return (Package (0x15)
{
"AAPL,slot-name",
"Built In",
"name",
"Intel EHCI Controller",
"model",
Buffer (0x3E)
{
"Intel 8 Series Chipset Family USB Enhanced Host Controller #1"
},

"device_type",
Buffer (0x0F)
{
"USB Controller"
},

"AAPL,current-available",
0x0834,
"AAPL,current-extra",
0x0A8C,
"AAPL,current-in-sleep",
0x03E8,
"AAPL,current-extra-in-sleep",
0x0834,
"AAPL,max-port-current-in-sleep",
0x0A8C,
"AAPL,device-internal",
0x02,
Buffer (One)
{
0x00
}
})
}

Method (_SB.PCI0.EHC2._DSM, 4, NotSerialized)
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}

Return (Package (0x15)
{
"AAPL,slot-name",
"Built In",
"name",
"Intel EHCI Controller",
"model",
Buffer (0x3E)
{
"Intel 8 Series Chipset Family USB Enhanced Host Controller #2"
},

"device_type",
Buffer (0x0F)
{
"USB Controller"
},

"AAPL,current-available",
0x0834,
"AAPL,current-extra",
0x0A8C,
"AAPL,current-in-sleep",
0x03E8,
"AAPL,current-extra-in-sleep",
0x0834,
"AAPL,max-port-current-in-sleep",
0x0A8C,
"AAPL,device-internal",
0x02,
Buffer (One)
{
0x00
}
})
}

Method (_SB.PCI0.XHC._DSM, 4, NotSerialized)
{
If (LEqual (Arg2, Zero))
{
Return (Buffer (One)
{
0x03
})
}

Return (Package (0x15)
{
"AAPL,slot-name",
"Built In",
"name",
"Intel XHCI Controller",
"model",
Buffer (0x37)
{
"Intel 8 Series Chipset Family USB xHCI Host Controller"
},

"device_type",
Buffer (0x0F)
{
"USB Controller"
},

"AAPL,current-available",
0x0834,
"AAPL,current-extra",
0x0A8C,
"AAPL,current-in-sleep",
0x03E8,
"AAPL,current-extra-in-sleep",
0x0834,
"AAPL,max-port-current-in-sleep",
0x0A8C,
"AAPL,device-internal",
0x02,
Buffer (One)
{
0x00
}
})
}

 

Share this post


Link to post
Share on other sites

Hi there !

 

I'd like to report issues with ShutDown and El Capitan :

 

- when select Restart, the system shuts down, the power led stays ON and the system restart

- when I select ShutDown, the system shuts down, the power led switches OFF but 3 secondes later the power led switches ON and the system restart all by itself !

 

I noticed that

- there is no pb on Yosemite (10.10.5 for the time being)

- when I unplug all my USB devices (except BT which is on a mini-PCIe port), the system shuts down normally.

 

Config :

- 10.11. GM

- Clover v3262

- USB injected by SSDT (no change since 10.10)

 

Method (_SB.PCI0.EHC1._DSM, 4, NotSerialized)

{

If (LEqual (Arg2, Zero))

{

Return (Buffer (One)

{

0x03

})

}

 

Return (Package (0x15)

{

"AAPL,slot-name",

"Built In",

"name",

"Intel EHCI Controller",

"model",

Buffer (0x3E)

{

"Intel 8 Series Chipset Family USB Enhanced Host Controller #1"

},

 

"device_type",

Buffer (0x0F)

{

"USB Controller"

},

 

"AAPL,current-available",

0x0834,

"AAPL,current-extra",

0x0A8C,

"AAPL,current-in-sleep",

0x03E8,

"AAPL,current-extra-in-sleep",

0x0834,

"AAPL,max-port-current-in-sleep",

0x0A8C,

"AAPL,device-internal",

0x02,

Buffer (One)

{

0x00

}

})

}

 

Method (_SB.PCI0.EHC2._DSM, 4, NotSerialized)

{

If (LEqual (Arg2, Zero))

{

Return (Buffer (One)

{

0x03

})

}

 

Return (Package (0x15)

{

"AAPL,slot-name",

"Built In",

"name",

"Intel EHCI Controller",

"model",

Buffer (0x3E)

{

"Intel 8 Series Chipset Family USB Enhanced Host Controller #2"

},

 

"device_type",

Buffer (0x0F)

{

"USB Controller"

},

 

"AAPL,current-available",

0x0834,

"AAPL,current-extra",

0x0A8C,

"AAPL,current-in-sleep",

0x03E8,

"AAPL,current-extra-in-sleep",

0x0834,

"AAPL,max-port-current-in-sleep",

0x0A8C,

"AAPL,device-internal",

0x02,

Buffer (One)

{

0x00

}

})

}

 

Method (_SB.PCI0.XHC._DSM, 4, NotSerialized)

{

If (LEqual (Arg2, Zero))

{

Return (Buffer (One)

{

0x03

})

}

 

Return (Package (0x15)

{

"AAPL,slot-name",

"Built In",

"name",

"Intel XHCI Controller",

"model",

Buffer (0x37)

{

"Intel 8 Series Chipset Family USB xHCI Host Controller"

},

 

"device_type",

Buffer (0x0F)

{

"USB Controller"

},

 

"AAPL,current-available",

0x0834,

"AAPL,current-extra",

0x0A8C,

"AAPL,current-in-sleep",

0x03E8,

"AAPL,current-extra-in-sleep",

0x0834,

"AAPL,max-port-current-in-sleep",

0x0A8C,

"AAPL,device-internal",

0x02,

Buffer (One)

{

0x00

}

})

}

 

 

Try with FakePCIID.kext+FakePCIID_XHCIMux.kext.

Did you create a proper injector for your USB ports? (and rename EHCx->EH0x)?

Share this post


Link to post
Share on other sites

Try with FakePCIID.kext+FakePCIID_XHCIMux.kext.

Did you create a proper injector for your USB ports? (and rename EHCx->EH0x)?

I edited my SSDT :

EHC1 > EH01

EHC2 > EH02

XHC > XHC1

And add your kext to /EFI kext folder 

 

And it seems to work !!! Thanks a lot !  :D

 

So it was not really Clover related ...

Share this post


Link to post
Share on other sites

Not sure if this is the correct thread to post this, but here's a simple change that allows Clover to respect the "bless --nextonly" option.  A next-only boot adds efi-boot-next and efi-boot-next-data to NVRAM, both of which are cleaned up by boot.efi automatically.

Index: rEFIt_UEFI/Platform/Nvram.c
===================================================================
--- rEFIt_UEFI/Platform/Nvram.c (revision 3270)
+++ rEFIt_UEFI/Platform/Nvram.c (working copy)
@@ -465,8 +465,14 @@
     DBG ("already parsed\n");
     return EFI_SUCCESS;
   }
-  
-  gEfiBootDeviceData = GetNvramVariable (L"efi-boot-device-data", &gEfiAppleBootGuid, NULL, &Size);
+
+  gEfiBootDeviceData = GetNvramVariable (L"efi-boot-next-data", &gEfiAppleBootGuid, NULL, &Size);
+  if (gEfiBootDeviceData != NULL) {
+    DBG ("\n");
+    DBG (" efi-boot-next-data: %s\n", FileDevicePathToStr (gEfiBootDeviceData));
+  } else {
+    gEfiBootDeviceData = GetNvramVariable (L"efi-boot-device-data", &gEfiAppleBootGuid, NULL, &Size);
+  }
   if (gEfiBootDeviceData == NULL) {
     DBG (" efi-boot-device-data not found\n");
     return EFI_NOT_FOUND;

Share this post


Link to post
Share on other sites

Not sure, if it's just me or?

 

KextsToPatch never apllied while in other plist (except default: config.plist). Lets say i've 2 plist: "config" as default & "test" for trial & error purposes.

  • Boot to Clover GUI.
  • Goto option: change plist (ex: config -> test) + enter, all settings change to new one (test.plist).
  • Esc back to main menu.
  • Boot to OS partition & patch not applied, never.
  • Copying KextsToPatch values from test to config, boot with config, patch applied.

** with enabled allow kext patch in menu

** maybe: bott-args too

Share this post


Link to post
Share on other sites

 

Not sure if this is the correct thread to post this, but here's a simple change that allows Clover to respect the "bless --nextonly" option.  A next-only boot adds efi-boot-next and efi-boot-next-data to NVRAM, both of which are cleaned up by boot.efi automatically.

Index: rEFIt_UEFI/Platform/Nvram.c
===================================================================
--- rEFIt_UEFI/Platform/Nvram.c (revision 3270)
+++ rEFIt_UEFI/Platform/Nvram.c (working copy)
@@ -465,8 +465,14 @@
     DBG ("already parsed\n");
     return EFI_SUCCESS;
   }
-  
-  gEfiBootDeviceData = GetNvramVariable (L"efi-boot-device-data", &gEfiAppleBootGuid, NULL, &Size);
+
+  gEfiBootDeviceData = GetNvramVariable (L"efi-boot-next-data", &gEfiAppleBootGuid, NULL, &Size);
+  if (gEfiBootDeviceData != NULL) {
+    DBG ("\n");
+    DBG (" efi-boot-next-data: %s\n", FileDevicePathToStr (gEfiBootDeviceData));
+  } else {
+    gEfiBootDeviceData = GetNvramVariable (L"efi-boot-device-data", &gEfiAppleBootGuid, NULL, &Size);
+  }
   if (gEfiBootDeviceData == NULL) {
     DBG (" efi-boot-device-data not found\n");
     return EFI_NOT_FOUND;

Accepted to 3271, although I don't know what is ;) .

 

Not sure, if it's just me or?

 

KextsToPatch never apllied while in other plist (except default: config.plist). Lets say i've 2 plist: "config" as default & "test" for trial & error purposes.

  • Boot to Clover GUI.
  • Goto option: change plist (ex: config -> test) + enter, all settings change to new one (test.plist).
  • Esc back to main menu.
  • Boot to OS partition & patch not applied, never.
  • Copying KextsToPatch values from test to config, boot with config, patch applied.

** with enabled allow kext patch in menu

** maybe: bott-args too

I think it is corrected in 3270. Check, please, again.

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Jancey
      I used this command: diskutil info disk0s2 | grep -i "Partition UUID" | rev | cut -d' ' -f 1 | rev

      But I accidentally removed the wrong disk and now my main windows drive is not appearing in the bootloader. I can't figure out how to get it back. I tried resetting my windows drive, but I kept getting an error. I also reset my mac and reinstalled Catalina.
    • By gengstapo
      @Hervé
       
      Im having similar issue with my HS setup, dell latitute 3480, i5-7200U
      Once the hdmi plugged in, the laptop display went blank, only could see the external tv
      But, when i put my laptop to sleep & wake up again, both screen got display (hdmi still connected)
      Even the hdmi could be plugged off & in (after sleep), the laptop display is fine
       
      What could be the culprit?
      Dell’s MacBook Pro IORegistry.zip
      config.plist.zip
    • By TomZanna
      Hi, I'm trying to install Mac Os Catalina on a HP 550-132NL.
      The system has:
      i7-6700
      RAM 12 GB
      GT 730
      LAN Realtek RTL8161
      ALC3863
       
      It passes the verbose phase but after the Apple logo goes away, it gets stuck on a grey screen and I can only move the pointer.
      Can I try to boot with the iGPU?
       
      origin.zip
      CLOVER_dGPU_USB_3.zip
    • 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
      ---TUTORIAL---
      https://www.olarila.com/topic/5794-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/
       
      --Original Post--
      https://www.olarila.com/topic/6531-olarila-hackbeast-z390-designare-thunderbolt-full-dsdt-patches-clover-opencore/
       
      --Bios/UEFI Settings--
       
      *Update bios/uefi to F7+*
      1- Go to M.I.T./Advanced Frequency Settings tab
       
      Extreme Memory Profile (X.M.P.) - Profile 1
       
      2- Go to BIOS tab
       
      CSM Support - Disabled
       
      3- Go to Peripherals/Thunderbolt(TM) Configuration tab
       
      Security Level - No Security
      Thunderbolt USB Support - Enabled
      GPIO3 Force Pwr - Enabled
       
      4- Go to Chipset tab
       
      Internal Graphics - Enable
       
      ---CLOVER FOLDER---
      https://olarila.com/files/Clover.Folder/EFI CLOVER Z390 DESIGNARE.zip
      *Use this folder with FULL DSDT PATCHED
       
      ---OPENCORE FOLDER---
      https://www.olarila.com/topic/6364-mojave-catalina-on-mobos-series-100200300-with-opencore-bootloader/
      *Use this folder with FULL DSDT PATCHED
       
       
      ---Extract one Full dump for DSDT edits, post files---
       
      RunMe.app
       
       
       
      ---HARDWARE---
       
      --MOBO

      GIGABYTE Z390 DESIGNARE
      -Link
      https://www.amazon.com/Z390-DESIGNARE-Gigabyte-Thunderbolt-Motherboard/dp/B07K8RJZRG/ref=sr_1_1?keywords=Z390+DESIGNARE&qid=1565492390&s=electronics&sr=1-1

      --PROCESSOR

      Intel Core i9-9900K
      -Link
      https://www.amazon.com/Intel-i9-9900K-Desktop-Processor-Unlocked/dp/B005404P9I/ref=sr_1_1_sspa?keywords=Intel+Core+i9-9900K&qid=1553358099&s=gateway&sr=8-1-spons&psc=1

      --COOLER

      CORSAIR H100i RGB PLATINUM AIO Liquid CPU Cooler
      -Link
      https://www.amazon.com/CORSAIR-H100i-PLATINUM-Liquid-Cooler/dp/B07JWB5BSN/ref=sr_1_4?keywords=WATER+COOLER+CPU&qid=1565492509&s=gateway&sr=8-4

      --MEMORY

      Corsair CMW32GX4M2C3200C16 Vengeance RGB PRO 32GB (2x16GB) DDR4 3200 (PC4-25600)
      -Link
      https://www.amazon.com/Corsair-CMW32GX4M2C3200C16-Vengeance-PC4-25600-Desktop/dp/B07GTG2T7L/ref=sr_1_15?keywords=memory+ddr4+32&qid=1553358238&s=gateway&sr=8-15

      --GPU

      MSI RX Vega 64 AIR Boost 8G OC
      -Link
      https://www.amazon.com/MSI-RX-64-AIR-8G/dp/B07DH7S1X1/ref=sr_1_2?keywords=vega+64+gigabyte&qid=1565492819&s=electronics&sr=1-2

      --SSD

      Samsung 970 EVO 1TB SSD (MZ-V7E1T0BW) NVMe M.2 V-NAND
      -Link
      https://www.amazon.com/Samsung-970-EVO-1TB-MZ-V7E1T0BW/dp/B07BN217QG/ref=sr_1_1?keywords=s+samsung+970+evo+1tb&qid=1565493002&s=electronics&sr=1-1

      --POWER SUPPLY

      EVGA Supernova 1000 P2 80+ Platinum, 1000W ECO Mode Fully Modular 
      -Link
      https://www.amazon.com/EVGA-Supernova-Platinum-Crossfire-220-P2-1000-XR/dp/B00EKJQM5E/ref=sr_1_3?keywords=power+supply+1000w&qid=1565493196&s=gateway&sr=8-3

      --WIRELESS

      TP-Link Archer T9E
      -Link
      https://www.amazon.com/TP-Link-Archer-T9E-Beamforming-Technology/dp/B00TQEX7AQ/ref=sr_1_1?keywords=TP-Link+Archer+T9E&qid=1553358397&s=gateway&sr=8-1

      --CASE

      Thermaltake Core P5 Tempered Glass Black Edition ATX Open Frame Panoramic Viewing
      -Link
      https://www.amazon.com/Thermaltake-Tempered-Panoramic-Certified-CA-1E7-00M1WN-03/dp/B01N4IGVSC/ref=sr_1_2?keywords=Thermaltake+Core+P5&qid=1565493567&s=gateway&sr=8-2

      --DSDT Patches--
      -FIX ACPI ERRORS -FIX OEM SSDTs to AVOID ERRORS AND WARNINGS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA -DMAC -REMOVE PROBLEMATIC AND UNUSED DEVICES -FIX K.P in REBOOT -SLPB -DARWIN / WINDOWS 2015 -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -REAL TIME CLOCK -ARTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -FWHD -USBX -PMCR -PPMC -XSPI -CNVW -GMM -IMEI -EC -PNLF -ARPT -GFX0 -NVME -DTGP -ACQUIRE MUT0 0XFFFF -MUTEX MUT0 0x00 -EXTERNAL REFERENCES -UNKNOWNOBJ -HDMI / HDAU -FULL RENAMED DEVICES ---SCREENSHOTs---




















      -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
      Thanks to KGP for SSDT Thunderbolt
      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!
×