To start, the developer tools must be installed. Run Terminal, and type:
Code:
git
You will be prompted to install the developer tools. Since you have internet working, you can choose to have it download and install them automatically. Do that before continuing.
After the developer tools are installed, we need to get a couple of projects from my github.
In Terminal:
Code:
mkdir ~/Projects
cd ~/Projects
git clone https://github.com/RehabMan/Lenovo-Y50-DSDT-Patch y50.git
Now it is time to install some more tools and all the kexts that are required...
In Terminal:
Code:
cd ~/Projects/y50.git
./download.sh
./install_downloads.sh
The download.sh script will automatically gather the latest version of all tools (patchmatic, iasl, MaciASL) and all the kexts (ACPIBacklight.kext, ACPIBatteryManager.kext, etc) from bitbucket. The install_downloads.sh will automatically install them to the proper locations.
Note: This guide is written assuming a Synaptics trackpad is installed. According to some of the feedback in this thread, some of these laptops come with an ELAN trackpad instead. I'm not going to link the ELAN trackpad, due to the author's disregard for the open source license, but you can find it on the internet. You will lose some of the keyboard functionality (eg. function keys) present in the Synaptics setup, although the brightness keys should be working (special patch in patches/keyboard.txt)
If you wish, you can reboot to verify a few more items are working (many only partially).
To finish the setup, we need a correctly patched DSDT/SSDT.
With the current project, no patched DSDT/SSDTs are used. Instead, Clover hotpatches and a small SSDT called SSDT-HACK are used instead.
In Terminal:
Code:
cd ~/Projects/y50.git
make
make install
The 'make' causes the SSDT-HACK.aml files to be compiled (with iasl), the results placed in ./build.
Finally, 'make install', mounts the EFI partition, and copies the built files where they can be loaded by Clover (to EFI/Clover/ACPI/patched).
Power Management
Use the ssdtPRgen.sh script by Pike R. Alpha: https://github.com/Piker-Alpha/ssdtPRGen.sh
Instructions for using it are provided in the README.
The generated SSDT.aml should be placed on the EFI partition at /EFI/Clover/ACPI/patched/SSDT.aml.
Based on the current instructions at the README, what follows is a synopsis...
To prepare, you only need to do the first two commands:
Code:
Note: If you have a CPU currently unsupported by the script, you may have to provide the data for it.
For example, i7-4720HQ:
Code:
./ssdtPRGen.sh -p 'i7-4710HQ' -f 2600 -turbo 3600
By providing the name 'i7-4710HQ' (similar enough to i7-4720HQ), and overrides for the non-turbo and turbo frequencies, the script is sucessful. Eventually, it would not be necessary, provided the script is updated with the new CPUs.
When it asks if you want to copy to /Extra just respond 'n'. Same for opening ssdt.dsl... respond 'n'.
The results are at ~/Library/ssdtPRgen/SSDT.aml.
Copy that file to EFI partition, /EFI/Clover/ACPI/patched/SSDT.aml
Code:
cd ~/Projects/y50.git
sudo ./mount_efi.sh /
cp ~/Library/ssdtPRgen/ssdt.aml /Volumes/EFI/EFI/Clover/ACPI/patched/SSDT.aml
Also, be aware that hibernation (suspend to disk or S4 sleep) is not supported on hackintosh.
Always check your hibernatemode after updates and disable it. System updates tend to re-enable it, although the trick above (making sleepimage a directory) tends to help.