Contribute
Register

[Guide] Lenovo Y580 - Sierra (10.12) using Clover UEFI

Status
Not open for further replies.
Joined
Jan 13, 2013
Messages
107
Motherboard
Clevo P950HR (Clover)
CPU
i7-7700HQ/HM175
Graphics
GTX 1070 / HD630, 1920x1080
Mac
  1. iMac
Mobile Phone
  1. Android
  2. iOS
To0YGN5.png
I hope everything will work fine, but it isn't tested that much! So make sure you have proper backups.

Upgrade from El Capitan: (CLOVER ONLY)
1. Download my installer: https://github.com/MegaCookie/Lenovo-Y580-OSX-Installer-Clover
2. Reboot and press F4 at the Clover screen
3. Use my installer and update Clover, Kexts, and Generate clover.config

4. Reboot again and make sure you use an updated VoodooPS2Controller.kext and IntelBaclight.kext and removed ACPIBacklight.kext (it should install it with my latest build)
5. Go to the App Store and download Sierra, the installer will ask you to restart
6. Now select the new created boot option in Clover
7. When everything is done, use my installer again and update Kexts, and Generate clover.config
8. Type this in the terminal to rebuild kexts:
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /
and reboot several times for working sound.


Optional: to change brightness with the arrow keys, patch DSDT again (F4 in Clover, then patch DSDT in my Installer)

Fresh Install of Mac OS Sierra:
Pre install:
Wifi:
It can be a smart thing to unlock your BIOS first on Windows to get wifi working for Mac. To get wifi you need to install a new wireless card, and an unlocked BIOS
http://forum.techinferno.com/lenovo-...-versions.html.
Just search around the internet for a good working wireless card for Mac.

Setup Clover USB:
First you need access to a working Mac, or a hackintosh.
When you've got access to a working OS X installation you need a 8GB+ USB.

a. Plugin your USB and open Terminal (DISK UTILITY CHANGED WITH EL CAPITAN!!)
b Use
Code:
diskutil list
In my case its output is:

/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *128.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Yosemite 64.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3

/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *750.2 GB disk1
1: EFI EFI 209.7 MB disk1s1
2: Microsoft Basic Data HD-Zooi 640.3 GB disk1s2
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *8.2 GB disk2[/B]
So I see that my USB is /dev/disk2. In your case it is maybe /dev/disk1 or even /dev/disk3 so please check that. If you do the following command wrong, you can lose all your data!

c. Now type this in the terminal: change X to the right USB /dev/disk

Code:
diskutil partitionDisk /dev/diskX 2 MBR FAT32 "CLOVER EFI" 200Mi HFS+J "install_osx" R

- Download
EFI.zip, extract then copy EFI folder to the CLOVER EFI partition.
(Optional: To do this manually or if you want more information, see:
http://www.tonymacx86.com/el-capita...de-booting-os-x-installer-laptops-clover.html)
- Go with Finder into the Clover partition > EFI > Clover.
- Delete the not needed config.plist and rename the right config to just config.plist (notice the different screen resolutions).

2. - Download Sierra Install app from AppStore.
- Launch terminal and run the following script:

Code:
sudo "/Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia" --volume  /Volumes/install_osx --applicationpath "/Applications/Install macOS Sierra.app" --nointeraction
(This can take some time, it is still busy when you see a dot within the red close button of the terminal window. WAIT till it says: Done)

- Your El Capitan Installer partition will be renamed "Install OS X El Capitan". Just to make things more easier, we want that renamed to: "install_osx", so now run the following command:
Code:
sudo diskutil rename "Install macOS Sierra" install_osx

3. - Download my Installer from Github:https://github.com/MegaCookie/Lenovo-Y580-OSX-Installer-Clover
Place it on your USB > install_osx (yes you can just drop additional files here too.)

Now switch back to your Lenovo:
Go to your bios (F2 on startup) and change at Configuration:
Sata controller mode = choose AHCI

And at Boot:
UEFI boot = choose enabled
Now save it! (F10)


Let's start:
Make a backup first because Windows must be reinstalled and things can go wrong!


Start the installer:
Place your USB in the USB port directly under the charger input! Only this USB works with a new installation. (Later we make other USB ports also working by installing kexts)
Then press F12 > choose EFI USB DEVICE
Select the
"install_osx" entry and press Space
Choose boot with Verbose and press Enter (Have patience =P)

Having troubles?
Boot by pressing spacebar first and selecting verbose in the Clover Bootloader.

If you're getting a 'waiting for root device message: For a few people the USB ports on the left side seems to work, if that still doesn't work then you have to make a new Unibeast USB (make sure your USB actually works perfectly, if not: simply buy another.)


Fresh Installation :
Select your language
Open on Disk Utility (DISK UTILITY CHANGED WITH EL CAPITAN!!)


a. If there isn't a list to open Disk Utility: In the top menu bar choose Utilities, and click on Disk Utility
b. Highlight your target hard drive for the Mavericks installation in left column.
c. Click Partition tab
d. Click Current and choose 1 (or 2 for dual boot)
e. Click Options...
f. Choose GUID Partition Method
g. Under Name (partition 1): type Mac OS (You can rename it later)
h. Under Format (partition 1): choose Mac OS Extended (Journaled)

g.2. Under Name (partition 2): type Windows (You can rename it later)
h.2 Under Format (partition 2): choose Mac OS Extended (Journaled) IMPORTANT: DON'T USE FAT!!
i. Click Apply then Partition
j. Close Disk Utility

Keep in mind that you can always boot into any partition with the Mac installation USB.

The installation:
Install Sierra on your just made Mac partition, just have patience.

When it's finished, it will automatically reboot. Or you can do it yourself: (F12 > EFI USB DEVICE) into the "install_osx" partition again! NOT THE PARTITION YOU JUST INSTALLED OS X WITH THE USB ON!

Then boot again (F12 >
EFI USB DEVICE) and this time press F4 and select Boot OS X from YourPartition" where YourPartition is the partition you just installed OS X on. In my case I named it OS X. Just have a lot of patience

After installation: Using my installer
Next: go to your Desktop > install_osx
1. Right/ alt click on my installer, and press open.
2. Select the following options:

- Clover UEFI
- Kexts
Config & DSDT patcher:

- Generate Clover Config.plist
- Patch DSDT
- Select the right display type
- SSDT generator
Extra tools: all optional but they are recommended apps.

- MaciASL
- Kext Utility
- Clover Configurator
- You can install more tools depending on your wishes.
3. After the installation, try to reboot without the USB and everything should work fine! For audio & Bluetooth you must reboot two times more and use the command in the terminal:
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /
4. Reboot and THE INSTALLATION IS FINISHED! (Note that booting up for the second time can take a while!)

Useful tips:

Disable Bluetooth Setup Assistent on startup:
Open up System preferences
Choose Bluetooth
Click Advanced at the bottom right corner.
Uncheck the first 2 boxes: open Bluetooth Setup Assistant at startup when no input device is present.
You've maybe a purple-blue menubar to fix this go to System preferences choose Displays and go to the color tab and choose the: General RGB profile.


Remap the command and option keys by going to:
Go to System preferences
Go to Keyboard
Click on special keys (in the bottom right corner)
Recommend settings:
Control-key: choose Command
Option-key: choose Control
Command-key: choose Option

Show all partitions (including the OS X partition itself):
a. Open Finder, Click on Finder in the menu bar, next to the apple logo.
b. Click on Preferences
c. Go to the Sidebar tab (third one)
d. Make sure Hard Disks & External Disks are fully checked.

Open apps from non-trusted developers:
Open Terminal:
Code:
sudo spctl --master-disable
Go to System preferences -> Security & Privacy -> General
Unlock settings by clicking on the lock in the bottom left corner
Choose '
Run Apps from Anywhere'

Fn keys
Volume: Fn+left arrow/ Fn+right arrow (just as Windows)
Screen brightness: Fn+Insert/ Fn+Home (from my installer v1.6.1. on, there is an DSDT patch included to use the arrow keys for brightness too!)
I've tried to change the brightness keys by DSDT fixes but that will cause a kernel panic.

Set BIOS back: Graphic device = choose Switchable Graphics
so you can use your GTX 660M on Windows again.


Clover & Kexts updates
Check for a new update of my Installer and select:
Clover UEFI
Kexts

Change Clover stuff (Config.plist, Clover Kexts)
Mount EFI: In order to manipulate kexts and the config.plist and other Clover related stuff you need to mount the EFI partition: Type in the terminal: diskutil mount EFI

If that doesn't work try: http://themacadmin.com/mounting-the-efi-boot-partition-on-mac-os-x/or use Clover Configurator.
You can edit plist files with Xcode and opening Kexts by right/ alt clicking > Show package Contents.

For more information about which kexts we used, see the my Github > OS X Support Files > Common Kexts
Repatch DSDT
Download my latest installer.
Make sure you select: Patch DSDT and the right display type.
For more information about which DSDT patches we used, see the manual post install zip.

OS X updates:
Install them trough the App Store.
- Backup your important files of course!
- Install the update through the App Store or combo update.

That's it, you can basically update like a real mac! But make sure you read the latest news on this forum and the TonyMacX86 Homepage for compatibility issues.

Normally it isn't needed to update kexts/ add some Clover config.plist patches, but just check the latest posts in this forum.

Note: Bluetooth id injecting is automatically done by Y580ARPT.kext so you don't have to patch Bluetooth, and sound patching will be done automatically too with my AppleHDA patch. See the Mountain Lion thread for patching AppleHDA and this guide: (only if you are curious because you don't have to patch it yourself).
(
http://www.insanelymac.com/forum/topic/298027-guide-aio-guides-for-hackintosh/page-2#entry2030060)

Install Windows as Dualboot:
Download the Windows 10 ISO: https://www.microsoft.com/en-us/software-download/windows10ISO
1. Follow this guide to make a Windows UEFI installation USB.
2. Use Disk Utility to create a new empty/ mac journaled partition. DON'T USE FAT! (AS DISK UTILITY SCREWS THIS UP)
3. Restart with the just made USB plugged in: (F12 > EFI USB DEVICE)
4. Now you can just follow the normal advanced install or custom (needed for the mSATA drive or when having issues installing) Otherwise just continue the normal installation by creating partitions inside the Windows installer and go to step 6.
5. Custom install: make sure you 'delete' the right partition (maybe made it earlier in disk utility as the Windows partition formatted as Mac OS Journaled) before you proceed.
Press Shift + F10, A new command prompt will appear. Type in these commands (and read the comments)!

diskpart
list disk
select disk X
(where X is the drive you want install Windows on.)
(Optional verify you have the right disk by: )
list partition
create partition msr size=128
create partition primary
(will use all the empty space! Or assign some other size by yourself, or just simply select your previously made Windows partition if you have one)
format fs=ntfs quick label=Windows
assign letter=B
select partition 1
(The EFI partition)
assign letter=S
list volume
(Note the letter of your installation USB)
exit

cd \Windows\System32\
dism /Get-WimInfo /WimFile:X:\sources\install.esd (Where X is the letter of your installaties USB, IF it cannot find the file use install.wim instead, AND NOTE THE VERSION YOU WANT TO INSTALL!)

dism /apply-image /imagefile:X:\sources\install.esd /index:VERSION /applydir:B:\
(Where X is the letter of your installation USB, IF it cannot find the file use install.wim instead, and VERSION is the Windows version you want to install from the previous command)

B:
bcdboot B:\Windows /l en-us /s S:
(You can change the language, however this isn't necessary)
exit
6 Close all windows and reboot into the just installed Windows partition and finish the installation...
7. Use in the terminal: diskutil mount EFI Clover Configurator/ this guide to mount EFI partition of your Windows UEFI drive (in case you have installed Windows to second drive, select disk1s1 otherwise just disk0s1). Go to EFI/Microsoft/Boot/ and rename bootmgfw.efi to bootmgfw-orig.efi
8. Restart
9. If you can only boot to Windows after updating Windows, then use the Clover USB/ mount EFI on Windows and rename new bootmgfw.efi to bootmgfw-orig again or if you can't boot Windows after that, just use the old bootmgfw-orig.efi and rename it to bootmgfw.efi

To solve this issue, go to 'Clover boot options' and select: 'Add clover boot options for all entries'. Now go to the BIOS settings (F2 on startup) and go to the 'boot' tab, and set 'Clover start boot ...' as the first option (F5/F6) to your preferred partition. Exit and save (F10)
10. Disable fast startup: http://www.pcadvisor.co.uk/how-to/windows/how-turn-on-or-off-fast-startup-in-windows-10-3633021/

Currently not working: NVIDIA GeForce 660M (because of no NVIDIA Optimus support)

- Please let me know if there are any issues!
 
Last edited:
Hi, Jesser123.
I'm glad to see your new installation guide and installer for Sierra (will try it tomorrow).

Find solution for remapping "Brightness Keys" (Fn + Up/ Fn + Down) like in Windows.
All you need is add this patch in your DSDT:

into method label _Q11 replace_content
begin
// Brightness Down\n
Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n
end;
into method label _Q12 replace_content
begin
// Brightness Up\n
Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n
end;

I used it and it works great.
Of course, I just found info here https://www.tonymacx86.com/threads/guide-patching-dsdt-ssdt-for-laptop-backlight-control.152659/.
Author is our guru - Rehabman.

Thanks for him, thanks for you Jesser, thanks for everybody who try to move this project forward.
 
Update to Sierra was successful. There were some problems, but most of them was solved:
1. CodecComander.kext didn't work for me(There is no sound). Was changed for EAPDFix (OK)
2. TrackPad menu in SysPref was empty - Install VoodooPS2Controller.kext 1.8.25 (OK)
3. Monitor menu in SysPref is empty(didn't do EDID fix else), but laptop works with native resolution (check through about My Mac)

Other things (PM, sleep, BT etc) works good.
 
Update to Sierra was successful. There were some problems, but most of them was solved:
1. CodecComander.kext didn't work for me(There is no sound). Was changed for EAPDFix (OK)

CodecCommander still working on 10.12. Probably your issue was something else (improperly built kernel cache).
 
I'm stuck here:
HRkJTaD.jpg
 
I'm stuck here:
HRkJTaD.jpg

Provide a clear description of what you're doing.
And... Attach EFI/Clover folder as ZIP (omit 'themes' folder).
 
Ok, will try and report back.
I just followed this step, so there must be a mistake in the linked file.
"- Download EFI.zip, extract then copy EFI folder to the CLOVER EFI partition."
 
Hello, guys.

Have an issue with sound. At first I had sound disabled when I installed windows in dualboot, was hopeful that upgrade to Sierra will solve that problem. But still have sound disabled after like 3 reboots. Was doing by this guide everything step by step but still sound doesn't working.
While using Jesser's installer few times macOS crashed and rebooted still don't know why. Few times was error with USBinjectAll kext, but don't think that can be a reason (actually all the usb is work even during sleep). VoodooPS2Controller I think was installed properly.
How can I check what's wrong or solve that issue?
Do I need to add VoodooPS2Controller kext to EFI/Clover/kexts/10.12/ folder?

P.S.
Thanks, now my trackpad working good. Without stoping sometimes until I reboot or go to sleep.

UPD.: Repaired with VoodooHDA 2.8.8
 
Last edited:
Status
Not open for further replies.
Back
Top