Jump to content

Lenovo ThinkPad T420 with UEFI Only


K0gen
 Share

5,271 posts in this topic

Recommended Posts

@tluck - Yes I have tried your config and files from your 10.8.3 pack - and this makes no difference. One thing I can observe is when I don't use graphic injection the system hangs on "Waiting for DSMOS" Maybe we have some other differences - ThinkPad Setup settings?

 

BTW: You don't need "drivers64" folder - it is used for non efi legacy booting (but you use chameleon for that)

Link to comment
Share on other sites

@kogen - well thats is odd. i wonder what changed ?

 

yeah i added the mouse drivers - which very cool - since i often have the laptop closed in the dock. probably just need USBmouse

hmm... there seems to be dupe FSInject.efi though - i guess i can one of them.

Link to comment
Share on other sites

@kogen - well thats is odd. i wonder what changed ?

 

yeah i added the mouse drivers - which very cool - since i often have the laptop closed in the dock. probably just need USBmouse

hmm... there seems to be dupe FSInject.efi though - i guess i can one of them.

Can you share your DarwinDump - I'll try to hunt it down.

As for USBmouse you don't need it - when booting from UEFI Mode the driver is already there in Lenovos UEFI Firmware so is the PS2 mouse driver. So again the whole "drivers64" directory is not needed in our case.

Just try booting without it - to see that there is no difference :)

 

BTW: I have just found out that when Injecting patched AppleHDA.kext from Clover and loading it in dummy myHack.kext there is no need to remove the original AppleHDA driver from /S/L/E. Sound and mic works excellent. This is good for peace of mind in case of future updates.

 

EDIT: I have just tested it against latest 10.8.4 beta build (12E36) and almost all worked great! Sound works and everything seems to work as it should. Spoke to soon. Microphone is gone and system can't rebuild caches thus trying to rebuild it every boot and fails. So the method of including kext's from Clover and in myHack dummy kext is acceptable but every time you update your system you must either delete/move conflicting kexts from /S/L/E or update your patched kexts to the same version the system is using. Or do nothing if you can live without microphone and kernel caches ;)

 

post-112035-0-46093600-1367142983_thumb.png

Link to comment
Share on other sites

A quick note for anyone else having intermittent sleep issues (power light flashes quickly and fan stays on) - the only way I was able to resolve it was via BIOS boot into Clover instead of UEFI boot. Slightly slower bootup time, but apart from that seems to be working great.

 

UPDATE: Scratch that, error just recurred :(

Link to comment
Share on other sites

A quick note for anyone else having intermittent sleep issues (power light flashes quickly and fan stays on) - the only way I was able to resolve it was via BIOS boot into Clover instead of UEFI boot. Slightly slower bootup time, but apart from that seems to be working great.

 

UPDATE: Scratch that, error just recurred :(

 

Try using older AppleACPIPlatform.kext. Apple seems to update it often, making the code more and more strict to their hardware specifications.

AppleACPIPlatform-1.3.5.kext.zip

Link to comment
Share on other sites

@kogen

 

interesting about the mouse with UEFI - but you were right about the mouse drivers (of course!). i did not notice the mouse pointer at first so i had added the driver. so now I trimmed that directory - less is more!

 

let me know if you would still like a darwin dump.

 

@mark9white - I agree with Kogen - i observed that the r1.3.5 AppleACPIPlatform.kext is the only one that seems to allow sleep/wake on the T420. you will also need to have a the DSDT fixes for EHCI.

Link to comment
Share on other sites

@kogen @tluck

 

I am already running r.1.3.5 AppleACPIPlatform.kext I'm afraid. I did try newer ones too and as you suggested they caused problems. However sleep does seem to generally be working much better since I've been on BIOS boot.

In that case send your full DarwinDumper report. I don't use bios boot so test it in UEFI only.

NOTE: When making DarwinDumper report remember to check HTML Report Collapsed - thanks.

post-112035-0-62974900-1367271044_thumb.png

Link to comment
Share on other sites

In that case send your full DarwinDumper report. I don't use bios boot so test it in UEFI only.

NOTE: When making DarwinDumper report remember to check HTML Report Collapsed - thanks.

post-112035-0-62974900-1367271044_thumb.png

 

Thanks for the offer .. it's working perfectly in BIOS boot however now, so I'm sticking with it. It's exactly the same config (dsdt, kexts, config.plist etc) just with working sleep.

 

There have been reports of the same issue from Thinkpad X220 users, and BIOS boot also fixed it for them, eg: http://www.projectosx.com/forum/index.php?s=&showtopic=2562&view=findpost&p=28407

 

Cheers, Mark.

Link to comment
Share on other sites

b1429 has problems for me. staying on b1378.

 

1) busspeed problem - clover now computes FSB as 34146kz vs ~100Mhz

-it ignored an explicit setting of BusSpeedkHz in the config.plist

 

2) memory bank count wrong

-even using SMBIOS Trust=No - it thinks there are 3 banks - when early on it finds just 2 banks (correctly)

 

i posted at OSX86 #2564

Link to comment
Share on other sites

Hey guys,

 

My specs:

Thinkpad X230

i3-3120M

M4-CT128M4SSD2 (128 GB, SATA-III)

Motherboard is set to UEFI, with secure boot off.

 

Trying to install Mountain Lion 10.8.3 to a 16GB free (unallocated) partition after an existing Windows 8 64-bit installed under GPT format.

 

Using:

Clover_v2_r1229k0

Lion DiskMaker

 

I can boot Clover with no manual changes.

Then can boot OSX but have to set GraphicsInjector=No in Clover menu, otherwise get blank screen instead of OSX install screen.

 

Problem:

In OSX install screen, I can't access my harddrive. It says "This disk is locked" (also says that for USB installer).

 

Question:

How do I gain access to locked harddrive so I can install OSX? Been searching but not sure how to fix this.

 

Thanks for all your help in this. Great thread and community.

Link to comment
Share on other sites

@rayne,

 

you may have corrupted partition. since there is nothing on it yet, i would use the installation disk utility to reformat (erase) the target partition.

 

@all

 

ok Clover b1483 (build du-jour) is working again for me! (i still using the same config.plist i posted in #124).

Link to comment
Share on other sites

@rayne - I'm afraid that you are doing it the other way round. You should install OS X first and than use free space to install windows. (I'm not using windows - so anyone is welcomed to correct me in this).

Just use installers Disk Utiliti to partition the drive in GUID mode and format OS X partition to HFS+.

 

BTW: What's your X230 type number?

Link to comment
Share on other sites

@Kogen: If you mean according to this http://support.lenov...cID=MIGR-49QTT6, my type number for an X230i is 2306CTO. If you need other specs, let me know, would be happy to help.

 

Perhaps a silly question (I searched, but didn't see anything):

Is there a way to install Windows 8 GPT first then OSX? I'd rather not have to reformat the disk. Don't think anything is corrupted (typing this on same computer).

 

Seems Disk Utility does not like working with Windows GPT.

Link to comment
Share on other sites

well, frankly it really doesnt matter all that much which order you partition it. on one disk i have EFI, OSX, WIN7. on another disk i have them reversed. if you already have an EFI booting windows, then i would move on to getting OSX installed on the 2nd partition..... and then Clover can boot either one.

 

i think i have seen what you have seeing. they should be compatible ... i created GPT/GUID disk on windows but then had to reformat it on the mac.

run this tool to see it its formatted right. it should look like this:

 

in this case partition 2 is HFS and partition 3 is NTFS.

 

 

 

 

$ sudo gpt -r show disk0

start size index contents

0 1 PMBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 1363793744 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

1364203384 262280

1364465664 100681728 3 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1465147392 1743

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header

 

 

you can use command line to reformat the HFS partition

$ diskutil reformat disk0s2 (for example)

 

if you have to redo your disk, you can use dd to copy your windows disk to another partition for backup so you dont have to reinstall your windows stuff.

make a partition of the same size on a 2nd disk and use some thing like this to unmount the win stuff and copy.

 

diskutil unmountdisk disk0s3

dd if=/dev/rdisk0s3 of=/dev/rdisk1s3 bs=256k

Link to comment
Share on other sites

Found another benefit of Clover - it can inject a proper v1.3 EDID table for the Lenovo LCD display!

 

I posted some info here: #312 (note this for 1600x900)

 

Updated - injecting/using the EDID from Kogen's Display (posted in #13), I seem to have a perfect LCD display. No glitches. No hangs. Wow.

 

in the link above, i posted the clover.plist as well as the Display definition - so you have choices on the gamma/color profiles.

  • Like 1
Link to comment
Share on other sites

Found another benefit of Clover - it can inject a proper v1.3 EDID table for the Lenovo LCD display!

 

I posted some info here: #312 (note this for 1600x900)

 

seems to make the LCD less splotch/glitchy than it was. does not completely eliminate hangs but it seems to work better than before i inject the EDID.

i also posted an updated Display Override file - better gamma/color correction compared to original - which is very blue/hazy - IMO.

Thanks for bringing this up. The gamma correction is way batter than the standard one but I still prefer the one I've made (post #13). Still -interestingly your override almost passes my flicker test (see attached picture) witch means it is not the EDID but something else in the settings that needs to be investigated to achieve flicker less display.

LCD-Flickertest.png

BTW you can also add extra scale resolutions in your override

<key>scale-resolutions</key>
<array>
 <data>AAAGQAAAA4QAAAAB</data>          <!-- 1600x900 -->
 <data>AAAFVgAAAwAAAAAB</data>          <!-- 1366x768 -->
 <data>AAAFAAAAAtAAAAAB</data>          <!-- 1280x720 -->
 <data>AAAEcAAAAoAAAAAB</data>          <!-- 1136x640 -->
 <data>AAAEAAAAAwAAAAAB</data>          <!-- 1024x768 -->
 <data>AAADIAAAAlgAAAAB</data>          <!--  800x600 -->
 <data>AAACgAAAAeAAAAAB</data>          <!--  640x480 -->
</array>

Link to comment
Share on other sites

@kogen - we are definitely on to something!

 

putting the gamma/color curve info aside - as that is merely a personal preference...

 

I took your EDID and injected it with clover. WOW!!! I cannot see ANY flicker and got no hangs. I have not done alot of testing of course as this is fresh news ... but the usual ways that hang it up like sliding a window from display 1 to 2 and using mission control etc could not hang it.

 

very exciting. i also added your extra scale/resolutions. nice.

 

i just merged in the color curve stuff which came from and older mbp3,1 vendor/product 610/9c67 (it matches my HP side by side better in my case.)

 

i hope it lasts. will repost the actual files (config.plist etc) later so folks can have choice.

 

your EDID shown by darwin - GOOD.

 

Extracted contents:

header: 00 ff ff ff ff ff ff 00

serial number: 30 e4 e2 02 00 00 00 00 00 14

version: 01 03

basic params: 80 1f 11 78 0a

chroma info: 43 45 97 59 57 8e 28 21 50 54

established: 00 00 00

standard: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01

descriptor 1: 80 25 40 80 60 84 1a 30 30 20 35 00 36 ae 10 00 00 19

descriptor 2: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

descriptor 3: 00 00 00 fe 00 4c 47 20 44 69 73 70 6c 61 79 0a 20 20

descriptor 4: 00 00 00 fe 00 4c 50 31 34 30 57 44 32 2d 54 4c 42 31

extensions: 00

checksum: 38

 

Manufacturer: LGD Model 2e2 Serial Number 0

Made week 0 of 2010

EDID version: 1.3

Digital display

Maximum image size: 31 cm x 17 cm

Gamma: 2.20

Supported color formats: RGB 4:4:4, YCrCb 4:2:2

First detailed timing is preferred timing

Established timings supported:

Standard timings supported:

Detailed mode: Clock 96.000 MHz, 310 mm x 174 mm

1600 1648 1680 1728 hborder 0

900 903 908 926 vborder 0

-hsync -vsync

Manufacturer-specified data, tag 0

ASCII string: LG

ASCII string: LP140WD2

Checksum: 0x38 (valid)

EDID block does NOT conform to EDID 1.3!

Missing name descriptor

Missing monitor ranges

Detailed block string not properly terminated

 

 

the Lenovo EDID - not GOOD!

 

 

Extracted contents:

header: 00 ff ff ff ff ff ff 00

serial number: 30 ae a1 40 00 00 00 00 01 14

version: 01 03

basic params: 80 1f 11 78 ea

chroma info: cc ce 99 58 50 8e 26 24 4b 53

established: 00 00 00

standard: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01

descriptor 1: f8 2a 40 9a 61 84 0c 30 40 2a 33 00 35 ae 10 00 00 18

descriptor 2: cf 23 40 9a 61 84 0c 30 40 2a 33 00 35 ae 10 00 00 18

descriptor 3: 00 00 00 0f 00 a9 09 32 a9 09 32 19 09 00 06 af 56 31

descriptor 4: 00 00 00 fe 00 42 31 34 30 52 57 30 32 20 56 31 20 0a

extensions: 00

checksum: 7b

 

Manufacturer: LEN Model 40a1 Serial Number 0

Made week 1 of 2010

EDID version: 1.3

Digital display

Maximum image size: 31 cm x 17 cm

Gamma: 2.20

DPMS levels: Standby Suspend Off

Supported color formats: RGB 4:4:4, YCrCb 4:2:2

First detailed timing is preferred timing

Established timings supported:

Standard timings supported:

Detailed mode: Clock 110.000 MHz, 309 mm x 174 mm

1600 1664 1706 2010 hborder 0

900 903 906 912 vborder 0

-hsync -vsync

Detailed mode: Clock 91.670 MHz, 309 mm x 174 mm

1600 1664 1706 2010 hborder 0

900 903 906 912 vborder 0

-hsync -vsync

Manufacturer-specified data, tag 15

ASCII string: B140RW02

Checksum: 0x7b (valid)

EDID block does NOT conform to EDID 1.3!

Missing name descriptor

Missing monitor ranges

Detailed block string not properly terminated

Link to comment
Share on other sites

In case you ever wondered if you can track your Lenovo using Find my Mac - Yes you can! You can also lock it just like I did - but in that case - prepare yourself for some trouble.

I have locked my Lenovo via icloud.com using chrome. I was asked to enter 4 digit PIN code in case of unlocking. All went smooth in one minute Lenovo restarted and didn't boot, probably because Clover can't handle firmware unlock. Next I've tried to boot recovery (disabling vt-d first) and recovery partition booted. As always I've overrided the "No mouse & no keyboard notification screen" by presing Alt + space + left mouse few times and to my surprise this screen appeared.

post-112035-0-74867900-1368134703_thumb.jpg post-112035-0-01983100-1368134886_thumb.jpg

 

There was no way to unlock it. The system was expecting 6 digit PIN not 4! Trying to reinstall the system by booting from my Install pen-drive showed up thesame screen. I had to wipe all the disk data using Linux to be able to run OS X Installer without the system lock screen.

 

I must say this was fun to look at on my Lenovo :)

 

Right now I'm doing a fresh install, this time on a 32GB pen-drive to try new EFIPack on my friends T430.

Link to comment
Share on other sites

@kogen - wow that sucks about the lock code! good to know.

 

FYI... had some issues with sleep/wake - after about 15 of sleep if i open the lid, the power light is flashing fast and fan is on. black screen. a few people reported similar problems on this thread ...and now i have reproduced it!

 

it could be from the Generate P/C states feature in clover as I am having better sleep/wake success NOT Generate P/C states and using Verleihnix ssdt.aml. http://www.insanelym...60#entry1903659

by the way, this is how I had on chameleon.

 

<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>

Link to comment
Share on other sites

Hi guys, having trouble installing the boot loader...

I backed-up my OS X drive, I formatted my drive to guid, restored my OSX drive into the new GUID partition and installed Clover.

The partition is not booting though. What options do I have to use?

Link to comment
Share on other sites

Hi guys, having trouble installing the boot loader...

I backed-up my OS X drive, I formatted my drive to guid, restored my OSX drive into the new GUID partition and installed Clover.

The partition is not booting though. What options do I have to use?

How did you install and what ver of Clover?

Try booting Clover from pen-drive first. The best option for you would be using tluck's OEM folder (just rename his model to yours) and you should be golden.

Link to comment
Share on other sites

@ag6952563 - hmm. let see. did you turn on UEFI in the bios?

 

so had clover install the stuff in the EFI (ESP) partition 1 right?

i do this to check out/update the clover stuff. say you unzipped the EFI stuff (i posted) in ~/clover then....

 

$ sudo -s

$ mkdir /mnt

$ mount -t msdos /dev/disk0s1 /mnt

$ cp -rp ~/clover/EFI /mnt

 

then should look like this:

 

 

 

$ ls -l

total 9

drwxrwxrwx 1 _unknown _unknown 512 Apr 25 22:51 APPLE

drwxrwxrwx 1 _unknown _unknown 512 May 11 01:00 BOOT

drwxrwxrwx 1 _unknown _unknown 1536 May 10 17:04 CLOVER

-rwxrwxrwx 1 _unknown _unknown 1353 May 10 15:55 Clover_Install_Log.txt

drwxrwxrwx 1 _unknown _unknown 512 Apr 23 14:52 Microsoft

 

$ ls -l /mnt/EFI/CLOVER/

total 1119

drwxrwxrwx 1 _unknown _unknown 512 May 10 17:05 ACPI

-rwxrwxrwx 1 _unknown _unknown 558400 May 10 14:00 CLOVERX64.efi

drwxrwxrwx 1 _unknown _unknown 512 May 8 21:55 OEM

-rwxrwxrwx 1 _unknown _unknown 1637 May 10 16:51 config.plist

drwxrwxrwx 1 _unknown _unknown 1024 May 10 15:55 doc

drwxrwxrwx 1 _unknown _unknown 1024 May 10 15:55 drivers64UEFI

drwxrwxrwx 1 _unknown _unknown 512 May 10 15:55 kexts

drwxrwxrwx 1 _unknown _unknown 512 May 10 15:55 misc

-rwxrwxrwx 1 _unknown _unknown 3031 May 10 14:00 refit-default.conf

-rwxrwxrwx 1 _unknown _unknown 3084 Apr 25 15:05 refit.conf

drwxrwxrwx 1 _unknown _unknown 1024 May 10 17:04 themes

drwxrwxrwx 1 _unknown _unknown 512 May 10 16:24 tools

Link to comment
Share on other sites

How did you install and what ver of Clover?

Try booting Clover from pen-drive first. The best option for you would be using tluck's OEM folder (just rename his model to yours) and you should be golden.

 

Hi Kogen, I have installed the latest version of Clover (1597)...

I was able to boot from the USB first, then from my SSD, also using tluck's zip file... the systems seems to be working great, even without buffer hangs!!! This is great!!

 

I think the issue I had is that I was trying to put the contents of the zip file under /EFI/CLOVER, and this was not working fine. I have been able to boot from the SSD, but all files are now under /EFI (there is no CLOVER folder). Is this okay?

 

The process I have followed is to reuse my existing OS X 10.8.3 setup (I had it working with Chimera).

So, I backed up my entire setup to another hard drive, then formatted my SSD to GUID, then restored the entire OS X 10.8.3 to the new GUID partition. Then installed Glover on this drive, then copied the BOOT from the drive into the EFI partition, then the rest of the folders from tluck's zip package. I don't have CLOVER folder though, all subfolders are under /EFI directly.

Did I miss anything?

 

I have a couple of questions related to my setup:

- How do I configure the default partition to boot on Clover?

- Since I have my configuration from before, I have the Extra folder and also I have some kexts under S/L/E. Should I delete the Extra folder? It's no longer used, correct?

Also, are the kexts under S/L/E used? I have noticed they are under Extensions in tluck's package. Should I delete them?

 

Thanks a lot guys!

 

@tluck-

Please see my previous post to Kogen...

I have no CLOVER folder. Also some question related to my setup.

 

Thanks a lot for your support!! I have not buffer hangs!!!!

 

Here is my EFI partition folder structure...

 

localhost:~ aj$ su

Password:

sh-3.2# diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *128.0 GB disk0

1: EFI 209.7 MB disk0s1

2: Apple_HFS Mac SSD 127.7 GB disk0s2

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *320.1 GB disk1

1: Windows_NTFS OBIPE 9.8 GB disk1s1

2: Windows_NTFS w7 82.3 GB disk1s2

3: Apple_HFS Mac HD 86.2 GB disk1s4

4: Windows_NTFS aj 141.8 GB disk1s5

sh-3.2# mount -t msdos /dev/disk0s1 /mnt

sh-3.2# ls /mnt

.Trashes ._EFI .fseventsd EFI

sh-3.2# ls -l /mnt/EFI

total 1251

-rwxrwxrwx@ 1 _unknown _unknown 6148 May 12 12:36 .DS_Store

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 12:39 ._.DS_Store

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._ACPI

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 12:51 ._BOOT

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._CLOVERX64.efi

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._OEM

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:30 ._config.plist

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._doc

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._drivers64UEFI

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._kexts

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._misc

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._refit-default.conf

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._refit.conf

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._themes

-rwxrwxrwx 1 _unknown _unknown 4096 May 12 13:18 ._tools

drwxrwxrwx@ 1 _unknown _unknown 1024 May 12 13:18 ACPI

drwxrwxrwx 1 _unknown _unknown 512 May 12 13:03 APPLE

drwxrwxrwx@ 1 _unknown _unknown 1536 May 12 12:51 BOOT

-rwxrwxrwx@ 1 _unknown _unknown 556832 May 5 18:05 CLOVERX64.efi

drwxrwxrwx@ 1 _unknown _unknown 1024 May 12 13:23 OEM

-rwxrwxrwx@ 1 _unknown _unknown 1272 Apr 26 21:13 config.plist

drwxrwxrwx@ 1 _unknown _unknown 2048 May 12 13:18 doc

drwxrwxrwx@ 1 _unknown _unknown 1536 May 12 13:18 drivers64UEFI

drwxrwxrwx@ 1 _unknown _unknown 1024 May 12 13:18 kexts

drwxrwxrwx@ 1 _unknown _unknown 512 May 10 18:30 misc

-rwxrwxrwx@ 1 _unknown _unknown 3031 May 5 18:05 refit-default.conf

-rwxrwxrwx@ 1 _unknown _unknown 3084 Apr 25 21:05 refit.conf

drwxrwxrwx@ 1 _unknown _unknown 1024 May 12 13:18 themes

drwxrwxrwx@ 1 _unknown _unknown 1024 May 12 13:18 tools

sh-3.2#

Link to comment
Share on other sites

 Share

×
×
  • Create New...