Jump to content
K0gen

Lenovo ThinkPad T420 with UEFI Only

4,841 posts in this topic

Recommended Posts

By OEM folder I mean (in Your case):

EFI/OEM/42914BG

 

So your custom dsdt goes to:

EFI/OEM/42914BG/ACPI/patched

 

And kexts you use goes to

EFI/OEM/42914BG/kexts/10.8/

 

look inside to see how my old OEM folder looks like.

 

EFI Shell is much like an good old DOS in use + all the UNIX like commands.

So to get you started find your EFI drive (it is listed on the beginning) and if it's fs0 just type:

fs0:[ENTER]

rest is just like in any normal shell, use commands like: ls, mv, cp, edit, etc.

 

OK, thanks a lot, I have a better understanding now of the folders hierarchy. I'll go step by step an wont rush to get a hold of what am I actually doing :) I'll report back

Share this post


Link to post
Share on other sites
Advertisement

I tried many things and finally, with everything clean, after placing your dsdt file and your AppleHDA.kext I got sound, however after reboot it went away, I'm lost here, why would that happen? I reboot several times but sound is again gone for good...

 

How did you compile that dsdt? I tried with dsdt editor but didn't get any results. I'm trying to learn here ;)

 

Working with OEM and the shell is so much easy now, just delete the misbehaving file and continue testing, thank you for the advice.

 

Pasting the code on config.plist for USB 3.0 causes a KP, here's the screen:

 

post-36060-0-63306400-1362165807_thumb.jpg

 

I'll look around for more information.

Share this post


Link to post
Share on other sites

Hi, Kogen. First of all, thank you so much for your work. This is my first time using OSX and it's all thank to you! I've been busy these past days with my t420 (OEM 4236) until I finally got it up and running, with sleep, sound, wifi via usb adapter and all!

Well, that was the good part. The bad part is that, due to stubborn nature, I then erased the disk and reinstalled it again from scratch to check whether I had understood or not (I know, I know). As it turns out, I didn't, so I don't have sound at all. I've tried everything, starting with the file you mentioned in post #30, to no avail.

 

So I turn to you. Attached you'll find my darwin dump; I'd be very grateful if you could take a look and maybe help me.

DarwinDumper_2.6.5_Lenovo_ML_manueljaime.zip

Edited by manueljaime

Share this post


Link to post
Share on other sites

I tried many things and finally, with everything clean, after placing your dsdt file and your AppleHDA.kext I got sound, however after reboot it went away, I'm lost here, why would that happen? I reboot several times but sound is again gone for good...

 

How did you compile that dsdt? I tried with dsdt editor but didn't get any results. I'm trying to learn here

 

Working with OEM and the shell is so much easy now, just delete the misbehaving file and continue testing, thank you for the advice.

 

Pasting the code on config.plist for USB 3.0 causes a KP, here's the screen:

 

post-36060-0-63306400-1362165807_thumb.jpg

 

I'll look around for more information.

The missing sound after reboot is strange... wait.

I have totally forgot to mention about the rc scripts files in etc. rc.scripts.zip Just place them in /etc reboot and check if this will help (run myFix just in case)

 

I have used DSDT Editor with the latest iasl compiller (you can search forum for the latest binary or compile one from sources)

 

Send/Share your config fille - I think something is not right.

 

Hi, Kogen. First of all, thank you so much for your work. This is my first time using OSX and it's all thank to you! I've been busy these past days with my t420 (OEM 4236) until I finally got it up and running, with sleep, sound, wifi via usb adapter and all!

Well, that was the good part. The bad part is that, due to stubborn nature, I then erased the disk and reinstalled it again from scratch to check whether I had understood or not (I know, I know). As it turns out, I didn't, so I don't have sound at all. I've tried everything, starting with the file you mentioned in post #30, to no avail.

 

So I turn to you. Attached you'll find my darwin dump; I'd be very grateful if you could take a look and maybe help me.

From what I see you are not using patched DSDT (I see no modifications) that is why the modified AppleHDA.kext is not working. For this kext to work you need to have Device (HDEF) defined like this in your DSDT:


       Device (HDEF)
           {
               Name (_ADR, 0x001B0000)  // _ADR: Address
               Name (_S3D, 0x03)  // _S3D: S3 Device State
               Name (RID, Zero)
               Name (_PRW, Package (0x02)  // _PRW: Power Resources for Wake
               {
                   0x0D,
                   0x04
               })
               Method (_PSW, 1, NotSerialized)  // _PSW: Power State Wake
               {
                   Noop
               }
               Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
               {
                   Store (Package (0x0A)
                       {
                           "codec-id",
                           Buffer (0x04)
                           {
                                0x6E, 0x50, 0xF1, 0x14
                           },
                           "layout-id",
                           Buffer (0x04)
                           {
                                0x0C, 0x00, 0x00, 0x00
                           },
                           "PinConfigurations",
                           Buffer (Zero) {},
                           "hda-gfx",
                           Buffer (0x0A)
                           {
                               "onboard-2"
                           },
                           "device-type",
                           Buffer (0x11)
                           {
                               "Conexant CX20590"
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

 

 

The easy route for you is to try my DSDT from #21 but remember to edit the DualLink (for LowRes) from 01 to 00.

Good luck.

Edited by Kogen Mantis

Share this post


Link to post
Share on other sites

From what I see you are not using patched DSDT (I see no modifications) that is why the modified AppleHDA.kext is not working. For this kext to work you need to have Device (HDEF) defined like this in your DSDT:


Device (HDEF)
{
Name (_ADR, 0x001B0000) // _ADR: Address
Name (_S3D, 0x03) // _S3D: S3 Device State
Name (RID, Zero)
Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
{
0x0D,
0x04
})
Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake
{
Noop
}
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Store (Package (0x0A)
{
"codec-id",
Buffer (0x04)
{
0x6E, 0x50, 0xF1, 0x14
},
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},
"PinConfigurations",
Buffer (Zero) {},
"hda-gfx",
Buffer (0x0A)
{
"onboard-2"
},
"device-type",
Buffer (0x11)
{
"Conexant CX20590"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}

 

 

The easy route for you is to try my DSDT from #21 but remember to edit the DualLink (for LowRes) from 01 to 00.

Good luck.

 

Thanks! I ended up using raffitaffy's dsdt from post #51 and now I have sound! I will continue poking and will surely come back with more questions! :angel_not:

Share this post


Link to post
Share on other sites

The missing sound after reboot is strange... wait.

I have totally forgot to mention about the rc scripts files in etc. rc.scripts.zip Just place them in /etc reboot and check if this will help (run myFix just in case)

 

I have used DSDT Editor with the latest iasl compiller (you can search forum for the latest binary or compile one from sources)

 

Send/Share your config fille - I think something is not right.

 

 

OK, placing the rc scripts in /etc made the volume controls appear on the top bar but still no sound. I have, as of now

 

this AppleHDA.kext AppleHDA.kext.zip on the extra/extensions, NO on the kexts folder of OEM folder (I also tried placing it there)

 

this my config.plist on the OEM folder: config.plist.zip

 

and this is the dsdt file (the one you created): dsdt.aml.zip

 

When booting I managed to read this error:

 

Sound assertion " != setupHost Interrupt ()" failed inAppleHDAController at line 441 goto Exit

 

Which obviously means nothing to me :)

 

big thanks!

Share this post


Link to post
Share on other sites

 

 

OK, placing the rc scripts in /etc made the volume controls appear on the top bar but still no sound. I have, as of now

 

this AppleHDA.kext AppleHDA.kext.zip on the extra/extensions, NO on the kexts folder of OEM folder (I also tried placing it there)

 

this my config.plist on the OEM folder: config.plist.zip

 

and this is the dsdt file (the one you created): dsdt.aml.zip

 

When booting I managed to read this error:

 

Sound assertion " != setupHost Interrupt ()" failed inAppleHDAController at line 441 goto Exit

 

Which obviously means nothing to me :)

 

big thanks!

You are using wrong AppleHDA.kext. Try this one:

T420_CX20590_10.8.2_AppleHDA.kext.zip

 

And here is the Clover config with USB3 support and TRIM for SSD drives. (always make a backup of an old one just in case of KP):

Lenovo_Clover-USB3_TRIM_Patch.config.plist.zip

Edited by Kogen Mantis

Share this post


Link to post
Share on other sites

You are using wrong AppleHDA.kext. Try this one:

T420_CX20590_10.8.2_AppleHDA.kext.zip

 

And here is the Clover config with USB3 support and TRIM for SSD drives. (always make a backup of an old one just in case of KP):

Lenovo_Clover-USB3_TRIM_Patch.config.plist.zip

 

I really thank you for your effort. I'm trying to find a pattern here but I'm unable, the sound sometimes appears but it disappears after reboot. I've tried doing it in parts, installing and uninstalling the dsdt file, the AppleHDA.kext you provided, and also triying to modify a basic config.plist by adding the string HDAInjection set to NO. I've also tried a dsdt file compiled by myself with all errors fixed. The system boots with no KP but the sound comes and go. I'm unable to reproduce what makes the sound disappear. As of now is again gone for good.

 

I've tried using the config file you provided but I get KP. I'm sorry for asking so many questions, I'm trying to find info around but I get nothing. I'm thinking of a clean install but everything looks clean enough :)

 

EDIT: Just one question: I understand the config.plist I have on EFI/ is overruled by the one on OEM/4291BG/ isn't it?

Edited by Espamac

Share this post


Link to post
Share on other sites

OK, more info. I find this really intriguing to be honest. To change I tried with the files from post #51. And again it worked, this time even lasted for 2 reboots. And again sound is gone. After the second successful reboot you could read on the kernel boot messages "Sound assertion in AppleHDACodecGeneric at line 360" repeated 3 times. I think I've seen than message the other times I had a successful boot with sound. After that I always get the same kernel boot message: "Sound assertion in AppleHDAController at line 463" and no sound at all.

 

I have the feeling this is not related to the kexts or the dsdt files since they are able at first boot to get the sound working. Something changes after reboot, but I don't know what is it. Even more puzzling is that if I paste again the exact same kexts and dsdt files that provided a successful boot with sound and run myHack, sound no longer works. They only work once (????). So something is changed that prevents those files to work again, but I don't know what.

Share this post


Link to post
Share on other sites

@Kogen - very cool stuff. nice thread. i may test this approach out!

 

@espamac - does your x220 have cx20590 audio chip or cx20672? if it is not cx20590 - this may explain why the kext above wont work. (the zip posted here seems to be the one i packaged up and posted for manwe150's thread on T420 - which has a CX20590 chip/codec)

should easy to fix with some binary hacking though...

Share this post


Link to post
Share on other sites

Hi everyone - my T420 died on me... so it is going to be a little break for me in case of actually testing something out. I was about to release the next Beta3 of the EFI Pack but all that went to ... bip!

 

The good: The warranty will cover motherboard replacement.

 

The bad: Turns out that my LCD Panel was also somehow mysteriously broken and this mechanical failure won't be covered by the warranty - so I'm out of luck.

 

The funny: I guess I will have the time to finally test the VGA out or use AirMirroring :)

Share this post


Link to post
Share on other sites

@ Kogen So sorry about that!

 

@ tluck, thanks a lot, my codec is actually cx20672 so I guess I'll have to patch the AppleHDA.kext myself. No idea of how to do that though ;)

 

It looks like I need the device and vendor ID of my sound card. Can I get them with the .app SystemInfo? I don't have access to PC or Linux right now.

I've read here that Clover can patch "on-the-fly" the kext but I would need the hexadecimal string to be substituted once I've got my device id hex, this being a example:

 

<key>

KextsToPatch

</key>

 

<dict>

<key>0</key>

<dict>

<key>Name</key>

<string>AppleHDA</string>

<key>Find</key>

<data>hBlNEQ==</data>

<key>Replace</key>

<data>BXYdEQ==</data>

</dict>

 

 

 

</dict>

 

I can figure out how to get my device ID hex. But how do I get the original string to be substituted? Is it always the same? (I guess no, but it doesn't hurt asking :))

Share this post


Link to post
Share on other sites

@espamac - this might work? i found the HDA stuff to be pretty tricky. i honestly cant remember how it got the chipset id. sorry (probably got it from dsdt dump on windows or manwe150 dsdt?!) i did use bcc9's bin patching script to patch the binary. but before that at one point i loaded ubuntu to dump a bunch of things (which included the codec ID) and to get the pins-outs etc.

 

Codec: Conexant CX20590

Address: 0

AFG Function Id: 0x1 (unsol 1)

Vendor Id: 0x14f1506e << this is the codec ID

 

 

there are at least other 3 files that have to match the dsdt.

anyway, i posted an outline of what i did here for the CX20590 on T420 - not pretty:

http://www.insanelymac.com/forum/topic/268280-guide-thinkpad-t420-with-mountain-lion/page__st__160#entry1866235

 

it seems like others are using voodoohda - or someone patched AppleHDA for x220? i didnt spend much time on this site... but they may have made it work by making it think it had a cx20590 via dsdt etc.

http://forum.thinkpads.com/viewtopic.php?f=32&t=102098

Share this post


Link to post
Share on other sites

@espamac - this might work? i found the HDA stuff to be pretty tricky. i honestly cant remember how it got the chipset id. sorry (probably got it from dsdt dump on windows or manwe150 dsdt?!) i did use bcc9's bin patching script to patch the binary. but before that at one point i loaded ubuntu to dump a bunch of things (which included the codec ID) and to get the pins-outs etc.

 

Codec: Conexant CX20590

Address: 0

AFG Function Id: 0x1 (unsol 1)

Vendor Id: 0x14f1506e << this is the codec ID

 

 

there are at least other 3 files that have to match the dsdt.

anyway, i posted an outline of what i did here for the CX20590 on T420 - not pretty:

http://www.insanelym...60#entry1866235

 

it seems like others are using voodoohda - or someone patched AppleHDA for x220? i didnt spend much time on this site... but they may have made it work by making it think it had a cx20590 via dsdt etc.

http://forum.thinkpa...p?f=32&t=102098

 

Thanks a lot tluck. I'm trying but still can't get any sound. I'm thinking of using VodooHDA, this is driving me nuts :)

 

I've used all the modified kexts for the x220 used on the thinkpad forums to no avail. The most annoying thing is getting on and off randomly. I've done a clean install and have started from scratch again. For now I have no sound at all :D I'll try step by step to see if I get anywhere. Specs of my computer says

cx20672

but the codec dump from linux said the codec was

CX20590

so I'm sticking to that.

 

I've read extracting the dsdt from dsdt editor is worse than doing it from ubuntu, any idea why? I dumped the codec audio from ubuntu live usb but the dsdt doesn't show up. It seems its location has been changed, I'm using ubuntu 12.10. I tried then installing ubuntu on a different partition (64 bit, efi boot, etc...) but I'm cannot boot. At this point I went back to OS X I'll try to work this out without Ubuntu to make it less time consuming. I have enough trouble with the sound to add to that dual booting :P

 

Main issues I want to fix: sound, sleep and screen brightness (it's gonna blind me at night...)

Secondary: bluetooth, usb 3.0 and

Share this post


Link to post
Share on other sites

@espamac

 

sure voodoohda may be your best way to get audio running. curious as to what was the codec id (hex) from the linux dump for your audio? and yeah i just booted ubuntu live from a USB to get the info i needed. i used a windows tool to get the raw dsdt info - but i ended up using manwe150's dsdt which had a number of essential edits - especially the ehci stuff for sleep and display definition - which then provides a brightness knob. Note: you will probably need to use the rollback 10.6.8 AppleACPIPlatform.kext for some disks to recover from sleep. anyway, certainly are lots of opinions and ways to get at the dsdt info.

Share this post


Link to post
Share on other sites

@espamac -

 

i found this snippet from a dsdt - which may help you define your audio board.

 

 


            Device (HDEF)
            { 
                Name (_ADR, 0x001B0000)
                Name (_S3D, 0x03)
                Name (RID, Zero)
                Name (_PRW, Package (0x02)
                { 
                    0x0D,
                    0x04
                })
                Method (_PSW, 1, NotSerialized)
                { 
                    Noop
                } 
                Method (_DSM, 4, NotSerialized)
                { 
                    Store (Package (0x06)
                        { 
                            "layout-id",
                            Buffer (0x04)
                            { 
                                0x0C, 0x00, 0x00, 0x00
                            },
                            "device-type",
                            Buffer (0x11)
                            { 
                                "Conexant 20672"
                            },
                            "PinConfigurations",
                            Buffer (0x28)
                            { 
                                /* 0000 */    0x40, 0x10, 0x21, 0x00, 0x50, 0x90, 0xA1, 0x61,
                                /* 0008 */    0x60, 0x10, 0xA1, 0x00, 0x10, 0x40, 0x21, 0x61,
                                /* 0010 */    0xF0, 0x00, 0xF0, 0x40, 0x20, 0x00, 0xF0, 0x40,
                                /* 0018 */    0x30, 0x00, 0x17, 0x90, 0x80, 0x00, 0xF0, 0x40,
                                /* 0020 */    0x90, 0x00, 0xF0, 0x40, 0x70, 0x00, 0xA6, 0x90
                            } 
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                } 
            } 

Share this post


Link to post
Share on other sites

Hi! I've been building hackintoshes off and on for a while now, but never have posted to this forum. I'm still consider myself a newbie. First of all, I'd like to thank Kogen Mantis and everyone else for all their hard work, after reading through this thread I'm able to get my T420 up and running pretty good! I spent all evening yesterday trying to fix one issue though: my sound doesn't work.

 

It looks like I'm in the same boat as espamac where I'm trying to install 10.8.2 but have a Conexant 20672. I've gotten sound to work exactly once, and this was after running Kext Wizard to clean up permissions and caches on both extra and /s/l/e. After I rebooted, the sound never came back.

 

I always see these entries in the syslog:

 

 

Mar 17 20:31:10 localhost kernel[0]: Kext com.apple.driver.AppleHDAController - library kext com.apple.iokit.IOGraphicsFamily not found.

Mar 17 20:31:10 localhost kernel[0]: Can't load kext com.apple.driver.AppleHDAController - failed to resolve library dependencies.

Mar 17 20:31:10 localhost kernel[0]: Kext com.apple.driver.AppleHDAController failed to load (0xdc00800e).

Mar 17 20:31:10 localhost kernel[0]: Failed to load kext com.apple.driver.AppleHDAController (error 0xdc00800e).

Mar 17 20:31:10 localhost kernel[0]: Couldn't alloc class "AppleHDAController"

 

and

 

 

Mar 17 20:31:12 Dougs-MacBook-Pro kernel[0]: Sound assertion "0 != setupHostInterrupt ()" failed in AppleHDAController at line 441 goto Exit

Mar 17 20:31:12 Dougs-MacBook-Pro kernel[0]: Sound assertion "!fProvider->open ( this )" failed in AppleHDAController at line 355 goto Exit

 

I've tried various DSTS edits, including the one above along with the AppleHDA.kext in post #83

 

Not sure if I'm doing something wrong or what. But I'm willing to try more options if anyone has an idea.

 

Here's some more info:

i5-2520M 2.50ghz

bios 1.43

16 gb ram.

OSX installed in 2nd hard drive installed in the optical bay

Audio: Name = Conexant 20672 SmartAduio HD: VEN_14F1 DEV_506E

 

Also, I was wondering if anyone else had issues with graphical artifacts showing up every once in awhile? Also, about 25% of the time when I boot, it'll boot into an ugly grey screen with spikey lines. I can fix the graphic artifacts by lowering the resolution and then raising it again, and usually the grey screen goes away on the next boot.

 

Thanks again for your help!!! I've attached the DarwinDumperReports

DarwinDumperReports.zip

Share this post


Link to post
Share on other sites

Thanks everyone and esp. to Kogen for excellent work. I have a t420 which is running Windows 7. My questions are

 

1) Do I need to re-install Win 7 if I want to dual boot?

 

2) Will I be able to use extended external monitors. VGA or DVI or both?

Share this post


Link to post
Share on other sites

@lostvampire

 

1) this approach as far as i know know is about moving away from MBR to EFI formatted disks. i plan to move over from chameleon given the extensive list of features! see this for more details on why:

http://www.osx86.net/guides-tutorials/19291-guide-clover-efi-bootloader.html

- does support dual boot

 

2) yes - there is a method to provide VGA support = there are a couple of threads on patching the Kext (AppleIntelSNBGraphicsFB.kext). i recently packaged up a kext pack for T420 on a parallel thread. see this link for discussion of this topic as well as a 10.8.3 kext pack for T420 including support for VGA and DVI (entry 238)

http://www.insanelymac.com/forum/topic/268280-guide-thinkpad-t420-with-mountain-lion/page__st__220#entry1898288

Share this post


Link to post
Share on other sites

@cayspekko I've tried a caddy for my optical bay, and switched back to optical. Issue is that now and then the drive gets removed from the system, I think it's because my caddy does not have such a handy locking system the original optical drive has. Did you use an original caddy or third party?

 

@kogen mantis, I'm still working on OSX with this system and it works like a charm. Only issues I still try to resolve is sleep problems (the one i've mentioned before, sometimes it goes to sleep well, and sometimes it gets stuck with flickering sleep light and heavy blowing fan) and my VGA out does not work, but that is not a big issue :) battery goes much longer then with Windows by the way

Share this post


Link to post
Share on other sites

Hey! I got sound to work! I don't know if this will help anyone but this what I did: (which may or may not be everything since I tried so many different approaches!) So apart from the tutorial in post #1 I did the following:

 

a. followed post #80 and installed Kogen's rc.scripts I don't know if this is necessary

b. I used raffitaffy's kexts from post #51 (but not the dtst.aml). I put them in an Extra/Extensions folder and used myHack to install them.

c. I used the dtst.aml from Kogen's post #32 (put it in the EFI/OEM/[mylenovonumber]/patched folder)

 

Thanks again everyone for all your great help!!!

 

@cayspekko I've tried a caddy for my optical bay, and switched back to optical. Issue is that now and then the drive gets removed from the system, I think it's because my caddy does not have such a handy locking system the original optical drive has. Did you use an original caddy or third party?

 

I use the official hdd caddy from lenovo to use in the optical bay. I have windows installed on ssd in the primary hd slot. I did have issues trying to install iatkos using the optical drive plugged into a third pary optical drive to usb caddy but gave that up and used a vmware image to create an install usb.

Share this post


Link to post
Share on other sites

Hey!

 

Thanks to Kogen's awesome explanations I finally moved from 10.7.4 to 10.8.3. However, I was hoping that upgrading would help to get rid of some problems I had with 10.7.4, but unfortunately I seem to still have issues:

 

- sometimes sleep / wake hangs, it looks like it writes the hibernation file, and when the LED is supposed to blink slowly, it starts to blink fast and the FAN goes loud and the PC hangs... nothing I can do then just reboot.

 

- I noticed that sometimes when I push the speaker off button (vs lowering the volume all the way to the button) the system hangs. no fan noise here and reboot needed too.

 

- Finally, sometimes when waking after sleep the track/touchpad is not working. Keyboard works but not the trackpad.

 

I tried to find something in the logs, but all I could find was a sound card error just after wake:

 

31.03.13 00:45:52,000 kernel[0]: No interval found for . Using 8000000
31.03.13 00:45:52,000 kernel[0]: RTC: PowerByCalendarDate setting ignored
31.03.13 00:45:52,000 kernel[0]: Previous Sleep Cause: 5
31.03.13 00:45:52,000 kernel[0]: The USB device HubDevice (Port 1 of Hub at 0x1a000000) may have caused a wake by issuing a remote wakeup (2)
31.03.13 00:45:52,000 kernel[0]: 758.600117: ATHR: unknown locale: 60
31.03.13 00:45:52,000 kernel[0]: 758.625142: ATHR: unknown locale: 60
31.03.13 00:45:52,000 kernel[0]: 758.626024: ATHR: unknown locale: 60
31.03.13 00:45:52,000 kernel[0]: en1: 802.11d country code set to 'DE '.
31.03.13 00:45:52,000 kernel[0]: 758.752203: ATHR: unknown locale: 60
31.03.13 00:45:52,000 kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
31.03.13 00:45:52,000 kernel[0]: [0xffffff8016994600](0)/(5) Device not responding
31.03.13 00:45:52,000 kernel[0]: Sound assertion "0 == fAudioEngineArray" failed in AppleHDADriver at line 3163 goto Exit
31.03.13 00:45:52,000 kernel[0]: USBMSC Identifier (non-unique): 001CC0EC346CBB40971B022B 0x951 0x162d 0x100
31.03.13 00:45:54,910 com.apple.launchd[1]: (com.apple.qtkittrustedmoviesservice[432]) Could not terminate job: 3: No such process
31.03.13 00:45:54,910 com.apple.launchd[1]: (com.apple.qtkittrustedmoviesservice[432]) Using fallback option to terminate job...
31.03.13 00:45:55,000 kernel[0]: en1: BSSID changed to 24:65:11:6d:6e:7c
31.03.13 00:45:55,000 kernel[0]: en1::IO80211Interface::postMessage bssid changed
31.03.13 00:45:55,000 kernel[0]: AirPort: Link Up on en1
31.03.13 00:45:55,000 kernel[0]: en1: BSSID changed to 24:65:11:6d:6e:7c
31.03.13 00:45:55,000 kernel[0]: en1::IO80211Interface::postMessage bssid changed
31.03.13 00:45:55,000 kernel[0]: 761.819746: apple80211Request[10310] Unsupported ioctl 111
31.03.13 00:45:55,000 kernel[0]: AirPort: RSN handshake complete on en1

 

BTW, I am on a X220. I've patched my DSDT according to this guide: http://forum.thinkpads.com/viewtopic.php?f=32&t=102098 (linked from http://forum.thinkpads.com/viewtopic.php?f=32&t=105334).

 

Any ideas?

Share this post


Link to post
Share on other sites

Can you outline the following things in your first post?

 

- Which model(s) of T420 / T420 s is this working for ? Has been tested? Should work for?

- What components are working/ not working/ working natively/ need kext/ drivers/ hacks?

 

I am considering buying a T420 or T420s but I'd like clarity on which models/ components are working etc.

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

  • Similar Content

    • By nijhawank
      Hi friends,
       
      Recently I had been looking for ways to control the battery charging on my hackintosh which is a Thinkpad T460 with dual batteries. On Windows there's a program Lenovo Vantage that lets you set the Battery Charging Start and Stop Thresholds. These thresholds continue to apply even when the laptop is turned off as these thresholds are managed by the embedded controller, so from that perspective its a set once and forget.
       
      But there was one more thing that was frustrating me. By default Lenovo uses the external battery first and once its almost drained (less than 5%), it switches to the internal battery.
      Although the Charging Start and Stop Limits are a good way to increase the life span of Lithium batteries (by lowering the max charge limit), the complete drainage of the external battery prior to switching to internal is not a good idea.
      Fortunately Lenovo EC provide options to force drain (use) a battery (even with the ac adapter connected) thereby allowing to manually switch to the internal one, however these are manual controls. In Linux, there's a program tpacpi-bat that runs as a daemon and performs an efficient management of the dual batteries such as switching to internal battery when the external one reaches a configurable lower limit. However, this is Linux only and uses the ACPI interface.
       
      I did some research to understand my options in macOS. I found RehabMan's ACPIDebug.kext and its ability (using another RehabMan's tool ioio) to call a function defined in the DSDT. With information collected tpacpi-bat and ACPIDebug.kext, I have created a dirty version. 
       
      So this is how you use it...
      1. Use the attached SSDT-RMDT. As this was just a rough work to validate my understanding, I just did a hard coding for the first battery. 
      2. Install ACPIDebug.kext
      3. After the reboot, you can trigger the following battery operations...
      a. Set Battery Charge Start Threshold
      ioio -s org_rehabman_ACPIDebug dbg1 <start-percent>
      a. Set Battery Charge Stop Threshold
      ioio -s org_rehabman_ACPIDebug dbg2 <stop-percent>
      a. Force Discharge
      ioio -s org_rehabman_ACPIDebug dbg3 <0|1> //0 to disable, 1 to enable
      a. Inhibit battery charging for specified number of minutes
      ioio -s org_rehabman_ACPIDebug dbg4 <minutes> //0 to disable
      a. View Battery Info
      ioio -s org_rehabman_ACPIDebug dbg5 <anything> //pass anything, its ignored
      a. View Battery Charge Start/Stop Thresholds
      ioio -s org_rehabman_ACPIDebug dbg0 <anything> //pass anything, its ignored
       
      You can see the output using the Log Viewer Console (filter on ACPIDebug). You'd see something like this...
      default    19:34:35.175265 -0800    kernel    ACPIDebug: "View Thresholds"
      default    19:34:35.176349 -0800    kernel    ACPIDebug: { "Charge Start Threshold=", 0x28, }
      default    19:34:35.176489 -0800    kernel    ACPIDebug: { "Charge Stop  Threshold=", 0x3c, }
      default    21:07:36.023627 -0800    kernel    ACPIDebug: "Battery Info"
      default    21:07:36.032040 -0800    kernel    ACPIDebug: { "Conversion (mW[h] -> mA[h]) Required?=", 0x0, }
      default    21:07:36.032323 -0800    kernel    ACPIDebug: { "Design Voltage=", 0x2a30, }
      default    21:07:36.032519 -0800    kernel    ACPIDebug: { "Design Capacity=", 0xdb60, }
      default    21:07:36.032772 -0800    kernel    ACPIDebug: { "Last Full Capacity=", 0x6a9a, }
      default    21:07:36.033783 -0800    kernel    ACPIDebug: { "Remaining Capacity=", 0x2e7c, }
      default    21:07:36.033968 -0800    kernel    ACPIDebug: { "Remaining Percent=", 0x2b, }
      default    21:11:19.319090 -0800    kernel    ACPIDebug: { "Charge Stop Threshold=", 0x5a, }
      default    21:11:30.722450 -0800    kernel    ACPIDebug: { "Charge Start Threshold=", 0x50, }
      default    23:34:39.071335 -0800    kernel    ACPIDebug: "Force Discharge=Enabled"
      default    23:34:59.427494 -0800    kernel    ACPIDebug: "Force Discharge=Disabled"
      default    23:35:08.475281 -0800    kernel    ACPIDebug: { "Inhibit Charge Enabled (in Minutes)=", 0xf, }
      default    23:35:12.971671 -0800    kernel    ACPIDebug: "Inhibit Charge=Disabled"
       
      At this time, I just hard-coded for the BAT0 to quickly validate my understanding and its working well. 
       
      What's next? As I understand (and please correct me if I'm wrong), I can't return values with ACPIDebug.kext along with ioio, plus this is also all very hacky.
      To be able to create a program that reads the current remaining capacity (percent) and switches control to internal batter, I need a way to return this info. Currently I'm just outputting it to the logs.
       
      My thinking is to modify ACPIDebug.kext or one of these other kexts (ACPISensors.kext) to add code for above and then create a program to optimally manage the operation of my two batteries.
      However, I'm very new to all of this and will take some time.
       
      In the meanwhile, here is it for your playing pleasures. Please be aware that my SSDT-RMDT is currently hard-coded for BAT0 and doesn't have all the validations. 
      Credits to RehabMan, tpacpi-bat, and other resources on internet.
       
      Thanks all.
       
       
      SSDT-RMDT.dsl
    • By kingoffright
      Dear all,
       
      I have a external harddisk about 500GB, I installed the clover into it and the harddisk is GPT format, below is the 3 partitions details:
      FS01: EFI - disk0s1 - fat32
      FS02: install mac  image - disk0s2 -  hfs+
      FS03: install windows 10 - disk0s3 - fat32
       
      I can use this external harddisk to install Mac without issue, I use below steps to install windows 10
      enter the FS03:
      cd to efi/boot/ and excuete bootx64.efi
      after pop up the windows install screen, i click next and it shows error 'A media driver your computer needs is missing...' and the installation can not go any further.
      Firstly I use ultraiso to write the windows 10 image to a flash disk and no issue to start install window 10 so the image is working fine. Since I dont know how to write
      a wiindow installation image into harddisk partition, I used winrar extra all the files into disk0s3, am I missing some steps or actually clover not support to install windows
      by partitions, apprecating any helps.
       
    • By kushwavez
      Acer Aspire V15 V5-591G - Catalina 10.15.1
      This post will no longer updated, go for the osxlatitude link for further updates
      Original and updated link:
      https://osxlatitude.com/forums/topic/11355-acer-aspire-v-15-v5-591g-catalina-windows-10/
      (Note: mine is 55TU version, but the bootpack will work fine with another versions of 591G, for example: V5-591G-71K2, -764Z, -59PU, etc.)
      Specifications:
      - Motherboard: USOPP_SLS (Skylake-H PCH)
      - BIOS: Insyde Corp. v 1.15
      - CPU: Intel Core i5-6300HQ 2.3 GHz (Skylake)
      - GPU: NVIDIA GeForce GTX 950M 2 GB (Optimus) & Intel HD Graphics 530
      - RAM: SK hynix 4 GB DDR4 (Later I bought + KINGSTON 4 GB) 2133 MHz
      - WiFi + Bluetooth: Qualcomm Atheros QCNFA344A 5 GHz (Later -> Broadcom BRCM94352Z M.2 5 GHz WiFi + 4.0 Bluetooth)
      - Audio: Realtek HD Audio: ALC 255 
      - Ethernet: Realtek RTL8168/8111
      - Card Reader: Realtek USB 2.0 Card Reader (USB2.0-CRW)
      - Webcam: HD Webcam
      - HDD: TOSHIBA MQ01ACF032 320 GB HDD
      - SSD: SPCC M.2 230 GB SSD
      - Display: 1366x768 (15.6", Matte)
      - Battery: 6 cell 56Wh / 5040mAh
      - Connectors: 
      1x SD Card Reader 2x USB 3.0 (1x USB Charging), 1x USB 2.0 1x VGA 1x HDMI 1x 3.5mm microphone/audio combined jack connector 1x Ethernet (Rj-45) - Keyboard & Touchpad: Multi-Touch & Multi-gestures ELAN 501 Touchpad, Backlight Keyboard.
      Working:  
      - Wi-Fi (with BCM94352Z)
      - Bluetooth hand-off (With BCM94352Z)
      - Full Graphics enabled on HD 530: ig-platform-id: 0x191b0000 (HD 530 Mobile)
      - Display: if default colour profile is corrupted (blue is not actual blue but purplish) Use "Rec. ITU-R BT. 709-5" Color Profile (System Pref. -> Displays -> Color)
      - HDMI & VGA Outputs: AppleGraphicsDevicePolicy.kext Clover patch
      - Audio (ALC 255): (Internal Speakers, Internal Microphone, Headphone jack with AppleALC, ALCPlugFix -> layout-id=17)
      - Ethernet Realtek 8168/8111: RealtekRTL8111.kext
      - App Store, Messages, FaceTime, Siri, iCloud (native)
      - Integrated webcam (native)
      - 3.0 USB (native)
      - Touchpad and Keyboard (ELAN501): Fn keys are good, the weird thing is the Brightness key. On my keyboard it's Pause Break:Br-up, Fn+F12:Br-dwn-> To fix this try Karabiner (VoodoPS2Controller.kext), - for gestures try SmartTouchpad drivers
      - Battery info: Install ACPIBatteryManager.kext with Kext Utility or other installer.
      - Sleep Mode
      - SSD with TRIM enabled (to enable trim, open Terminal and write "sudo trimforce enable")
      Not working:
      - Original Wi-Fi (Qualcomm Atheros QCNFA344A):  unsupported, you need switch to BCM94352Z or just use a mini usb wifi dongle.
      - NVIDIA GeForce GTX 950M: Optimus not supported.
      - Card Reader: Unsupported -> Can't really fix because I don't have any SD Card at the moment, maybe can be fixed by adding Prod & Ven IDs to AppleStorageDevices.kext, I never used it anyway. name: "USB2.0-CRW" Prod ID: "0x0129" Ven ID: "0x0bda  (Realtek Semiconductor Corp.)"
      For Wi-Fi:
      - 1st method: You can choose an external USB wifi dongle (I used TP-Link Archer T1U (5GHz support), TP-Link has official macOS drivers, you just need to install it
      - 2nd and I think the best method: Replace your M.2 Qualcomm Card with a compatible BCM94352Z card (you will have hand-off Bluetooth too), just install the kexts (enabled with BrcmFirmwareRepo.kext, BrcmPatchRAM2.kext, FakePCIID.kext, FakePCIID_Broadcom_WiFi.kext, they're all in my attached zip). You could buy this card from ebay, aliexpress, or amazon
       
      Issues:
      - None
      BIOS Settings:
      - BIOS version 1.15 (irrelevant)
      - Secure Boot: Disabled
      - Touchpad: Advanced
      - Boot mode: UEFI
      Getting ready for Installation:
      - Download the Catalina install zip (bootpack & postinstall): acer_aspire_V591G-55TU_cata.zip
      Installation:
      - Create an installer with any method you know (- Mac: createinstallmedia - Windows: Transmac, Vmware, Win32diskimager)
      - Copy my Clover folder to the USB's EFI folder
      - Boot with the Installer USB
      - If you stuck in boot, reboot and in the Clover bootloader select "config_debug.cfg" -> you'll have more informations about the freeze
       
      Please open the README.rtf in my install zip for more informations about the USB Installer & Post installation!
      On Catalina the System folder is read-only, so you need to remount in rw to modify System/Library. 
      If you have a single RAM and getting panic at boot, then you need to edit the "config.plist" with these (SMBIOS->after "Version 1.0"):
      ->Edit "Frequency" and "Size" to match your RAM values
      <key>Version</key> <string>1.0</string> <key>Memory</key> <dict> <key>Channels</key> <integer>1</integer> <key>SlotCount</key> <integer>1</integer> <key>Modules</key> <array> <dict> <key>Slot</key> <integer>0</integer> <key>Size</key> <integer>8192</integer> <key>Frequency</key> <integer>2133</integer> <key>Type</key> <string>DDR4</string> </dict> </array> </dict> </dict>  
      PowerManagement  fix:
      Set HWPEnable=YES in Clover (already set), CPUFloor to "700", Frequency to "2300" and "3200"(Normal and Turbo, if you have i7-6700HQ version then it should be "2600", "3500") and "FrequencyVectors" from "0x0d000000" to "0x07000000" in "S/L/E/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources/Mac-A5C67F76ED83108C.plist", MSR _xcpm_idle Patch to KernelToPatch in Clover (If you have High Sierra, change "MatchOS" to 10.13):

      <key>KernelToPatch</key> <array> <dict> <key>Comment</key> <string>MSR 0xE2 _xcpm_idle instant reboot(c) Pike R. Alpha</string> <key>Disabled</key> <false/> <key>Find</key> <data> ILniAAAADzA= </data> <key>MatchOS</key> <string>10.14</string> <key>Replace</key> <data> ILniAAAAkJA= </data> </dict> </array> Reboot, and it's 800MHz in idle state, same on Windows.
       

      Elan SmartTouchpad
      I only use scrolling, one-, double- & tripletap
      If you want to try other gestures go to this link for more informations, options (v4.6.5) ->  DETAILS ABOUT THE SMART TOUCHPAD DRIVER FEATURES
      Fn Brightness keys not working with this, tried several things without success. With VoodoPS2Controller it's working, but you'll have no gestures (neither scrolling).
       
       
      Before updating to a new version of Catalina please update kexts (and clover if necessary) to newer versions to avoid kernel panics.
      Generate a serial number with Clover Configurator.app (open up your config.plist with CC then -> SMBIOS -> Serial Number -> Generate New)
       
      Catalina & Windows 10 Dual-Boot:
      Dual-boot clean install (on one drive), UEFI Only:
       
       Boot into your Mac installer, Create 2 partitions in GUID table (1 for Win (I used FAT32 but I think it doesn't matter what you choose), 1 for Mac),   Install Mac, boot with your USB, mount your EFI partition (use terminal or an EFI mounter app), create an EFI folder (if there is no folder), copy the CLOVER folder I attached to the EFI folder, restart,  Boot into your Win installer, Format the partition you created for Win, install.   Now, it's automatically booting into Windows. To use Clover open cmd in administrator, type:  bcdedit /set {bootmgr} path \EFI\CLOVER\CLOVERX64.efi       5.  You're done! It will booting into Clover when you start the system, and you can select Win or Mac (or another OS if installed on a 3rd partition).
       
      Dual-boot with Windows installed first (on one drive), UEFI Only:
      If you already have Windows and you don't want to lose all your data there is a hope:
      I created a video from this restore method: [Hackintosh] Dual-Boot High Sierra & Windows - when Windows already installed - no data waste - UEFI
      You need bootable Mac Installer and a full system restore image (link is in my video's description).
      (You may see errors if your EFI partition is not 200 MB)
       Boot into your Windows, resize your partition or create one for Mac.  Boot into your Mac installer and in Disk Utility format the partition you created.  Restore from image: select your full system restore image.  When it's finished restoring you just need to restart, then boot to the system with your usb.  When you successfully booted to Mac desktop, mount your EFI partition (use terminal or an EFI mounter app), open EFI, you will see there is a Microsoft folder already (don't touch that!). Copy my CLOVER folder to the EFI folder then Restart.  Now, it's automatically booting into Windows. To use Clover open cmd in administrator, type:  bcdedit /set {bootmgr} path \EFI\CLOVER\CLOVERX64.efi       7.  You're done! You can select your old Windows and your new macOS!
      (Only tried with Windows 8/8.1/10. I don't know Windows 7,etc.)
       
      IF YOU GETTING ERRORS DURING MAC RESTORE:
      - Make sure you have partitions in GPT
      - Windows using 100 MB EFI and will annoy the Mac restore. Don't worry, just ignore the errors.
       
      IF YOU GETTING ERRORS DURING WINDOWS INSTALLATION (could not be formatted, etc):
      - Make sure you have GPT partitions, and GPT (UEFI) installer, also disconnect all external storage drives (except the installer USB)
       
      IF YOU USED RESTORE METHOD THEN CAN'T MOUNT YOUR EFI PARTITION (No EFI partition found):
      - It's because your EFI is not 200 MB or not an "Apple" original EFI,  but do not worry, try another EFI mounter, or mount from terminal (I used EFI mounter v3: Getting errors, but you can mount and use without problem)
      - You also could "mount" the EFI from Windows:
      1st method: open cmd in administrator mode and type:
      diskpart list vol (Now select the "System" volume,(FAT 32) For example I select 4) sel vol 4 list part (Select System type partition, for example 2) sel part 2 assign letter=b (This will "mount" your EFI partition) Open Explorer++ or TotalCommander in administrator mode to manage EFI remove letter=b (This will "unmount" your EFI) 2nd method: open cmd in administrator mode and type:
      mountvol b: /s (This will mount your EFI) Open Explorer++ or TotalCommander in administrator mode to manage EFI mountvol b: /d (This will unmount your EFI) Thanks to all OSXLatitude members for helping me out! (Jake Lo, Hervé, Bronxteck, black.dragon74)!
      Notes:
      2019.11.03: Enabled SIP caused a lots of issues so now it's disabled -> updated bootpack
      2019.11.02: Updated to 10.15.1 -> no problem when/after installing
      2019.10.09: Installed macOS Catalina 10.15 -> Updated Clover, kexts & config.plist -> no problem so far
      2019.08.18: Updated to 10.14.6 -> no problem when/after installing
      2019.06.01: Updated to 10.14.5 -> no problem when/after installing
      2019.04.25: Optimized touchpad scrolling -> updated install files
      2019.03.30: Fixed USB 3.0 ports, fixed Bluetooth crashes after sleep -> updated bootpack
      2019.03.28: Updated to 10.14.4. Unexpected crashes while updating to 10.14.4 -> fixed by updating Clover to the latest (v4910) version. Bluetooth crashes appeared -> fixed by downgraded Brcm*.kexts. Updated bootpack.
      2019.02.24: Bluetooth crashes after sleep -> fixed, updated bootpack. 
      2019.02.22: Updated to 10.14.3. Fixed HDMI Audio by installing "FakePCIID_Intel_HDMI_Audio.kext" -> fixed freezing during boot. Fixed brightness levels by installing "AppleBacklightFixup.kext". Also updated bootpack & postinstall zip down in attachments.
      2019.01.21: Removed FakeSMC.kext, SMCHelper-64.efi, replaced by VirtualSMC.kext, VirtualSMC.efi because I got random freezes when booting system (kextd stall[0], (120s): 'AppleACPICPU' -> CPU is at 100%, fans are spinning fast), also updated bootpack in the attachments "acer_aspire_v591g-55tu_clover.zip" -> Freeze continued, brought back FakeSMC, deleted VirtualSMC (caused BT crashes).
      2019.01.18: HDMI Audio is fixed, I didn't do anything HDMI Audio is not fixed, sometimes it worked but most likely not. (no idea why)
      2018.12.09: Updated to 10.14.2 -> did without any complication
      2018.11.28: Fixed combo-jack garbage sound output by installing ALCPlugFix and CodecCommander.kext
      2018.11.01: Updated to 10.14.1 -> HDMI & VGA ports are gone again. -> Fixed by "AppleIntelSKLGraphicsFramebuffer.kext" rollback from 10.14.
      2018.09.28: Updated to Mojave 10.14 -> Fixed HDMI & VGA Outputs by adding "AppleGraphicsDevicePolicy.kext" patches to config.plist, HDMI audio not working
    • By Cwtf
      I just made a clean install of High Sierra on a 1TB crucial ssd. Installed clover Clover_v2.5k_r5070 into the EFI of this ssd, but when I tried to make it my default boot drive, the clover screen wouldn't come up, and left a black screen.
      I tried using the Olarilia usb drive and clover did the same thing.  The only way I can currently boot is to use my old drive with clover v2.4k_4945 then select  my new drive from the clover menu.   
       
      Do I need to install v2.4k on my new drive or is there a way I can get v2.5k working?
       
      I have a GA-x79-ud5 motherboard, AMD  rx580 graphics card and use a Sony 4k tv as my monitor.
    • By kylon
      Cloud Clover Editor is an open source application that allows you to manage the configuration of various Hackintosh Bootloaders.

      Open Cloud Clover Editor
       
      Cloud Clover Editor Wiki
      Cloud Clover Editor Sources
       
       
      Features
      Supports Clover EFI, Ozmosis, Chameleon, OpenCore GUI and Text Editor Mode CCE Bank Mobile friendly and more...  
      Officially supported browsers
      Chrome 42+ Microsoft Edge 14+ Firefox 39+ Safari 10+ Opera 29+ Opera Mobile 12+ Chrome for Android 75+ Firefox for Android 67+  
       
      Credits
      mackie100 - took some ideas from his app Clover EFI dev team Eric Slivka - new serial number Virtual1 - new serial number cecekpawon - PHP 5.3.3 patch, , help with the ACPI Loader Mode flag and more Micky1979 - Clover flying editor  (Discontinued) crusher. - Help with the ACPI Loader Mode flag Download-Fritz - Help with the ACPI Loader Mode flag Pavo - Ozmosis fields and values stehor - Ozmosis fields and values Sherlocks - General help and support gujiangjiang - General help and support  
      Please let me know if i forgot you!
×