Contribute
Register

[solved] Boot Glitch and Screen Flickering with the HD4600 Mobile

Status
Not open for further replies.
0xa260006 requires 32mb.
Set to 32mb.
Remove or disable the 128mb patch in your config.plist.
Enable the 9mb cursor bytes patch.

Don't forget to re-extract/re-patch ACPI after changing it.

I only have the option for 128mb or 64mb in my bios.
 
I only have the option for 128mb or 64mb in my bios.

Set to 64mb and try 0xa260006 (with 9mb cursor bytes patch) or 0xd260007.
Don't forget to re-extract/re-patch ACPI.
 
_REG->XREG patch is a huge mistake.
Just wondering how I should change this?

I notice in your Lenovo-Z50 repo the patch is slightly longer, but I still have multiple _REG methods, and don't want to overwrite them.
This is the method that needs to change:
Code:
Method (_REG, 2, NotSerialized)  // _REG: Region Availability
{
    If (LEqual (Arg0, 0x03))
    {
        Store (Arg1, ECFL)
    }
}
Should I write the patch like 5F52454702 -> 5852454702 as it is in the Lenovo repo, or extend it to 5F52454702A00B93680A03 -> 5852454702A00B93680A03?

Also, should I change the corresponding _OFF -> XOFF patch?
 
Just wondering how I should change this?

I notice in your Lenovo-Z50 repo the patch is slightly longer, but I still have multiple _REG methods, and don't want to overwrite them.
This is the method that needs to change:
Code:
Method (_REG, 2, NotSerialized)  // _REG: Region Availability
{
    If (LEqual (Arg0, 0x03))
    {
        Store (Arg1, ECFL)
    }
}
Should I write the patch like 5F52454702 -> 5852454702 as it is in the Lenovo repo, or extend it to 5F52454702A00B93680A03 -> 5852454702A00B93680A03?

Also, should I change the corresponding _OFF -> XOFF patch?

You need to grab some bytes from the method definition so that your find pattern is unique and specific to that _REG method. Use a mixed listing of the .aml (iasl -dl -l DSDT.aml) so you can see the bytes that surround that method.

Read the guide:
http://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/
 
Okay so I should use 5F52454702A00B93680A03 -> 5852454702A00B93680A03. Am I correct in assuming that the same goes for the _OFF method?

You have to look at the bytecode in your native DSDT to decide.
 
Yes that is the bytecode from it.

Assuming it matches, then looks ok.
It is a judgement call as to how many bytes you need to include in the find pattern.
One one hand, more bytes from the method code results in less chance of a false positive with some other _REG.
But on the other, more bytes results in less chance of it matching against the target _REG in the case of a BIOS update that changes the code slightly.
 
Okay I've made all the changes you suggested.

Using 0x0d260007 caused the graphical glitches to be much stronger, and basically make the laptop unusable, so I had to switch back.

Just wondering if you've got any other suggestions for me to fix, and also any ideas on how to stop the flickering/boot glitch.



Here's a fresh set of the commands, ioreg, and clover folder. I've also done the patchmatic thing.

Code:
kextstat | grep -v 'com.apple'   
Index Refs Address            Size       Wired      Name (Version) UUID <Linked Against>
   16    2 0xffffff7f80da9000 0x62000    0x62000    as.vit9696.Lilu (1.1.7) EEDE488C-8AF6-3654-AD54-9B718FB61DAA <7 5 4 3 2 1>
   17    0 0xffffff7f80e0b000 0x4000     0x4000     as.lvs1974.IntelGraphicsFixup (1.1.7) CCB5CDF6-AA3B-3FBB-9A2A-E22E15AEC7A3 <16 7 5 4 3 2 1>
   18    0 0xffffff7f80eab000 0x16000    0x16000    org.netkas.driver.FakeSMC (1759) 987B8DEE-6600-3463-BFFA-DF500771FA5B <11 7 5 4 3 1>
   21    0 0xffffff7f813f9000 0xaa000    0xaa000    as.vit9696.AppleALC (1.1.4) C8C41798-6491-3E10-B4A4-8B2905811F61 <16 7 5 4 3 2 1>
   22    0 0xffffff7f814c5000 0x9000     0x9000     org.rehabman.driver.AppleSmartBatteryManager (1.81.4) 2B852534-CAC2-3E36-BF21-C10984081B74 <11 4 3>
   50    2 0xffffff7f813bd000 0xd000     0xd000     org.emlydinesh.driver.ApplePS2Controller (4.6.8) 34755F6A-A94B-3B41-B7F9-E7E533789C8D <11 7 5 4 3 1>
   56    1 0xffffff7f80ec1000 0x8000     0x8000     org.rehabman.driver.FakePCIID (1.3.9) BC738576-B800-3E7F-992D-3851C67CCAA9 <12 7 5 4 3 1>
   57    0 0xffffff7f80ec9000 0x3000     0x3000     org.rehabman.driver.FakePCIID.XHCIMux (1.3.9) C99262C4-7FDD-33F9-85EB-D53240B71FE5 <56 12 7 5 4 3 1>
   66    0 0xffffff7f80b5f000 0x67000    0x67000    com.insanelymac.RealtekRTL8111 (2.2.1) 8BA5E6A6-5DCA-3102-B71B-CE613147F452 <65 12 5 4 3 1>
   73    1 0xffffff7f813ca000 0xe000     0xe000     org.emlydinesh.driver.ApplePS2Keyboard (4.6.8) 8628ADB8-A873-3841-B155-70BFE0785990 <51 50 20 7 6 5 4 3 1>
   76    0 0xffffff7f80c23000 0x17b000   0x17b000   at.obdev.nke.LittleSnitch (5094) 8C6CB9D1-CC0A-3342-9FD5-7D5680E7ECC6 <7 5 4 3 1>
   89    0 0xffffff7f813d8000 0x19000    0x19000    org.emlydinesh.driver.ApplePS2SmartTouchPad (4.6.8) A74A8258-9468-3FBE-A2C4-EBFA28487044 <73 51 50 20 7 6 5 4 3 1>
  101    0 0xffffff7f8139d000 0x9000     0x9000     org.emlydinesh.driver.AsusNBFnKeys (2.6) 069C27E9-EE6D-395D-BE98-1364C275EFBC <51 20 11 7 6 5 4 3 1>
  114    1 0xffffff7f80ff1000 0x6000     0x6000     com.no-one.BrcmFirmwareStore (2.2.7) FA907595-C1CB-3D88-AD98-ADCDA9F29625 <5 4 3>
  115    0 0xffffff7f8108c000 0x6000     0x6000     com.no-one.BrcmPatchRAM2 (2.2.7) 76FC3024-9FF8-3607-A616-DF7C550751CB <114 31 5 4 3 1>
  129    0 0xffffff7f81098000 0x4000     0x4000     com.globaldelight.driver.Boom2Device (1.1) 73CE7A76-3526-347C-98FD-5B794ABB870D <106 5 4 3 1>
  130    0 0xffffff7f80fd0000 0x8000     0x8000     org.tw.CodecCommander (2.6.3) 6032938E-4161-35BC-9507-DE73BFA6ABB3 <106 12 11 4 3 1>

Code:
kextstat | grep -y acpiplat      
   15    2 0xffffff7f8332a000 0xa5000    0xa5000    com.apple.driver.AppleACPIPlatform (6.1) 642EF8D6-8F86-3F92-B450-FDC9BAE4F3DD <14 12 11 7 6 5 4 3 1>
kextstat | grep -y appleintelcpu
kextstat | grep -y applelpc     
  104    0 0xffffff7f82b75000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) 7C24E741-BD4A-3917-83AC-E956A03ADC20 <91 12 5 4 3>
kextstat | grep -y applehda
  108    1 0xffffff7f82fd0000 0x1f000    0x1f000    com.apple.driver.AppleHDAController (280.12) 55162F3D-B7E9-315C-A7E1-C5C4C02F03EC <107 106 95 12 7 6 5 4 3 1>
  138    0 0xffffff7f83150000 0xb7000    0xb7000    com.apple.driver.AppleHDA (280.12) 7FC2BABA-4D4F-34FC-93E2-3E3244DEB73D <137 111 108 107 106 95 6 5 4 3 1>

Code:
sudo touch /System/Library/Extensions && sudo kextcache -i /
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee263420 [0x7fff954805b0]> { URL = "RealtekRTL8111.kext/ -- file:///Library/Extensions/", ID = "com.insanelymac.RealtekRTL8111" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee257750 [0x7fff954805b0]> { URL = "Lilu.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.Lilu" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94eb5271a0 [0x7fff954805b0]> { URL = "IntelGraphicsFixup.kext/ -- file:///Library/Extensions/", ID = "as.lvs1974.IntelGraphicsFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94eb526ea0 [0x7fff954805b0]> { URL = "FakeSMC.kext/ -- file:///Library/Extensions/", ID = "org.netkas.driver.FakeSMC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee231890 [0x7fff954805b0]> { URL = "FakePCIID_XHCIMux.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.FakePCIID.XHCIMux" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee228480 [0x7fff954805b0]> { URL = "FakePCIID.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.FakePCIID" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee22dcc0 [0x7fff954805b0]> { URL = "FakePCIID_Intel_HD_Graphics.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Intel-HD-Graphics" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee227940 [0x7fff954805b0]> { URL = "FakePCIID_Broadcom_WiFi.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Broadcom-WiFi" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee216a60 [0x7fff954805b0]> { URL = "CodecCommander.kext/ -- file:///Library/Extensions/", ID = "org.tw.CodecCommander" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee21adb0 [0x7fff954805b0]> { URL = "BrcmPatchRAM2.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmPatchRAM2" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee21bf00 [0x7fff954805b0]> { URL = "BrcmFirmwareRepo.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmFirmwareStore" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee214770 [0x7fff954805b0]> { URL = "AsusNBFnKeys.kext/ -- file:///Library/Extensions/", ID = "org.emlydinesh.driver.AsusNBFnKeys" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee211d40 [0x7fff954805b0]> { URL = "ApplePS2Keyboard.kext/ -- file:///Library/Extensions/ApplePS2SmartTouchPad.kext/Contents/PlugIns/", ID = "org.emlydinesh.driver.ApplePS2Keyboard" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee0ed060 [0x7fff954805b0]> { URL = "ApplePS2Controller.kext/ -- file:///Library/Extensions/ApplePS2SmartTouchPad.kext/Contents/PlugIns/", ID = "org.emlydinesh.driver.ApplePS2Controller" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee2111f0 [0x7fff954805b0]> { URL = "ApplePS2SmartTouchPad.kext/ -- file:///Library/Extensions/", ID = "org.emlydinesh.driver.ApplePS2SmartTouchPad" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee0a5340 [0x7fff954805b0]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94ee0a3400 [0x7fff954805b0]> { URL = "PinConfigs.kext/ -- file:///Library/Extensions/AppleALC.kext/Contents/PlugIns/", ID = "as.vit9696.PinConfigs" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94eb603570 [0x7fff954805b0]> { URL = "AppleALC.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.AppleALC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94eb607890 [0x7fff954805b0]> { URL = "ACPIBatteryManager.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
KernelCache ID: 9741E1EA5A8B8F68C5BF2B6580FDBC9D
 

Attachments

  • laptop.ioreg
    6.2 MB · Views: 94
  • CLOVER.zip
    2.2 MB · Views: 77
  • RehabMan.zip
    50.5 KB · Views: 78
Here is what I've tried so far:

CSM on / off - glitches
Using platformID 0x0a260006 or 0x0d260007 - glitches
Using platformID 0x0d220003 + Inject EDID - no glitches, but no brightness control
Using platformID 0x0a260006 with reduced resolution 1600x900 - no glitches
IntelGraphicsFixup.kext fixes scrambled screen at boot, but there are still glitches at runtime
 
Last edited:
Status
Not open for further replies.
Back
Top