Contribute
Register

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

Status
Not open for further replies.
Joined
Apr 21, 2019
Messages
3
Motherboard
Dell XPS 9560
CPU
i5-7300HQ
Graphics
HD 630
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
I have been struggling pretty hard with some battery life issues on my 9560. coconutBattery reports 10~12ish watts on idle. Ive employed most the tricks I can find such as removing the CPUFriend/DataProvider kexts, enabling Intel PowerShift via EFI shell, disabling SD Card reader, yet I still seem to be burning flat within 2-2 1/2 hours. This is on the 57Wh battery not the 97.
 
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
I have been struggling pretty hard with some battery life issues on my 9560. coconutBattery reports 10~12ish watts on idle. Ive employed most the tricks I can find such as removing the CPUFriend/DataProvider kexts, enabling Intel PowerShift via EFI shell, disabling SD Card reader, yet I still seem to be burning flat within 2-2 1/2 hours. This is on the 57Wh battery not the 97.

Do you have an i5 7300HQ or i7 7700HQ, might want to fix your profile? Check using latest Intel Power Gadget instead. Try creating a different user and logging in to see if it's software related. Check your battery actual capacity, I'm at about 7500mAh and I can go a good 8 hours of light workload.

Attach debug files if you want someone to look into it further.
 

Attachments

  • Power Info.png
    Power Info.png
    328.9 KB · Views: 82
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
Since a few weeks the fan dosen’t stop spinning anymore and my XPS gets quiet hot. I suspect the Nvidia card to be responsible as the CPU is in full idle and the Intel power gadget shows a consumption of 1-2 W. How can I confirm that the graphics card isn’t disabled and how can I disable it?

Sorry I was in a rush yesterday, trying to grab happy hour drinks.
What are your temps during the fan spinning constantly? Luckily, I have never had this issue.
I came across the link below and it's pretty damning how many people have fan issues. I don't believe it's macOS related. Definitely BIOS related. As long as there's isn't a significant build up of dust or blockage of intake and exhaust. Our laptops take air in from underneath the screen and exhausts underneath.


Attached is a screen showing how to check if Nvidia is disabled with IOReg. As you can see nothing loads up in the tree. you could also double check the work by reading through Rehabman's guide. https://www.tonymacx86.com/threads/guide-disabling-discrete-graphics-in-dual-gpu-laptops.163772/

Last thing is Intel Power Gadget I think would only show power used from the CPU not the whole system so I don't think that is a valid method to check....
 

Attachments

  • dGPU check.png
    dGPU check.png
    232.3 KB · Views: 91
Joined
Apr 21, 2019
Messages
3
Motherboard
Dell XPS 9560
CPU
i5-7300HQ
Graphics
HD 630
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
Do you have an i5 7300HQ or i7 7700HQ, might want to fix your profile? Check using latest Intel Power Gadget instead. Try creating a different user and logging in to see if it's software related. Check your battery actual capacity, I'm at about 7500mAh and I can go a good 8 hours of light workload.

Attach debug files if you want someone to look into it further.

Sorry for CPU confusion, I must have mistyped it in. Ive attached my debug information, a screenshot of my power information, and a screenshot of the Intel Power Gadget at idle. As for programs consuming power, nothing is consuming any large amount of power since this install is less than 24hrs old. My batteries condition is 65% of what it used to be according to coconut, however, when I am booted into Arch Linux (with the 1050 manually disabled) I am averaging an hour or more easily with a slightly higher workload (Visual Studio Code, TMUX, Brave Browser, Youtube.)

On a sidenote, thank you very much for this hack and all the effort you have put into it. It has been the better part of these last few days for me!
 

Attachments

  • 2196.zip
    4.6 MB · Views: 54
  • Screen Shot 2019-04-27 at 2.28.42 PM.png
    Screen Shot 2019-04-27 at 2.28.42 PM.png
    303 KB · Views: 74
  • Screen Shot 2019-04-27 at 3.08.25 PM.png
    Screen Shot 2019-04-27 at 3.08.25 PM.png
    109.7 KB · Views: 70
Joined
Dec 27, 2012
Messages
103
Motherboard
Dell XPS 9560 FHD
CPU
i7-7700HQ
Graphics
HD 630
Mac
  1. MacBook
Mobile Phone
  1. iOS
Hey @blazinsmokey hope you're great!

Congrats! Usb-c hotpluging works awesome!

Yes, I had to remove both Tb and USB-C SSDT, do more than a couple of NVRAM clearing, then after re-adding them back it worked!

I will report for HDMI 4K @60Hz on Monday when I get back to work (the screen is there).

If anybody has a TB device to test, you are more than welcome!

Cheers!
 
Joined
Dec 27, 2012
Messages
103
Motherboard
Dell XPS 9560 FHD
CPU
i7-7700HQ
Graphics
HD 630
Mac
  1. MacBook
Mobile Phone
  1. iOS
Arff....

1) Cold plug (before boot) Hotplug (after) works great!

2) 2nd hotplug and replug is sometimes unpredictable:

- 1st attempt crashed the hack then rebooted automatically on the Dell splash screen.

Here, I think it's because NVRAM hadn't cleared correctly (despite doing many times F11 at clover screen, and also done the remove both SSDT /add KNN / add back + F11 again as you described in post #301.

- After re-clearing NVRAM twice, retried, then worked without crashing. Great!

Also I noticed that if you replug the USB-c/Tb adapter, wether plugged before/after boot, usb devices only reconnect and mount if it wasn't plugged to the adapter prior being replugged to laptop.

Also unplug/replug is very random, while System Info sees the peripheral connected, it is not mounting all the time, sometimes you have a delay before any usb device mounts, other time it doesn't even mount at all. weird.

So we'll see how it goes over time ;-)

Another weird stuff compared to your hack (my config is nearly the same as yours 32Go RAM, no fingerprint sensor, Kabylake 7700HQ) is that in System Configuration shows a different picture (not about our respective adapter specs (see pic attached - marked in red are the USB 3.0 dongle attached to the USB-C/TB Adapter recognized as PCI).
It show 2 PCI devices VS only one on hack

Last, I also tried your config-kb.plist, the boot glitch only disappears if you add lilucpu=8 boot arg to config-kb.plist. ( you added the boot arg the on regular config.plist, not the kabylake one).

The regular config.plist with lilucpu=8 boot arg still displays the glitch (not important, it's not a fashion here lol)

Last, using config-kb.plist is super slow at boot everytime (didn't figured why yet) so I use the regular one now.

All in all thank you for all your hard work @blazinsmokey. Awesome progress!

Cheers.

So only have to test HDMI tomorrow.

Thanks!
 

Attachments

  • system Info -pci.png
    system Info -pci.png
    127.5 KB · Views: 54
Last edited:
Joined
Jul 25, 2013
Messages
415
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
Thanks for the update all, I will test with my USB-C dock tomorrow morning, the 2048MB of RAM on the new iGPU device injection is working for me. Will have to investigate the Type C improvements tomorrow and will report back.

EDIT:
Alright, after swapping my TB1 SSDT for the two provided in the 3.2 package, I can safely say that my initial testing confirms hot plug working on my Dell D6000 USB C dock. I started with the dock plugged in from a cold boot and then was able to hot plug repeatedly, showing the same changes in IOReg that are seen in blazinsmokey's posts. I then unplugged, rebooted and then hot plugged once the system was up and the dock was detected again, as expected.

I don't own any Thunderbolt devices, so can't test there. Only down side here is the D6000 doesn't seem to handle display output very well under macOS. HDMI to HDMI only (no adapters allowed) and only one display, but that's an issue for another thread. Thanks for your hard work, blazinsmokey!

EDIT 2:
If I sleep my laptop with the dock plugged in, I have to hotplug it after wake for it to pass power, but data, network, other functionality doesn't work initially after sleep. After unplugging and re-plugging a few times or letting the laptop fully wake up and trying again, then the dock works just fine. This seems infinitely more consistent than the previous implementation. I believe I have a USB C to Ethernet adapter somewhere that I can also test today.

EDIT 3:
I had a kernel panic while my laptop was sleeping and the dock was plugged in, issue with Darwake, but upon further review of the config.plist, I had darwake set to 1 instead of "no" as intended. Will report back if issue persists after this change.
 
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
I tested again today. Hotplug works great.

But replug is what causes me the most issues.

It works very randomly. I had the issues you described with NVRAM.

Did like 10 times the procedure explained in post #301, but still cannot manage to run it stable.

It seems like hot replug works but with a big delay (in minutes) i.e if you unplug usb-c/tb adapter (with USB device directly attached to it in this example), it won't mount back when replugged. But if you wait a couple a minutes then plug it back, it works and usb devices mounts again. Weird.

Twice when I closed the lid and wake from sleep the laptop cold rebooted or had a black screen I had to manually shut the laptop down.

I also did last Bios upgrade 1.14.2 (release date April 25). Didn't solved the issue. Checked bios settings (same setup as described as KNNSpeed). Also updated all my drivers on my windows 10 partition (I'm on dual boot, same drive).

My controller is almost the same as you, same brand, maybe same controller, second on the right here : http://www.wbpinetech.com/index.php?route=product/category&path=20_66
 
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
In the pics attached here, you see what "System Info" is showing once then controller is disconnected from laptop.
Usb device was ejected but is still present on the device while not physically attached to it anymore. Weird.

The second PCI (the controller) disappears which is normal, but the USB 3.1 device still sticks for a while as if it was still detected by the system.

Finally after waiting a few minutes, that USB 3.1 port completely disconnects from system.

After that I can reconnect my controller and plug back all usb devices, it will mount again.

I don't know what creates this delay between each replugs.
 

Attachments

  • 1) Contoller Unplugged - PCI.png
    1) Contoller Unplugged - PCI.png
    125.4 KB · Views: 50
  • 2) Ghost USB port after unplug.png
    2) Ghost USB port after unplug.png
    165.2 KB · Views: 60
  • 3) USB hotplug again.png
    3) USB hotplug again.png
    192.2 KB · Views: 50
Status
Not open for further replies.
Top