Jump to content
ahmed_ais

Guide for Installing OS X on Lenovo IdeaPad Y510p

1,395 posts in this topic

Recommended Posts

Fixed almost everything already written in the guide. BTW if anyone has ELAN trackpad they can use this kext its way better. http://forum.osxlatitude.com/index.php?/topic/1948-elan-and-focaltech-smart-touchpad-driver-mac-os-x

 

Edit: After using the above driver, it broke the brightness key function. But maybe thats just me.

 

Also sleep is not working for me. The laptop sleeps fine but as soon as i wake it, it just restarts. After running "pmset -g assertions" i got 0 assertions, also hibernate is disabled. Nothing suspicious in logs either.

 

@Ahmed : Any suggestions? Anyone?

 

And AppleHDA is working fine. Of course i didn't test "external mic & HDMI audio". If anyone is willing to test let me know.

 

I have a problem with USB3 slots, do not go at all. If i put an external hard drive can be heard as it spins but does not appear in the finder. Does not appear in Disk Utility, System Report. In kext/10.10 I put GenericUSBXHCI. Must be copied xhcdump?

 

No need to copy xhcdump. Did you follow all the steps correctly? If you used DSDT check again.

Share this post


Link to post
Share on other sites
Advertisement

I have a problem with USB3 slots, do not go at all. If i put an external hard drive can be heard as it spins but does not appear in the finder. Does not appear in Disk Utility, System Report. In kext/10.10 I put GenericUSBXHCI. Must be copied xhcdump?

 

I can't help with that because I don't have external hard drive to test with. I would ask in the relevant thread where you will get better advice: http://www.insanelymac.com/forum/topic/286860-genericusbxhci-usb-30-driver-for-os-x-with-source/ 

Fixed almost everything already written in the guide. BTW if anyone has ELAN trackpad they can use this kext its way better. http://forum.osxlatitude.com/index.php?/topic/1948-elan-and-focaltech-smart-touchpad-driver-mac-os-x

 

Edit: After using the above driver, it broke the brightness key function. But maybe thats just me.

Yes, a forum member (useletters) reported this before with Y510p ELAN touchpad. I think you will have to hunt the brightness keys events again and patch DSDT accordingly.

 

Also sleep is not working for me. The laptop sleeps fine but as soon as i wake it, it just restarts. After running "pmset -g assertions" i got 0 assertions, also hibernate is disabled. Nothing suspicious in logs either.

 

@Ahmed : Any suggestions? Anyone?

 

Not having any kernel assertions means system have no problem to sleep but doesn't give a clue about wake reason. You can try "pmset -g log" to get a log with all the info including wake reason or open Console and filer for "Wake Reason" and you will have some info to start with.

 

And AppleHDA is working fine. Of course i didn't test "external mic & HDMI audio". If anyone is willing to test let me know.

 

I don't know the method you got AppleHDA working. For me, I patched DSDT and used a patched kext made by Mirone but the external mic is not working. If you are using the same kext I can assure you will not have external mic working either because I investigated it and found that it is not defined or connected within the driver. The kext will have to be edited to get this working which is what I have been doing but without success at the moment.

Share this post


Link to post
Share on other sites

Yes, a forum member (useletters) reported this before with Y510p ELAN touchpad. I think you will have to hunt the brightness keys events again and patch DSDT accordingly.

 

Thats where my knowledge falls short. I've tried looking in system.log for key events. But it shows nothing. I'll try again.

 

 

I don't know the method you got AppleHDA working. For me, I patched DSDT and used a patched kext made by Mirone but the external mic is not working. If you are using the same kext I can assure you will not have external mic working either because I investigated it and found that it is not defined or connected within the driver. The kext will have to be edited to get this working which is what I have been doing but without success at the moment.

 

Yeah im using the same kext. And that guide went straight over my head after Chapter 2. That drove me nuts.

Share this post


Link to post
Share on other sites

Thats where my knowledge falls short. I've tried looking in system.log for key events. But it shows nothing. I'll try again.

The system.log will only have logs from system and those reported from external sources (like as told you before regarding power management). When I did that in the past, I had to do the following in order to get key-events info in log:

  1. You have to install ACPIDebug.kext
  2. DSDT patch: Add DSDT Debug Methods
  3. DSDT patch: Instrument EC Queries

The two DSDT patches are available from RehabMan Debug Repository which you can add in MaciASL with this url: http://raw.github.com/RehabMan/OS-X-ACPI-Debug/master

 

Note: this procedure assumes that the key-event is handled by ACPI, if this was different in your case (I doubt it) then it may not work.

 

Yeah im using the same kext. And that guide went straight over my head after Chapter 2. That drove me nuts.

 

It is somehow complicated by its own, not to mention the language used in the guide which made it harder to understand. But I have to give the author the credit for that guide, he did the best he could.

 

This is our codec map post-1381685-0-07262400-1424614678_thumb.png where the [Jack] Mic at Ext Right Stereo have a path in the map but it is not implemented in the kext!

Share this post


Link to post
Share on other sites

The system.log will only have logs from system and those reported from external sources (like as told you before regarding power management). When I did that in the past, I had to do the following in order to get key-events info in log:

  1. You have to install ACPIDebug.kext
  2. DSDT patch: Add DSDT Debug Methods
  3. DSDT patch: Instrument EC Queries

The two DSDT patches are available from RehabMan Debug Repository which you can add in MaciASL with this url: http://raw.github.com/RehabMan/OS-X-ACPI-Debug/master

 

Note: this procedure assumes that the key-event is handled by ACPI, if this was different in your case (I doubt it) then it may not work.

 

Did all that but forgot about EC Queries. Thanks for reminding.

 

It is somehow complicated by its own, not to mention the language used in the guide which made it harder to understand. But I have to give the author the credit for that guide, he did the best he could.

 

This is our codec map attachicon.gifcodec_dump_dec.txt.png where the [Jack] Mic at Ext Right Stereo have a path in the map but it is not implemented in the kext!

 

Thats what i got. Wait i'll try.

Share this post


Link to post
Share on other sites

Thats what i got. Wait i'll try.

 

Regarding AppleHDA external mic issue, I just got a reply from Mirone which is disappointing. He said that the problem is how our hardware is configured where the mic and headphones jacks are not separated (what is known as comboJack) and this configuration is troublesome to fix for AppleHDA and there is no solution for this so far. That's not so bad considering VoodooHDA does not enable the external mic either so at least we can have nice sound using AppleHDA instead of VoodooHDA even with one feature not working.

 

Anyone got sleep working?

 

I don't know what your problem is, sleep IS working fine on our laptop if you followed the steps in the guide. I remember I told you (maybe some one else?) that if the system sleep but reboot immediately then it is a wake problem and should filter system log (using console) for "Wake Reason" so we know what to fix.

Share this post


Link to post
Share on other sites

Regarding AppleHDA external mic issue, I just got a reply from Mirone which is disappointing. He said that the problem is how our hardware is configured where the mic and headphones jacks are not separated (what is known as comboJack) and this configuration is troublesome to fix for AppleHDA and there is no solution for this so far. That's not so bad considering VoodooHDA does not enable the external mic either so at least we can have nice sound using AppleHDA instead of VoodooHDA even with one feature not working.

 

That's sad news. I patched my AppleHDA but i did something wrong while patching it and now my internal mic is not working. I'll try again. BTW if u can, what is your pathway for internal mic? I got these and i'm confused:

Internal Mic (0x12):

18-> 17 (0x12->0x11) 

25->35->8 (0x19->0x23->0x08)

 

I will try it with the graphical method (didnt try that guide so far)

 

 

I don't know what your problem is, sleep IS working fine on our laptop if you followed the steps in the guide. I remember I told you (maybe some one else?) that if the system sleep but reboot immediately then it is a wake problem and should filter system log (using console) for "Wake Reason" so we know what to fix.

 

I patched my DSDT again from scratch. And now sleep is working fine. With audio not working afterwards. But its easy to fix.

Share this post


Link to post
Share on other sites

That's sad news.

 

I would like to add something. I think Mirone was not correct regarding our laptop having Audio Combo Jack (combo jacks are not supported by Apple) because I think it does not. I googled and found the combo jack is a single jack that allow a single connector to feed both external mic and headphone like this one:

iphone_3_5mm_headset_connector_pinout.jp

 

Lenovo Y50 have this combo jack as you can see in this picture:

y50.jpg

 

 

But our Y510p have two separated jacks so it is not a combo jack:

y510p.jpg

 

This, if true, will give us a chance to try to get AppleHDA working with external mic fixed.

 

 

I patched my AppleHDA but i did something wrong while patching it and now my internal mic is not working. I'll try again. BTW if u can, what is your pathway for internal mic? I got these and i'm confused:

Internal Mic (0x12):

18-> 17 (0x12->0x11) 

25->35->8 (0x19->0x23->0x08)

 

I will try it with the graphical method (didnt try that guide so far)

The path should be coded in reverse order for mic so the path for the internal mic should be coded 17 -> 18 (which is implemented in the kext) and the path for external mic is (according to my map) is 8->35->24. On my map 24 refers to [Jack] Mic at Ext Right and 25 refers to [N/A] Speaker at Ext Rear.

Share this post


Link to post
Share on other sites

 

I would like to add something.

.....

 

Thats what i thought at first. Combo jack is different and its not implemented in our laptops.

 

 

The path should be coded in reverse order for mic so the path for the internal mic should be coded 17 -> 18 (which is implemented in the kext) and the path for external mic is (according to my map) is 8->35->24. On my map 24 refers to [Jack] Mic at Ext Right and 25 refers to [N/A] Speaker at Ext Rear.

 

Ok. The internal mic is configured ok. So here's what i have on external mic:

 

Generic pathway:

 

Audio Input -> Audio Mixer -> Pin Complex

 

For External Mic:

 

0x08 -> 0x23 -> 0x18 0x19 0x1a 0x1b 0x1d 0x0b

0x09 -> 0x22 -> 0x18 0x19 0x1a 0x1b 0x1d 0x0b

 

where,

 

0x18 -> [Jack] Mic at Ext Right

0x19 -> [N/A] Speaker at Ext Rear

 

So the path for External Mic becomes:

 

0x08 -> 0x23 -> 0x18  |  (8 -> 35 -> 24)

0x09 -> 0x22 -> 0x18  |  (9 -> 34 -> 24)

 

I'm going to try both of them next time. Frankly, i'm quite confused with editing layout.xml & platform.xml. But i'll get it done.

 

And btw i'm too having problem with Graphics after sleep. Any solution yet?

Share this post


Link to post
Share on other sites

And btw i'm too having problem with Graphics after sleep. Any solution yet?

 

Well, the problem is not related to sleep. Putting the system to sleep then awake is just one way to replicate a more general problem. The problem happens whenever the display is turned OFF then ON and this can be replicated by different scenarios:

  • System sleep: it turns display off in the process then on wake it turns display on
  • Screen Saver: on switch on it turns display off then on to activate SS
  • Selecting display sleep to any corner from screen saver dialog 
  • Changing screen resolution: Display turns off then on as part of the process

There may be other scenarios to replicate the problem. But it is related to graphics mainly, and no solution I know of yet!

Share this post


Link to post
Share on other sites

Hi guys, any one interested helping in trying to get AppleHDA working instead of VoodooHDA? I started to dig in but would appreciate some cooperation !!

 

 

Update: GOT IT WORKING! now testing it  :thumbsup_anim:

 

Update2: After testing ....

  • Audio output:
    • Internal Speaker (built in): Works
    • External Speaker (headphone): Works (with auto switching of course)
  • Audio input:
    • Internal Microphone (built in): Works
    • External Microphone: Not Working

I think I will need to patch the AppleHDA kext from scratch to fix external microphone issue ...  :wallbash:

 

Ok. So after 4 days of hard work i finally fixed it. :thumbsup_anim:

 

Internal/External Mic is now working perfectly with AppleHDA.

 

  • Audio output:
    • Internal Speaker (built in):           Works
    • External Speaker (Headphone):   Works (with auto switching)
  • Audio input:
    • Internal Microphone (built in):    Works (with ambient noise reduction)
    • External Microphone:                 Works (with auto switching)

 

Attached are the two files:

 

AppleHDA.kext & EAPDFix.kext

 

EAPDFix.kext : to prevent sound "not working" after sleep.

 

Note: If you are using VoodooHDA, uninstall it first. It wont work with VoodooHDA.

 

Just one thing to do after installing the kexts:

 

Goto Clover Configurator -> Devices -> Audio (Inject) -> 3

 

You're all done. Enjoy crisp sound of apple drivers.

 

AppleHDA >>>>> VoodooHDA (Much better). Try it yourself if you don't believe me. If you want more power install "Boom 2".

 

Now onto HDMI:

 

I am trying to patch HDMI audio too. But i cannot test it. If anybody's interested in testing please let me know. I'll hard to get it working. 

 

ELAN Touchpad Fix:

 

Also, if anybody's using ELAN touchpad driver. It breaks the brightness key shortcut (Fn+Vol up/down) functionality. Good news is, I've fixed it too. It requires a DSDT patch to work properly afterwards. Also working:

 

Fn+F1 -> Sleep

Fn+F6 -> Touchpad On/Off

Fn+F9 -> Media Play/Pause

 

If your Touchpad is ELAN i'll highly recommend this driver http://forum.osxlatitude.com/index.php?/topic/1948-elan-and-focaltech-smart-touchpad-driver-mac-os-x/.

Its even better than windows driver (much better). Let me know guys if you want this fix. Keep hackintoshing!

 

 

And please guys leave some feedback on what's working and what's not. Its not easy to find bugs. If you encounter any please post it here.

 

 

PS. @Ahmed: You can update the guide.

AppleHDAFixed.zip

Share this post


Link to post
Share on other sites

Try Clover 2953, worked from me. Do not forget to make folder 10.10 in kext and copy Fake smc and VoodooPS2Controller.

This is after successfully creating an installer, installing OS X Yosemite onto a partition, and booting to it using USB successfully. I am trying to install Clover on the HDD and boot from it. I successfully installed several versions of Clover, but booting has had varying degrees of failure. 

 

I tried 2953 and also does and instant reboot for me. Here are the steps I take:

 

1) Install Clover version using following config:

  • Install for UEFI booting only.
  • Install Clover in the ESP.
  • Themes > BootCamp (or whatever)
  • Drivers64UEFI > EmuVariableUefi-64, OsxAptioFixDrv-64, PartitionDxe-64
  • Tick “Install all RC scripts on target volume”.
  • Tick “Install Clover Preference Pane”.

 

2) Configure Clover using Clover Configurator:

 

 

  • Also edit config.plist to reflect these:
    •  
    • ​​ACPI > DSDT > Fixes > Remove All
    • ACPI > DSDT > DropTables > Remove All
    • ACPI > SSDT > Generate > CStates > false
    • ACPI > SSDT > Generate > PStates > false
    • Boot > Arguments > slide=0 dart=0 darkwake=0 nv_disable=1 -gux_defer_usb2 kext-dev-mode=1
    • Devices > FakeID > IntelGFX > 0x04128086
    • Graphics > Inject > Intel > true
    • Graphics > ig-platform-id > 0x0a260006 (you can try others)
    • SMBIOS > (set it to iMac14,2)
    • Replace “VBoxHFS.efi” with downloaded “HFSPlus.efi” in the folder “Drivers64UEFI”.
    • Copy the two kexts downloaded (FakeSMC.kext and VoodooPS2Controller.kext) into Kexts > 10.10 (or into Kexts > other)

3) Reboot.

 

This has failed so far with clover v2953, v2999, and v3168. However, v3168 actually boots all the way but never enters graphical mode. The others reset to BIOS almost immediately. Any thoughts?

Share this post


Link to post
Share on other sites

......

This has failed so far with clover v2953, v2999, and v3168. However, v3168 actually boots all the way but never enters graphical mode. The others reset to BIOS almost immediately. Any thoughts?

 

Sorry but i don't get the question.

 

Is it not booting to installer or is not booting after installing mac and clover?

Share this post


Link to post
Share on other sites

Sorry but i don't get the question.

 

Is it not booting to installer or is not booting after installing mac and clover?

I edited the top of my post with more info. Re-read please.

Share this post


Link to post
Share on other sites

I edited the top of my post with more info. Re-read please.

 

Ok so first thing's first. Which clover version did you use to make usb installer? If that's booting to installer (and i know its booting) then you should install the same version into HDD. And also make sure to select "Proper Partition" while installing clover. I know its silly but generally with two efi partitions (usb & HDD) mistakes are inevitable sometimes.

 

After installing clover, go to your usb's EFI partition and copy the clover folder to Desktop. Remove the usb. Now mount EFI of HDD using clover configurator or any other method. Download config.plist and paste it in Clover. Also download HFSPlus.efi, DSDT & SSDT's and required kexts from OP and paste it in appropriate folders inside clover. Reboot.

Share this post


Link to post
Share on other sites

Ok. So after 4 days of hard work i finally fixed it. :thumbsup_anim:

 

Internal/External Mic is now working perfectly with AppleHDA.

 

  • Audio output:
    • Internal Speaker (built in):           Works
    • External Speaker (Headphone):   Works (with auto switching)
  • Audio input:
    • Internal Microphone (built in):    Works (with ambient noise reduction)
    • External Microphone:                 Works (with auto switching)

 

Attached are the two files:

 

AppleHDA.kext & EAPDFix.kext

 

EAPDFix.kext : to prevent sound "not working" after sleep.

 

Note: If you are using VoodooHDA, uninstall it first. It wont work with VoodooHDA.

 

Just one thing to do after installing the kexts:

 

Goto Clover Configurator -> Devices -> Audio (Inject) -> 3

 

You're all done. Enjoy crisp sound of apple drivers.

 

AppleHDA >>>>> VoodooHDA (Much better). Try it yourself if you don't believe me. If you want more power install "Boom 2".

 

And please guys leave some feedback on what's working and what's not. Its not easy to find bugs. If you encounter any please post it here.

 

 

PS. @Ahmed: You can update the guide.

 

GREAT WORK!

 

That's what I means by collaboration.

I tried it myself, and it is working just as you described.

I will update the guide to include your work, good job!

Share this post


Link to post
Share on other sites

GREAT WORK!

 

That's what I means by collaboration.

I tried it myself, and it is working just as you described.

I will update the guide to include your work, good job!

 

Thanks mate. 

 

Can you test HDMI? I can't because i'm way too far from home and i don't have anything to test it with. It would be great if somebody can test it. It won't work obviously but i'm working on it.

Share this post


Link to post
Share on other sites

Ok so first thing's first. Which clover version did you use to make usb installer? If that's booting to installer (and i know its booting) then you should install the same version into HDD. And also make sure to select "Proper Partition" while installing clover. I know its silly but generally with two efi partitions (usb & HDD) mistakes are inevitable sometimes.

 

After installing clover, go to your usb's EFI partition and copy the clover folder to Desktop. Remove the usb. Now mount EFI of HDD using clover configurator or any other method. Download config.plist and paste it in Clover. Also download HFSPlus.efi, DSDT & SSDT's and required kexts from OP and paste it in appropriate folders inside clover. Reboot.

Looks like I used v3156 to create the installer when I meant to use v2999. Where do I select "Proper Partition"? Or do you mean just make sure I install it to the correct partition. I'm almost 100% positive I've been installing to the correct partition. I always mount EFI partition via Clover Configurator, and I've been using the one from /dev/disk1 because I know that's my EFI boot partition.

 

I will try your suggestion now.

Share this post


Link to post
Share on other sites

Looks like I used v3156 to create the installer when I meant to use v2999. Where do I select "Proper Partition"? Or do you mean just make sure I install it to the correct partition. I'm almost 100% positive I've been installing to the correct partition. I always mount EFI partition via Clover Configurator, and I've been using the one from /dev/disk1 because I know that's my EFI boot partition.

 

I will try your suggestion now.

 

I meant to install it to correct partition. Yeah that's good. Always remember the disk name of EFI. Try it and let me know.

Share this post


Link to post
Share on other sites

I figured out what my problem was with the v3xxx Clovers: /EFI/EFI/CLOVER/kexts/10.10/*.kext and /EFI/EFI/CLOVER/kexts/Other/*.kext are pretty much ignored by my Clover install for whatever reasons. I copied my Kexts to /S/L/E and added the Forced Kext Load whatever from Clover and that did the trick for me. Now I boot from HDD. Going to continue from here. Thanks for the help everyone!

Share this post


Link to post
Share on other sites

I figured out what my problem was with the v3xxx Clovers: /EFI/EFI/CLOVER/kexts/10.10/*.kext and /EFI/EFI/CLOVER/kexts/Other/*.kext are pretty much ignored by my Clover install for whatever reasons. I copied my Kexts to /S/L/E and added the Forced Kext Load whatever from Clover and that did the trick for me. Now I boot from HDD. Going to continue from here. Thanks for the help everyone!

 

Happy that you succeeded. Enjoy :)

Share this post


Link to post
Share on other sites

Thanks mate. 

 

Can you test HDMI? I can't because i'm way too far from home and i don't have anything to test it with. It would be great if somebody can test it. It won't work obviously but i'm working on it.

 

HDMI Audio needs much more than a working AppleHDA.kext but it is a good start, lets do this!

Share this post


Link to post
Share on other sites

So, how can I tell whether the Graphics part worked? I installed the three mentioned Kexts and manually edited my plist.config to include the sections by just pasting them toward the bottom of the file. I used DPCIManager to fix perms clear caches. I reboot and set Clover to boot w/o caches and the graphics haven't changed in performance and they're still just as glitched. Any suggestions on what I may have done wrong based on my steps?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×