Contribute
Register

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

You can capture ioreg in both working and black screen scenarios for comparison?
Also, LiluFriend.kext advice applies to you too...

Installed LiluFriend.kext no change.

Attached are 2 PR files. One was taken while the screen was still black (this was a PITA to do lol) the other is after the backlight turns on, they are labeled.
 

Attachments

  • debug_2588 Black Screen.zip
    1.9 MB · Views: 65
  • debug_19215 Backlight Working.zip
    1.9 MB · Views: 62
Installed LiluFriend.kext no change.

Attached are 2 PR files. One was taken while the screen was still black (this was a PITA to do lol) the other is after the backlight turns on, they are labeled.

Note that in 'backlight working' AppleBacklightAtBoot is within valid range (0xff7b), but in 'black screen' scenario, AppleBacklightAtBoot is outside the valid range (0x2f2f6).
 
So it works for some hardware configs and not for others, that's a heart break. :(
@RehabMan could you take a look and tell me if I'm missing something out?
Attach the debug report with this kext. Please note that:
  • Patch is now automated on CFL mobile, you don't need any boot-arg or property injection.
  • Boot with -wegdbg boot-arg (with leading dash) to enable WhateverGreen debug logs, debug report without it is far less useful.
P.S: If you have AppleBacklightFixup.kext installed, you might want to remove it as it is now included in WEG.

Regards
 

Attachments

  • 1.2.5 (DEBUG).zip
    267.4 KB · Views: 81
Attach the debug report with this kext. Please note that:
  • Patch is now automated on CFL mobile, you don't need any boot-arg or property injection.
  • Boot with -wegdbg boot-arg (with leading dash) to enable WhateverGreen debug logs, debug report without it is far less useful.
P.S: If you have AppleBacklightFixup.kext installed, you might want to remove it as it is now included in WEG.
Installed your attached version of Whatevergreen, added the -wegdbg boot argument at boot. Got the black screen upon booting, this was the output in terminal:

Regards
Code:
Timestamp                       (process)[PID]   
2018-11-16 19:01:11.587809-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-16 19:01:11.587812-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-17 14:05:59.590117-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-17 14:05:59.590120-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-17 14:13:46.591976-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-17 14:13:46.591978-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-17 14:27:13.588319-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-17 14:27:13.588322-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-17 16:03:15.590647-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-17 16:03:15.590649-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-19 11:08:50.592898-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-19 11:08:50.592901-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-19 11:13:50.587142-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-19 11:13:50.587144-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-19 11:54:51.587535-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-19 11:54:51.587538-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-19 18:31:54.586661-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-19 18:31:54.586663-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-21 19:05:37.589188-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-21 19:05:37.589191-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-21 20:04:01.584325-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-21 20:04:01.584327-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-24 14:43:27.583989-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-24 14:43:27.583992-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-24 17:05:32.593558-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-24 17:05:32.593560-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-24 18:50:08.586631-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-24 18:50:08.586633-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-24 19:00:40.584278-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-24 19:00:40.584281-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-24 14:33:22.584941-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-24 14:33:22.584943-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-11-25 00:13:57.583576-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-11-25 00:13:57.583579-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-01 14:04:39.584696-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-01 14:04:39.584698-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-06 11:20:44.584858-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-06 11:20:44.584861-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-07 16:27:50.585151-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-07 16:27:50.585154-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-07 17:02:26.585598-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-07 17:02:26.585650-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 06:55:59.585101-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 06:55:59.585157-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 12:20:26.586420-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 12:20:26.586474-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 12:26:49.585408-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 12:26:49.585464-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 12:34:16.582813-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 12:34:16.582865-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 12:39:22.585424-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 12:39:22.585478-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 12:46:31.588236-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 12:46:31.588288-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 12:51:51.586384-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 12:51:51.586436-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 12:55:17.587834-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 12:55:17.587888-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 12:57:49.585574-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 12:57:49.585577-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 13:02:25.584114-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 13:02:25.584117-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 11:13:39.585681-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 11:13:39.585684-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 12:25:57.591687-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 12:25:57.591738-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 17:41:27.582657-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 17:41:27.582710-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 17:41:33.059983-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:41:33.071022-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:41:33.081676-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:41:33.092001-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:48:20.582047-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 17:48:20.582049-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 17:48:23.520650-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:48:23.520661-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:48:23.520675-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:48:23.520709-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:55:30.583679-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 17:55:30.583681-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 17:55:33.523211-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:55:33.523215-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:55:33.523229-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:55:33.523247-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:59:22.587117-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-11 17:59:22.587120-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-11 17:59:26.052934-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:59:26.052939-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:59:26.052959-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-11 17:59:26.052987-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-13 09:22:11.583340-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 09:22:11.583342-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 09:22:15.270910-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-13 09:22:15.270915-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-13 09:22:15.270928-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-13 09:22:15.270946-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-13 14:26:56.586125-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:26:56.586128-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:27:50.594454-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:27:50.594457-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:29:10.587409-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:29:10.587412-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:33:07.586207-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:33:07.586209-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:34:37.584844-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:34:37.584847-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:35:52.589590-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:35:52.589593-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:36:36.588866-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:36:36.588868-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:37:52.590010-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:37:52.590013-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:39:01.585503-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:39:01.585506-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:40:43.587211-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:40:43.587213-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-13 14:41:51.588452-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-13 14:41:51.588454-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-14 10:09:59.591410-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-14 10:09:59.591412-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-14 15:22:17.588960-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-14 15:22:17.588963-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-14 15:22:20.708262-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-14 15:22:20.708279-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-14 15:22:20.708304-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-14 15:29:53.588735-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-14 15:29:53.588737-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-14 15:29:56.688783-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-14 15:29:56.688800-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-14 15:29:56.688820-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-15 17:01:11.589332-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-15 17:01:11.589334-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-15 17:01:15.148641-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-15 17:01:15.148713-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-15 17:01:15.148747-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-15 17:06:48.588326-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-15 17:06:48.588328-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-15 17:06:51.998571-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-15 17:06:51.998589-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-15 17:06:51.998611-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-15 17:10:29.590954-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-15 17:10:29.590957-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-15 17:10:33.143614-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-15 17:10:33.143629-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-15 17:10:33.143647-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-16 11:42:19.589176-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-16 11:42:19.589178-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-16 11:42:22.286014-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-16 11:42:22.286031-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-16 11:42:22.286056-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-17 09:31:47.589453-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-17 09:31:47.589456-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-17 09:31:50.737448-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-17 09:31:50.737465-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-17 09:31:50.737499-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-17 10:46:02.588654-0500  localhost kernel[0]: calling mpo_policy_init for Lilu
2018-12-17 10:46:02.588656-0500  localhost kernel[0]: Security policy loaded: Lilu Kernel Extension 1.2.8 DEBUG build (Lilu)
2018-12-17 10:46:02.588740-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:    init @ (DBG) WhateverGreen bootstrap DBG-125-2018-12-17
2018-12-17 10:46:02.588747-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableDrmdmaPowerGating
2018-12-17 10:46:02.588750-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableGfxCGPowerGating
2018-12-17 10:46:02.588752-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableUVDPowerGating
2018-12-17 10:46:02.588754-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableVCEPowerGating
2018-12-17 10:46:02.588757-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableDynamicGfxMGPowerGating
2018-12-17 10:46:02.588759-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableGmcPowerGating
2018-12-17 10:46:02.588761-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableAcpPowerGating
2018-12-17 10:46:02.588763-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     rad @ (DBG) not enabling CAIL_DisableSAMUPowerGating
2018-12-17 10:46:02.588766-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:   shiki @ (DBG) will autodetect autodetect GPU 0 whitelist 0
2018-12-17 10:46:02.588769-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-17 10:46:05.728548-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:    igfx @ (DBG) coverage instruction patched, we're cleared for routing
2018-12-17 10:46:05.728553-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-17 10:46:05.728568-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-17 10:46:05.728587-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> Lilu: patcher @ failed to route an inner trempoline
2018-12-17 10:46:09.744431-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) failed to obtain display mode
2018-12-17 10:46:09.744442-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) failed to obtain display mode
2018-12-17 10:46:09.744445-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) failed to obtain display mode
2018-12-17 10:46:09.776080-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) fb info 1: -2147479552:0 7680:0:32
2018-12-17 10:46:09.776084-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) fb info 2: 3:8 --------RRRRRRRRGGGGGGGGBBBBBBBB 0:1920:1080
2018-12-17 10:46:09.776103-0500  localhost kernel[0]: (Lilu) <Lilu`lilu_os_log> WhateverGreen:     weg @ (DBG) attempting to copy...
Mikes-MacBook-Pro:~ mike$

Also attached new PR files if needed. I was able to capture them again while the screen was still black.
 

Attachments

  • debug_30897.zip
    1.9 MB · Views: 66
Attach the debug report with this kext. Please note that:
  • Patch is now automated on CFL mobile, you don't need any boot-arg or property injection.
  • Boot with -wegdbg boot-arg (with leading dash) to enable WhateverGreen debug logs, debug report without it is far less useful.
P.S: If you have AppleBacklightFixup.kext installed, you might want to remove it as it is now included in WEG.

Regards
Here's the result. See a lot of WEG log (it's not enabling a couple of things) but don't know what's wrong what's right, wish Vit could take a look...
 

Attachments

  • debug_14832.zip
    3 MB · Views: 69
Was the 'boot to black screen' ioreg captured in the state with black screen?

Your kexts are not installed to the proper location. All add-on kexts should be in /L/E, not /S/L/E.

And... Why do you have duplicate/redundant LiluFriend in both /L/E and /S/L/E? (add-on kexts should be in /L/E only)
Yes
My WiFi kext doesen’t work when in Library/extension don’t ask me why
It is said here https://github.com/PMheart/LiluFriend/blob/master/README.md in Configuration paragraf
 
Posting here from: https://github.com/acidanthera/WhateverGreen/pull/14#issuecomment-448325682
Cc: @headkaze @Fraxul @vit9696

Hmmm... So no idea what the problem is. System booted up with black screen. I waited for 3 minutes and then the screen came back online. Here are the logs:
Code:
kernel:(Lilu)WhateverGreen:init@(DBG)WhateverGreenbootstrapDBG-125-2018-12-18
kernel:(Lilu)WhateverGreen:weg@(DBG)applyingbacklightpatch
kernel:(Lilu)WhateverGreen:igfx@(DBG)coverageinstructionpatched,we'reclearedforrouting
kernel:(Lilu)WhateverGreen:igfx@(DBG)patchingframebufferId0x3E9B0000connector[1]busId:0x05,
kernel:(Lilu)WhateverGreen:igfx@(DBG)patchingframebufferId0x3E9B0000connector[3]busId:0x06,
kernel:(Lilu)WhateverGreen:igfx@(DBG)PatchingframebufferId0x3E9B0000successful
kernel:(Lilu)WhateverGreen:igfx@(DBG)wrapCflWriteRegister32:driver requested BXT_BLC_PWM_FREQ1=0x56ce
kernel:(Lilu)WhateverGreen:igfx@(DBG)wrapCflWriteRegister32: system initialized BXT_BLC_PWM_FREQ1=0xffff
kernel:(Lilu)WhateverGreen:igfx@(DBG)wrapCflWriteRegister32:write PWM_DUTY1 0x352/0x56ce, rescaled to 0x9ca/0xffff
We can see that: Driver req, BXT_BLC_PWM_FREQ1 = 0x56ce & System init, BXT_BLC_PWM_FREQ1 = 0xffff.

It doesn't change even once the system regains the display, unless you change brightness (obviously).

Now I wonder, why does it boot to black screen with the same values and then works normally (with the same values) after 3 minutes??

Update:
So I went ahead and took a note of rescaledValue when system booted up fine.

Then, I modified the code of WEG to use that fixed custom rescaledValue doing which lead to fixed brightness value (obviously) but then again, after 1 or 2 more restarts, I faced the black screen issue. Weird. System boots up fine with same value and boots to black screen with the same value.

Then, I thought maybe it is related to BXT_BLC_PWM_CTL1 but upon debugging I found out that there is no write request to this register.

Are we still missing something as this patch is literally working off and on as if it has the power to decide, LOL.

Regards
 
Back
Top