Contribute
Register

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

Status
Not open for further replies.
Joined
Dec 29, 2015
Messages
9
Motherboard
Dell XPS 9560
CPU
i5-7300HQ
Graphics
GTX 1050
@mazakiss jardenliu's version didn't work for me.
and @blazinsmokey did use too much batterie.
So I switched some files from @blazinsmokey with them.
And edited some3.

And I am using more/other kexts than him.
Plist should be nearly the same.

USB-C always mounts. But I can't plug in a third monitor, with my Usb-C to HDMI adapter. Then it crashes.
Tomorrow I will try it with @blazinsmokey USB-C and TB3 aml files...

Cant test 4k HDMI :3

Everything is working simultaneously. iPhone + usb + ssds + screen + Keyboard + Mouse + Hub with 10 extra USB ports :D

Itunes is only a problem on my Machine... tried the same clover config on a friends machine. And he doesn't get a DRM error....


@blazinsmokey version used to much battery life (tested on an earlier version)
jardenlius USB-C is not working correctly.
So you can take the git repo. Replace the USB-C thunderbolt fixes.
And you are good to go. (If battery life sucks, take the DataProvider.kext from @blazinsmokey)

And I don't know if its already in this thread but to gain more CPU efficiency you can enable SpeedShift by changing some Values ;)

Ok, so current status:

Jardenliu's has perfect functionality, perfect battery life (6hrs) - however USB-C Dell WD15 doesn't work (panic upon plug in).

Blazinsmokey's tb config does not work (very slow with laggy animations), however the normal config.plist (Clover 3.2) works perfectly, yet has terrible battery life (1.5hrs).

Not sure why the difference in battery life is so pronounced. Also not sure why the tb config is so slow and cumbersome.

For now, I think I will have to just try my best to combine them xD Thanks so much for the hard work, it's really appreciated.
 
Last edited:
Joined
Oct 13, 2018
Messages
1
Thank you!

406842


406843
 
Joined
Feb 25, 2012
Messages
311
Motherboard
GA-Z370N-WIFI
CPU
i5-8600K
Graphics
RX 460
Mac
  1. MacBook Pro
  2. Mac mini
Mobile Phone
  1. Android
  2. iOS
Do you still have the sleep-crashing computer problem?
I still have a crash about once a day, that seems to be sleep related based on googling codes from error
Code:
No samples for specified time interval

================================================================
                                          
status: 0x10003     
Code: 0x340adb000000028     
Stackshot reason: Watchdog

      Model: MacBookPro14,1, BootROM 184.0.0.0.0, 4 processors, Intel Core i5, 2,50 GHz, 32 GB, SMC 2.43f6
Graphics: Intel HD Graphics 630, Intel HD Graphics 630, Built-In
Memory Module: BANK 0/DIMM0, 16 GB, DDR4, 2667 MHz, Samsung, M471A2K43BB1-CRC
Memory Module: BANK 1/DIMM0, 16 GB, DDR4, 2667 MHz, Samsung, M471A2K43CB1-CTD
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x19), Broadcom BCM43xx 1.0 (7.21.190.18.1a3)
Network Service: Wi-Fi, AirPort, en0
PCI Card: sppci_expresscard_name, Unknown
USB Device: USB 3.0 Bus
USB Device: Integrated_Webcam_HD
USB Device: Touchscreen
USB Device: Vendor-Specific Device
USB Device: BCM20702A0
USB Device: BCM20702A0
Thunderbolt Bus:
Not sure if it's TB3 related, but I'm not currently using TB3 port at all

I've been using the newest Kaby Lake config from your later post and have had the most stable experience I've had with my XPS 15, even when it was on Sierra. I do still get the screen flicker with this config, as expected, but I've had no crashes during sleep in over a week. Tonight I will swap to the Skylake spoof and see if I experience the crashes again.
Thanks for posting, will try updating my config and will see if that help
 
Joined
Dec 27, 2012
Messages
103
Motherboard
Dell XPS 9560 FHD
CPU
i7-7700HQ
Graphics
HD 630
Mac
  1. MacBook
Mobile Phone
  1. iOS
Hi there.

After some test, I can say that battery is perfectly working now with @blazinsmokey Clover 3.2 folder with very small modifications.

Ok, could be better compared to the 10 hours in windows but most hackintoshes have substancially less battery autonomy (7 to 8 hours here). Fans are more silent if not completely off most of the time, CPU mostly hit 37° with 85 chrome tabs opened lol

I didn't used or mixed original config.plist with jardenliu's work on github:

1) Jardenliu uses wrong product model in his smbios, it should be 14,1 for IGPU only, not 14,3, see @vit9696 response here:


2) After reading @RehabMan comments here about SMCBatteryManager.kext and Battery APCI patching:

BTW, I did some testing with VirtualSMC.kext and SMCBatteryManager.kext on some of my systems.
I found that ACPI still needs patching for SMCBatteryManager.kext to work... it seems it actually calls into ACPI battery methods anyway.

Your case is probably that you did not need ACPI patches for your battery methods in the first place (eg. ACPIBatteryManager.kext would work with same result). Not all computers use EmbeddedControl for battery status, and even some that do, have no multibyte EC fields.

... So I just added the missing patched SSDT for Battery (SSDT-BATC.aml) and Fans (SSDT-FANS.aml) from Jardenliu and get everything to work now, battery doesn’t drain like crazy.(He has 97W battery).

You can download and try my CLOVER 3.2 folder same untouched kb-config.plist as blazingsmokey with addition:

- Battery & Fan SSDT from jardenliu

- Last USB-C & TB SSDT from blazinsmokey

- NoTouchID.kext (only for those with fingerprint sensor, to deactivate it at boot time)

- Removed SMCLightSensor.kext (we don't have light sensor for automatic brightness) & AppleBacklightFixup.kext (superseded by Whatevergreen last update).

- Added VoltageShift.kext (only for those who wants to try undervolting, mine works great with -130 -90 -130mV, see post from @arehep here for explanations : https://www.tonymacx86.com/threads/...smc-i2c-trackpad-clover-uefi-hotpatch.267161/

- Replaced CpuFriendDataProvider.kext. I generated mine with this handy script that generates kext based on your Smbios and Board Model, you have 4 settings, I used the lowest to preserve battery (I only do light browsing and stuff on my hack): https://github.com/stevezhengshiqi/one-key-cpufriend CPU is also set to 800 Mhz at idle.

- Last but not least, all lilu related kext & drivers64UEFI updated to last revisions from Acidanthera repo and upcoming Clover 4926 and 4828.

This config should work for all XPS 9560 owners with 7700HQ CPU and 97W battery. For those with 7300HQ, please refer to post post #316 or use provided script. For 4 Screen users see post #1. Finally, for those with 56W small battery, chances are you will have to patch your battery SSDT.

So all in all, the only things left to make this hack one of the sexiest laptop ever in the history of hackintosh could be :

- More input & test for TB3 device owners so we know if TB3 works or not with current OP config, personally @blazingsmokey USB-C with USB2/3 + HDMI 4K 60Hz support works very nicely for me, can't complain here, a bit slow for USB device mounting but nothing "laggy" here. Hot/Cold pluging works great too.

- Hoping for VirtualSMC to add laptop fan sensors in the future for fan control

- This weird fan management between on battery (dead silent, really enjoyable) and plugged in (fans that blast most of the time).

EDIT: There is still something weird with the battery, after almost 5h at 50% the battery drops to 7% So I must investigate more. I tested with a brand new 97W battery to replace my old 56W maybe it needs some charge cycles, I don’t know.

I also noticed that with my provided CPUDataProvider.kext sleep wake from lid doesn’t work, I have to manually wake the laptop with power button. If you have issues use original from Blazinsmokey, wake from lid works here.

What a shame this hack works better in Mac OS than Windows lol

Honestly, I don't see much to improve here, thanks to OP and all the legends, developers and contributors who made my computer life easier since 2012!

Cheers!

Note: don't forget to clear NVRAM (F11 at Clover screen) after the changes, sometimes you have to do it multiples times to make it work, see post #301. Also, I doing Bios factory reset a reapplied all the settings helped.

About my hardware: Dell XPS 9560 FHD 1080p, no fingerprint sensor, MacOS/Win 10 Dual Boot, CPU : 7700HQ, SSD : Samsung 970 EVO, Wifi/bluetooth : W1560, RAM : Crucial DDR4 32Go (2x16), Unbranded Chinese 97W battery upgrade, CPU repasting + Thermal Pads + Sealed vents to keep it cool (google for it, there are some crazy mods out there lol).
 

Attachments

  • CLOVER.zip
    14.9 MB · Views: 101
  • Screenshot 2019-05-20 at 20.52.18.png
    Screenshot 2019-05-20 at 20.52.18.png
    146.9 KB · Views: 68
Last edited:
Joined
Jul 25, 2013
Messages
419
Motherboard
Asus X99 Deluxe
CPU
E5-2697v3
Graphics
RX 580
Mac
  1. iMac
  2. MacBook
  3. MacBook Air
  4. MacBook Pro
  5. Mac Pro
Classic Mac
  1. iMac
  2. Power Mac
  3. Xserve
Mobile Phone
  1. Android
  2. iOS
Hi there.

After some test, I can say that battery is perfectly working now with @blazinsmokey Clover 3.2 folder with very small modifications.

Ok, could be better compared to the 10 hours in windows but most hackintoshes have substancially less battery autonomy (7 to 8 hours here). Fans are more silent if not completely off most of the time, CPU mostly hit 37° with 85 chrome tabs opened lol

Thanks for all the hard work. I will update mine when I get to work today and test throughout the day.

EDIT:

With the changes, the Fan profile seems MUCH better. I have not used VoltageShift yet, but that's next on the list today. I think the 14,1 SMBIOS change and the new SSDTs seem to have helped significantly. Fantastic work - thanks again!
 
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
Thanks for all the hard work. I will update mine when I get to work today and test throughout the day.

EDIT:

With the changes, the Fan profile seems MUCH better. I have not used VoltageShift yet, but that's next on the list today. I think the 14,1 SMBIOS change and the new SSDTs seem to have helped significantly. Fantastic work - thanks again!

14,1 was the original Smbios from untouched @blazinsmokey config.plist.
I don't know if the fan ssdt does anything here, really.
BATC-SSDT is present in IOReg but apparently I have to patch something else to make it work, there is a VirtualSMC thread on a famous "insane" hackintosh forum that refers to it.

Voltageshift works great, and the kext allows to also do undevolting in Windows without any additional modification. It will be applied on all OS present at Clover boot.

Please, tell us how your battery works.

Do any of you has the 1% added to battery each time you plug your power cord and minus 1% unpluging it? And this strange behaviour like draining normally for few hours and then charge dropping from 50 to 5%? Maximum I have is 5 hours autonomy now.

Note: I didn't do anything here, I'm just a shameful noob that benefit from others hard work. So all credit goes to the people who really contributed ;-)
 
Joined
Dec 27, 2012
Messages
103
Motherboard
Dell XPS 9560 FHD
CPU
i7-7700HQ
Graphics
HD 630
Mac
  1. MacBook
Mobile Phone
  1. iOS
Ok... I think "I" get this right now. I'm such a noob that I will try to explain it with my own words. Even if I have a very thin knowledge, I still get some intuition hopefully. (search the virtualSMC thread mentioned in my last post for more detailed explanation).

@jardenliu has perfect battery because of the patch "Device AC rename to ADP1 pair with SSDT-ADP1" credit @syscl with SSDT-ADP1.aml (adapter) and SSDT-BATC.aml (battery) in order to have AppleACPIAdapter showing in IOReg. Power adapter & Battery work hand in hand, you have to have them both here.

So I only added Jardenliu's device patch to original @blazinsmokey config.plist and now the battery seems to behave correctly, no more weird sudden discharge to 5%.

See pic below:

407856


What we want is this:

407881


Let's quote @RehabMan

#Maintained by: RehabMan for: Laptop Patches
#system_ADP1.txt

# Note: if AppleACPIACAdapter is already loading (look at your ioreg), then
# this patch is not necessary for you.

# Note: Old patch used to rename AC or ACAD to ADP1 to be more "Apple" like
# Turns out, this is not needed.

# Replace all instances of AC with ADP1
#into_all all code_regex \.AC, replaceall_matched begin .ADP1, end;
#into_all all code_regex \(AC, replaceall_matched begin (ADP1, end;
#into all label AC set_label begin ADP1 end;

# Replace all instances of ACAD with ADP1
#into_all all code_regex \.ACAD, replaceall_matched begin .ADP1, end;
#into_all all code_regex \(ACAD, replaceall_matched begin (ADP1, end;
#into all label ACAD set_label begin ADP1 end;

# Power fix - cause AppleACPIACAdapter to be loaded
into device name_hid ACPI0003 code_regex Name\s+\(_PRW,[\s\S]*\}\) remove_matched;
into device name_hid ACPI0003 insert
begin
Name (_PRW, Package() { 0x18, 0x03 })
end;

407885


Here you'll find my current CLOVER folder with corrections (don't forget to generate your own serials here + F11 at clover boot after changes).
I put back original CPUDataprovider.kext to have sleep wake from lid back.

Enjoy your +7 hours of battery!

407884


407883



Thanks and credits to @syscl @RehabMan @blazinsmokey @KNNSpeed and @jardenliu and many I forgot.
 

Attachments

  • 1558557729281.png
    1558557729281.png
    97.7 KB · Views: 62
  • CLOVER.zip
    15 MB · Views: 105
  • 1558558653966.png
    1558558653966.png
    167 KB · Views: 59
  • 1558563014938.png
    1558563014938.png
    12.6 KB · Views: 51
Last edited:
Joined
Dec 18, 2013
Messages
486
Motherboard
Lenovo Yoga C740
CPU
i7-10510U
Graphics
Intel UHD Graphics
Mac
  1. MacBook Air
  2. MacBook Pro
Mobile Phone
  1. Android
However, after a sleep/wake cycle there seems to be an issue. The frequency does not go below 1GHz (not even near) and the temp raises to more than 50°C... Shame...
 
Status
Not open for further replies.
Top