Jump to content

[GUIDE] Thinkpad T420 with (Mountain) Lion

* * * * * 2 votes

  • Please log in to reply
402 replies to this topic

#181
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 707 posts
  • Gender:Male
  • Location:NC, USA
honeywell,

glad your up and running.

interesting about patching appleintelcpupowermgmt. i thought it was patched for 10.8.2?! i am using version 196.0.0.

booting - i have seen issues with booting myself. i had to manually install boot1h with dd.

something like
cd /usr/standalone/i386
dd if=boot1h of=/dev/rdiskXsY (where X is probably 0 and Y is probably 1) (ie your disk and the osx partition)

as far as ring stalls. i get them them too when using the laptop without an external monitor. so i use quartz debug to turn off 3D acel - no ring stalls. its the only reliable workaround i have found.

#182
honeywell

honeywell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 100 posts
I just tried the two commands you just gave me (using sudo dd...) but I still can't boot. Not that big of a deal. Edit: Just tried them again (using the correct disk and partition), but I get the error dd: resource is busy. I tried again from the un1b34st installer's terminal after unmounting the hard drive, and it still doesn't boot. Not that big of a deal, though.

The main problem I have is still the graphics. I don't use an external monitor, only the laptop monitor. I misspoke in my last post about editing the dsdt - I meant to say

AppleIntelSNBGraphicsFB.kext. The guide I was speaking of is here:

http://www.insanelym...ridge-osx-lion/

I'm using your kext pack, but I don't have an external monitor. I'm curious about how you edited the .kext (if you did), as I have absolutely no idea where to start, even after reading that guide. I'm not very knowledgable about this kind of thing. Thanks for the help.

#183
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 707 posts
  • Gender:Male
  • Location:NC, USA
well sorry about no boot. is your disk MBR? is the OSX partition set to active? i recall using a dd I downloaded somewhere (attached). yes. doing it from the installer and unmounting your disk is the way to go.

As to the gfx thing, as far as i know there is no real fix for laptops. The thread mostly speaks to those on true desktops where one can remove the LCD buffer as there isnt one! the only thing that works for me consistently is Disable 2D Acceleration with Quartz Debug (or avoid certain items like mission control etc that seem to cause the hang).

Attached Files

  • Attached File  dd.zip   83.46KB   14 downloads


#184
honeywell

honeywell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 100 posts
My disk isn't MBR, that's probably the problem. I tried formatting the disk as MBR in the installer, but then it wouldn't let me install OS X - only on GUID. Do I have to find a workaround and then install? I'll look for a guide.

As for the graphics, what exactly is causing the problem? I'm still not entirely sure I understand.

#185
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 707 posts
  • Gender:Male
  • Location:NC, USA
honeywell - yes your disk must be MBR to boot from it. if you have another disk or USB - copy your installation over to it using carbon copy cloner. reformat the disk as MBR and copy it back. then install chimera and you will be golden. gfx issue is a driver bug. real macs suffer too with HD 3000 - but not as often.

#186
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts

well sorry about no boot. is your disk MBR? is the OSX partition set to active? i recall using a dd I downloaded somewhere (attached). yes. doing it from the installer and unmounting your disk is the way to go.

As to the gfx thing, as far as i know there is no real fix for laptops. The thread mostly speaks to those on true desktops where one can remove the LCD buffer as there isnt one! the only thing that works for me consistently is turn off 3d accel (or avoid certain items like mission control etc that seem to cause the hang).


Hi tluck-
How do you turn off 3d accel? The hangs and artifacts are killing me...

Thanks,
AJ

#187
honeywell

honeywell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 100 posts
@tluck

I got boot working! Reinstalled ML after applying this patch to the USB: http://www.osx86.net...pkg_10.8.x.html

@ag695

https://developer.ap...ds/index.action

Download Graphics Tools (you must have Xcode first) then run Quartz Debug and check "Disable 2D acceleration"

#188
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 707 posts
  • Gender:Male
  • Location:NC, USA
@honeywell. Cool -- that's another way !

Quartz debug from Xcode is the easiest way that I know of to Disable 2D Acceleration - you can turn it on and off at will.

#189
honeywell

honeywell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 100 posts
I also found that sleeping then waking the computer whenever graphics glitches happen fixes them. (as opposed to just restarting)

#190
styrian

styrian

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 831 posts
  • Gender:Male
The recipe for avoiding graphic glitches is, to reduce the outports of AppleintelSNBGraphicsFB.kext. This is not hard with a script. I personally have reduced from four to three ports, changed the pinout of HDMI port to get audio on it working and enabled the vga port of my EDGE E 320. At the first attempt to get the E320 up and running, I used chimera and had gfx glitches. After doing a new install with chameleon this horrible effects were gone. Editing the kext in this way, is not very hard. For the script and an edited kext look here: http://www.insanelym...40#entry1871754

If you need less ports, you have just to reduce the ports in the first row. If you compare the table from an unedited kext with my edit, you should understand, what I have done and how this works.

Have fun.

#191
honeywell

honeywell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 100 posts
Very interesting styrian, thanks. I just patched mine, changing the number of outputs from 4 to 3 and it worked great. The bash scripts in that download are outstanding - they really simplify the whole process. It's too early to tell if changing the number of ports fixed the glitches though. I'll report back in about a day, and will be using this laptop regularly to see if there are noticeably less ring stalls or graphics glitches. So far so good. Thanks!

#192
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 707 posts
  • Gender:Male
  • Location:NC, USA
I agree with styrian on editing SNBGraphics to remove glitches (which to me are little spots, blotches, shimmering lines etc on the screen). however, none of the various recipes or fixes removed the ring stall/buffer hang problem for my laptop - which to me is a different thing entirely. Quartz Debug with Disable 2D Acceleration has been the only reliable fix for stalls when using LCD. Note: on my other HD3000 only mini-mac hackintosh, i removed the LCD buffer and i don't see stalls or glitches.

@honeywell - Please post your results - particulary if you dont get stalls!!! thanks.

#193
styrian

styrian

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 831 posts
  • Gender:Male

I agree with styrian on editing SNBGraphics to remove glitches (which to me are little spots, blotches, shimmering lines etc on the screen). however, none of the various recipes or fixes removed the ring stall/buffer hang problem for my laptop - which to me is a different thing entirely. Quartz Debug with Disable 2D Acceleration has been the only reliable fix for stalls when using LCD. Note: on my other HD3000 only mini-mac hackintosh, i removed the LCD buffer and i don't see stalls or glitches.

@honeywell - Please post your results - particulary if you dont get stalls!!! thanks.


The effects, you are speaking about in your post, are signs, that your dispay is not fully correct detected. I think, that it is not necessary to remove the LCD buffer. One should just edit an override for the display. Look at this: http://www.insanelym...b/#entry1876349

Have fun.

#194
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts

@tluck

I got boot working! Reinstalled ML after applying this patch to the USB: http://www.osx86.net...pkg_10.8.x.html

@ag695

https://developer.ap...ds/index.action

Download Graphics Tools (you must have Xcode first) then run Quartz Debug and check "Disable 2D acceleration"


Thanks, I installed Xcode and Quartz Debug. This does the trick, it stops the lags and artifacts.
It kind of sucks though to disable the acceleration... so, still looking for a better solution.

Any feedback about the reduction of outputs?

Thanks.

#195
honeywell

honeywell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 100 posts
Yes! I think reducing the outputs from 4 to 3 has almost completely removed the ring stalls. In the past, I would get ring stalls possibly every hour or so, and in some extreme cases they would force me to hard reboot the computer because the computer would just freeze. I would have to do that at least 2-3 times a day. Since reducing the outputs, I haven't had to do that at all. The ring stalls only come occasionally (1/5 times) when I open Mission Control, and it still sometimes happens whenever I get a notification popup. Much, much more useable than before - I haven't had to restart at all due to the computer freezing.

As far as I know, there aren't any "negative" effects of reducing the outputs. (I personally don't use the VGA or other display ports, but I'm not even sure that reducing the outputs even effects those) I would like to see if other people are willing to try it, and if so, please report back with results. I just want to make sure this isn't the placebo effect or random chance or something. Also, if anybody tries to reduce from 4 to 3, I will reduce from 3 to 2 and see if it gets even better. Here is my edited table:


0000000: 0102 0300 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0205 0000 0004 0000 0700 0000 ............
0000024: 0602 0000 1000 0000 0900 0000 ............
0000030: 0000 0000 1000 0000 0900 0000 ............

The fourth and fifth lines of my original table are different, I edited the fourth and fifth lines according to http://www.insanelym...60#entry1822063

The first line I just reduced 0400 to 0300.

If anybody wants or needs clearer instructions than those provided in the file that styrian linked, I will be willing to provide them! Good luck and don't forget to report back results.

#196
styrian

styrian

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 831 posts
  • Gender:Male

Yes! I think reducing the outputs from 4 to 3 has almost completely removed the ring stalls. In the past, I would get ring stalls possibly every hour or so, and in some extreme cases they would force me to hard reboot the computer because the computer would just freeze. I would have to do that at least 2-3 times a day. Since reducing the outputs, I haven't had to do that at all. The ring stalls only come occasionally (1/5 times) when I open Mission Control, and it still sometimes happens whenever I get a notification popup. Much, much more useable than before - I haven't had to restart at all due to the computer freezing.

As far as I know, there aren't any "negative" effects of reducing the outputs. (I personally don't use the VGA or other display ports, but I'm not even sure that reducing the outputs even effects those) I would like to see if other people are willing to try it, and if so, please report back with results. I just want to make sure this isn't the placebo effect or random chance or something. Also, if anybody tries to reduce from 4 to 3, I will reduce from 3 to 2 and see if it gets even better. Here is my edited table:


0000000: 0102 0300 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0205 0000 0004 0000 0700 0000 ............
0000024: 0602 0000 1000 0000 0900 0000 ............
0000030: 0000 0000 1000 0000 0900 0000 ............

The fourth and fifth lines of my original table are different, I edited the fourth and fifth lines according to http://www.insanelym...60#entry1822063

The first line I just reduced 0400 to 0300.

If anybody wants or needs clearer instructions than those provided in the file that styrian linked, I will be willing to provide them! Good luck and don't forget to report back results.

You can reduce to two outputs without negative effects. Only one port, the first for LVDS (marked with zero in the table) might work too.

Which trunk of Chameleon are you using?

What size of ram do you have?

Do you get the MEI driver loaded on correct place in the device tree?

My original table has looked like yours. I wanted to get the vga port (it is not directly supported on MBP) working, therefore I had to edit the fourth line like manwe and you have done it too. The third line is the digital port, wich supports dp and also hdmi. The port was working for gfx output. To get audio over hdmi working (dsdt edit necessary too) I have edited it like in my linked post.

At my first attempt to get the E320 up, I have used Chimera as bootloader with causing the gfx glitches, as I have noticed later on . After I had switched at a second try of install to the Chameleon trunk (also with native support of HD3000, GE= no) , the gfx glitches have been gone without editing the table.
The cause of my editng the table has been, that I had speedstep not working on my i5, because of ufsing smbios of MBP 8,2 to get gfx output on the laptop LCD. At first I had reduced the outputs to two and everthing was fine with my 8 gig of ram and the HD3000 with 512 mb. Then I have been able to use smbios of MBP 8,1 and got ACPM and speedstep working. Afterwards I have expanded to three ports with vga added without any issues.

#197
honeywell

honeywell

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 100 posts
I have 8gb ram, and am using a system definition of MBP 6,1. My bootloader is Chimera v1.11.1 r1394. I have an i5 and the HD3000 512mb, no discrete.

I'm not sure how to check if the MEI driver is loaded correctly, sorry. Could you explain how? Thanks.

#198
styrian

styrian

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 831 posts
  • Gender:Male

I have 8gb ram, and am using a system definition of MBP 6,1. My bootloader is Chimera v1.11.1 r1394. I have an i5 and the HD3000 512mb, no discrete.

I'm not sure how to check if the MEI driver is loaded correctly, sorry. Could you explain how? Thanks.

Have a look in ioregistry explorer. You should try to switch to smbios of MBP 8,1. It is suiting best to your system. Processor, chipset and gfx are the same. Might a litte bit mater too. If you use DSDT fixes for sandybridge laptops you get a mix of two chipsets and kext versions in your install.

#199
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 707 posts
  • Gender:Male
  • Location:NC, USA
@styrian - great to see another voice on this thread. you are correct about output buffers and the effects.

yup - been down the road reducing output buffers from 4 to 3 to 2 to 1. (i posted some finding a while back on bcc9 thread on HD3000 )
http://www.insanelym...n/page__st__160 post #170

all of the various approaches had shown me too that it will reduce the ring stall/buffer hangs ... but on my 420 never seems to go away entirely - meaning i will occasionally will see the hangs when using LCD. these often recover/self correct. but sometimes not.

one nice side effect was i did like the monitor gamma curve though that the new monitor definition provided by copying the one use from the MBP monitor! -- see post #312 for updated monitor definitions (for 1600x900)

output buffers - for reference - this is what i use:
0503 - LVDS - required for Laptop LCD
0205 - DisplayPort/HDMI built-in on laptop
0304 - DVI/Hdmi - on a external docking station
0602 - VGA built-in on laptop

the last 2 (or 3) certainly are optional depending on your display usages.

Update: gone back to using MBP8,1 smbios.plist definition for sake of consistency. but i found MBP 6,1 will work just as well - no difference in the kexts loaded and HD3000 is working on the T420. but yes 8,1 is perhaps a closer HW match given the HD3000 /sandy-bridge aspect.

#200
styrian

styrian

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 831 posts
  • Gender:Male

@styrian - great to see another voice on this thread. you are correct about output buffers and the effects.

yup - been down the road reducing output buffers from 4 to 3 to 2 to 1. (i posted some finding a while back on bcc9 thread on HD3000 )
http://www.insanelym...n/page__st__160 post #170

also i forgot that i had created a new Lenovo LCD monitor definition ( put /System/Library/Display/Overrides/DisplayVendorID-6af/DisplayProductID-213e - to try the OverrideEDID thing). I forget which one i copied it from. but anyway i attached it for reference...

all of the various approaches had shown me too that it will reduce the ring stall/buffer hangs ... but on my 420 never seems to go away entirely - meaning i will occasionally will see the hangs when using LCD. these often recover/self correct. but sometimes not. one nice side effect was i did like the monitor gamma curve though that the new monitor definition provided by copying the one use from the MBP monitor!

output buffers - for reference
0503 - LVDS - required for Laptop LCD
0205 - DisplayPort/HDMI built-in on laptop
0304 - DVI/Hdmi - on a external docking station
0602 - VGS built-in on laptop

the last 2 (or 3) certainly are optional depending on your display usages.

Note: I used to use MBP 8,1 --- but i found MBP 6,1 will work just as well. both are core I5 or i7 with HD3000 models. i switched over to MBP 6,1 as is seems to match my real MBP very closely and i can compare IOReg and kexts.

Chamelon Wizard shows the smbios for MBP 6,1 up with core i5, i7 - 5xxm and 7xxm. It is a 1. Gen Core i5 and has only hd grafics but no HD3000 gfx. If you are using this smbios kext´s are loaded for it´s chipset exept you inject with your DSDT ID´s from sandybridge chipset. (par example: HD3000, LPC and Usb patches.) As I have written it before, you get a mix of two chipsets.
If it is working for you without any issues it is ok.

Have fun.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

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