Jump to content

Lenovo ThinkPad T420 with UEFI Only

* * * * * 9 votes UEFI ThinkPad T420 Lenovo Clover

  • Please log in to reply
1003 replies to this topic

#101
dmazar

dmazar

    InsanelyMac Sage

  • Coders
  • 256 posts
  • Gender:Male
Yes, at least it should work as before. So this is good. Thanks for testing.

#102
Tetonne

Tetonne

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 231 posts
new pack for 10.8.3 see post 238 there
Thanks to

tluck



#103
Espamac

Espamac

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts

Hi there!

Since you guys are using EmuVariableUefi driver when using Clover, please test new version. Details here: http://www.projectos...indpost&p=28411

Thanks.


Hi there,

The EmuVariableUefi driver seems to be working alright on my X220 but the CLOVERX64 driver made the whole boot really slow with lots of error messages. I couldn't get passed a white screen at the end after some fatal error related to SuperIODevice (I couldn't copy).

So I'm keeping only the EmuVariableUefi and discarding the other. UPDATE: this file is also causing the same problems as the cloverx64 driver; slow boot, lots of errors and the trackpad doesn't work after completing the boot (around 5 minutes...).

My system is now working more or less properly :thumbsup_anim: I have to recognise my utter dumbness: I wasn't placing the modified DSDT on the Patched folder but on the ACPI one, so nothing made sense and none of the changes applied on the dsdt worked.

The internal WWAN card is recognised and works with a valid SIM card on 3G networks, very fast and convenient. To connect I use this script:
http://www.mydellmin...module-osx.html
The setup is pretty straightforward if you know your service provider settings.

USB 3.0 works perfectly with the code added to the info.plist file suggested by Kogen Mantis on post #70.

I have sound working with the latest kext used by tluck (previous post). I have a slight sound distortion on higher volume outputs not present in Linux. Any idea of what values can be modified so I can play a little?

Bluetooth does not work because it is associated to the WLAN card. I'm still thinking about flashing the BIOS, I'm scared I'll brick my system :worried_anim: Do you need windows running to flash the BIOS? at the moment I only have OS X.

In my case the two finger scroll was working in the opposite direction, that can be changed setting the MultiFingerVerticalDivisor line to -1 found on the VoodooPS2Controller.kext->Contents->Plugins->VoodoooPS2Trackpad.kext->Contents->Info.plist

Brightness works adding the PNLF code on the DSDT. But it is too high :thumbsdown_anim: , the minimum setting is way higher than the minimum in Linux and it kills the battery. It's particularly annoying in a very dark room. Any ideas? I can't find the BNC, BNL and BNQ methods in my dsdt, where would you place them? Should I modify something on the info.plist?

The fingerprint reader works perfectly using the TrueSuite software from Authentec (http://support.authe.../TrueSuite.aspx).

#104
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 504 posts
  • Gender:Male
i just switched over to Clover yesterday. i have dual boot osx and win7 (native uefi).
there is a learning curve for sure!!!

i am currently using b1208. i tried the b1316 (with the new directory layout ) but shows 12 GB of memory instead of 8GB so i backed off. + the b1316 shell crashes.

btw, what does emuvariableuefi do exactly?! - i have in place but was just curious as to what it fixes.
definitely needs the osxaptioFixDrv or the boot just hung after reading the kernel cache!

@k0gen - thanks!

#105
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male
It's been awhile since my last post. Just wanted to let everyone know that thanks to cayspekko's donation I'm back and running with my T420 LCD screen replaced to a new one. Thank You again cayspekko!

It is good to see that people are progressing with the UEFI setup. Because I have lost all my previous work with the mSATA that is waiting to be found in my house - somewhere :) - I'll start from the beginning using my internal HDD. I'm not sure yet if I want to keep the windows by preparing dualboot setup but for sure I'll experiment a bit on my new motherboard original/older UEFI Bios (83ET65WW - 1.35 - no whitelist).

... btw, what does emuvariableuefi do exactly?! - i have in place but was just curious as to what it fixes.
definitely needs the osxaptioFixDrv or the boot just hung after reading the kernel cache!

@k0gen - thanks!



I'm not an expert - I guess dmazar should answer that - but if I understand it correctly the EmuVariableRuntimeDxe is essential for us (Phoenix UEFI users) to avoid long bootup time because of no runtime services are being present.
So instead of real NVRAM variables from the firmware we use emulated runtime variables from the memory to speed up the boot up time proces.

#106
Tetonne

Tetonne

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 231 posts
I'm using clover 1344
tluck's dsdt.aml & AppleIntelSNBGraphicsFB.kext
DualLink to 0
i've 4 screens on my LCD (like i use to had in the past before using DualLink to 0)

CAN someone help please
issue is gone when AppleIntelSNBGraphicsFB.kext is get out /S/L/E but no acceleration and resolution is 1024x768 only

#107
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male

I'm using clover 1344
tluck's dsdt.aml & AppleIntelSNBGraphicsFB.kext
DualLink to 0
i've 4 screens on my LCD (like i use to had in the past before using DualLink to 0)

CAN someone help please
issue is gone when AppleIntelSNBGraphicsFB.kext is get out /S/L/E but no acceleration and resolution is 1024x768 only

Change tluck dsdt.aml to DualLink 0 aswell

#108
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 504 posts
  • Gender:Male
hmm. for a 1600x900 resolution LCD (like mine) it needs DualLink 1 (default now apparently in clover now) otherwise it's very wide.
AppleInteSNBGraphicsFB.kext must be in /S/L/E (or put the patched ones in /EFI/Clover/kexts.) otherwise you wont get any display buffers.

i'm on clover 1208 currently. will try 1344 later today. Note: i had problems with 1316 - memory was reported as 12GB and the shell was crashing.

i think i figured out the sleep issue for some using clover - dont set AsusAICPUPM in the config.plist. i am using a patched AppleIntelCPUPowerManagement.kext and the rollback v1.3.5 (aka snowleopard) AppleACPIPlatform.kext instead. will report other findings as they crop up. To keep it simple and backward compatible, kept all the patched kexts as with chameleon. just booting with clover efi.

#109
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 504 posts
  • Gender:Male
@k0gen - glad you are back up and running.

i tried b1344 and it still reports 12GB of memory instead of 8GB. and the Shell crashes. not sure where to report these bugs/issues? i will stay on b1208 until i see this items fixed.

#110
Tetonne

Tetonne

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 231 posts

@k0gen - glad you are back up and running.

i tried b1344 and it still reports 12GB of memory instead of 8GB. and the Shell crashes. not sure where to report these bugs/issues? i will stay on b1208 until i see this items fixed.

I'm under 1344, no issue with my 4Gb here. but the 2 last releases gave me a lot of work in fact.
Everything is ok now, but now i'll wait a bit to see if the next release are stables or not lol

#111
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male

@k0gen - glad you are back up and running.

i tried b1344 and it still reports 12GB of memory instead of 8GB. and the Shell crashes. not sure where to report these bugs/issues? i will stay on b1208 until i see this items fixed.

Yes I have same thing on b1346:
Attached File  Screen Shot 2013-04-21 at 4.17.31 AM.png   198.14KB   41 downloads
I see apianti is doing all the memory changes, try contacting him on projectosx.

#112
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 504 posts
  • Gender:Male
@tetonne - that dsdt snippet is for a different codec than in my - some T420s may have cx20672 vs cs20590 codec. i dont know how different the pinouts. but it seems like someone had a x220 with that codec and got AppleHDA working now. dont really understand how the cached kexts loose sound? weird.
you are welcome.

@k0gen - well glad its not just me with the memory report of 12 vs 8GB.

clock question. i am still learning and adjusting to Clover... but i have a question for you and others:

does your box lose time? my date clock is off - it runs slow. after a few hours its off by several minutes when i boot with Clover. When i boot the same disk with Chameleon the clock stays accurate? i created a clean installation and ran it for a few hours and it was off by a lot.

#113
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male

@tetonne - that dsdt snippet is for a different codec than in my - some T420s may have cx20672 vs cs20590 codec. i dont know how different the pinouts. but it seems like someone had a x220 with that codec and got AppleHDA working now. dont really understand how the cached kexts loose sound? weird.
you are welcome.

@k0gen - well glad its not just me with the memory report of 12 vs 8GB.

clock question. i am still learning and adjusting to Clover... but i have a question for you and others:

does your box lose time? my date clock is off - it runs slow. after a few hours its off by several minutes when i boot with Clover. When i boot the same disk with Chameleon the clock stays accurate? i created a clean installation and ran it for a few hours and it was off by a lot.


tluck can you try adding:

<key>SMBIOS</key>
<dict>
<key>Trust</key>
<string>No</string>
</dict>
to your Clover config.plist and test out if the memory is still reporting 12GB?
I don't have a access to my t420 at the moment to test it out, but I guess this will fix the problem.
Also do share your working EFI folder - I'll start from the point your in, cause I still use 1050 that works best for me.
As for time I'm just guessing this might be the TSC sync causing all the mess - is your CPU reporting 2.51GHz or 2.5GHz?

#114
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 504 posts
  • Gender:Male

@k0gen

here is my /EFI that i am using with b1597 - the config.plist is the key to making it all work!!! i had to specify CpuFrequencyMhz and BusSpeedkHz as clover does not compute a speed of 2.50 GHz and the clock would not stay accurate - BusSpeed is key to getting my clock to stay on track.
 

<key>ACPI</key>
  <dict>
  <key>DropOemSSDT</key>
  <string>Yes</string>
  <key>FixDsdtMask</key>
  <string>0x0000</string>
  <key>GenerateCStates</key>
  <string>No</string>
  <key>GeneratePStates</key>
  <string>No</string>
</dict>

<key>CPU</key>
  <dict>
  <key>BusSpeedkHz</key>
  <string>99700</string>
  <key>CpuFrequencyMHz</key>
  <string>2500</string>
  <key>Turbo</key>
  <string>Yes</string>
</dict>

Note: I added the Microsoft EFI boot loader and can directly boot the Windows7 with EFI - did not have to reinstall. just had to fiddle with BCD to find the windows volume.

UPDATED: May-10-2013 - revised zip to include ssdt.aml from verleihnix (thanks!) and updated config.plist to NOT generate P/C states. (this fixed some wake from sleep issues for me)

 

UPDATED: see #202 for newer bundle for newer Clover.



#115
Tetonne

Tetonne

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 231 posts
wifi on your T4x0?
my advice :

http://www.ebay.fr/i...#ht_3473wt_1134
driver : http://www.osx86.net...-rtl8188cu.html

My Duallink issue (4 screens in one) with DSTL.aml is solved thanks to truck :)

#116
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male
@tluck
Yes the config.plist customization is the key to perfect setup. But right now I'm trying to make a solution for all Lenovo UEFI users to have a easy way of installing the system. Then point them in the right direction to tweak their Clover config for a specific lenovo model and share their OEM folders here for others to follow.

You can use my Clover custom build based on 1229 - the last one that was not broken by the SMBIOS memory detection and alocation changes. I have also regressed the CPU TSC Sync calculation, so try it without defining the CpuFrequencyMHz and BusSpeedkHz.
The package will install all the necessary efi drivers, FakeSMC, ethernet and PS2 devices kexts. The config file is also fine tuned to run without any DSDT. So if anybody needs easy way to make recovery pen-drive just point the installer to correct media and you are ready to boot.

NOTE: Users with low resolution should edit config.plist and change DualLink from 1 to 0

Attached File  Custom Clover 1229k0.png   172.11KB   36 downloads

Attached Files



#117
mark9white

mark9white

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
I'm on 1306 on my T420, it's working great for me (apart from the sleep problem mentioned at: http://www.insanelym...80#entry1910057, which also happened with old Clover) with the correct amount of memory reported with the SMBIOS Trust=No config setting mentioned above (I've got 8Gb and I was also getting 12Gb reported without that setting).

My config.plist is at:
https://www.dropbox....1a/config.plist

#118
Wavelets

Wavelets

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
@k0gen
Thank you for this guide. I have followed your instructions for my T420. I had to change model number to mine which is 4180AF6 Running stock BIOS version 1.44 and screen is 1600x900. Hard disk is OCZ-AGILITY3 (60GB SSD) which is recognised correctly with link speed of 6 Gigabit (SATA III) which I'm very happy about.

My main issue is that I have no sound. Please confirm that your set-up supports sound? and advise what might be wrong? Do I have to install VoodooHDA. Another issue is that I am still booting off USB - I did copy UFI folder to primary disk using your instructions but system does not even start to boot beyond Lenovo BIOS. I can select primary disk to boot but just comes flashes and returns to same UEFI/BIOS screen.

Regarding your post #117 should I install Clover_v2_r1229k0.zip?

Please forgive any mistakes in this my first post.

Enjoying OS X 10.8.3 so far on my T420 and hope I can get sound and WiFi in due course. (Have Dell DW1510 but think I need BIOS with no whitelist for it to work)

Now booting off primary!

Just double checked EFI partition and I had copied files into a sub EFI folder so moved them up one level. (there is already an APPLE folder here too)

Anyway now able to boot off system - USB stick not required. :-)

Now onto SOUND - please advise what logs I can review to try and determine issue or post here.

thanks

#119
Espamac

Espamac

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts

Now onto SOUND - please advise what logs I can review to try and determine issue or post here.

thanks


AppleHDA.kext should work. You don't need VodooHDA. Which DSDT file are you using? Try placing the attached AppleHDA kext on the Extras folder, repair permissions, and check you have this lines on your dsdt file. You also have to remove the original AppleHDA kext placed on System/Library/Extensions/

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 (0x0A)
											 {
													 "codec-id",
													 Buffer (0x04)
													 {
														 0x6E, 0x50, 0xF1, 0x14
													 },
													 "layout-id",
													 Buffer (0x04)
													 {
													 // for 10.8.x use layout12
														 0x0C, 0x00, 0x00, 0x00
													 // 0x6E, 0x50, 0x00, 0x00
													 },
													 "PinConfigurations",
													 Buffer (Zero) {},
													 "hda-gfx",
													 Buffer (0x0A)
													 {
															 "onboard-1"
													 },
													 "device-type",
													 Buffer (0x11)
													 {
															 "Conexant CX20590"
													 }
											 }, Local0)
									 DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
									 Return (Local0)
							 }
					 }

Credit for this goes to tluck (http://www.insanelym...n/page__st__160) I'm just pasting ^_^

Attached Files



#120
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 504 posts
  • Gender:Male
@espamac - thanks! - btw, what laptop/codec do you have?

@wavelets - if you are on 10.8.3, then there is a slightly newer kext pack that has an updated 10.8.3 AppleHDA patched for CX20590.
what sound codec do you have - some T420s might have a different chip now.

see post #238 - just replace all the kexts in /S/L/E - but you know that!

i have a copy of these in my /EFI/kexts also. Note: the dsdt.aml goes in /EFI/CLOVER/ACPI/patched
and the HDEF section (per above) needs to match for ID 12.

@kogen
i am on Clover B1360 now... will try your package on my test disk later today. pretty cool.
so what do you mean exactly by regressing the TSC calculation? the logs show it calculates 2507 or 2508 MHz and then bus speed is around 100270 kHz. (which does not work for my system)

i need to use this to lower the bus speed or i get a lot of time drift:


<key>CPU</key>
<dict>
<key>BusSpeedkHz</key>
<string>99700</string>
<key>CpuFrequencyMHz</key>
<string>2500</string>
<key>Turbo</key>
<string>Yes</string>
</dict>






Also tagged with one or more of these keywords: UEFI, ThinkPad, T420, Lenovo, Clover

  Topic Stats Last Post Info

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy