Contribute
Register

[README] Common (some unsolved) Problems in 10.12 Sierra

RehabMan

Moderator
Joined
May 3, 2012
Messages
192,090
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
This patches can be included in the KextsToPatch category using PlistEdit Pro, right?
Yes:
- kext patches go in config.plist/KernelAndKextPatches/KextsToPatch
- a plist editor such as PlistEdit Pro or Xcode is recommended for any edits to config.plist
 
Joined
Aug 17, 2010
Messages
193
Motherboard
Intel S5520HC - 32GB RAM
CPU
2 x XEON e5620
Graphics
ATI RADEON HD 5000 series - 1024MB
Mac
MacBook Pro, Mac Pro
Classic Mac
Performa, Portable, Quadra, SE
Mobile Phone
iOS
This is it!
My u430 with 10.12.4 suffered from this problem (short duration lag after wake and after login).

My u430 has LVDS and a single HDMI.
I use ig-platform-id 0xa260006 with it. 0xa260006 has LVDS, 0105 DP, 0204 DP.
The HDMI is wired to 0204, so I patch that port for HDMI (to enable HDMI audio).
I also use the 'vbo' 9mb cursor bytes patch (even though it is not needed on my particular laptop... it is helpful on others).

So... before 10.12.4, I had these patches for com.apple.driver.AppleIntelFramebufferAzul:

Comment: 0x0a260006 9MB cursor bytes, vbo
Find: <0600260a 01030303 00000002 00003001 00006000>
Replace: <0600260a 01030303 00000002 00003001 00009000>

Comment: HDMI-audio, port 0204, 0x0a260005 0x0a260006
Find: <02040900 00040000 87000000>
Replace: <02040900 00080000 87000000>

Now the 0105 port comes before the 0204 port in the framebuffer, but we don't need the 0105 port as it is not connected to anything (and causing the lags).

So... strategy is to replace 0105 with 0204 and reduce the number of ports from 3 to 2.

We already know that in AppleIntelFramebufferCapri that 0x01660004 has only a single LVDS connector, so we can look to the header of that ig-platform-id data to discover what we need to reduce our ig-platform data in Azul from 3 ports to 2.

From AppleIntelFramebufferCapri 0x01660004:
04006601 01030101

And from AppleIntelFramebufferAzul 0x0a260006:
0600260A 01030303

So, there appears to be two counts at the end related to the number of connectors... plan to change them both...

New set of patches:

Comment: 0x0a260006 9MB cursor bytes (vbo), 2 ports only (RehabMan)
Find: <0600260a 01030303 00000002 00003001 00006000>
Replace: <0600260a 01030202 00000002 00003001 00009000>

Comment: 0x0a260006 disable 0204 port, change 0105 DP port to 0204 HDMI (RehabMan)
Find: <01050900 00040000 87000000 02040900 00040000 87000000>
Replace: <02040900 00080000 87000000 FF000000 01000000 40000000>

Result: No more lag after login and wake from sleep.
Rehab,
can You help me?
I tried to change the framebuffer, but it does not change anything. The HDMI is seen as 00040000, I want to make it 00080000. Can you tell me where I'm wrong?
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
192,090
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Rehab,
can You help me?
I tried to change the framebuffer, but it does not change anything. The HDMI is seen as 00040000, I want to make it 00080000. Can you tell me where I'm wrong?
Your framebuffer patch is not correct.
0105 0x19160000 would be:
Find: 01 05 09 00 00 04 00 00 87 01 00 00
Replace: 01 05 09 00 00 08 00 00 87 01 00 00
 
Joined
Aug 17, 2010
Messages
193
Motherboard
Intel S5520HC - 32GB RAM
CPU
2 x XEON e5620
Graphics
ATI RADEON HD 5000 series - 1024MB
Mac
MacBook Pro, Mac Pro
Classic Mac
Performa, Portable, Quadra, SE
Mobile Phone
iOS
Your framebuffer patch is not correct.
0105 0x19160000 would be:
Find: 01 05 09 00 00 04 00 00 87 01 00 00
Replace: 01 05 09 00 00 08 00 00 87 01 00 00

Thanks for the reply. I had already done what you say, the problem is that when I connect the HDMI it always returns to 00040000, I do not think there is a solution to this. But...it work...
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
192,090
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Thanks for the reply. I had already done what you say, the problem is that when I connect the HDMI it always returns to 00040000, I do not think there is a solution to this. But...it work...
You failed to attach any PR files.
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.
 
Joined
Aug 17, 2010
Messages
193
Motherboard
Intel S5520HC - 32GB RAM
CPU
2 x XEON e5620
Graphics
ATI RADEON HD 5000 series - 1024MB
Mac
MacBook Pro, Mac Pro
Classic Mac
Performa, Portable, Quadra, SE
Mobile Phone
iOS
using FAKEPCI.kext and HDMI I lose the HDMI audio output (that works without) and the defect remains (00040000 instead 00080000 when HDMi is connected). I do not think I need these extensions, I keep the flaw because it seems to be all right.
Did you notice things to correct in the files I attached?
Thanks as always! You are THE MAN!
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
192,090
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
using FAKEPCI.kext and HDMI I lose the HDMI audio output (that works without) and the defect remains (00040000 instead 00080000 when HDMi is connected). I do not think I need these extensions, I keep the flaw because it seems to be all right.
Did you notice things to correct in the files I attached?
Thanks as always! You are THE MAN!
If HDMI audio is already working, not sure what problem you're trying to address...
 
Top