LuletterSoul / Dell-XPS15-9570-macOS

let macOS Mojave/macOS Catalina run on Dell XPS 9570 4K
401 stars 75 forks source link

CPU maxes out on it's own #8

Closed erenatas closed 5 years ago

erenatas commented 5 years ago

I wanted to make sure before opening an issue. I would like to mention that I do have the same laptop with same specs, only that I am using a USB WiFi module because my dw1830 didn't arrive yet.

I can reproduce this problem after waking up from sleep and sometimes it happens on its own.

Detailed description: CPU is maxed out on frequency and therefore wattage rises from 3-4W to 14-15W while doing nothing. After waking up from sleep it is around 18-20W on me. Here is a screenshot for proof:

I really would like to find a solution to this problem. If we can solve it, we could probably have around 6hours of lightweight work battery life.

Cheers

chenjh-8 commented 5 years ago

I had the same issue,I also use a USB WLAN .

erenatas commented 5 years ago

I do not believe it is related to usb WiFi though. I will try to do more tests today.

LuletterSoul commented 5 years ago

First, I have around 2.5hours of heavyweight work battery like when I run tens of Chrome tab pages,IDE.etc. I am frustrated because of short time of usage without AC power. Intel Turbo Boost seems to work properly on my machine.It is really nice if I get 6hours battery life, but it's hard due to we have no battery saving mode on Windows I guess.

You can check whether it's related to usb WIFI device or not by disabling it.

erenatas commented 5 years ago

@LuletterSoul This problem might be related to this ticket:

https://github.com/the-darkvoid/XPS9360-macOS/issues/44

As far as I know, we cannot control fans through HWMonitor, I don't know what LPC is but it might be related to this problem.

erenatas commented 5 years ago

Update: This problem may only be appearing on battery.

While using on Battery:

  1. Sleep
  2. Wakeup -> Kernel_task is at 100% and eating 20W.

While plugged in:

  1. Sleep
  2. Wakeup -> Kernel_task is how it needs to be. Eating 3-4W

An interesting case (Tried it twice)

  1. Plug it out
  2. Sleep
  3. Wakeup -> Kernel_task is at 100% and eating 20W.
  4. Plug it in
  5. Sleep
  6. Wakeup -> Kernel_task is back to how it should have been. Eating 3-4W once again.

Seriously, what's going on...

LuletterSoul commented 5 years ago

@erenatas I cannot reproduce this weried problem.CPU frequency and power consumption seems to perform normally.

Screen Shot 2019-04-17 at 10 27 23 PM Screen Shot 2019-04-17 at 10 27 26 PM

As far as I know,AppleLPC is no longer needed after 6th gen CPU.You can modify SSDT-LPC.aml and make it work.But I don't sure whether it's related to LPC or not.It will be very appreciated if you can do a little for this research.

erenatas commented 5 years ago

So no matter what you do, you never get 100% kernel_task(excluding heavy work). Am I correct?

LuletterSoul commented 5 years ago

Not exactly like kernel_task will get 100% at a moment when excuting heavy work, but will be down at around 20-30% CPU usage.

erenatas commented 5 years ago

Ok, then I will try to remove DW1830 specific kexts-DSDTs then try it. I wish my DW1830 would arrive.. I have been waiting for almost 2 months now.

chenjh-8 commented 5 years ago

Update: This problem may only be appearing on battery.

While using on Battery:

  1. Sleep
  2. Wakeup -> Kernel_task is at 100% and eating 20W.

While plugged in:

  1. Sleep
  2. Wakeup -> Kernel_task is how it needs to be. Eating 3-4W

An interesting case (Tried it twice)

  1. Plug it out
  2. Sleep
  3. Wakeup -> Kernel_task is at 100% and eating 20W.
  4. Plug it in
  5. Sleep
  6. Wakeup -> Kernel_task is back to how it should have been. Eating 3-4W once again.

Seriously, what's going on...

@erenatas You describe the situation exactly as I do.Expect you to remove DW1830 kexts-DSDTs

erenatas commented 5 years ago

@chenjh-8 I will try to do it today.

chenjh-8 commented 5 years ago

@erenatas have any result?

erenatas commented 5 years ago

I have been trying xigtun's efi. I believe it's related to CPUFriendDataProvider. I am trying to check it right now.

erenatas commented 5 years ago

@chenjh-8 do you have android file transfer installed?

EDIT: @chenjh-8 do you have VoodooHDA.kext on EFI/Clover/Kexts/Other?

chenjh-8 commented 5 years ago

@erenatas NO

erenatas commented 5 years ago

I really have no idea why but putting it solved my issue. Honestly, it is weird AF. Give it a shot. @LuletterSoul can you confirm if you have VoodooHDA or not on your kexts?

VoodooHDA.kext.zip

kevinshroff commented 5 years ago

For me, I had power management issues with CPU consuming more power than it should (sounds similar to the issues you guys are having) back when I was constructing my EFI. I think it is caused by sound - I found that using layout-id 72 instead of layout-id 30 on my XPS 15 9570 4K i7 8750H fixed those power management issues, but some other people had no problems with layout id 30.

I think by using voodooHDA you would be bypassing the AppleALC sound and thus seeing those power management issues resolve, but I think trying this layout fix and using AppleALC instead is preferable. Try layout id 72 and let me know if it fixes it

erenatas commented 5 years ago

@kevinshroff I had to return to Windows because I needed battery life for my master's degree. I will return back to hackintosh once I get my DW1830 and try it.

Meanwhile, can you see or control your fans? Because I couldn't manage to and fans kept running in low speed. That might be another reason for having a bad battery life. While doing light tasks it drains up in 2 hours which is very unfortunate.

kevinshroff commented 5 years ago

I'm not on macOS currently either and don't plan on being on it for until around another month for when I do a video on it for YouTube. Last time I used it with my EFI my fans were silent and battery life was decent, around 6-7 hrs (I was also undervolted) if I remember correctly. Didn't attempt to control fans so I wouldn't know about that. Your fans running + crap battery life reminds me of when I was using layout id 30. EDIT: I haven't actually used lulettersoul's EFI yet so I don't know what layout id he currently is using

chenjh-8 commented 5 years ago

@kevinshroff I had same issues with @erenatas ,lulettersoul's EFI using layout id is 30. And he let me to change layout id to 72 earlier https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave/issues/2#issuecomment-482779467,but it without effect.

M69W commented 5 years ago

In the other hand, try to Modify macOS CPU Performance. One key to use is easy for everybody in their CPU i5 or i7 even i9

LuletterSoul commented 5 years ago

In fact I didn't realize kernel_task 20-30% CPU usage abnormal until I found it's only 5%-6% CPU usage for kernel_task in my desktop machine run High Serria.

What causes the over usage of kernel_task? It confuses me now.

M69W commented 5 years ago

https://www.sov2ex.com/?q=Kernel_task

RodriMora commented 5 years ago

I really have no idea why but putting it solved my issue. Honestly, it is weird AF. Give it a shot. @LuletterSoul can you confirm if you have VoodooHDA or not on your kexts?

VoodooHDA.kext.zip

for me this resolve the issue. I used to have 100% kernel usage and now I have 25-30% and the cpu frecuency doesnt stay in 3+ghz all the time and power usage is lower

RodriMora commented 5 years ago

I really have no idea why but putting it solved my issue. Honestly, it is weird AF. Give it a shot. @LuletterSoul can you confirm if you have VoodooHDA or not on your kexts? VoodooHDA.kext.zip

for me this resolve the issue. I used to have 100% kernel usage and now I have 25-30% and the cpu frecuency doesnt stay in 3+ghz all the time and power usage is lower

Update: Internal audio works, but Airpods don't work anymore, they connect but dont show as an option on output devices

Update 2: Changing layout in clover>devices>audio to 72 fixed Airpods not working

erenatas commented 5 years ago

@RodriMora and you still have VoodooHDA or you deleted and then changed to layout ID?

erenatas commented 5 years ago

I have changed my wifi card to DW1830. Installed 10.14.3 by mistake but it seems to be working good right now. I also did not put VoodooHDA kext too. Will give you an update.

erenatas commented 5 years ago

This is definitely related to AppleALC.kext.

erenatas commented 5 years ago

@LuletterSoul I have solved it with the SSDT that you have provided in https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave/issues/2 . I believe you should write this in README.

Now the other problem is, When the system is booted up initially, It uses around ~3 Watts but after waking up from sleep, it is increased to 5-6 Watts, in the same idle state. There might be something else that is causing the decreased battery life. I am closing this issue for now. I will open another ticket related to this when I find some time to do research to find the cause of the problem.

chenjh-8 commented 5 years ago

@erenatas Hei man. You solve this issuse by changing wifi card to DW1830 and replacing this SSDT https://github.com/LuletterSoul/Dell-XPS-15-9570-macOS-Mojave/issues/2 ?

erenatas commented 5 years ago

@erenatas Hei man. You solve this issuse by changing wifi card to DW1830 and replacing this SSDT #2 ?

Yes. I don't think It was related to DW1830 but replacing the SSDT solved the kernel_task problem for me.

LuletterSoul commented 5 years ago

@erenatas Wrong layout id of audio card would cause busy kernel_task.It's mentioned in bavariancake's repository.

erenatas commented 5 years ago

We have the same laptops but you use a different layout id, isn't that weird?

andresandiah commented 5 years ago

i also changed the layout id to 72, it fixed the kernel_task issue BUT, it distorts the headphone jack making it unusable