Contribute
Register

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

Try with basic PNLF that has correct _UID (no _INI code for fixing PWM setup).
You could also simply comment out the code that is setting up PWM.
Is there a specific place to find the correct _UID? I tried using zero instead of 9, and I boot without a black screen but still no backlight controls.
 
Is there a specific place to find the correct _UID? I tried using zero instead of 9, and I boot without a black screen but still no backlight controls.

_UID values are documented in the comments in SSDT-PNLF.dsl.
I added SSDT-PNLFCFL.dsl to the hotpatch github for testing.
CFL uses 19.
The _UID corresponds to the brightness profile in AppleBacklightFixup.kext Info.plist (or equiv. in WhateverGreen).
 
_UID values are documented in the comments in SSDT-PNLF.dsl.
I added SSDT-PNLFCFL.dsl to the hotpatch github for testing.
CFL uses 19.
The _UID corresponds to the brightness profile in AppleBacklightFixup.kext Info.plist (or equiv. in WhateverGreen).
Got it! I was looking at the barebones SSDT-PNLF from Fraxul and it didn't have the _UID values listed in the comments. Looking at the one from your github I see them now.

I put 19 in the _UID section and so far I'm 5/5 reboots with backlight working and have working backlight controls. Will report back with more testing.
 
SSDT-PNLFCFL.dsl is already coded for _UID=19.
I didn't even see the SSDT-PNLFCFL.dsl in there! Just popped into my patched folder. So far so good. 2/2 reboots with working backlight and backlight controls with that one.
I'll let you know how it goes over the next few days.
 
I didn't even see the SSDT-PNLFCFL.dsl in there!

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".

Just popped into my patched folder. So far so good. 2/2 reboots with working backlight and backlight controls with that one.
I'll let you know how it goes over the next few days.

Please make sure your brightness levels are the same before sleep/wake cycle and after sleep/wake cycle.
 
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.
 
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

  • debug_32132.zip
    1.9 MB · Views: 109
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.
 
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?
 
Back
Top