Written by CoBrA2168
Originally written on: March 20, 2013
Lenovo Thinkpad T61 7658-CTO
Core 2 Duo T9300 2.50Ghz
Intel GMAX3100 Graphics
100GB 7200RPM HDD
3GB DDR2 RAM
1280x800 WXGA Matte Screen
Intel Wi-Fi 4965
Crucial M4 256GB SSD
1440x900 WXGA+ Matte Screen with Webcam
Apple Wi-Fi Atheros AR5BXB72
Custom "middleton" BIOS for SATA2 speed and whitelisted WiFi adapters
Things not working / To-Do:
1. Plugging in a microphone jack breaks any audio input. The built in microphone works fine though on cold boot. Noticing that after sleep the internal microphone does not work.
2. Use the correct device ID for the Bluetooth to enable Bluetooth wake. This works, but phantom devices are added, which makes the settings app very slow.
1. 1394 port
2. 56k modem
3. PCMCIA / PCCard
4. Fingerprint Scanner
Explanation of Kexts:
ACPISensors.kext: allows us to monitor temperatures and other hardware information.
AppleACPIBatteryManager.kext: needed for battery recognition
AppleACPIPlatform.kext: needed for battery recognition
AppleACPIPS2Nub.kext: enables the track point nub
AppleIntelE1000e.kext: enables the ethernet port
AppleIntelGMAX3100FB.kext: the mother of all kexts. This is a modified version from 10.5.8 Leopard with the brightness patch (thanks ThirdSmile)
AppleSmartBatteryManager.kext: needed for battery recognition
FakeSMC.kext: needed just to get to the GUI
IntelCPUMonitor.kext: allows monitoring of the CPU temperatures
TSCSync.kext: needed for Core 2 Duo processors to run correctly
UltraNav.Controller.kext: enables the trackpad
1. Format USB stick to GUID partitioning with HFS+ file system (at least 8GB minimum).
2. Grab your 10.7.5 Lion InstallESD.dmg file and mount it by double clicking it.
3. Mount BaseSystem.dmg inside of InstallESD.dmg using the terminal:
cd /Volumes/Mac\ OS\ X\ Install\ ESD/
4. In Disk Utility, use the "Restore" function on the flash drive to restore the "Mac OS X Base System" image on your USB device.
5. On the USB device, delete the link /System/Installation/Packages, then copy over the "packages" folder from the Mac OS X Install ESD image.
6. Also copy over the following four files from the Install ESD image:
cp /Volumes/Mac\ OS\ X\ Install\ ESD/mach_kernel /Volumes/Mac\ OS\ X\ Base\ System\ 1/
cp /Volumes/Mac\ OS\ X\ Install\ ESD/boot.efi /Volumes/Mac\ OS\ X\ Base\ System\ 1/
cp /Volumes/Mac\ OS\ X\ Install\ ESD/BaseSystem.chunklist /Volumes/Mac\ OS\ X\ Base\ System\ 1/
cp /Volumes/Mac\ OS\ X\ Install\ ESD/kernelcache /Volumes/Mac\ OS\ X\ Base\ System\ 1/
7. Copy over the "Extra" folder and "Install" folder to the root of the USB drive.
8. Delete the files:
rm -R /Volumes/Mac\ OS\ X\ Base\ System\ 1/System/Library/Extensions/AppleHDA.kext
rm -R /Volumes/Mac\ OS\ X\ Base\ System\ 1/System/Library/Extensions/AppleGraphicsControl.kext/Contents/Plugins/ApplePolicyControl.kext
9. Inside the Install folder, copy over OSInstall and OSInstall.mpkg to their respective locations on the drive:
10. To finish your USB drive, run the Chameleon (Chameleon-2.1svn-r2069.pkg) package with the USB drive as the target (be sure not to install on your current machine!).
11. You are now ready to install. Eject the USB drive and plug it into the computer. Upon boot up, press the ThinkVantage button and then press F12 to boot from the USB drive. Once at the Chameleon boot loader, select the Base Image partition.
12. If you would like to dual boot a single hard drive with Windows 7 (or another OS), now is the time to do that. Partition the drive as needed (in my case, I put Windows 7 and OSX Lion on the same drive, so I made two partitions). Format one of the partitions as MS-DOS (for Windows) and the other as Mac Journaled (for OSX). Now quit the Mac OSX installer and install Windows.
13. When you are done installing Windows, come back and install Lion to the other partition we made by again booting from the USB stick. This will take approximately 20 minutes.
14. Once completed, again boot into the USB stick except this time at Chameleon boot loader, select your new OSX partition. Finish setup by creating a new user and selecting some settings.
15. Once at the desktop, copy over the "Extra" folder from the USB drive to the root of the hard drive. Remove the "Extensions" folder from the Extra folder after it is copied (this is important). Copy the "Install" folder to the desktop.
16. From the "Install" folder on the desktop, run the "Kext Wizard.app." Apply all the kexts in the "SLE Extensions" folder to the /System/Library/Extensions folder using the utility.
17. Run the Chameleon boot loader installation (Chameleon-2.1svn-r2069.pkg) except this time select the your Lion partition as the target (before, we picked the USB stick).
18. Run this command in Terminal to fix BIOS reset after sleeping:
sudo perl -pi -e 's|\x75\x30\x44\x89\xf8|\xeb\x30\x44\x89\xf8|; s|\x75\x3d\x8b\x75\x08|\xeb\x3d\x8b\x75\x08|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC
19. After this is complete, refresh the kext cache by running the following in Terminal:
sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext -z /System/Library/Extensions/
20. Restart the machine. This time, boot from your primary hard drive (you are free to remove the USB stick). You should be able to login to OSX at this point without any problems. Basic setup is complete.
Additional Fixes / Optimizations:
1. To enable Airdrop, run this command in terminal:
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
2. Changed the "hibernatemode" setting to 0 (from the default of 3) which only saves the current session to RAM. This is suggested for SSDs. Run this command in terminal:
sudo pmset -a hibernatemode 0
3. EDID injection is needed for the display to show correctly in the "About" section. See this link: http://www.insanelym...splay-problems/
4. To get much better temperatures, use SSDT tables instead of the ones generated by Chameleon. Save the SSDT tables in Windows using AIDA64, and add them to the "Extra" folder on your Mac (named SSDT.aml, SSDT-1.aml, SSDT-2.aml, etc.). Afterward, edit your boot.plist so that you are no longer generating P/C states and instead enabling "DropSSDT" option.
5. To get iCloud working, use the supplied "smbios_macpro.plist" SMBios file to boot into OSX. Log into iCloud while using this SMBios. Afterward, switch back to the MacBook SMBios to gain sleep functionality back.
6. Mac OSX / Windows clock sync: boot into Windows and run regedit. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Ti meZoneInformation. Right click on the empty space on the right to add a new key. Create a new Dword (32-bit). Rename the new key to "RealTimeIsUniversal." Double click the Dword and change it's value from 0 to 1 (in hex). Save, reboot into OSX, and set the time. It should now be correct when you go back into Windows.
7. Trouble signing into iCloud or the Mac App Store: make sure "EthernetBuiltIn=Yes" is set in your boot.plist. If after a restart this doesn't fix it, go to the network preferences in settings and remove all network connections. Then go to Library/Preferences/System Configuration and move NetworkInterfaces.plist to the desktop. Restart the system. Go back into settings, and re-add your network connections, starting with ethernet.
8. To get the webcam working, you will have to load the third party app "ManyCam" first. With ManyCam open, switch back to the app you would like to use and the camera should work. This is tested working with FaceTime, PhotoBooth, and Google Chrome. I could not use this method for Skype.
9. To show hidden files and folders, enter this command in Terminal:
defaults write com.apple.Finder AppleShowAllFiles YES
10. To edit the "About your Mac" section, see this link: http://www.macbreake...hackintosh.html