-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clamshellClosed spam- high CPU usage #75
Comments
It may be just me in particular, as I run OpenCore, but this patch should probably be integrated in. |
Unrelated: May you send me a copy of your OC folder? I have been trying to make it work for a long time and I'm stuck on a panic.. |
I can confirm the very same happening to me, with a different OC setup. Anyone on Clover experiencing the same? Also, could you (@hatf0) maybe create a SSDT out of this? I have tried to find some documentation but there isn't much. |
Ok so I have read the relevant parts of the ACPI documentation and the one from Intel and I don't really understand why you've done this bit here: CLID and _LID aren't returning the same type of data. CLID returns one of four different states while _LID only indicates if the lid is opened or closed with either 0 or 1. Hence, as far as I understand it, while it may be working, isn't performing the correct logic. However, I know almost nothing at all about this so maybe I'm completely wrong. @gnodipac886 any ideas? Edit: Like, to notify only on a state change; why not remove the entire last block (the if statement from I've mentioned above)? |
@kvn1351 Oops. I forgot what a variable was for a hot second, and I was using CLID as a pseudo-one. I've updated the patch above to reflect that. |
I tried to make it into a SSDT, try this.
|
So, once again I have to state that I'm a complete noob when it comes to this but according to my current understanding of ACPI, the following ssdt would yield collisions because the method I think you'd have to clover rename Now, I don't have the original dsl at hand, but the inclusion of Also, I don't understand the use of So, all that has to be done here, if I'm reasoning correctly, is to remove the last if statement and nothing else. Cause if I remember correctly, Here's my untested ssdt, could someone please check? I don't have access to my Matebook for the rest of the week.
The opencore rename would be: The clover rename would be: |
Also, I can confirm that the very same logs appear with Clover as I tested yesterday. But I didn't notice any CPU spiked as you mentioned. I didn't perform any extensive testing though. |
_XQ81 would most likely to be renamed, I did not think of that. As well, the _OLD would not remain |
Oh, I see, I didn't notice the _OLD assignment in the last conditional. Also, it has to be XQ81 in order to match the number of bytes to replace. My replacements are correct but I forgot to remove the _ from my comment. I've edited that. What I still don't understand though is why _OLD has to be in LID. |
find 5f513831 @hatf0 like this perhaps? |
The issue still persists with your dsdt mod and even by patching out Q81 completely. I have now tied it down to being VirtualSMC causing the issue - or enabling it. With FakeSMC the issue is gone. This isn't a solution though. @gnodipac886 Any ideas? |
I'm randomly experiencing the same issue with 100%+ CPU usage... did you come to a conclusion? I switched to FakeSMC also at the moment... but lost the Ambient Light Sensor (any way to get it back?). |
On battery, I've noticed that the console is filled with clamshell updates
PMRD: clamshell closed 0, disabled 0, desktopMode 0, ac 0 sleepDisabled 0
which pins the CPU at 10-20% continually and does not allow the processor to ramp back down. I've found that modifying the _LID area to be as follows fixes this, and is still functional (laptop sleeps when lid closed, awakens when lid is opened, etc)
The text was updated successfully, but these errors were encountered: