Contribute
Register

Sleep problem on Dell G7-7588 (keyboard lights won't turn off)

Status
Not open for further replies.
Joined
Sep 5, 2013
Messages
12
Motherboard
Dell G7-7588
CPU
i7-8750H
Graphics
UHD 630 + GTX 1050Ti (1920x1080)
Mobile Phone
  1. Android
  2. iOS
I almost have perfectly working macOS High Sierra on my Dell G7, except one more problem, Sleep. When I put my laptop to sleep, screen and fans are turned off, and touchpad is also non-responsive. But the keyboard light is still on which means it doesn't go to sleep properly. If I press the power button then the screen would turn on normally.

Here's what I've done with clover hotpatch:
  • CPU power management using plugin-type=1 in clover
  • SSDT-DeepIdle for working deepidle states
  • Disable DGPU SSDT
  • Working audio using Clover's inject layout-id=13 + SSDT-ALC256 for CodecCommander
  • Enabled only valid USB ports using SSDT-UIAC and USBInjectAll.kext
  • SSDT-PTSWAK to enable/disable dgpu during sleep/wake
  • SSDT-UPRW to prevent instant wakeup caused by USB
  • SSDT-USBX to inject usb power properties
  • SSDT-XOSI for Darwin as Windows 10
  • Backlight control using Clover's AddPNLF & FixDisplay + SSDT-BRT6 for brightness keys (I couldn't get backlight to work with Rehabman's AppleBacklightInjector.kext + SSDT-PNLF because max brightness is too dark and can't be controlled with keyboard. But I think backlight control is not related to Sleep/Wake so I decided to sort it out later.)
I'm afraid I miss something with the hotpatch that causes it to not sleep properly. Problem reporting files attached. Thanks so much for your help.
 

Attachments

  • G7-7588.zip
    3 MB · Views: 186
So I decided to see what actually happens in the kernel log during sleep-wake cycle. Here's what is shown in the log (ignore the datestamp):
Code:
2018-08-27 01:27:42.611473+0700 0x74       Default     0x0                  0      0    kernel: PMRD: System Sleep
2018-08-27 01:27:42.743625+0700 0x74       Default     0x0                  0      0    kernel: IOCPUSleepKernel
2018-08-27 01:27:42.744397+0700 0x74       Default     0x0                  0      0    kernel: IOPlatformSleepAction -> AppleSMC
2018-08-27 01:27:42.745873+0700 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI SLEEP
2018-08-27 01:27:42.766418+0700 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI S0 WAKE
2018-08-27 01:27:42.795171+0700 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PBTN (User)
2018-08-27 01:27:42.795174+0700 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PBTN (User)
2018-08-27 01:27:42.795184+0700 0x74       Default     0x0                  0      0    kernel: IOPlatformWakeAction -> AppleRTC
2018-08-27 01:27:42.795187+0700 0x74       Default     0x0                  0      0    kernel: IOPlatformWakeAction -> AppleKeyStore
2018-08-27 01:27:42.795192+0700 0x74       Default     0x0                  0      0    kernel: IOPlatformWakeAction -> AppleSMC
2018-08-27 01:27:42.795569+0700 0x74       Default     0x0                  0      0    kernel: gIOLastWakeAbsTime: 104438225381
2018-08-27 01:27:42.795828+0700 0x74       Default     0x0                  0      0    kernel: (AppleRTC) RTC: getGMTTimeOfDay 1535308434
2018-08-27 01:33:54.000029+0700 0x74       Default     0x0                  0      0    kernel: PMRD: System Wake
2018-08-27 01:33:54.000080+0700 0x10a4     Default     0x0                  0      0    kernel: IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 1535308434, sm 0xe0000300

01:27:42 is when I sleep the laptop through Apple Menu > Sleep and 01:33:54 is when I press the power button to wake the laptop. But at the same time I put my laptop to sleep the log then states "ACPI S0 Wake" with the wake reason being Power button pressed (PBTN), which is obviously incorrect as I actually press the power button at 01:33:54 where the log states "PMRD: System Wake". I'm so confused.
 
I almost have perfectly working macOS High Sierra on my Dell G7, except one more problem, Sleep. When I put my laptop to sleep, screen and fans are turned off, and touchpad is also non-responsive. But the keyboard light is still on which means it doesn't go to sleep properly. If I press the power button then the screen would turn on normally.

Here's what I've done with clover hotpatch:
  • CPU power management using plugin-type=1 in clover
  • SSDT-DeepIdle for working deepidle states
  • Disable DGPU SSDT
  • Working audio using Clover's inject layout-id=13 + SSDT-ALC256 for CodecCommander
  • Enabled only valid USB ports using SSDT-UIAC and USBInjectAll.kext
  • SSDT-PTSWAK to enable/disable dgpu during sleep/wake
  • SSDT-UPRW to prevent instant wakeup caused by USB
  • SSDT-USBX to inject usb power properties
  • SSDT-XOSI for Darwin as Windows 10
  • Backlight control using Clover's AddPNLF & FixDisplay + SSDT-BRT6 for brightness keys (I couldn't get backlight to work with Rehabman's AppleBacklightInjector.kext + SSDT-PNLF because max brightness is too dark and can't be controlled with keyboard. But I think backlight control is not related to Sleep/Wake so I decided to sort it out later.)
I'm afraid I miss something with the hotpatch that causes it to not sleep properly. Problem reporting files attached. Thanks so much for your help.

Keep in mind sleep is delayed by 15-20 seconds from the point of Apple->Sleep request.
More if you have outstanding assertions (check with 'pmset -g assertions').
 
Hello, I have this laptop too, and it only sleeps completely and recover when is not plugged to the electricity.. the sleep only works on battery... when I sleep and recover the laptop when plugged to the electricity the machine have really weird behaviors...
 
Hello, I have this laptop too, and it only sleeps completely and recover when is not plugged to the electricity.. the sleep only works on battery... when I sleep and recover the laptop when plugged to the electricity the machine have really weird behaviors...

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.

Also, please fix your profile as requested in the FAQ.
 
Status
Not open for further replies.
Back
Top