Contribute
Register

[BUG] Black screen 3 minutes after booting, CoffeeLake UHD 630

Joined
Dec 8, 2011
Messages
432
Motherboard
Razer Blade 15 - Clover
CPU
i7-8750H
Graphics
UHD 630/GTX 1060 - 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
Because of people doing random things (such as basing PNLF on ACPI 100!), ... I just added it, as clarification of what I mean by "simple PNLF".



Please make sure your brightness levels are the same before sleep/wake cycle and after sleep/wake cycle.
3 sleep/wake cycles so far and brightness level was the same as it was before it went to sleep each time.
 
Joined
Dec 8, 2011
Messages
432
Motherboard
Razer Blade 15 - Clover
CPU
i7-8750H
Graphics
UHD 630/GTX 1060 - 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
Because of people doing random things (such as basing PNLF on ACPI 100!), ... I just added it, as clarification of what I mean by "simple PNLF".



Please make sure your brightness levels are the same before sleep/wake cycle and after sleep/wake cycle.
Well after a bunch of reboots and it working great, it started up with a black screen again, multiple times in a row.

Whatevergreen Debug:

Code:
2018-12-19 12:36:24.588254-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-19 12:36:24.588256-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-19 12:36:24.588337-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:    init @ (DBG) WhateverGreen bootstrap DBG-125-2018-12-17
2018-12-19 12:36:24.588345-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableDrmdmaPowerGating
2018-12-19 12:36:24.588347-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableGfxCGPowerGating
2018-12-19 12:36:24.588349-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableUVDPowerGating
2018-12-19 12:36:24.588352-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableVCEPowerGating
2018-12-19 12:36:24.588354-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableDynamicGfxMGPowerGating
2018-12-19 12:36:24.588356-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableGmcPowerGating
2018-12-19 12:36:24.588358-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableAcpPowerGating
2018-12-19 12:36:24.588360-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableSAMUPowerGating
2018-12-19 12:36:24.588363-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:   shiki @ (DBG) will autodetect autodetect GPU 0 whitelist 0
2018-12-19 12:36:24.588366-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:   shiki @ (DBG) pre-config: online 0, bgra 0, compat 0, whitelist 0, id 0, stream 0
2018-12-19 12:36:27.749980-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:    igfx @ (DBG) coverage instruction patched, we're cleared for routing
2018-12-19 12:36:27.749987-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-19 12:36:27.750003-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-19 12:36:27.750023-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-19 12:36:31.797225-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) failed to obtain display mode
2018-12-19 12:36:31.797239-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) failed to obtain display mode
2018-12-19 12:36:31.797243-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) failed to obtain display mode
2018-12-19 12:36:31.830836-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) fb info 1: -2147479552:0 7680:0:32
2018-12-19 12:36:31.830840-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) fb info 2: 3:8 --------RRRRRRRRGGGGGGGGBBBBBBBB 0:1920:1080
2018-12-19 12:36:31.830854-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) attempting to copy...
PR files attached.
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
3 sleep/wake cycles so far and brightness level was the same as it was before it went to sleep each time.
If there was a mimsatch, I would only expect it as a difference between fresh boot and initial wake from sleep.
And it may not be a problem for one of two reasons:
- WhateverGreen.kext is taking care of initial PWM setup such that there isn't a discrepancy
OR
- Your BIOS uses PWMMax 0xFFFF.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Well after a bunch of reboots and it working great, it started up with a black screen again, multiple times in a row.

Whatevergreen Debug:

Code:
2018-12-19 12:36:24.588254-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-19 12:36:24.588256-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-19 12:36:24.588337-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:    init @ (DBG) WhateverGreen bootstrap DBG-125-2018-12-17
2018-12-19 12:36:24.588345-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableDrmdmaPowerGating
2018-12-19 12:36:24.588347-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableGfxCGPowerGating
2018-12-19 12:36:24.588349-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableUVDPowerGating
2018-12-19 12:36:24.588352-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableVCEPowerGating
2018-12-19 12:36:24.588354-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableDynamicGfxMGPowerGating
2018-12-19 12:36:24.588356-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableGmcPowerGating
2018-12-19 12:36:24.588358-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableAcpPowerGating
2018-12-19 12:36:24.588360-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableSAMUPowerGating
2018-12-19 12:36:24.588363-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:   shiki @ (DBG) will autodetect autodetect GPU 0 whitelist 0
2018-12-19 12:36:24.588366-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:   shiki @ (DBG) pre-config: online 0, bgra 0, compat 0, whitelist 0, id 0, stream 0
2018-12-19 12:36:27.749980-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:    igfx @ (DBG) coverage instruction patched, we're cleared for routing
2018-12-19 12:36:27.749987-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-19 12:36:27.750003-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-19 12:36:27.750023-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-19 12:36:31.797225-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) failed to obtain display mode
2018-12-19 12:36:31.797239-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) failed to obtain display mode
2018-12-19 12:36:31.797243-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) failed to obtain display mode
2018-12-19 12:36:31.830836-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) fb info 1: -2147479552:0 7680:0:32
2018-12-19 12:36:31.830840-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) fb info 2: 3:8 --------RRRRRRRRGGGGGGGGBBBBBBBB 0:1920:1080
2018-12-19 12:36:31.830854-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) attempting to copy...
PR files attached.
What is AppleBacklightAtBoot for working scenarios?
Is the out-of-range AppleBacklightAtBoot only in the black screen case?
 
Joined
Dec 8, 2011
Messages
432
Motherboard
Razer Blade 15 - Clover
CPU
i7-8750H
Graphics
UHD 630/GTX 1060 - 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
What is AppleBacklightAtBoot for working scenarios?
Is the out-of-range AppleBacklightAtBoot only in the black screen case?
They're both 0x2736a
 
Joined
Jun 20, 2014
Messages
963
Motherboard
Gigabyte Aero 15X v8-BK4K4P
CPU
i7-8750H
Graphics
UHD 630 / GTX 1070 Max-Q / 4K
_UID values are documented in the comments in SSDT-PNLF.dsl.
Okay maybe that's where I've gone wrong with your PNLF. I didn't realize I had to set this value manually before compiling it. Going to try it now and see if it fixes my issues with it.
EDIT: Nope. For some reason it still boots to a black screen.
EDIT2: Well subsequent boots seem okay now. I'll keep trying.
 
Last edited:
Joined
Jun 20, 2014
Messages
963
Motherboard
Gigabyte Aero 15X v8-BK4K4P
CPU
i7-8750H
Graphics
UHD 630 / GTX 1070 Max-Q / 4K
@RehabMan do you think the issue might be related to the Ambient Light Sensor? Would SSDT-ALS0.aml disable it?
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
@RehabMan do you think the issue might be related to the Ambient Light Sensor? Would SSDT-ALS0.aml disable it?
SSDT-ALS0.aml will provide an ACPI ALS that is fixed/never changing.
Can't hurt to add it (assuming you don't have a native ALS that might need disabling [or fixing]).
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,134
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
They're both 0x2736a
I wonder if WhateverGreen should be hooking such that this out-of-range value is not captured (by fixing the out-of-range value).
 
Joined
Dec 8, 2011
Messages
432
Motherboard
Razer Blade 15 - Clover
CPU
i7-8750H
Graphics
UHD 630/GTX 1060 - 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
I wonder if WhateverGreen should be hooking such that this out-of-range value is not captured (by fixing the out-of-range value).
So this is further more a Whatevergreen issue still and not so much an SSDT-PNLF issue?
 

Top