Contribute
Register

Getting sleep/wake to work on Dell XPS 12 9250 on 10.13.4

Status
Not open for further replies.
Make sure you disabled hibernation.

Maybe some of those are not needed (HPET, SMBUS), but otherwise it is a typical list.

I have made both sets of changes.

Looks like your USB configuration is wrong... (why is SS03 marked internal [UsbConnector=255], but nothing connected?).

Should it be something like the following then? Seeing as HS03 is for my WiFi and HS01 is a pogo pin connector for a keyboard dock. My device is a 2-in-1 with a detachable keyboard. I don't think this port will ever operate at USB 2.0 speeds since all that will ever connect to it will be my keyboard.

Code:
// Initial trimmed SSDT-UIAC.dsl for Dell XPS 12 9250
DefinitionBlock ("", "SSDT", 2, "hack", "UIAC", 0)
{
    Device(UIAC)
    {
        Name(_HID, "UIA00000")
        Name(RMCF, Package()
        {
          "8086_9d2f", Package()
          {
              "port-count", Buffer() { 18, 0, 0, 0 },
              "ports", Package()
              {
                  "HS01", Package() // Keyboard dock
                  {
                      "UsbConnector", 3,
                      "port", Buffer() { 1, 0, 0, 0 },
                  },
                  "HS03", Package() // WiFi BCM20702A0
                  {
                      "UsbConnector", 255,
                      "port", Buffer() { 3, 0, 0, 0 },
                  },
              },
          },
        })
    }
}
//EOF

External media is a problem. Eject all USB storage devices before attempting sleep.

Unfortunately it looks like I can't get sleep working at all now after making some of these changes.

I also see:

Code:
$ pmset -g assertions
2018-05-08 00:29:37 -0700
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 472(fud): [0x000001ce00018155] 00:00:03 PreventUserIdleSystemSleep named: "com.apple.MobileAccessoryUpdater.SleepAssertionID.ModalClient"
   pid 92(hidd): [0x0000003300098120] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968620.3"
    Timeout will fire in 60 secs Action=TimeoutActionRelease
Kernel Assertions: 0x8=BT-HID
   id=506  level=255 0x8=BT-HID mod=12/31/69, 4:00 PM description=com.apple.driver.IOBluetoothHIDDriver owner=AppleHSBluetoothDevice
   id=507  level=255 0x8=BT-HID mod=12/31/69, 4:00 PM description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard
Idle sleep preventers: IODisplayWrangler

And:

Code:
$ log show --style syslog | fgrep "Wake reason"

log: warning: The log archive contains partial or missing metadata

log: warning: The log archive contains partial or missing metadata

2018-04-17 16:08:19.410622-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-04-20 12:29:47.359179-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-04-20 21:08:42.272889-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-04-20 22:10:38.882336-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-04-21 20:03:15.617090-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-04-22 16:58:01.303143-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-04-22 17:16:24.598356-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-04-22 17:32:25.554021-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-04-22 17:46:30.416057-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-05 19:58:06.519544-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-05 20:24:42.942603-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-05 20:31:03.654352-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-05 20:44:17.769430-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-05 20:47:07.479454-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-05 20:53:52.272956-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-05 21:06:28.916674-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-05 23:23:11.192312-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 00:17:41.859602-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 00:42:58.426815-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 00:50:43.958231-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 00:57:27.784145-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 01:00:58.997749-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 01:41:54.166462-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 02:04:11.696551-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 12:43:37.215606-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 13:05:27.633918-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 14:50:39.016529-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 15:08:03.321481-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 15:11:54.801139-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 15:53:04.205577-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-06 16:03:34.069958-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 16:08:47.012457-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 16:12:31.298915-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 16:15:30.141009-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 16:36:46.029374-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 16:46:52.379775-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 18:48:06.367655-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 18:52:43.389667-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 18:58:32.379068-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 20:37:51.346202-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 21:07:37.513372-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 22:25:25.414122-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 22:31:20.442907-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 22:48:08.756462-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 22:58:16.023519-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 23:15:19.860826-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-06 23:23:21.640116-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 00:12:07.827871-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 01:28:17.273067-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 11:39:35.683898-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 11:51:59.110412-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-08 16:02:08.897963-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 16:59:47.190019-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 19:46:02.780437-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 20:17:41.829757-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 20:37:27.318530-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 20:45:30.279835-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 20:49:54.647846-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 20:58:23.460939-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:04:06.162766-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:08:51.356050-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:15:15.674304-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:18:50.772237-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:22:43.135579-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:30:07.769058-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:38:12.380108-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:42:02.074754-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:46:26.919848-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 21:55:19.893355-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 22:02:17.048482-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 22:10:02.783190-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 22:16:28.382356-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 22:25:57.266301-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 22:29:51.628320-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 22:36:48.207276-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 22:41:07.256570-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 22:47:14.583738-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-07 22:51:15.359996-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 23:29:05.021725-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 23:40:50.718482-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 23:48:21.723841-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-07 23:56:00.091888-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-08 00:01:28.988572-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)

2018-05-08 00:09:43.838177-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-08 00:16:51.010097-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Host (0x01)

2018-05-08 00:22:05.862824-0700  localhost kernel[0]: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason Wake reason: Button (0x03)
 

Attachments

  • debug_14751.zip
    2.1 MB · Views: 79
Should it be something like the following then? Seeing as HS03 is for my WiFi and HS01 is a pogo pin connector for a keyboard dock. My device is a 2-in-1 with a detachable keyboard. I don't think this port will ever operate at USB 2.0 speeds since all that will ever connect to it will be my keyboard.

Not possible for me to tell you.
See guide:
https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/

Looking at your PR files, lots of problems...

drivers64UEFI is wrong.
config.plist is wrong.

See guide:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

Your kextcache output proves kexts are not installed correctly (FakeSMC.kext not installed)
All kexts you need must be installed to the system volume.
Read post #2 of the Clover guide for details:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

After that, I stopped looking...
 
Looking at your PR files, lots of problems...

drivers64UEFI is wrong.
config.plist is wrong.

See guide:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

I added HFSPlus.efi.

I have replaced my config.plist with the one found here: https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/config_HD515_520_530_540.plist

I added:

"disable port limit in XHCI kext (credit PMHeart)" but left disabled, for debugging purposes in the future.
"change F%uT%04x to F%uTxxxx in AppleBacklightInjector.kext (credit RehabMan)" for the backlight
Set my ig-platform-id to 0x191e0000

I disabled:

"0x19160000/etc, 32MB BIOS, 19MB framebuffer 9MB cursor bytes (credit RehabMan)" since my device has 64MB of memory available (and needs it too since it has a 4K panel)

Your kextcache output proves kexts are not installed correctly (FakeSMC.kext not installed)
All kexts you need must be installed to the system volume.
Read post #2 of the Clover guide for details:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

After that, I stopped looking...

I removed all kexts in CLOVER/kexts/Other and added them to /L/E.

I also updated my SSDT-UIAC.aml to:

Code:
// Initial trimmed SSDT-UIAC.dsl for Dell XPS 12 9250
DefinitionBlock ("", "SSDT", 2, "hack", "UIAC", 0)
{
    Device(UIAC)
    {
        Name(_HID, "UIA00000")
        Name(RMCF, Package()
        {
          "8086_9d2f", Package()
          {
              "port-count", Buffer() { 18, 0, 0, 0 },
              "ports", Package()
              {
                  "HS01", Package() // Keyboard dock
                  {
                      "UsbConnector", 3,
                      "port", Buffer() { 1, 0, 0, 0 },
                  },
                  "HS03", Package() // WiFi BCM20702A0
                  {
                      "UsbConnector", 255,
                      "port", Buffer() { 3, 0, 0, 0 },
                  },
              },
          },
        })
    }
}
//EOF

My wifi and keyboard dock both work fine.

After doing all of this I was able to boot successfully. Though, unfortunately, my device is still unable to resume from sleep. I'm not sure if I should try rebuilding my DSDT at this point. Thanks for all your help so far.. it's definitely running better. My idle power draw is much lower now according to Intel Power Gadget.
 

Attachments

  • debug_22976.zip
    2.2 MB · Views: 92
I also updated my SSDT-UIAC.aml to:

Code:
// Initial trimmed SSDT-UIAC.dsl for Dell XPS 12 9250
DefinitionBlock ("", "SSDT", 2, "hack", "UIAC", 0)
{
    Device(UIAC)
    {
        Name(_HID, "UIA00000")
        Name(RMCF, Package()
        {
          "8086_9d2f", Package()
          {
              "port-count", Buffer() { 18, 0, 0, 0 },
              "ports", Package()
              {
                  "HS01", Package() // Keyboard dock
                  {
                      "UsbConnector", 3,
                      "port", Buffer() { 1, 0, 0, 0 },
                  },
                  "HS03", Package() // WiFi BCM20702A0
                  {
                      "UsbConnector", 255,
                      "port", Buffer() { 3, 0, 0, 0 },
                  },
              },
          },
        })
    }
}
//EOF

That SSDT-UIAC is clearly wrong.
See guide:
https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/

After doing all of this I was able to boot successfully. Though, unfortunately, my device is still unable to resume from sleep. I'm not sure if I should try rebuilding my DSDT at this point. Thanks for all your help so far.. it's definitely running better. My idle power draw is much lower now according to Intel Power Gadget.

As per Clover laptop guide, ForceKextsToLoad is only for pre-install, but you didn't remove it.

Your Clover/kexts/Other will not let you boot recovery/installer. Must copy "essential" kexts there.

I'm surprised your 4k screen is working without CoreDisplayFixup.kext...

Your drivers64UEFI is still wrong. OsxLowMemFix and OsxAptioFix2Drv are mutually exclusive. And the guide recommends AptioMemoryFix.efi instead of either of those anyway (and also EmuVariableUefi-64.efi required with OsxAptioFix*.efi).

With NVMe, recommend installing on HFS+J instead of APFS.

Also, read here regarding EDID override for sleep related graphics issues:
https://www.tonymacx86.com/threads/readme-common-problems-in-10-13-high-sierra.233582/
 
https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/

I'm leaving this one for the other thread: https://www.tonymacx86.com/threads/...usbinjectall-working-on-dell-xps-9250.251812/

As per Clover laptop guide, ForceKextsToLoad is only for pre-install, but you didn't remove it.

Your Clover/kexts/Other will not let you boot recovery/installer. Must copy "essential" kexts there.

I removed ForceKextsToLoad for my system install and added essential kexts for recovery/installer.

I'm surprised your 4k screen is working without CoreDisplayFixup.kext...

It was working because I was using the old mac-pixel-clock-patch-V2 method, but I switched to CoreDisplayFixup.kext found here: https://github.com/PMheart/CoreDisplayFixup

Your drivers64UEFI is still wrong. OsxLowMemFix and OsxAptioFix2Drv are mutually exclusive. And the guide recommends AptioMemoryFix.efi instead of either of those anyway (and also EmuVariableUefi-64.efi required with OsxAptioFix*.efi).

I made all of these changes. Now my system reliably boots every time. I don't have to power cycle it several times. Wow, I can't believe I missed all this. I knew something was off.

With NVMe, recommend installing on HFS+J instead of APFS.

Reformatted and switched to HFS+J

Also, read here regarding EDID override for sleep related graphics issues:
https://www.tonymacx86.com/threads/readme-common-problems-in-10-13-high-sierra.233582/

I'll look through this more, but first I want to mention that I don't see the backlight with mine even. It sounds like that issue revolved around it the backlight being on.

After making all these changes I am still unable to resume from sleep. My device stays with the screen off. When I press the volume up/down keys I do not hear the volume change (even though I set "Play feedback when volume is changed"), so it makes me believe it still in sleep.

When I press the 'Windows" icon I can feel it vibrate, though the screen does not come back on.
 

Attachments

  • debug_20098.zip
    2.2 MB · Views: 101
It was working because I was using the old mac-pixel-clock-patch-V2 method, but I switched to CoreDisplayFixup.kext found here: https://github.com/PMheart/CoreDisplayFixup

Make sure you restore your system files (CoreDisplay framework in this case) to vanilla by running the macOS installer.


I'll look through this more, but first I want to mention that I don't see the backlight with mine even. It sounds like that issue revolved around it the backlight being on.

After making all these changes I am still unable to resume from sleep. My device stays with the screen off. When I press the volume up/down keys I do not hear the volume change (even though I set "Play feedback when volume is changed"), so it makes me believe it still in sleep.

When I press the 'Windows" icon I can feel it vibrate, though the screen does not come back on.

Your forgot to disable hibernation.
https://www.tonymacx86.com/threads/guide-native-power-management-for-laptops.175801/
 
Make sure you restore your system files (CoreDisplay framework in this case) to vanilla by running the macOS installer.

I reinstalled macOS on my device with HFS+J. This time I used CoreDisplayFixup.kext instead, so no need to restore anything.


I have disabled hibernation and still am unable to recover from sleep. Maybe I should re-patch my DSDT or check out the EDID override fix you linked earlier. I'm not sure.
 

Attachments

  • debug_20020.zip
    2 MB · Views: 81
I reinstalled macOS on my device with HFS+J. This time I used CoreDisplayFixup.kext instead, so no need to restore anything.



I have disabled hibernation and still am unable to recover from sleep. Maybe I should re-patch my DSDT or check out the EDID override fix you linked earlier. I'm not sure.

Your drivers64UEFI is wrong.
CsmVideoDxe not recommended.
UsbKbDxe not recommended.
UsbMouseDxe not recommended.

And yes, you will likely need EDID override.

Your native DSDT has OSID, so I don't know why you have the OSID->XSID patch disabled...
 
Your drivers64UEFI is wrong.
CsmVideoDxe not recommended.
UsbKbDxe not recommended.
UsbMouseDxe not recommended.

Your native DSDT has OSID, so I don't know why you have the OSID->XSID patch disabled...

I made these changes.

And yes, you will likely need EDID override.

I have applied the EDID override, but still experience the same problem. When attempting to resume from sleep I still see a complete black (with no backlight) screen.

Another thing to mention is that I see this weird behavior now where my Energy Saver settings change to "Turn off the display after:" "Never"--even if I change the value to something else it goes back to "Never" after a few minutes. Also, if I check "Put hard disks to sleep when possible" and "Enable Power Nap while on battery power" they uncheck themselves after a few minutes as well.

Screen Shot 2018-05-10 at 10.44.05 PM.png

EDIT: Also, I am performing my EDID override in Clover, as shown below:

Screen Shot 2018-05-10 at 10.56.44 PM.png
This being the case, do I still need to save my DisplayVendorID-xxx folder in '/System/Library/Displays/Contents/Resources/Overrides/'? Thanks!
 

Attachments

  • debug_16887.zip
    2.3 MB · Views: 79
I made these changes.



I have applied the EDID override, but still experience the same problem. When attempting to resume from sleep I still see a complete black (with no backlight) screen.

Another thing to mention is that I see this weird behavior now where my Energy Saver settings change to "Turn off the display after:" "Never"--even if I change the value to something else it goes back to "Never" after a few minutes. Also, if I check "Put hard disks to sleep when possible" and "Enable Power Nap while on battery power" they uncheck themselves after a few minutes as well.

View attachment 330659

EDIT: Also, I am performing my EDID override in Clover, as shown below:

View attachment 330663
This being the case, do I still need to save my DisplayVendorID-xxx folder in '/System/Library/Displays/Contents/Resources/Overrides/'? Thanks!

Do only the EDID override or the display override file, not both.
What values have you tried for byte 20?

You forgot to disable hibernation (see CPU PM guide linked from FAQ).
 
Status
Not open for further replies.
Back
Top