Contribute
Register

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

Right now 5 out of 8 boots have booted with brightness and everything else working as it should. The other 3 boots have been to the black screen.

Can you download the latest WhateverGreen.

I've added wrappers for AppleIntelFramebufferController::hwSetPanelPower, AppleIntelFramebufferController::LightUpEDP and CamelliaTcon2::doRecoverFromTconResetTimer.

Also it now overwrites 0x56CE and 0x4571 with 0x1D4C0.

Please try igfxcflbklt=wrap boot flag again.
 
Last edited:
Can you download the latest WhateverGreen.

I've added wrappers for AppleIntelFramebufferController::hwSetPanelPower, AppleIntelFramebufferController::LightUpEDP and CamelliaTcon2::doRecoverFromTconResetTimer.

Also it now overwrites 0x56CE and 0x4571 with 0x1D4C0.

Please try igfxcflbklt=wrap boot flag again.


Did as you asked, igfxcflbklt=wrap resulted in a Kernel Panic at boot. Image of the panic is attached as well as Problem Reporting Files.

I had to use igfxcflbklt=opcode in order to boot with the new WhateverGreen. Successful boots with backlight seem to be the same. 4 out of 6 reboots have been with backlight working, the other 2 went to black screen. But using opcode seemed to have fixed my wake from sleep issue or maybe it's the new WhateverGreen. But with the old WhateverGreen and the using the Wrap flag the laptop would sometimes wake up to a black screen. I haven't gotten that yet with this new combination.

I actually had to reboot 4 times to get a picture of the KP with the igfxclfbklt=wrap. The first time I booted with that flag and the new WhateverGreen I wasn't in Verbose mode, but backlight was working. The next 3 boots with that flag backlight shut off, the 4th time it started to boot with the backlight on and then threw a kernel panic.
 

Attachments

  • IMG_20181024_224737.jpg
    IMG_20181024_224737.jpg
    5.7 MB · Views: 91
  • debug_25426.zip
    1.9 MB · Views: 63
Did as you asked, igfxcflbklt=wrap resulted in a Kernel Panic at boot. Image of the panic is attached as well as Problem Reporting Files.

I had to use igfxcflbklt=opcode in order to boot with the new WhateverGreen. Successful boots with backlight seem to be the same. 4 out of 6 reboots have been with backlight working, the other 2 went to black screen. But using opcode seemed to have fixed my wake from sleep issue or maybe it's the new WhateverGreen. But with the old WhateverGreen and the using the Wrap flag the laptop would sometimes wake up to a black screen. I haven't gotten that yet with this new combination.

I actually had to reboot 4 times to get a picture of the KP with the igfxclfbklt=wrap. The first time I booted with that flag and the new WhateverGreen I wasn't in Verbose mode, but backlight was working. The next 3 boots with that flag backlight shut off, the 4th time it started to boot with the backlight on and then threw a kernel panic.

Just did a commit. Can you please try it.

Same thing with the latest commits for me. Wrap fixes the 3 min delay issue but then my laptop wont wake up from sleep(screen stays black, no backlight), same as vettz500's.
Freq and opcode are unable to fix the 3 minute delay but with them I can wake up from sleep without any issue.
PR files attached.
 

Attachments

  • debug_450.zip
    2.8 MB · Views: 72
Same thing with the latest commits for me. Wrap fixes the 3 min delay issue but then my laptop wont wake up from sleep(screen stays black, no backlight), same as vettz500's.
Freq and opcode are unable to fix the 3 minute delay but with them I can wake up from sleep without any issue.
PR files attached.
Send the built WEG please.
 
Same thing with the latest commits for me. Wrap fixes the 3 min delay issue but then my laptop wont wake up from sleep(screen stays black, no backlight), same as vettz500's.
Freq and opcode are unable to fix the 3 minute delay but with them I can wake up from sleep without any issue.
PR files attached.

Only thing I can think of is when we wrap AppleIntelFramebufferController::hwSetBacklight I'm not calling into the original to prevent backlight flicker. That means it also misses a call (CamelliaBase::SetDPCDBacklight(fCameliaTCON1, backlightLevel)).

You're using frame 0x3e9b0000 which has Camellia disabled so I would expect it not to effect you but we don't know enough about it to say for sure.

Attached is a special version of WEG for you to try that will call the original hwSetBacklight and thus CamelliaBase::SetDPCDBacklight is also called. Hopefully it will solve your wake issue.
 

Attachments

  • WhateverGreen_parasthakur37.zip
    204.2 KB · Views: 80

I tried it 3 times. All 3 times it gave me black screen from the starting of OS load. Tried with igfxcflbklt=wrap though in my config its "freq". I changed it during startup all 3 times.
 

Attachments

  • debug_17911.zip
    2.4 MB · Views: 77
Only thing I can think of is when we wrap AppleIntelFramebufferController::hwSetBacklight I'm not calling into the original to prevent backlight flicker. That means it also misses a call (CamelliaBase::SetDPCDBacklight(fCameliaTCON1, backlightLevel)).

You're using frame 0x3e9b0000 which has Camellia disabled so I would expect it not to effect you but we don't know enough about it to say for sure.

Attached is a special version of WEG for you to try that will call the original hwSetBacklight and thus CamelliaBase::SetDPCDBacklight is also called. Hopefully it will solve your wake issue.

I also use 3e9b0000. I dont have sleep problems. Should I try this too?
 
Back
Top