Jump to content
tluck

[GUIDE] Lenovo T460 macOS with Clover

855 posts in this topic

Recommended Posts

On 5/1/2018 at 1:54 PM, tluck said:

@verleihnix - well everything should be there

- execpt 1 thing: i had forgotten about the USB Fix. that is not in the most recent pack. but I just added to SSDT-HACK-T460.dsl for the next push.

$ cat SSDT-HACK-T460.dsl 


DefinitionBlock ("", "SSDT", 2, "T460", "HACK", 0x00000000)
{
    External (\_SB.PCI0, DeviceObj)    // (from opcode)
    External (\_SB.PCI0.LPC, DeviceObj)    // (from opcode)
    External (\_SB.PCI0.XHC.PMEE, FieldUnitObj)
    External (\_SI._SST, MethodObj)    // 1 Arguments (from opcode)
    External (ZPTS, MethodObj)    // 1 Arguments (from opcode)
    External (ZWAK, MethodObj)    // 1 Arguments (from opcode)

    Method (_PTS, 1, NotSerialized)  // _PTS: Prepare To Sleep
    {
        If (0x05 == Arg0)
        {
// fix "auto start after shutdown"
            \_SB.PCI0.XHC.PMEE = 0
            Return (Zero)
        }

        ZPTS (Arg0)
    }

    Method (_WAK, 1, NotSerialized)  // _WAK: Wake
    {
        If ((Arg0 < One) || (Arg0 > 0x05))
        {
            Arg0 = 0x03
        }

        Local0 = ZWAK (Arg0)
        \_SI._SST (One)
        Return (Local0)
    }
}

 

Could it be why my T460 isn't shutting down properly? I'll check later to see if I have that ssdt and report back. If not, where do I find it?

Share this post


Link to post
Share on other sites
Advertisement
2 hours ago, Blaggah said:

Could it be why my T460 isn't shutting down properly? I'll check later to see if I have that ssdt and report back. If not, where do I find it?

 

Yes, it could be. I had this as well.

It is included in the most recent pack.

Edited by verleihnix

Share this post


Link to post
Share on other sites
On 11/22/2018 at 2:40 AM, verleihnix said:

Yes, you have to build your own AppleBacklightInjector.

The tool is located in Tluck's pack, Utilities/Create_AppleBacklightInjector_kext

Nice, i managed to do it.  Thanks.  How would i go about doing the same on my x1 carbon 4th generation?

 

I think i fixed my problem. I already had the latest pack for some odd reason, i think i was running the default dsdt which wasn't suited for my 1366x768 screen.  I reran the command to create my dsdt and all is well now.  Thanks for the feedback..

Share this post


Link to post
Share on other sites
On 9/26/2016 at 12:17 PM, tluck said:

@azerty076 - just posted a reply on another site. but i will update the GUIDE with my latest files etc. 

 

So quickly what works:

1) ethernet - IntelMausi kext
2) WiFi/BT - with BCM4352Z NGFF M.2 (aka Dell DW1560) - BrcmPatchRAM2 modified for to slow down firmware for USB wake.
3) Audio - ALC293 AppleHDA.kext
4) PS2 - Clickpad/Trackpad + TrackPoint + all 3 buttons - VoodooPS2Controller modified - F key maps
5) USB - custom SSDT + USBInjectAll kext mods. so all external USB3/USB2 ports and internal ports - Camera, BT work.
6) sleep/wake
 

have not messed with SD Card.

What's the likelihood of you implementing my x1 Carbon 4th gen into your package?  I had to do a fresh install on my carbon today and I need to get my sound and the rest of the stuff sorted out.   What do I need to provide in order to achieve this?

Share this post


Link to post
Share on other sites

VoodooPS2Controller KP on sleep? 

 

Anyone have any ideas on this. With VoodooPS2Controller 1.8.3 system is perfect, sleep/wake no issues. 

 

Bumping the kext to 1.9.x causes a KP on sleep. Apparently in unloading the driver. 

 

Any ideas?

 

Mon Dec 31 11:47:06 2018

*** Panic Report ***
panic(cpu 0 caller 0xffffff80062da1ed): Kernel trap at 0xffffff7f86ce0663, type 13=general protection, registers:
CR0: 0x000000008001003b, CR2: 0x00007fffaf51a450, CR3: 0x00000003247b1112, CR4: 0x00000000003626e0
RAX: 0x3f001138c1bbbb60, RBX: 0xffffff8029ea3800, RCX: 0xffffff8006a9deb8, RDX: 0x0000000000000000
RSP: 0xffffff920f573a90, RBP: 0xffffff920f573aa0, RSI: 0x0000000009000000, RDI: 0xffffff802a153a80
R8:  0xffffff8006a9de50, R9:  0xffffff8006a9de80, R10: 0xffffff8006a9deb0, R11: 0x0000000000000001
R12: 0x0000000100000326, R13: 0xffffff80068292b0, R14: 0xffffff8029ee01e0, R15: 0x0000000100000323
RFL: 0x0000000000010282, RIP: 0xffffff7f86ce0663, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x00007fffaf51a450, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 0

Backtrace (CPU 0), Frame : Return Address
0xffffff8005f4c290 : 0xffffff80061aeafd
0xffffff8005f4c2e0 : 0xffffff80062e85a3
0xffffff8005f4c320 : 0xffffff80062d9fca
0xffffff8005f4c390 : 0xffffff800615bca0
0xffffff8005f4c3b0 : 0xffffff80061ae517
0xffffff8005f4c4d0 : 0xffffff80061ae363
0xffffff8005f4c540 : 0xffffff80062da1ed
0xffffff8005f4c6b0 : 0xffffff800615bca0
0xffffff8005f4c6d0 : 0xffffff7f86ce0663
0xffffff920f573aa0 : 0xffffff7f86cdc8bf
0xffffff920f573ad0 : 0xffffff80068293bd
0xffffff920f573b10 : 0xffffff800685546e
0xffffff920f573b50 : 0xffffff8006828479
0xffffff920f573bd0 : 0xffffff8006827577
Kernel_2018-12-31-114706_Scotts-MacBook-Pro.panic...skipping...
Anonymous UUID:       EC038489-3092-0406-30E4-8B3B5720E3DD

Mon Dec 31 11:47:06 2018

*** Panic Report ***
panic(cpu 0 caller 0xffffff80062da1ed): Kernel trap at 0xffffff7f86ce0663, type 13=general protection, registers:
CR0: 0x000000008001003b, CR2: 0x00007fffaf51a450, CR3: 0x00000003247b1112, CR4: 0x00000000003626e0
RAX: 0x3f001138c1bbbb60, RBX: 0xffffff8029ea3800, RCX: 0xffffff8006a9deb8, RDX: 0x0000000000000000
RSP: 0xffffff920f573a90, RBP: 0xffffff920f573aa0, RSI: 0x0000000009000000, RDI: 0xffffff802a153a80
R8:  0xffffff8006a9de50, R9:  0xffffff8006a9de80, R10: 0xffffff8006a9deb0, R11: 0x0000000000000001
R12: 0x0000000100000326, R13: 0xffffff80068292b0, R14: 0xffffff8029ee01e0, R15: 0x0000000100000323
RFL: 0x0000000000010282, RIP: 0xffffff7f86ce0663, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x00007fffaf51a450, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 0

Backtrace (CPU 0), Frame : Return Address
0xffffff8005f4c290 : 0xffffff80061aeafd
0xffffff8005f4c2e0 : 0xffffff80062e85a3
0xffffff8005f4c320 : 0xffffff80062d9fca
0xffffff8005f4c390 : 0xffffff800615bca0
0xffffff8005f4c3b0 : 0xffffff80061ae517
0xffffff8005f4c4d0 : 0xffffff80061ae363
0xffffff8005f4c540 : 0xffffff80062da1ed
0xffffff8005f4c6b0 : 0xffffff800615bca0
0xffffff8005f4c6d0 : 0xffffff7f86ce0663
0xffffff920f573aa0 : 0xffffff7f86cdc8bf
0xffffff920f573ad0 : 0xffffff80068293bd
0xffffff920f573b10 : 0xffffff800685546e
0xffffff920f573b50 : 0xffffff8006828479
0xffffff920f573bd0 : 0xffffff8006827577
0xffffff920f573c30 : 0xffffff800682b15d
:...skipping...
Anonymous UUID:       EC038489-3092-0406-30E4-8B3B5720E3DD

Mon Dec 31 11:47:06 2018

*** Panic Report ***
panic(cpu 0 caller 0xffffff80062da1ed): Kernel trap at 0xffffff7f86ce0663, type 13=general protection, registers:
CR0: 0x000000008001003b, CR2: 0x00007fffaf51a450, CR3: 0x00000003247b1112, CR4: 0x00000000003626e0
RAX: 0x3f001138c1bbbb60, RBX: 0xffffff8029ea3800, RCX: 0xffffff8006a9deb8, RDX: 0x0000000000000000
RSP: 0xffffff920f573a90, RBP: 0xffffff920f573aa0, RSI: 0x0000000009000000, RDI: 0xffffff802a153a80
R8:  0xffffff8006a9de50, R9:  0xffffff8006a9de80, R10: 0xffffff8006a9deb0, R11: 0x0000000000000001
R12: 0x0000000100000326, R13: 0xffffff80068292b0, R14: 0xffffff8029ee01e0, R15: 0x0000000100000323
RFL: 0x0000000000010282, RIP: 0xffffff7f86ce0663, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x00007fffaf51a450, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 0

Backtrace (CPU 0), Frame : Return Address
0xffffff8005f4c290 : 0xffffff80061aeafd
0xffffff8005f4c2e0 : 0xffffff80062e85a3
0xffffff8005f4c320 : 0xffffff80062d9fca
0xffffff8005f4c390 : 0xffffff800615bca0
0xffffff8005f4c3b0 : 0xffffff80061ae517
0xffffff8005f4c4d0 : 0xffffff80061ae363
0xffffff8005f4c540 : 0xffffff80062da1ed
0xffffff8005f4c6b0 : 0xffffff800615bca0
0xffffff8005f4c6d0 : 0xffffff7f86ce0663
0xffffff920f573aa0 : 0xffffff7f86cdc8bf
0xffffff920f573ad0 : 0xffffff80068293bd
0xffffff920f573b10 : 0xffffff800685546e
0xffffff920f573b50 : 0xffffff8006828479
0xffffff920f573bd0 : 0xffffff8006827577
0xffffff920f573c30 : 0xffffff800682b15d
0xffffff920f573cb0 : 0xffffff800684e351
0xffffff920f573ce0 : 0xffffff800684e545
0xffffff920f573d20 : 0xffffff800688fc24
0xffffff920f573d50 : 0xffffff8006291eb0
0xffffff920f573d80 : 0xffffff80061b42bd
0xffffff920f573dd0 : 0xffffff800618ebe5
0xffffff920f573e50 : 0xffffff80061a359e
0xffffff920f573ef0 : 0xffffff80062c170b
0xffffff920f573fa0 : 0xffffff800615c486
      Kernel Extensions in backtrace:
         org.rehabman.voodoo.driver.PS2Trackpad(1.9.2)[172C5C14-5D31-3BE0-A947-59A4F3938B90]@0xffffff7f86cd9000->0xffffff7f86ce4fff
            dependency: com.apple.iokit.IOHIDFamily(2.0.0)[2AEFB432-C333-3CFC-955E-24BBDDDE0F5E]@0xffffff7f86c22000
            dependency: com.apple.iokit.IOReportFamily(47)[75A625B5-0DEB-343A-A723-9D72533F098C]@0xffffff7f86cca000
            dependency: org.rehabman.voodoo.driver.PS2Controller(1.9.2)[E11711CB-AFEA-384E-97B8-B8EECB515995]@0xffffff7f86cb6000

BSD process name corresponding to current thread: kextunload
Boot args: kext-dev-mode=1

Mac OS version:
18C54

Kernel version:
Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64
Kernel UUID: 56B30885-F9BA-30E8-AD1C-5D59EC243BA9
Kernel slide:     0x0000000005e00000
Kernel text base: 0xffffff8006000000
__HIB  text base: 0xffffff8005f00000
System model name: MacBookPro13,1 (Mac-473D31EABEB93F9B)

System uptime in nanoseconds: 70719129145
last loaded kext at 30073858799: com.apple.driver.AppleBluetoothMultitouch      96 (addr 0xffffff7f8944a000, size 61440)
loaded kexts:
(none)

Share this post


Link to post
Share on other sites
Hi, I read your post and also https://octoperf.com/blog/2018/10/22/thinkpad-t460-how-to-install-macos/.
I'm using T460s (i7 6600u/16g/512g SSD/HD 520).
In others case, their screenshot of clover home screen, the first option is "boot macos install from install macos xxxxxxx", but my case is "start ueft shell 64", seems that clover does not recognize my macos disk partition.
Then I try to use "start ueft shell 64", but it only shows black screen without any response.
I already config the correct BIOS CONFIG, MACOS USB INSTALLER.The picture below is my macos USB installer, the first partition is EFI, the second is macos.
68747470733a2f2f73312e617832782e636f6d2f323031382f31322f31382f35516c45464a2e706e67&key=6fe9823da8c419d092cde596045ea27245abe3f5faf74fe8eae284eb2c3475dd
So can you help me with this?
Thanks a lot.

You have to make sure apfs.efi or the other apfs driver is included inside your ego clover/drivers64 folder.


Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

Hi tluck,

 

I'm using your T460 pack for my T460. However I had to add the following in config.plist as the clover kextstopatch do not work in Mojave for framebuffer patching. Without this the macos panics at framebuffer initialization.

         <key>Properties</key>
         <dict>
            <key>PciRoot(0x0)/Pci(0x2,0x0)</key>
            <dict>
               <key>AAPL,ig-platform-id</key>     <data>AAAWGQ==</data>
               <key>device-id</key>               <data>FhkAAA==</data>
               <key>enable-hdmi20</key>           <data>AQAAAA==</data>
               <key>framebuffer-fbmem</key>       <data>AACQAA==</data>
               <key>framebuffer-patch-enable</key><data>AQAAAA==</data>
               <key>framebuffer-stolenmem</key>   <data>AAAwAQ==</data>
               <key>framebuffer-unifiedmem</key>  <data>AAAAgA==</data>
            </dict>
         </dict>

However, I notice that I do not have all the brightness levels before the sleep. After sleep cycle its fine.

I did create the backlightinjector per your guide but it doesn't work. Is it because I do not have the following kextstopatch per the new whatevergreen style? But I don't know the equivalent in whatevergreen config?

<dict>
	<key>Comment</key>
	<string>Framebuffer - brightness</string>
	<key>Disabled</key>
	<false/>
	<key>Find</key>
	<data>
	bAUAAGwFAAA=
	</data>
	<key>Name</key>
	<string>com.apple.driver.AppleIntelSKLGraphicsFramebuffer</string>
	<key>Replace</key>
	<data>
	6AMAAOgDAAA=
	</data>
</dict>

I also tried removingapplebacklightinjector and replaced with AppleBacklightFixup and replaced SSDT-PNLF-T460.aml with the one from Rehabman's AppleBacklightFixup package. But same results.

 

Recently, I have also tried using the latest WhateverGreen (that already has the Rehabman's AppleBacklightFixup code merged) but same results.

I am rebuilding kextcache between any changes.

 

What I am doing wrong?

Share this post


Link to post
Share on other sites
Posted (edited)

@nijhawank 

 

yeah you should move towards Whatevergreen.kext - and the recent 1.2.5 version adds support for backlight and which may conflict with AppleBacklightInjector.kext. 

 

the kext patch above sets the max brightness from value 1388 (0x56C) to 1000 (0x3E8) - not sure why i did that?!

so

you can remove that patch.

change UID from 10 to 16 in SSDT-PNLF - there is the F16Txxxx profile in WEG.kext to do backlight.

remove the AppleBacklightInjector kext

 

Edited by tluck

Share this post


Link to post
Share on other sites
16 minutes ago, tluck said:

@nijhawank 

 

yeah you should move towards Whatevergreen.kext - and the recent 1.2.5 version adds support for backlight and which may conflict with AppleBacklightInjector.kext. 

 

the kext patch above sets the max brightness from value 1388 (0x56C) to 1000 (0x3E8) - not sure why i did that?!

so

you can remove that patch.

change UID from 10 to 16 in SSDT-PNLF - there is the F16Txxxx profile in WEG.kext to do backlight.

remove the AppleBacklightInjector kext

 

 

Thanks @tluck for your very prompt reply. Yes, I have removed AppleBacklightInjector and now using the latest WhateverGreen.


I also had replaced the SSDT-PNLF-T460.aml from your pack to the precompiled one available from Rehabman's AppleBacklightFixup. I believe it is compiled from https://github.com/RehabMan/AppleBacklightFixup/blob/master/SSDT-PNLF.dsl that dynamically calculates _UID depending on PWMMax. An extract...

// _UID is set depending on PWMMax
// 14: Sandy/Ivy 0x710
// 15: Haswell/Broadwell 0xad9
// 16: Skylake/KabyLake 0x56c (and some Haswell, example 0xa2e0008)
// 17: custom LMAX=0x7a1
// 18: custom LMAX=0x1499
// 19: CoffeeLake 0xff7b
// 99: Other (requires custom AppleBacklightInjector.kext)
So shouldn't it already be deriving _UID to 16? What could be the reason that my PWMMax is not right, if that's the reason?

Anyways I'll try changing _UID to 16 in your version of SSDT-PNLF-T460.dsc at https://github.com/tluck/Lenovo-T460-Clover/blob/master/DSDT.T460/SSDT-PNLF-T460.dsl and see if that makes any difference.

 

Share this post


Link to post
Share on other sites

Nope that didn't work. This is the SSDT-PNLF I'm using with latest whatevergreen. Should I be saying 0x16?

 

DefinitionBlock ("", "SSDT", 2, "T460", "PNLF", 0)

{

    // For backlight control

    Device(_SB.PNLF)

    {

        Name(_ADR, Zero)

        Name(_HID, EisaId ("APP0002"))

        Name(_CID, "backlight")

        Name(_UID, 16) //changed from 10 to 16

        Name(_STA, 0x0B)

    }

}

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, nijhawank said:

Nope that didn't work. This is the SSDT-PNLF I'm using with latest whatevergreen. Should I be saying 0x16?

 

If you edit SSDT-PNLF-T460.dsl you have to change it to 16 and with .aml you have to change it to 0x10.

Edited by verleihnix

Share this post


Link to post
Share on other sites
Posted (edited)

So I made _UID to 16 in SSDT-PNLF-T460.dsl and recompiled but to no avail.

 

Do you think I'd need to adjust something in SSDT-IGPU-T460.dsl as Rehabman says you need to remove any backlight patches from DSDT/clover to use the new AppleBacklightFixup (assuming the new whatevergreen would have the same requirements)?

Edited by nijhawank

Share this post


Link to post
Share on other sites
1 hour ago, nijhawank said:

So I made _UID to 16 in SSDT-PNLF-T460.dsl and recompiled but to no avail.

 

Do you think I'd need to adjust something in SSDT-IGPU-T460.dsl as Rehabman says you need to remove any backlight patches from DSDT/clover to use the new AppleBacklightFixup (assuming the new whatevergreen would have the same requirements)?

 

I have only WEG 1.2.5 and the new ID in SSDT-PNLF-T460.

Backlight adjust is working.

Share this post


Link to post
Share on other sites
1 hour ago, nijhawank said:

So I made _UID to 16 in SSDT-PNLF-T460.dsl and recompiled but to no avail.

 

Do you think I'd need to adjust something in SSDT-IGPU-T460.dsl as Rehabman says you need to remove any backlight patches from DSDT/clover to use the new AppleBacklightFixup (assuming the new whatevergreen would have the same requirements)?

 

To get whatevergreen backlight working

 

clover config.plist

Boot / Arguments:  add    igfxcflbklt=1

Devices / Properties / PciRoot ; same place as framebuffer entries, within dict

<key>enable-cfl-backlight-fix</key>

<true/>

 

With those and a simple PLNF DSDT entry I got backlight buttons working but only after a sleep/wake cycle.

 

Share this post


Link to post
Share on other sites
8 minutes ago, xeu said:

 

To get whatevergreen backlight working

 

clover config.plist

Boot / Arguments:  add    igfxcflbklt=1

Devices / Properties / PciRoot ; same place as framebuffer entries, within dict

<key>enable-cfl-backlight-fix</key>

<true/>

 

With those and a simple PLNF DSDT entry I got backlight buttons working but only after a sleep/wake cycle.

 

 

My backlight adjustment is working but not all brightness levels are present before the sleep (just between 70 - 100%). After the sleep cycle, all brightness levels are present.

 

From the WEG documentation...

  • igfxcflbklt=1 boot argument (and enable-cfl-backlight-fix property) to enable CFL backlight patch
  • applbkl=0 boot argument to disable AppleBacklight.kext patches for IGPU

Isn't the boot flag (igfxcflbklt and related property in config.plist) only for Coffylake? T460 is Skylake and I assume that applbkl=0 boot entry controls for everything other than coffylake and I assume that by default WEG applies the backlight patches and applblk=0 is only needed to disable backlight patches?

 

Is the understanding correct?

Share this post


Link to post
Share on other sites
Posted (edited)

sorry. i just don't have a box to test and verify the configs anymore.

 

but yeah - there are about 18 patches in config.list related to SKL/Gfx and AppleHDA that are now obsolete since they are handled by the new AppleALC and Whatevergreen kexts.

moving from 10 to 16 for PNLF UID - is good to be consistent with RehabMan (and other's) tools. 

 

- or using generalized RehabMan's SSDT-PNLF.dsl/aml - may be the best thing...

 

the BackLight Injector function is now handled by WEG as are the memory patches etc.

 

@kolodzieski

 

try removing the kextunload/kextload lines from your /etc/rc.sleep and /etc/rc.wake scripts - or remove these as they may not be needed anymore.

should not need to unload VoodooPS for sleep!?

 

 

Edited by tluck

Share this post


Link to post
Share on other sites
1 hour ago, tluck said:

sorry. i just don't have a box to test and verify the configs anymore.

 

but yeah - there are about 18 patches in config.list related to SKL/Gfx and AppleHDA that are now obsolete since they are handled by the new AppleALC and Whatevergreen kexts.

moving from 10 to 16 for PNLF UID - is good to be consistent with RehabMan (and other's) tools. 

 

- or using generalized RehabMan's SSDT-PNLF.dsl/aml - may be the best thing...

 

the BackLight Injector function is now handled by WEG as are the memory patches etc.

 

@kolodzieski

 

try removing the kextunload/kextload lines from your /etc/rc.sleep and /etc/rc.wake scripts - or remove these as they may not be needed anymore.

should not need to unload VoodooPS for sleep!?

 

 

 

Thanks @tluck, that is the obvious solution. I commented out the unload/reload from the rs.cleep and rc.wake scripts, and can use the latest voodoo kext from rehabman. 

 

I am down to only using kext's from the authors (except your bcrm bluetooth kext's). The backlight from WEG works great for me. I will be pushing my latest config soon and will send you a pull request. 

 

My latest set of kext's are:

 

image.png.57525dd735409a76aab6cd93b403729e.png 

image.png

Share this post


Link to post
Share on other sites
Posted (edited)

I was able to simplify my kext set and config a bit more.  I am able to use the most up to date set of kext's from the original authors. Everything on my T470 works great. 

 

Here are my latest set of notes from my github project. 

 

Begin Simplification/Consolidation of KEXT's / Config

Bumped WhateverGreen to 1.2.6 -- Use built in Backlight Injector --

       remove AppleBacklightInjector.kext from /Library/Extensions

       build SSDT-PNLF.dsl (from rehabman repo) and add to ACPI/patched (remove SSDT-PNLF-T460)

       Modify config.plist per:


sjk$ diff -wu config.plist /Volumes/ESP/EFI/CLOVER/config.plist
--- config.plist    2018-12-20 11:41:21.000000000 -0500
@@ -176,7 +176,7 @@
       <key>Boot</key>
       <dict>
          <key>Arguments</key>
-         <string>kext-dev-mode=1</string>
+         <string>kext-dev-mode=1 bpr_probedelay=100 bpr_initialdelay=300 bpr_postresetdelay=300</string>
          <key>DefaultVolume</key>
          <string>osX</string>
          <key>IgnoreNVRAMBoot</key>
@@ -243,6 +243,8 @@
                <data>
                   AAAAgA==
                </data>
+           <key>enable-cfl-backlight-fix</key>
+           <true/>
             </dict>
          </dict>
          <key>USB</key>

 

 

I did need to edit my /etc/rc.wake and /etc/rc.sleep and comment out the unload/load of the voodoo trackpack drivers. Does not seem like that matters at all to functionality. Sleep/Wake works fine. 

 

NOTE the bpr_ boot flags that makes the bluetooth drivers correctly functions after
waking from sleep.

 

Consolidate and Updated kext's in /Library/Extensions:

All kext are from the kext's author, and not taken from TLUCK's repository.

 

image.png.76821c6ce12252a9c60fb0fdedd4a718.png

Edited by kolodzieski
forgot line on rc.sleep/rc.wake

Share this post


Link to post
Share on other sites
On 11/18/2017 at 8:20 PM, ka209 said:

no you need drivers. but is already in the kext folder in the EFI.

 
but I'll do it for you as an attachment
 
Do it in your kext folder and it's good

BrcmFirmwareRepo.kext.zip

AirportBrcmFixup.kext.zip

BrcmPatchRAM2.kext.zip

 

hi ka209, i see that you use dw1830 for your hackintosh and you said its working flawless. It's working perfectly for me as well except bluetooth. It works fine after a boot but after a sleep cycle bluetooth becomes unavailable. I have exactly the same issue as described in this thread https://www.tonymacx86.com/threads/dw1830-bluetooth-not-available-power-saving-issue.246350/ 

Unfortunately, the issue is unresolved in that thread. I have tried various bpr_probedelay/initial/postresetdelays options in the boot to no avail.

Share this post


Link to post
Share on other sites

@tluck Any chance on getting my X1 Carbon running like it should?  What do i need to provide in order to get the patched files i'd need?

Share this post


Link to post
Share on other sites

CPU nodes in ioRegistryEplorer ? 

 

I dumped IntelPlatformPluginInjector.kext from /L/E and replaced the SSDT-CPU.dsl ith the generic SSDT-XCPM.dsl from rehabmas repo. Seems like scaling and power management is working very well. I get basic GeekBench scores of 4036/7829, the Intel Power Gadget shows me idling @ 1GH (100 * 10) with PKG power of around 0.9. Everything looks and feels good. 

 

However in ioRegistryExplorer, I do not get any CPU nodes, i just see "--> cpus". All references I have seem in power management threads say I should be seeing a CPU0 node, that is expandable and shows me details? 

 

Any clues? 

 

Cheers,

Scott. 

Share this post


Link to post
Share on other sites

Duh, I figured it out. My T470's namespace is just different. Instead of CPUX, I have PR0X. 

 

So changing SSDT-XCPM.dsl to use PR00 instead of CPU0, allows the injection of X86PlatformPlugin automatically. 

 

This gives me PM as @tluckdescribes in different thread. The minimum freq is 1.3GHz. I can add in @tluck's X86PlatformPluginInjector to get the idle down to 800MHz (but the Geekbench suffers some -- 3800 verses 4000). 

 

Hopefully this helps someone else. 

 

Cheers,

Scott.

 

Share this post


Link to post
Share on other sites
23 hours ago, Blaggah said:

@tluck Any chance on getting my X1 Carbon running like it should?  What do i need to provide in order to get the patched files i'd need?

so what is missing? you should be able to follow the same recipe/procedure outlined in the guide - for example kolodzieski and others have for say T470 etc. his repo and files are the most current.

Share this post


Link to post
Share on other sites

Hello,

is there any way to obtain a full set of EFI files for Mojave installation?

 

Thank you very much.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By ludufre
      Installing macOS Mojave on Lenovo ThinkPad L440

       
      There are two version of this laptop:
      - 20AS = Chipset QM87, without Express Card (mine).
      - 20AT = Chipset HM86, with Express Card.
      I strong believe is the same thing...
       

      Changelog:
       
      06/09/2019 14:16h GMT-0
      - Added missing parts in the post-install step. 
       
      06/04/2019 17:19h GMT-0
      - Updated Clover link. 
       
      06/02/2019 18:08h GMT-0
      - Added info about update 10.14.5. 
       
      03/13/2019 13:15h GMT-0
      - Updated info about touchpad replacement and CPU and 4G LTE modem.
       
      02/05/2019 18:47h GMT-0
      - Updated info about CPU replacement and 4G LTE modem.
       
      02/04/2019 15:24h GMT-0
      - Sometimes the VoodooHDA.kext doesn't work.
      - Added AppleHDADisabler.kext to fix that (attached bellow).
       
      01/24/2019 14:42h GMT-0
      - Added more adjustments to use of VoodooHDA.
      - Updated VoodooHDA links to 2.9.1 official (without installer).
      - Changed PCM volume from 90 to 180 in Info.plist (attached modified VoodooHDA.kext bellow)
      - Updated SSDT-L440.aml (Removed HDEF and HDAU, not needed).
      - Updated config.plist (Changed to user Audio layout to 1).
       
      01/22/2019 20:47h GMT-0
      - I gave up on the AppleALC.
      - Headset does not work.
      - Now with VoodooHDA is perfect and the sound even louder.
       
      01/22/2019 14:37h GMT-0
      - Added info about update 10.14.3. 
       
      01/22/2019 13:46h GMT-0
      - Added link to BIOS reassing guide.
       
      01/20/2019 11:49h GMT-0
      - First version.
       
      What works and what does not
       
      - Processor: Intel Core i5-4300M ->  Work. All SpeedStep stages.
      - Video Card: Intel HD4600 ->  Work. QE/CI and Metal.
      - Chipset: Intel QM87 ->  Work.
      - Mini DisplayPort ->  Work. But no audio, yet.
      - VGA ->  Not work. Normal.
      - Audio: ALC292 ->  Work.
      - WiFi/Bluetooth: Intel AC 7260 ->  Not work. Replaced with DW1560 (need whitelist removal).
      - Ethernet: Intel I217-LM ->  Work.
      - Card Reader: Realtek RTS5227 ->  Not work.
      - Keyboard and Touchpad ->  Work.
      - Webcam ->  Work.
      - Fingerprint Reader ->  Not work. Normal.
      - USB3.0 ->  Work.
      - Sleep ->  Work.
      - Airdrop, Handoff, Instant Hotspot and Continuity ->  Work after replaced wireless.
       
       
      Extras
       
      - FullHD 1920x1080 display upgrade: 
      Replaced with AU Optronics B140HAN01.1 30pin eDP (B140HAN01.2 and B140HAN01.3 also compatible).
      Apparently same screen as Dell Latitude E6440, E7440, Lenovo Ideapad U430 and E129.
       
      - CPU upgrade:
      Replaced the stock Intel Core i5 4300M 2.6Ghz (3.3Ghz turbo) 6M cache with Intel Core i7 4700MQ 2.4Ghz (3.4Ghz turbo) 6MB.
      I initially had problems with overheating. The processor ran at full load above 90 degrees.
      After using a quality thermal paste I can work between 70 and 80 degrees.
      Acceptable taking into consideration that the new processor has 47TDP versus 37TDP which is recommended.
      I also had no problem consuming the battery while charging. The original 65W source seems to have figured out.
       
      - Touchpad upgrade:
      Replaced the stock with T460 touchpad.
      This is serious: you have to do it! It should be stock. Touchpad with precision and absurd quality!
      Just do it!
       
      - RAM upgrade:
      No mistery here. Just upgade.
       
       
      Todo
       
      - Make DP audio work.
      - Make Card Reader work.
      - Upgrade CPU to i7-4712MQ (Ordered. It's on the way) Done, but received i7-4700MQ (47w TDP, with good paste I have no overheating)
      - Replace touchpad with T460 model (Ordered. It's on the way) Done. Sensitivity and perception of quality much better. I recommend 100%!
      - Sierra Gobi5000 4G LTE modem EM7355 (Ordered. It's on the way. I hope works. ) Done, but not work. Recognize but not connect. I already gave up...
      - Upgrade to 16GB RAM Done
      - Make trackpad appear in System Preferences
       
       
      What you need to install

      - Running install of macOS
      - One USB flash drive of 8GB or bigger
      - macOS Mojave install app
      - Clover EFI
      - Clover Configurator
      - Some KEXTs and SSDT patches


      How create create the install flash drive
       
      Prepare install flash drive

      Format the flash drive with GUID partition mapping and name it "Install".

      - Open Disk Utility.
      - Click in View, then "Show All Devices".
      - Select the destination flash drive, then Erase.
      - Name: Install, Format: Mac OS Extended (Journaled) and Scheme: GUID Partition Map
       
      Create install flash drive

      Open terminal and run this command:
      sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/Install --nointeraction This will take about 30 minutes.
       


      Install bootloader

      Download the CloverEFI from SourceForge (used 4934) and install with this options on "Install macOS Mojave":
       
      - Install for UEFI booting only
      - Install Clover in the ESP
      - UEFI Drivers - ApfsDriverLoader-64
      - UEFI Drivers - AptioMemoryFix-64


       
       
      Make things works

      Will be created a partition named EFI and mounted in Desktop.
      - Replace the /Volumes/EFI/CLOVER/config.plist with mine attached below
                    If you have modded BIOS with Advanced Menu and enabled 128MB DRAM-prealloc use 128MB_DRAM-prealloc_config.plist.zip
                    If no, then use 32MB_DRAM-prealloc_config.plist.zip
      - Put SSDT-L440.aml attached below in /Volumes/EFI/CLOVER/ACPI/patched/
       
      Generate your Serial, MLB and SmUUID
       
      - Open the replaced config.plist with Clover Configurator (used 5.3.2.0)
      - Go to SMBIOS, click few times in "Generate New" in Serial Number and SmUUID.
       
      Download those Kexts and put in /EFI/CLOVER/kexts/Other/
       
      - Download the HWSensors 3 from here. I used the FakeSMC.kext, ACPIMonitor.kext and IntelCPUMonitor.kext inside of DMG version r196.
      - Download the VoodooPS2Controller.kext from here. I used version 2018-1008.
      - Download the IntelMausiEthernet.kext from here. I used the version 2018-1031.
      - Download the Lilu.kext from here. I used the version 1.3.6.
      - Download the VoodooHDA from here. I used the version 2.9.1 and patched the sound volume (attached below).
      - Download the WhateverGreen.kext from here. I used the version 1.2.9.
      - Download the AppleBacklightFixup.kext from here. I used the version 2018-1013.
      - Download the USBInjectAll.kext from here. I used the version 2018-1108.
      - Download the ACPIBatteryManager.kext from here. I used the version 2018-1005.
       
      - Download the VirtualSMC.kext from here. I used version 1.0.2. Replaced with FakeSMC of the HWSensors 3 r196 package.
      - Download the FakeSMC.kext from here. I used the version 2018-0915. Replaced with VirtualSMC.kext due 10.14.4 issues on update.
      - Download the AppleALC.kext from here. I used the version 1.3.4. Replaced with VoodooHDA.kext due mic not working.
       
       
      Wifi and Bluetooth (DW1560 / BCM94352Z)
       
      Unfortunately, some notebook manufacturers are currently blocking the replacement of wireless cards. They want you to only use the models sold by them. And of course, none of them from Lenovo for this notebook model is compatible with MacOS.
       
      If you try to start with an unauthorized wifi card for them, you will receive a screen error:
      1802: Unauthorized network card is plugged in - Power off and remove the network card. Since this check is done directly in the BIOS, the only solution is to modify it.
      But since nothing is easy in this life, there is one small big problem:
      - The BIOS update procedure does not allow you to use modded files as it used to be.
      - You will need to physically reach your BIOS on the motherboard and make use of a USB BIOS reader/writer.
       
      So what you need to do:
      1. Disassembly your laptop;
      2. Dump your BIOS with an USB BIOS reader with SOIC8 clip (to not desolder from the motherboard);
      3. Patch it (In addition to removing the whitelist, add the advanced menu);
      4. Fix RSA signature;
      5. Reflash BIOS;
      6. Replace wireless card;
      7. Remount your laptop;
      8. Done.
       
      Soon, I'll provide step by step in this process. Probably until end of this week.
      In the meantime, if you need to, send me your dump that I do steps 3 and 4 for you.
      I also add the Advanced Menu so you can increase to 128MB the DRAM-prealloc.
       
      To fix a Modded BIOS to remove the 5 beeps on boot, you need this guide: https://www.insanelymac.com/forum/topic/337333-guide-fix-insyde-h2o-bios-signature-5-beeps-on-lenovo (traduzido: pt-BR)
       
       
      After replaced the wireless card. Download those Kexts and put in /EFI/CLOVER/kexts/Other/
       
      - Download the AirportBrcmFixup.kext from here. I used the version 2.0.0.
      - Download the BrcmFirmwareRepo.kext and BrcmPatchRAM2.kext from here. I used the version 2018-0505.
      - Download the BT4LEContinuityFixup.kext from here. I used the version 1.1.2.
       
       
      Now you can start the instalation without problem (I guess).
       
       
      How install
       
      UEFI Setup Configuration and Installation

      UEFI configuration
       
      My BIOS is the latest: 1.93 (J4ET93WW) 

      - Shutdown and insert the flash drive.
      - Power on with F1 pressed to enter BIOS setup.
      - Change value: Config - Intel(R) AMT - Intel(R) AMT Control to DISABLED
      - Change value: Security - Security Chip to DISABLED
      - Change value: Security - Anti-Theft - Intel(R) AT Module Activation to DISABLED
      - Change value: Security - Anti-Theft - Computrace to DISABLED
      - Change value: Security - Secure Boot to DISABLED
      - Change value: Startup - UEFI/Legacy Boot to BOTH, Legacy First and CSM Support = Yes
      - Save & Exit Setup (F10)
       
      - Now, hold the F12
      - In the list, select your flash drive.
       
      The installer will start. 
      
      Format destination disk

      Format the disk with GUID partition mapping and name it "Macintosh".

      - Select Disk Utility in the list, then press Continue.
      - Click in View, then "Show All Devices".
      - Select the destination Disk, then Erase.
      - Name: HD, Format: APFS and Scheme: GUID Partition Map

      Close Disk Utility.
      
      Select "Install macOS", then Continue.
      Follow instructions in screen.

      After install

      After first part install the system will reboot. Maybe you have to press F12 again and select the flash drive.
      
      The second part of the installation will begin. This will take 16 minutes.
       

      Post installation

      Install bootloader
       
      When the second part of install finish, the system will reboot again.

      After performing the user initial setup and go to the desktop, you need to install Clover on internal disk.

      Open the Clover installer inside flash drive that you copied before.

      Use same options above but choose the system partition this time.

      Now you need to replace the EFI folder inside your destination disk EFI parittion, with EFI folder inside flash card EFI partition.

      If the flash drive EFI partition of your destination disk or flash drive is unmounted:
      Mount with terminal "sudo diskutil mount /dev/rdiskXs1". To know what X is, use "diskutil list", most likely is 0 for destination disk and 1 for flash drive.
       
      Then, eject the flash drive.
       
      Last step
       
      Move all Kexts from EFI partition to /Library/Extensions, with those commands in Terminal:
      sudo mv -R /Volumes/EFI/EFI/CLOVER/kexts/Other/* /Library/Extensions/ sudo chmod -R 755 /Library/Extensions sudo chown -R root:wheel /Library/Extensions sudo kextcache -i / Restart the system.
       
       
      It's done!
       
       
      Updates
       
      System update 10.14.3
       
      - Updated with success;
      - Everything works perfectly after reboot;
       

       
       
      System update 10.14.4
       
      - Updated Clover to 4910.
      - Updated Lilu.kext to 1.3.5 and WhateverGreen to 1.2.7.
      - After first reboot the update progress stoped with:
      GTrace synchronization point 4 Unsupported CPU Unsupported PCH hmm.. mismatch sizes: 3100 vs 20 It was still possible to start the previous installation, selecting "Macintosh" as opposed to "macOS Install" in Clover.
      So I created a flash drive with Clover 4910 and put only my config.xml, SSDT-L440.aml, the updated Lilu.kext and WhateverGreen.kext. And I decided to test VirtualSMC instead of FakeSMC.kext.
      With this I was able to install update 10.14.4. After installation I can boot normally, even with FakeSMC.kext that already in /Library/Extensions.
      I do not know what exactly happened, but now works everything like was previously.
       


       
       
      System update 10.14.5
       
      - Updated Clover to 4934.
      - Updated Lilu.kext to 1.3.6 and WhateverGreen to 1.2.9.
      - After first reboot the update progress stoped again (like 10.14.4 update) with:
      GTrace synchronization point 4 Unsupported CPU Unsupported PCH hmm.. mismatch sizes: 3100 vs 20 It was still possible to start the previous installation, selecting "Macintosh" as opposed to "macOS Install" in Clover.
      I decided to rollback to FakeSMC.kext but this time with the version of HWSensors 3. Link above.
      With this I was able to install update 10.14.5. After installation I can boot normally.
       

       
       

      And last but not least
       
      I would like to thank the following community members, by making these dream possible:
      @crushers, @snatch, @apianti, @blackosx, @blusseau, @dmazar, @slice2009, @autumnrain, @phpdev32, @EMlyDinEsH, @RehabMan, @Scellow, @mitch_de, @Shailua, @Andy Vandijck, @maxfierke, @ArturXXX, @LexHimself, @brumas, @Shiki and all others members involved directly or indirectly.
       
       
       
       
       
       
      32MB_DRAM-prealloc_config.plist.zip
      128MB_DRAM-prealloc_config.plist.zip
      SSDT-L440.aml
      VoodooHDA.kext.zip
      AppleHDADisabler.kext.zip
    • By kushwavez
      Hi!
       
      I have everything working on my Acer notebook, except FN + Brightness keys using VoodoPS2Controller.kext
       
      Now the brightness keys are "Pause+Break = Brightness Up" and "Fn+F12 = Brightness Down" working right now but they are not the actual keys. 
      The actual brightness keys are "Fn+RightArrow = Brightness Up" and "Fn+LeftArrow = Brightness Down" but they are not working.
      The problem is I don't know the codes.
      Installed ioio and enabled debugging to console:
      Pause/Break is generating: "ApplePS2Keyboard: sending key e045=71" which upper the brightness
      Fn+F12 is generating: "ApplePS2Keyboard: sending key 46=6b" which lower the brightness
      Fn+RightArrow/LeftArrow generates nothing.
      Keyboard attached to PS2K
      Then I used rehabman's guide to enable ACPIDebugging, Installed kext to L/E, Debug methods (Instrument EC Queries, Add DSDT Debug Methods) to DSDT, but there are no codes generated to the log.
       
      Attaching debug folder.
      Also I don't know if it will help, but on Linux I got a code from decreasing/rising brightness with Fn+Left/RightArrow keys:
      Fn+RightArrow: "0xe0 0x54 0xe0 0xd4"
      Fn+Left: "0xe0 0x4c 0xe0 0xcc"
       
      Also I love using EMlyDinEsH's SmartTouchpad Driver, with that all of my Fn keys are working except Brigtness keys ofc. If there are any fix I would like to use that with the smarttouchpad driver. 
      EMlyDinEsH's SmartTouchpad Driver: https://osxlatitude.com/forums/topic/1948-elan-focaltech-and-synaptics-smart-touchpad-driver-mac-os-x/
       
      Specs in my signature. 
      Please help me fix this very last issue on my acer.
       
      debug_4751.zip
    • By Angelo_
      Hi, I followed the rehabman guide (linked in the vanilla guide on the side of r/Hackintosh, not sure if I can link it) for laptops for my yoga 730ILW13 with an 8265u, Conexant 11870, 8gb of ram, 13.3" fhd and I found that upon booting the installer usb I get this weird issue where the screen displays what it should but the screen is incredibly dim (though it was off before using a flashlight on it) and it flashes every few seconds for a few milliseconds to the correct brightness, I used the plist for hd615-650 (including my 620), not quite sure what could be the culprit, first time hackintoshing a laptop so it might be a stupid brightness kext I forgot but didn't find any in that post or in this forum :c 
      Attached the clover zip so that anyone with more experience than me might give an idea in what could be a way to fix this.
      Thank you in advance 
       
       
       
      CLOVER.zip
    • By SepehrM
      I'm trying to install High Sierra 10.13.3 on an ASUS N552VW laptop, and I get stuck after this message:
      "could not recover SATA HDD after 5 attempts, terminating" 
      And some other warnings afterwards.
      Specs:
      CPU: Intel Skylake 6700HQ 2.6GHz
      RAM: 16GB DDR4
      2TB HDD + 128GB SSD
      GPU: Intel HD Graphics 530 + Nvidia GTX960m
      I'm installing using a 16GB USB3 flash drive on one of HDD volumes (UEFI Mode)
       
      I uploaded the verbose log and clover config.plist
      config-new.plist

    • By Leinad12
      Olá a todos.
      Estou com o macOS Mojave instalado num Lenovo 305 (com um i3 5005 e uma HD 5500) porém tou com um problema.
      Sempre que o computador entra em pausa (Sleep) não consigo voltar a "acordar" (Wake).
      Alguém pode me ajudar pf?
×