Contribute
Register

[Guide] Dell XPS 9560 Mojave VirtualSMC, I2C Trackpad, Clover UEFI Hotpatch

Status
Not open for further replies.
Joined
Apr 11, 2019
Messages
7
Motherboard
Dell XPS 9560
CPU
i7-7700
Graphics
GTX 1050+HD 630
For anybody that wants to try, i have OpenCore 0.0.3 working for Dell XPS 9560 to boot MacOS. I can't get BrcmpatchRAM2 to load for bluetooth to work. If anyone can look into that and help with that, it'll be a good thing. Any modifications or fixes is welcomed also.
 

Attachments

  • EFI.zip
    9.1 MB · Views: 72
Joined
Oct 8, 2018
Messages
36
Motherboard
Gigabite X570 AorusPro WiFi
CPU
Ryzen 3900x OC 4.5gHz
Graphics
RedDevil 6900xt
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
EDIT!! Ok so without deep idle sleep works, lid open wakes but now after sleep it's idling at 16-17Watts. :banghead:

Clover 3.4 is released due to some findings about a botched CPUDataProvider.
  • New CPUFriendDataProvider.kexts, options two options available
    • Default Power Save
  • Removed SSDT-DeepIdle
    • Fixed sleep issues
    • Fixed opening lid didn't wake screen, had to press power button
  • TB/USB-C options are now in a separate folder, you decide which one to use, none is included by default
  • Latest Clover, Kexts, and AptioMemoryFix R27 as of today
If your just here for the files, it's attached to the first post.....

coconutBattery, all it really does it pull info from about System Info and pretties it up. I also have the coolest battery on earth apparently. While I'm not sure I would trust anything other then power discharge, it's consistent enough for me to realize there is a problem with power after sleep. I have been using my laptop docked for quite some time now so I didn't realize you poor souls running on battery are getting less than you should. Sorry!

I set the status bar to show me milliamp discharge and it's exactly the same as what's already provided to us using System Report Power section and it only updates when the system updates it. So you can refresh the System Info and it'll stay the same regardless of what's happening and once that changes coconutBattery changes as well.

View attachment 414689

Problem was evident after testing. 9-12W during idle but after sleep it stayed pretty stuck in the 20s even after like 25 minutes.

So I went back and investigated the CPUFriendDataProvider. Learned a decent amount too. I generated two new ones using Power Saving method and a Balanced setting. Included default will be Power Saving.
These technically should only be used for i7 processors but give it a shot and report back to me with your findings.

Included are DataProviders with two frequency vectors and EPP adjustments. You have the option to select what you prefer. Both have been altered to change the SpeedShift’s EPP value and both have LFM(lowest frequency mode) set to 800Mhz. The standard is 1.3GHz for MacBook Pro 14,1. Both versions will also resume HWP after sleep.

Default installed is the Power Saving as there’s no ill effects after testing and I ran Geekbench on both with negligible differences in score. Max CPU speeds on all cores can still be reached.

Balanced will technically scale the performance on the higher end using higher clock speeds than Power savings. This I believe is the default for MBP. I did notice the cpu in Intel Power Gadget did not idle as close to 800Mhz as often as the default.
—————————————————————
If you care about the details… continue reading.

Balanced method is EPP 0x20 in decimal it’s 32. So think of that as EPP 32.

Power Saving is EPP 0xC0 which is EPP 192.

In short, EPP(energy performance preference) is the value at which Intel SpeedShift (HWP) will consumes/saves power. I said in short!

The range of values are supposed to be between 0-255. 00 being HIGH performance, max CPU speeds all the time. 255 the opposite.

You can read more about EPP and a starting point on what to change in our board id’s plist in SLE/IOPlatformPluginFamily.kext and merge it with the resource script that comes with CPUFriend.


Heres what it looks like now at idle before and after sleep.
View attachment 414692

And here is the reading right when it wakes from sleep.
View attachment 414693
Like I said before I been using docked and hardly put it to sleep so I started retesting with the new CPUFriendProvider and the damn laptop would not sleep no matter what. Only Deep Idle. After a few testings I found SSDT-DeepIdle to be the culprit. I researched it up and KNN grabbed these patches from Pike and there's really not much info out there on it. We have fully working HWP so this bit of DeepIdle is not necessary(?). It's like the middle ground between idle and sleep. Display blacks out but the machine is technically still on. So figure it's better to have sleep then be stuck in the middle.

Would like you guys to report to see if you notice anything different without it. It is still included in a separate folder in Misc. Maybe some of you can test sleep as well.

Ugh... Confused. Maybe I didn't read this correctly. This is what i can gather. Just had a look at your first post but there were no additions. So... you've noticed the increased power consumption. Fixed it. Uploaded the solution. But then encountered an other problem and the consumption is back at 17-18 so you used strike-through and left the post as is. Correct?
 
Joined
Aug 10, 2012
Messages
425
Motherboard
Asus Rog Strix Z370-G GAMING (WI-Fi AC)
CPU
i7-8700K
Graphics
RX 580
Mobile Phone
  1. iOS
Blazinsmokey
Instruction in OP about VoltageShift is incomplete
./voltageshift offset -125 -90 -125 vil only work after cold/reboot.But after sleep/wake these values return to -0.
You can check with this
./voltageshift info
To solve it you should use -125 -90 -125 0 0 0 1
the last digit "1" will scheduled check the settings every 1 min. and amend if needed. (after wake from sleep)
More details here:
 
Last edited:
Joined
Dec 1, 2018
Messages
3
Motherboard
Dell XPS-15 9560
CPU
i7 > need model # > See Rules!
Graphics
GTX 950
@blazinsmokey I just wanted to say thank you for the guide. For my work, we required mac OS, and since I already owned an XPS, I used several other guides until I finally landed on yours. Your guide has been working for me for months without any issues, and I can triple boot macOS, linux and Windows on the same machine - which is amazing. There are some small hiccups like sleep (which I just disabled - I just lock my laptop when I'm on my break), and TB3 (which I am not really using - I'm only using a usbC to HDMI adapter to get 2 external displays). Other than that, the experience has been really rock solid - even more so than my ubuntu installation. So I just wanted to pitch in and say thanks for the good work. I still haven't updated my mojave since I'm afraid gestures and keyboard functionality will break, but I don't really feel inclined to do so.
 
Joined
Jun 24, 2014
Messages
288
Motherboard
ASUS Maximus VII Hero
CPU
i7 4790k
Graphics
HD 4600 + GTX 970
Mac
  1. iMac
  2. MacBook Pro
Mobile Phone
  1. iOS
Blazinsmokey
Instruction in OP about VoltageShift is incomplete
./voltageshift offset -125 -90 -125 vil only work after cold/reboot.But after sleep/wake these values return to -0.
You can check with this
./voltageshift info
To solve it you should use -125 -90 -125 0 0 0 1
the last digit "1" will scheduled check the settings every 1 min. and amend if needed. (after wake from sleep)
More details here:

That's for when you are building the launch daemon. I only referred to the settings I was manually setting myself, you can read the voltageshift's github repo to fully understand the difference between the offset command versus the buildlaunchd command.

Edit: Also if you want your battery life to decrease significantly then sure have it check every minute. You're much better off checking every 30 minutes or an hour.
 
Joined
Jun 24, 2014
Messages
288
Motherboard
ASUS Maximus VII Hero
CPU
i7 4790k
Graphics
HD 4600 + GTX 970
Mac
  1. iMac
  2. MacBook Pro
Mobile Phone
  1. iOS
Heres the new generated CPUFriendDataProviders I made. I was thinking during my holiday break maybe it's because my BIOS is hacked up by changing values via EFI hacks when I was trying to figure out USB-C and TB. I'll have to reset it completely by removing the CMOS battery. Eventually I will but I think in the meantime some of you could give it a try.

Laptop for me would only enter deep idle and not sleep but would have low wattage usage from waking from deep idle.
 

Attachments

  • CPUFriendDataProvider Options.zip
    15.5 KB · Views: 54
Joined
Aug 10, 2012
Messages
425
Motherboard
Asus Rog Strix Z370-G GAMING (WI-Fi AC)
CPU
i7-8700K
Graphics
RX 580
Mobile Phone
  1. iOS
That's for when you are building the launch daemon. I only referred to the settings I was manually setting myself, you can read the voltageshift's github repo to fully understand the difference between the offset command versus the buildlaunchd command.

Edit: Also if you want your battery life to decrease significantly then sure have it check every minute. You're much better off checking every 30 minutes or an hour.

Setting it to check every 30 or 60 minutes won't increase battery life.
It means that you don't have VoltageShift working for 30 or 60 minutes after wake from sleep.
That will for sure decrease battery life.
Setting it to one minute will not have any noticeable impact on increased battery life.
Believe me. I've done a lot of research.
In IntelPowerGadget you se that checking will show a very very very short raise in ghz (0,5)
 
Last edited:
Joined
Jun 24, 2014
Messages
288
Motherboard
ASUS Maximus VII Hero
CPU
i7 4790k
Graphics
HD 4600 + GTX 970
Mac
  1. iMac
  2. MacBook Pro
Mobile Phone
  1. iOS
Setting it to check every 30 or 60 minutes won't increase battery life.
It means that you don't have VoltageShift working for 30 or 60 minutes after wake from sleep.
That will for sure decrease battery life.
Setting it to one minute will not have any noticeable impact on increased battery life.
Believe me. I've done a lot of research.
In IntelPowerGadget you se that checking will show a very very very short raise in ghz (0,5)

It doesn't reset when the laptop goes to sleep, only when it hibernates and on cold boots. I don't use hibernation at all so I only have to run at boot. I run a couple bash alias commands every time I boot up anyways that sets this for me. I don't believe in needing a daemon for this. To each their own tho.

The developer actually sets the default interval to 160 minutes. It's in the instructions of the github. Take it how you want but I highly doubt the developers would pick 160 minutes as default if they thought every minute was a good idea. I still stand by my reasoning that it's not a good idea to poll it every minute, especially if you don't use hibernate then you should just have the offsets set at boot and not have it check at all.
 
Joined
Aug 10, 2012
Messages
425
Motherboard
Asus Rog Strix Z370-G GAMING (WI-Fi AC)
CPU
i7-8700K
Graphics
RX 580
Mobile Phone
  1. iOS
"The developer actually sets the default interval to 160 minutes"
You are right.But VoltageShift was not made intended for Hackintosh.It was made for real macs
Hackintosh´s do not support hibernate.
Next time you put your Hack to sleep and wake it then check with ./voltageshift info
Values returns to -0
 
Last edited:
Joined
Dec 27, 2012
Messages
103
Motherboard
Dell XPS 9560 FHD
CPU
i7-7700HQ
Graphics
HD 630
Mac
  1. MacBook
Mobile Phone
  1. iOS
Heres the new generated CPUFriendDataProviders I made. I was thinking during my holiday break maybe it's because my BIOS is hacked up by changing values via EFI hacks when I was trying to figure out USB-C and TB. I'll have to reset it completely by removing the CMOS battery. Eventually I will but I think in the meantime some of you could give it a try.

Laptop for me would only enter deep idle and not sleep but would have low wattage usage from waking from deep idle.
Hi @blazinsmokey .

Using the new CPUFriend kext does the same thing as the one I generated with this handy script:

Seems less power hungry and battery decreases much slower, but for an unknown reason sleep wake from lid open doesn't work anymore, I have to do it manually via power button. (like you apparently).

Last, I'm sad to hear for your Bios trouble (a bit guilty here)... Maybe try to install new bios 1.15.0 upon it to reset to factory setting https://www.dell.com/support/home/u...N&oscode=WT64A&productcode=xps-15-9560-laptop (after waiting a few days, because even if published apparently dell support aren't even aware it exist " lol We do not have any new BIOS firmware released for your system. We suggest that you do not proceed with the new update.

Hope it'll be ok.

Cheers.

EDIT: removing DeepIdleSSDT seems to fix sleep wake from lid but I have not tested sleep state yet (like in previous posts, will do).
 
Last edited:
Status
Not open for further replies.
Top