XPS9360-macOS icon indicating copy to clipboard operation
XPS9360-macOS copied to clipboard

CPU package using more power than expected

Open JackMyers001 opened this issue 6 years ago • 44 comments

I have a 9360 with the i7-7560U, 16GB RAM, SK Hynix 512GB SSD, QHD+ display.

I was expecting to get somewhere in the neighbourhood of 1GHz at 0.5 - 0.7w running Mojave (seen several people online get around this figure.)

Installed Mojave, using your Clover config. Checked power management with Intel Power Gadget; CPU idled between 1 and 1.3GHz, at 2.3 - 2.7w (nothing open except Power Gadget).

I generated my own CPUFriend kext, which appeared to do basically nothing. Tried turning off HWP, deleting CPUFriend etc., nothing improved the situation.

Did more research, suspected it might be my NVME drive. Swapped the SK Hynix drive out for a Samsung 960 Evo 250GB, reinstalled. Also applied ComboJack fix for audio. Now with my CPUFriend Kext, I idle at 0.9 - 1.1 GHz, at 1.7 - 1.8w. A minor improvement, but still a long way off of 0.5w.

Is there something obvious I'm missing? Any help much appreciated.

JackMyers001 avatar Feb 22 '19 14:02 JackMyers001

I was expecting to get somewhere in the neighbourhood of 1GHz at 0.5 - 0.7w running Mojave (seen several people online get around this figure.)

Where have you seen this? Cause my cpu idles at 1,4-1,5w at 1ghz.

Mateo1234454545 avatar Feb 26 '19 19:02 Mateo1234454545

@Mateo1234454545 this original guide for Sierra says that OP gets "1.0GHz @ 0.5W idle <-> 3.5GHz @ 24W+ under load" (under the "Results to Expect" section).

JackMyers001 avatar Feb 27 '19 14:02 JackMyers001

The same happen here. My XPS 13 9360 have i5-7200, 8G RAM, HP EX920 SSD, FHD display with Mojave installed . The CPU idled between 0.5 and 0.8GHz, at 1.3 - 1.8w.

trlsmax avatar Mar 02 '19 01:03 trlsmax

Note that the original guide is using a model with i7-7500U, the model I use is the i7-8550U, as such I cannot test how i7-7500U behaves.

As a test, I would:

  • Disable PCIe card reader in bios
  • Disable touchscreen in BIOS
  • Disable audio in BIOS (and/or remove any audio related drivers)

I have the suspicion that AppleALC uses more power than strictly required.

With regards to the actual CPU power package, I have no other ideas besides the steps you did CPUFriend or HWP. According to the ioreg they are working as expected and PikerAlpha's kext shows all relevant CPU power states are reached.

the-darkvoid avatar Mar 03 '19 03:03 the-darkvoid

I found the SSDT-TYPC.aml was using extra power. Removing it dropped power consumption for me.

kcmark avatar Mar 05 '19 16:03 kcmark

I found the SSDT-TYPC.aml was using extra power. Removing it dropped power consumption for me.

Removing it also works for me.

ReVe1uv avatar Mar 06 '19 04:03 ReVe1uv

Works for me too. But also disable Type C port

trlsmax avatar Mar 06 '19 13:03 trlsmax

Can confirm that disabling this ACPI patch cuts the CPU pkg in half (for me from 1,52 to 0,70 while idle). However, I noticed that the frequency is now stuck at 1,50 GHz (I5 7200u). Anyone noticed the same behaviour? (After enabling the ACPI patch an rebooting CPU throttles back down to 0,6 GHz as its supposed to)

RicKrauel avatar Mar 13 '19 15:03 RicKrauel

@Richylitschy I noticed this too.

JackMyers001 avatar Mar 14 '19 00:03 JackMyers001

Doesn't seem to affect battery life though, as I'm getting around 1 1/2 hrs more with this fixed applied

RicKrauel avatar Mar 15 '19 15:03 RicKrauel

Give this updated SSDT-TYPC.aml a try (place it in /EFI/CLOVER/ACPI/patched) and see if it reduces the power usage of the CPU package.

SSDT-TYPC.aml.zip

the-darkvoid avatar Mar 17 '19 03:03 the-darkvoid

@the-darkvoid with the updated SSDT-TYPC.aml , the package stays the same as without it (0.85-0.9w idle), and the clock speed also remains the same (1.6-1.7 GHz idle, randomly dipping to as low as 1.3 GHz for a fraction of a second). However, USB-C now works (it didn't work without the SSDT before).

If you figure out a way to get the clocks down to where they were with the old SSDT (possibly lowering the package even further) then let us know, however I think this patch fixes the power draw and keeps USB-C.

Thanks @the-darkvoid !

JackMyers001 avatar Mar 17 '19 06:03 JackMyers001

@the-darkvoid with the updated SSDT-TYPC.aml , the package stays the same as without it (0.85-0.9w idle), and the clock speed also remains the same (1.6-1.7 GHz idle, randomly dipping to as low as 1.3 GHz for a fraction of a second). However, USB-C now works (it didn't work without the SSDT before).

If you figure out a way to get the clocks down to where they were with the old SSDT (possibly lowering the package even further) then let us know, however I think this patch fixes the power draw and keeps USB-C.

Thanks @the-darkvoid ! Hi, you can try run the following command in terminal: sh -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro/master/one-key-cpufriend/one-key-cpufriend.sh)" to make you own cpufriend.kext, but my cpu is 8250u.

ReVe1uv avatar Mar 17 '19 07:03 ReVe1uv

If you figure out a way to get the clocks down to where they were with the old SSDT (possibly lowering the package even further) then let us know, however I think this patch fixes the power draw and keeps USB-C.

I expected only the power draw to drop, I am surprised the change affected the clock speed as well. The modification simply turns off USB-C more aggressively when its not used.

the-darkvoid avatar Mar 17 '19 15:03 the-darkvoid

If you figure out a way to get the clocks down to where they were with the old SSDT (possibly lowering the package even further) then let us know, however I think this patch fixes the power draw and keeps USB-C.

I expected only the power draw to drop, I am surprised the change affected the clock speed as well. The modification simply turns off USB-C more aggressively when its not used.

Fix worked for the power draw! Thanks a lot! The clock speed is still hovering around 1,5 GHz though.

RicKrauel avatar Mar 18 '19 14:03 RicKrauel

@the-darkvoid with the updated SSDT-TYPC.aml , the package stays the same as without it (0.85-0.9w idle), and the clock speed also remains the same (1.6-1.7 GHz idle, randomly dipping to as low as 1.3 GHz for a fraction of a second). However, USB-C now works (it didn't work without the SSDT before).

If you figure out a way to get the clocks down to where they were with the old SSDT (possibly lowering the package even further) then let us know, however I think this patch fixes the power draw and keeps USB-C.

Thanks @the-darkvoid !

Does this change persist for you after sleep? For me the power draw stays at 1,30 (instead of the 0,7 ) after waking up from sleep. Still an improvement, but not as good as without the .aml

RicKrauel avatar Mar 21 '19 18:03 RicKrauel

@Richylitschy, try the attached SSDT-TYPC.

Also modify your config.plist and remove all dropped tables under the "DropTables" key. This should make the XPS 13 behave as "vanilla" as possible.

SSDT-TYPC.aml.zip

the-darkvoid avatar Mar 24 '19 08:03 the-darkvoid

@Richylitschy, try the attached SSDT-TYPC.

Also modify your config.plist and remove all dropped tables under the "DropTables" key. This should make the XPS 13 behave as "vanilla" as possible.

SSDT-TYPC.aml.zip

This patch reduced my power consumption by 50% across the board and USB-C still works.

Now idles around 1W, with a bump up to 4W if USB-C is plugged in. I used a USB-C -> HDMI adapter in the below screenshot.

Screenshot of Intel Power Gadget

grawlinson avatar Mar 24 '19 23:03 grawlinson

The latest 10.14.6 update added an update with regards to NVMe support. In the System Report screen under NVMe Express, it now shows Generic SSD Controller.

I believe this might be positive for power management. Can others corroborate this?

the-darkvoid avatar Aug 06 '19 16:08 the-darkvoid

I believe this might be positive for power management. Can others corroborate this?

definitely also seeing this in my system report. cannot yet tell whether it makes any difference in terms of power management though

sbaier1 avatar Aug 07 '19 08:08 sbaier1

I have a 9360 with the i7-7560U, 8GB RAM, SK Hynix 256GB SSD, FHD display

I used this repo to setup Mojave 10.14.5 and then updated to 10.14.6. CPU idles at 800Mhz at 2.5 to 3W package power (SD Card not disabled as I use it in Windows Dual Boot).

Biggest problem is that when I try to run XCode/iOS Simulator the systems freezes after few seconds because CPU boosts to 3.5+Ghz and when temperatures reach about 98C the system just freezes and reboots.

I made my own CPUFriend.kext/CPUFriendDataProvider.kext using https://github.com/stevezhengshiqi/one-key-cpufriend (choosing 800Mhz for idle) and also changed the SMBios to MacPro 14,1 (as that is a closer match for the i7 7560U than MacPro 15,2)

Would anyone know if the problem of CPU boosting and not thermal throttling properly is related to the initial idle package power (where I get 2.5+W in Intel Power Gadget)?

rhaenni avatar Aug 21 '19 03:08 rhaenni

Biggest problem is that when I try to run XCode/iOS Simulator the systems freezes after few seconds because CPU boosts to 3.5+Ghz and when temperatures reach about 98C the system just freezes and reboots.

This sounds more like some messed up ACPI patching to me, very strange behavior... not sure though

sbaier1 avatar Aug 21 '19 07:08 sbaier1

This sounds more like some messed up ACPI patching to me, very strange behavior... not sure though

Thanks for the hint, I had used --compile-dsdt from this repo and copied the created files into EFI/CLOVER/ACPI/patched

However the comment about ACPI led me to find this repo https://github.com/hoanX/xps13-9360-i7-7560u (same CPU as me) and I deleted the whole EFI/CLOVER folder and replaced with the one from that repo and this has fixed my CPU Temperature/Freeze problem under high load.

rhaenni avatar Aug 21 '19 09:08 rhaenni

@sbaier1 do you see any difference now? Is it worth updating?

rostopira avatar Aug 21 '19 09:08 rostopira

@rhaenni i had exactly the same issue, when I ran a simulator, osx freezed and reboot. With the repository you linked I can now re-use simulators.

Can someone investigate on that issue ? Do you need that we create a new issue ?

Thank you so much !

ElieMyIdea avatar Oct 25 '19 17:10 ElieMyIdea

HI, I have too an XPS 9360 with an i5 7200u. I can't go below 1.79W measuring with the Intel Power Gadget.

I have tried disabling the audio and removing its kext. I've tried the new SSDT-TYPC.aml of this thread and also have tried to remove it but nothing. I'm always stuck at around 1.79-2W... which makes me wondering if my laptop is even using correctly CPUFriend as with or without I have the same result. Anything else I could check ? I have BIOS2.10 and have used the BIOS settings of the guide. Could it be the Hynix SSD sucking all that extra watt ?

dropbrick avatar Jan 25 '20 19:01 dropbrick

Have you tried https://github.com/acidanthera/NVMeFix ?

This reduced my power consumption quite remarkably.

egore24 avatar Jan 25 '20 21:01 egore24

Have you tried https://github.com/acidanthera/NVMeFix ?

This reduced my power consumption quite remarkably.

What NVME do you have ? (model)

dropbrick avatar Jan 26 '20 12:01 dropbrick

WDS100T2X0C-00L350

egore24 avatar Jan 26 '20 13:01 egore24

NVMeFix is now part of the repo, anyone seeing a positive change?

the-darkvoid avatar Jan 30 '20 06:01 the-darkvoid