Contribute
Register

[Guide] Lenovo T460 Hackintosh 10.11 & Dual Boot

Joined
Dec 9, 2015
Messages
60
This post is a step-by-step guide to Hackintosh (El Capitan 10.11) your Lenovo ThinkPad T460 notebook maintaining Windows 10 installation.

EDIT #6 - 2017-01-22: Finally Fully QE/CI without upper menu glitches! See README.TXT. Uploaded new file (PenDrive-T460_v2.0.zip). NOTE: If you're just updating configs and kexts from previous PenDrive-T460_v1.x simply:
Code:
1) Backup your EFI folder and replace by this one
2) Update your kexts running "T460/EFI/CLOVER/kexts/_kext-install.command"
3) Install new utilites following section "Install the root utilities and clover scripts and files from Utilities folder to your HD" below in Step 5
EDIT #5 - 2016-10-29: Added Bonus Track section

EDIT #4 - 2016-10-22: Updated post-install steps fixing some WIP fixes and uploaded new file (PenDrive-T460_v1.2.zip)

EDIT #3 - 2016-08-30: Added sections 8 (kexts) and 9 (DSDT) and also uploaded new zip file (PenDrive-T460_v1.1.zip)

EDIT #2 - 2016-08-24: Updated What's Working section.

EDIT #1 - 2016-08-20: Included What's Working section.



What's Working:
  • Full QE/CI (Minor transparency issue 99% fixed using color profile sRGB IEC61966-2.1)
  • Keyboard, trackpad and trackball
  • Audio / Mic (patched using AppleHDA_ALC293.kext and SSDT. VoodooHDA not needed any more)
  • Internal/External USB ports
  • HDMI (audio also!)
  • Camera
  • Shut down / Reboot
  • Brightness control (needs DSDT "Brightness fix")
  • Battery Indicator (needs DSDT patch)
  • Sleep and Wake (needs SSDT/DSDT patch)
  • LED flashing when wake up after sleep (needs SSDT/DSDT patch)
  • Wifi/BT (replaced Intel card for a BCM94352Z)

What's not tested / not working:
  • Fingerprint
  • SD Card Reader

Special thanks to @tluck and @RehabMan.

I assume you currently have:
  • Lenovo Thinkpad T460 with intact out-of-the-box partitions (200+MB EFI Partition is needed for El Capitan)
  • Windows 10 running

  • Press F1 at Laptop startup and change BIOS settings:
    • Set Security / Memory Protection / Execution Prevention = Enabled
    • Set Virtualization / Intel VT = Disabled (you can enable it later)
    • Set Virtualization / Intel VT-d = Disabled (you can enable it later)
    • Set Secure Boot / Secure Boot = Disabled
    • Set Startup / UEFI/Legacy Boot = UEFI Only
    • SET Startup / CSM Support = Yes

The first think you must do is repartition your disk so we can install OS X on this partition:

Because OS X and Windows 10 must be run on the same machine we need both OS work with time in the same manner, so you must setup Windows to use UTC Clock:

  • Download latest El Capitan (it is are free in the Apple App Store)

  • Partition an 8GB (or larger) USB formatted with GUID Partition Table (GPT)
    - Use the Partition Options... menu to change from MBR to GPT
    - Name the partition USB - the install process will rename it, but it matches the script below.
    - Use format: OS X Extended (Journaled)
    Note: Be sure to use a new pendrive becasue I found problems using an old one.

  • Run this command to copy the bits to the USB key:
    Code:
    sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction
  • Manually mount the ESP of the USB and copy the entire EFI directory (from the Zip) onto the ESP directory of the USB
    For example, assuming the USB is disk1 and you unzipped my file in ~/Downloads directory:
    Code:
    diskutil mount /dev/disk1s1
    cp -a ~/Downloads/T460/EFI/* /Volumes/EFI
    Note: run "diskutil list" on the command line to find your USB and HD disk devices

  • Install on your GPT disk - OS X partition.
    Make sure the drive is formatted using Scheme: GUID Partition Map (GPT), Partition Name: OSX, Format: OS X Extended (Journaled)
  • Click through GUI Install menus and wait for the installation to fully complete - on a spinning disk takes about 30-45 minutes.
    Follow these Notes and Tips:
    - When the installer screens shows: "To pair a Bluetooth keyboard, turn it on and wait for your computer to connect to it.”
    Hit the Space Bar to get past this step.

    - When installer seems to hang at: "About a second remaining”
    Don’t Panic, this "second" may take about 10 minutes or more to finish. Just wait for the installer to reboot the computer and continue the installation.The whole install process takes about 1 hour to complete.

    - On the first boot from the HD when asked: "How Do You Connect?”
    Select: “My computer does not connect to the Internet” And set up the network later after installation the NIC driver kext. And your Intel WiFi will not work. Period.

  • Boot Clover from USB
    On startup, hit F12 and select USB boot - but now in Clover select the newly installed disk/partition to start OS X.

    Note: You may see 3 Volumes instead of the expected 2 on the HD - OS X + Recovery HD - make sure you pick the volume that is NOT labelled Recovery HD. See step 3 below to remove the logical volume eliminates the confusion.

  • Complete the installation steps and login
    Note: This will boot up OS X with Clover injecting the custom kexts from the USB (for now).

  • Convert the Logical volume to Physical volume
    The full installer likes to make a logical volume. So for simplicity, I recommend one to revert the root volumes to a regular volume. Run:
    Code:
    sudo diskutil corestorage revert /

  • Copy Clover USB files to HDD EFI partition
    Transfer files to HDD EFI partition exactly like you did previously in USB:

    Code:
    diskutil mount /dev/disk0s1
    cp -a ~/Downloads/T460/EFI/* /Volumes/SYSTEM
    Note: You are now copying files to /dev/disk0s1 which is HDD EFI partition and its name is "SYSTEM"
  • Install the root utilities and clover scripts and files from Utilities folder to your HD
    This step is important as among other things, it installs the rc.scripts to save the nvram contents to a file upon reboot. Using a LogoutHook is more reliable than the CloverDaemon which often fails during shutdown. If you reinstall Clover from a pkg, then recopy the .fixed version to .local in /etc/rc.boot.d and rc.shutdown.d. In a Terminal run:

    Code:
    cd ~/Downloads/T460/Utilities/root
    sudo cp -a * /
    
    sudo defaults write com.apple.loginwindow LogoutHook /etc/rc.shutdown.d/80.save_nvram_plist.local
  • Remove the USB and Reboot to load Windows 10 again


  • Now you can reboot and press F12 here you can select to boot from OS X and Clover will load.

  • Some kexts must be installed in your /System/Library path:
    Code:
    cd T460/EFI/CLOVER/kexts
    ./_kexts-install.command
    ./_post-install-network-reset.command
  • Ethernet Device Installation:
    Code:
    sudo kextload /Library/Extensions/IntelMausiEthernet.kext
    sleep 10
    sudo rm       /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist

  • Dump native ACPI files to EFI/Clover/ACPI/origin path:
    At the main Clover bootloader screen, you can press F4 and Clover will dump the native ACPI files to EFI/Clover/ACPI/origin. You can then access them after you boot OS X to disassemble them and patch. Note that some BIOS implementations reverse the function of Fn+F4 with F4, so when in doubt, press both Fn+F4 and F4. There is no feedback during or after the dump, just a slight delay as the files are written. The delay is more noticeable if they are being written to USB, as would be the case when booting from a Clover USB.
  • Mount your EFI partition and copy dumped files to T460/ACPI-Tables path
    Code:
    diskutil mount /dev/disk0s1
    
    cp -v /Volumes/SYSTEM/EFI/CLOVER/ACPI/origin/ ~/Downloads/T460/DSDT/ACPI-Tables/
  • Copy iasl (https://bitbucket.org/RehabMan/acpica/downloads/iasl.zip) binary to /usr/local/bin in your OS X System partition
  • Disassembly files:
    Code:
    cd T460/DSDT/ACPI-Tables
    iasl -da -dl -fe refs.txt *.aml
  • Install files to your EFI/CLOVER/ partition:
    Code:
    cd T460/DSDT
    ./create_patched_DSDT.bash
    ./complie_SSDT_and_install_patched_SSDT_and_DSDT.bash
  • Reboot and Enjoy !

  • Spanish Keyboard fix "swap º and < keys" :
    1. Edit file /Library/Extensions/VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/Info.plist
    2. Add these two lines (aprox at line 298):
      Code:
      ...
                                      <key>Default</key>
                                      <dict>
      ...
                                              <key>Custom PS2 Map</key>
                                              <array>
                                                      <string>;Items must be strings in the form of scanfrom=scanto (in hex)</string>
                                                      <string>e027=0;disable discrete fnkeys toggle</string>
                                                      <string>e028=0;disable discrete trackpad toggle</string>
                                                      <string>56=29;swap "º" and "less than" keys (e.g.: Spanish Keyboard)</string>
                                                      <string>29=56;swap "º" and "less than" keys (e.g.: Spanish Keyboard)</string>
                                              </array>
    3. Update Kext Cache:
      Code:
      sudo touch /System/Library/Extensions
      sudo kextcache -i /Volumes/OSX
 

Attachments

Last edited:
Joined
Aug 20, 2015
Messages
34
Motherboard
HP Elitebook 820 g2 (Clover UEFI)
CPU
i5-5300u, broadwell
Graphics
hd5500, 1366x768
Mac
MacBook Pro
Mobile Phone
iOS
Thanks for your job.

Can you list the working status of main components of your computer?
 
Joined
Nov 1, 2014
Messages
35
Motherboard
Lenovo T460
CPU
Skylake Intel Core i7-6600U + Intel Sunrise Point-LP, Intel Skylake-U
Graphics
Intel(R) HD Graphics 520 / 1920x1080
Good job indeed.

Is it not possible to use AppleHda instead of VoodooHda?

What about hdmi audio?
 
Joined
Nov 1, 2014
Messages
35
Motherboard
Lenovo T460
CPU
Skylake Intel Core i7-6600U + Intel Sunrise Point-LP, Intel Skylake-U
Graphics
Intel(R) HD Graphics 520 / 1920x1080
All right thank you. And also some points :
- do you use SSD? Trim is directly activated?
- do you have a fingerprint on your T460?
- trackpad is working with multiples fingers gestures?
- sd card reader?

;)

I think it is possible, I will test asap.


I didn't test HDMI yet, I'll test asap.
 
Joined
Dec 9, 2015
Messages
60
All right thank you. And also some points :
- do you use SSD? Trim is directly activated?
- do you have a fingerprint on your T460?
- trackpad is working with multiples fingers gestures?
- sd card reader?

;)
- I don't know how to see if Trim is activated, sorry
- Fingerprint is not working
- Trackpad is two-finger scroll working
- SD Card Reader is not Working
 
Joined
Nov 1, 2014
Messages
35
Motherboard
Lenovo T460
CPU
Skylake Intel Core i7-6600U + Intel Sunrise Point-LP, Intel Skylake-U
Graphics
Intel(R) HD Graphics 520 / 1920x1080
Last edited:
Joined
Mar 14, 2015
Messages
129
Mobile Phone
Android
thanks a ton for the guide!i will make one maybe slightly different coz i use a x260 ;)(giving you the credits for all of your work attaching your guide of course) but managed to reach installer thx to u...when my BCM94352Z arrives i make the replacement and the final install...can someone confirm whitelist is removed?. Made the same question on reddit about the x260 a few days before buying it...a user reported replacing the stock 8260 with an 7265 and worked w/o errors..hope this answers your question @azerty76 ;) thanks a ton again @aleixsr
 
Joined
Nov 1, 2014
Messages
35
Motherboard
Lenovo T460
CPU
Skylake Intel Core i7-6600U + Intel Sunrise Point-LP, Intel Skylake-U
Graphics
Intel(R) HD Graphics 520 / 1920x1080
Hi!

So there are Intel wifi cards which are working?

For the battery, Rehabman said : The best way to deal with dual batteries is with SSDT-BATC.aml (it combines two batteries into one).

Is it different from yours?

Made the same question on reddit abou
thanks a ton for the guide!i will make one maybe slightly different coz i use a x260 ;)(giving you the credits for all of your work attaching your guide of course) but managed to reach installer thx to u...when my BCM94352Z arrives i make the replacement and the final install...can someone confirm whitelist is removed?. Made the same question on reddit about the x260 a few days before buying it...a user reported replacing the stock 8260 with an 7265 and worked w/o errors..hope this answers your question @azerty76 ;) thanks a ton again @aleixsr
 
Top