Giter Site home page Giter Site logo

lenovo-thinkpad-l13-yoga-hackintosh's Introduction

ThinkPad-L13-Yoga-Hackintosh

Status: Success | Stable

L13 Yoga macOS

OpenCore macOS-Unstable macOS-Unstable macOS-Unstable

**DISCLAIMER: ** As you embark on your Hackintosh journey you are encouraged to READ the entire README and Dortania guides before you start, or check out some Youtube videos to get an understanding of the install process. It will save many a message instructing you to read the manual. I am not an expert, I haven't forced you to do anything, so put on your big boy pants and take responsibility for any mess you get yourself into.

With that said I'm happy to help when/where I can. When you encounter bug or want to improve this repo, consider opening an issue or pull request. You can also find a wealth of knowledge on Reddit, TonyMacX86 or Google.

Introduction

⚠️ Still issues with Ventura & Sonoma ⚠️ - see MacOS Selection below.

This is not a guide!

This is not a guide. It shoud only be used as a reference. I provide some tips and tricks I learned on my journey in building a hackintosh. The best way of using this is as a supplement to the OpenCore guide; if you have questions about how to setup your specific hardware, are unclear about what to do, or would like to see the settings I've used.

I understand that some may simply copy the EFI folder to their EFI partition. For clarity the EFI folder needs to go into the EFI partition.

EFI (partition)
	EFI
	├── BOOT
	├── OC

It should work and your ThinkPad L13 Yoga should boot and work fine. You will at minimum need to generate SMBIOS values if you want Apple services to work. Note that all error reporting/logging has been turned off in the config.plist. You will have a difficult time trouble shooting with the setup provided. You can easily turn on the error reporting and logging if you follow the Dortania guide. Best of luck.

NOTE if you simply wish to copy my EFI please do the following:

  1. Generate SMBIOS values and add them in the config.plist (Use MacBookPro16,3)
  2. Ensure the value of showpicker is true in the config.plist file to provide the opencore menu when booting.
  3. Prepare your install USB
  4. Move the entire EFI folder (with your modifications) to the proper partition on your USB (or hard drive once the install is complete).
  5. Install - You'll need to select F12 to get the boot menu options and boot from the USB each time the computer restarts until you've copied the EFI folder onto the hard drive. You may also need to select the correct boot option during install.
This is a guide!

To install macOS follow the guides provided by Dortania 🤔

Shout out and credits

Shout out to oddish_enthusiast who pointed me in the right direction and let me know when OpenCore 0.6.7 fixed booting on 10^th^ gen processors. (He actually had it working before that).

Shout out toDAlexis74 for the DevicesProperties patches to enable HDMI.

Shout out to alexjaixd for enabling Built-in SmartCard Reader #20

Credit to all these great people whom I don't know but have made my hackintosh dreams come true:

Other Repositories
Hardware

UEFI

ThinkPad L13 Yoga

Category Component Note
Type 20R5, 20R6
CPU Intel Core i5-10210U
GPU Intel UHD
SSD WD 512GB Replaced cursed PM 981 which still doesn't work reliably
Screen 13" FHD 1920x1080 Multi touch and pen* support working
Memory 8GB / 2666MHz DDR4
Battery Integrated Li-Polymer 46Wh Single battery
Camera 720p Camera and 5MP camera Both cameras working
Wifi & BT Intel Wireless-AC 9560 Use AirportItlwm for your macOS version and enjoy native Wi-Fi control.
Input PS2 Keyboard & I2CHID TrackPad (touchscreen and pen) I'm using YogaSMC for media keys. The kext is in the folder but you'll need to install the app.

*Pen support causes kernel panic with Ventura or Sonoma during shutdown. With the updated VoodooI2C kexts the pen will not function.

Main software
Component Version
macOS Sonoma 14.2.1
OpenCore v0.9.7
ACPI Files
Component
ssdt_data.aml
SSDT-AWAC.aml
SSDT-EC-USBX-LAPTOP.aml
SSDT-OCBAT1-lenovoPRO13.aml
SSDT-PNLF-CFL.aml
SSDT-RHUB.aml
SSDT-XOSI
Kernel extensions
Kext Version
AirportItlwm 2.2.0
AirportItlwmV (Ventura) 2.2.0
AirportItlwmS (Sonoma) 2.3.0 alpha
AppleALC 1.8.8
BrightnessKeys 1.0.3
CPUFriend 1.2.7
IntelBluetoothFirmware 2.3.0
BlueToolFixup.kext 2.6.8
IntelMausi 1.0.7
Lilu 1.6.7
Sinetek-rtsx 9.0
SMCBatteryManager 1.3.2
SMCProcessor 1.3.2
SMCSuperIO 1.3.2
USBMap 1.0.1
VirtualSMC 1.3.2
VoodooI2C* 2.8
VoodooI2CHID 2.8
VoodooPS2Controller 2.3.5
WhateverGreen 1.6.6
YogaSMC 1.5.3

*VoodooI2C v2.6.5 kexts cause kernel panic for Ventura or Sonoma during shutdown. I've update the kexts to v2.8 as I don't typically use the pen but you can revert to v2.6.5 if you need pen support.

UEFI drivers
Driver Version
HfsPlus.efi 1.0.0
OpenRuntime.efi OpenCorePkg 0.9.7
ResetNvramEntry.efi OpenCorePkg 0.9.7
Screenshot

Monterey

Before installation

UEFI settings

Config

  • Keyboard/Mouse
    • Trackpoint Enabled
    • Trackpad Enabled
  • Display
    • Boot Display Device ThinkPad LCD
    • Total Graphics Memory 512MB
    • Boot Time Extension Disabled
  • CPU
    • Intel Hyper-Threading Technology Enabled

Security

  • Password Disabled
  • Security Chip Disabled
  • Memory Protection -> Execution Prevention Enabled
  • Virtualization -> Intel Virtualization Technology Enabled
  • Virtualization -> Intel VT-d Feature Disabled
  • Virtualization -> Enhanced Windows Biometric Security Disabled
  • I/O Port Access -> FingerPrint Reader Disabled
  • I/O Port Access -> Memory Card Slot Disabled
  • Secure Boot -> Secure Boot Disabled
  • Intel SGX -> Intel SGX Control Disabled
  • Device Guard Disabled

Startup

  • UEFI/Legacy Boot UEFI Only
  • CSM Support No
  • Boot Mode Diagnostics (This can be changed to "Quick" once you know your system is running properly)
Own prev-lang-kbd

In the config.plist file you set the default language as outlined in the guide. You can either add it as a string or as a hex data using ProperTree

The setting is found in the config.plist under:

  • NVRAM
    • 7C436110-AB2A-4BBB-A880-FE41995C9F82

Format is lang-COUNTRY:keyboard

  • 🇺🇸 | [0] en_US - U.S --> en-US:0 --> (656e2d55 533a30 in HEX)
Key Type Value
prev-lang:kbd String en-US:0

It is set to English but you can find alternatives here:

AppleKeyboardLayouts

MacOS Selection

The EFI folder is setup for both Monterey, Ventura, and Sonoma. I used MinKernel and MaxKernel values in the config.plist to load the proper kexts based on which OS is being used. It kinda works with Ventura and Sonoma but there are still some issues:

  1. To use the stylus you need VoodooI2C-v2.6.5 (last version where stylus was working). Unfortunately this creates kernel panics when shutting down or rebooting in Ventura.
  2. When shutting down Ventura with VoodooI2C-2.6.5 kexts installed the computer reboots.
  3. If you upgrade to newer version of VoodooI2C then Ventura works (touch works with finger) but the stylus doesn't.

I'm primarily using this EFI with Sonoma 14.2.1 at the moment.

Post-Install

TrackPad - Disable force touch

If the Battery management doesn't show up in the System Preferences after the SSDT-OCBAT1-lenovoPRO13.aml file is added to your ACPI folder and config.plist file. You will not be able to change any trackpad settings. You may experience the annoying behaviour of clicking on the touchpad and it doing a Force Touch where the preview of the file is shown. I found this very annoying. You can disable force touch by modifying the file in ~/Library/Preferences/com.apple.AppleMultitouchTrackpad.plist Opened it with Propertree and changed ForceSuppressed to True

Another trick to manage your trackpad, if you can't get the battery to work, is to connect a bluetooth trackpad. Once the bluetooth trackpad is connected you can adjust the settings. Disconnect the bluetooth trackpad and your built in one will maintain those settings.

I used these methods prior to adding the SSDT-OCBAT1-lenovoPRO13.aml from hagenest/thinkpad-l13-yoga-hackintosh repo.

Generate your own SMBIOS

Use GenSMBIOS to create your own serial #... based off of your preferred model.

  • MacBookPro16,3 -What I used

Note: If you use a different SMBIOS model than the MacbookPro16,3 that I've used. The provided USB mapping will not work. You will need to edit the USBMap.kext file. You can right click on the file and select Show Package Contents. From there you can open the Info.plist file in ProperTree and change MacBookPro16,3 to whatever Model ID you've chosen. This should provide a working USBMap.kext.

CPUFriend power management

Generate CPUFriendDataProvider or ssdt_data.aml (choose one) for your machine here or use the ssd_data.aml file provided. My files are set for power conservation over performance. Highly recommended that you use power management.

USB Port Mapping

While first port mapping I followed the Dortania guide here with USBInjectAll.kext install... when doing so the internal USB ports did not show up and the cameras, touch screen, and bluetooth did not function. I noticed on the USBmap tool screen that RHUB was showing so I Googled it and it brought me back to the Dortania guide here. I added the SSDT-RHUB.aml to the APCI folder rebooted and all the ports showed up. I then mapped the USB ports creating the included USBMap.kext file.

Audio Setup

The L13 Yoga has CX8070 for audio which requires the boot-arg or device property below. You can use the boot-args to initially setup your config.plist file as suggested in the guide or simply add the device property. Everything should work, built-in microphone, speakers, headphone jack and microphone.

NVRAM:

Key Value
boot-args alcid=15

DeviceProperties

Key Type Value
PciRoot(0x0)/Pci(0x1F,0x3) Dictionary
layout-id Data 0f000000

Status

What's working ✅
  • Battery percentage
  • Bluetooth - Intel Wireless-AC 9560
  • Wifi - Intel Wireless-AC 9560
  • CPU power management
  • GPU UHD hardware acceleration / performance
  • iMessage, FaceTime, App Store, iTunes Store. Generate your own SMBIOS
  • Intel I219-V Ethernet port -works with the Lenovo dongle
  • Keyboard Volume and brightness hotkeys, with YogaSMC and BrightnessKey kexts
  • Audio - Conexant CX8070 -"alcid=15" - or see setup above
  • Microphone
  • Sleep/Wake
  • TrackPoint Works perfectly. Just like on Windows or Linux.
  • USB Ports USB map created.
  • Web camera Both cameras are working after the USB mapping was done.
  • TouchPad 1-3 fingers swipe gestures
  • Multi-Touch Screen Pen also working
  • Graphical Boot menu OpenCanopy (It does work. Not included in OC folder as I generally skip the boot menu.)
  • HDMI
  • SD Card reader
  • SmartCard Reader not available on all units
What's not working ⚠️
  • Fingerprint reader - No. Don't expect macOS driver any time soon.
  • Samsung PM 981 NVME drive - Still unstable. Could work for some, not for others.
  • Intel Optane - It causes Kernel Panic in boot (see issue #14)
Untested
  • Boot chime should work I just haven't tried it
  • FileVault should work I just haven't tried it
  • Sidecar wired
  • Sidecar wireless
  • Windows/Linux from OC boot menuI'm not dual booting my system but there's no reason it shouldn't work.

lenovo-thinkpad-l13-yoga-hackintosh's People

Contributors

fidelgb avatar seven-of-eleven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lenovo-thinkpad-l13-yoga-hackintosh's Issues

Please revert VoodooI2C 2.7 to 2.6.5 in latest release

Hi, in your latest 0.8.2 release, you've updated Voodooi2c from 2.6.5 to 2.7. This version of Voodooi2c (specifically Voodooi2cHID bundled) causes the Wacom AES pen to not function at all, only finger touch works. This issue has already been reported to Voodooi2c official repository by others (VoodooI2C/VoodooI2C#500). However there's currently no fix for it yet. My own Thinkpad Yoga 260, 370 and L13 Yoga all had this problem and has been fixed by reverting back to Voodooi2c 2.6.5.

Experiencing freezing when installing Catalina

I want to thank you for putting this together, everything seems to be working great except I haven't been able to do a full install yet as it freezes in the middle of an install.

I know you referenced an issue with the nvme drive that came with yours, it wasn't the samsung drive? Because mine has a Samsung MZVLB256HBHQ drive and yes I did add the nvme fix kext that was listed in the open core guide, could it be there is a slight variant in the hardware that I need to tweak somethings?

Integrated Keyboard not working

Hey there,

I tried to reinstall macOS last week, after going back to arch. But for some reason the keyboard is not working, neither with my old EFI nor with yours. The weird thing is, that it worked perfectly the last time and that it still works in the UEFI.
I've tried to play around with different voodoo kexts and plugins, but nothing worked.

Do you have any idea what the problem could be? And thanks again for the clean repo and guide :)

OpenCanopy

You said OpenCanopy works, but I can't get the boot chime to work and it seems like the boot menu behaves a little weird with the keyboard. But everything else seems to be working fine.

ACPI compatibility with Yoga-520-15ikb (Digitizer)

Hi there,
this is not an issue. I found out in therms of the hardware it looks quite simmilar to Yoga-520-15ikb model.
I have a great success with my own similar approach, but wacom active pen (or digitizer or stylus) is still not working.
I've seen you managed to get it work. That's great!

Could you pls, give me a hint, which one of ACPI files does correspond to the fixes related to the pen support?
I am using the same Kexts (not sure about the version). Or like, did you have some issues when you were setting it up?
In IORegistry I can find something I2C1@15,1 which has WCOM field attached to VoodooI2CControllerDriver

Thanks

Monterey Installation Failure

I'm using the latest version of the repo, but after initial install (USB). I restart after it finishes back into the usb to boot into the installed partition, then the Apple Logo will show for about 3-4 seconds and then it shuts off and reboots. I will say that what I'm trying is a bit unorthodox, but I am dual booting with Windows 11. The drive is GUID Partition Table though so it should be fine, and the TPM chip and Secure Boot are both off.

Any help would be appreciated. Thanks

Any possibility of macOS Sonoma support?

Hi there,

The current release works fine with macOS Monterey, and I really appreciate it. A few weeks ago I managed to find an engineer who helped upgrade the soldered RAM of my L13 Yoga from 8GB to 16GB, which makes this machine a much more usable laptop for my work and study.

However, I realized more apps start to drop support for macOS Monterey and shift their focus to Ventura and the newer Sonoma.

I know one should NOT have expectations when it comes to the OS upgrade of a Hackintosh, after all people may have more important things in their life and they are never paid for their contribution. That said, I would really appreciate it if you could let me know if there is any remote possibility in the near future that you will release an update with Sonoma support.

Lastly, I wish you a very Merry Christmas and Happy New Year.

Kind regards,
Hu

Incorrect base frequency

As I notice in your specs, your processor is i5-10210U, with base freq 1.6, while the screenshot shows it is 2.11GHz.

I have the same issue. My cpu is i7-10510U that has base freq of 1.8GHz and max freq 4.9GHz. The system reads my cpu as 2.3GHz base (shown in the screenshot)

image

So I wanna ask whether it is just for show, or the system reads cpu specs incorrectly, or it is in the config files like .aml files? Does that actually affect cpu performance (running at higher base freq)?

P/s: I use Intel Power Gadget and the maximum frequency that cpu can reach is 4.8.

Thanks for the repo and constantly updates!

Bit of a buggy trackpad

When any key on the keyboard or any button (trackpad button(s)) are clicked while cursor is moved by the trackpad, it just freezes for a second and then continues on. Its kind of irritating when trying to drag and drop. Any way to fix? I can do testing if needed...

No wifi on recovery screen

Hi, I booted the usb and got to the recovery screen, but there’s not WIFI to download macos. Help!!!

USB & Monterey

You can use this to boot Monterey and it will work except for the USB ports and booting with -v sees BT adapter errors adding 3(!) minutes to the boot time.

Short Install Guide - for same machines

It was a great pleasure to see that the usb installer is working on the same macine just havin i7 processor - built with hard work based on the forums and open core documentation. On the other hand, It would be great to see thet this setup is shared better as I have issue to start the second phase of the installer, after the first reboot. The preinstallaton environment does not start.

L13 Gen2 support?

L13 Gen2 with cpu i71165g7, can not use this efi . how to fix it? thank you

Freezing on progress bar (booting off USB, not SSD)

Taken all of the bios settings, the OpenCore guide, and your EFI folder (along with generating an SMBIOS) into account, and got the Apple logo up. Makes a small amount of progress then just, reboots back into my currently installed OS. No error message, only black screen then back to the Diagnostic boot screen, and systemd-boot. Tried both Ventura and Monterey, provided by macrecovery as DMG and chunklist files.

The operating systems that I currently have installed are; Windows 10 22H2, and Arch Linux.
Obviously using an L13 Yoga, with an i5

Did you mange to solve issue "Scrolling using trackpad while hovering link will opening that link in browser"?

Hi,

Thx for sharing EFI folder here!

I have Lenovo Thinkpad X1 Yoga Gen 3.

I tried many repos for my laptop, however the issue of auto click while scrolling with middle button + trackpoint persists.

e.g. whenever I scroll using Trackpoint - pointing finger on Trackpoint and thumb on middle button - every link, clickable image etc which falls under mouse pointer automatically opens (if I am using a browser).

Do you experience the same issue with your build? Did you mange to fix it?

Issues during installation

It was better to use full MacOS installer - easier to build the setup - on macOS Catalina.
After installation I had the following symptoms:

  • Could not mount pen drives, even if I could mount them using the https://github.com/hagenest/thinkpad-l13-yoga-hackintosh repository.
  • I could not attach external usb memory card readers.
  • I could not attach external usb sound cards (headphones, usb sound cards)
  • The system was unstable.

After setting the boot parameter "alcid=15" for sound card I could:

  • Use all internal sound card functions.
  • Add different external USB sound cards (headphones, usb sound cards).
  • Mount the pen drives too.
  • Attach external monitor using Displayport over USB-C adapter (however it did not detect as a 4K monitor, just a Full HD display). It detected the type and timings this might be a limitation of the Video adapter driver.

So please add the External display support using Displayport adapter through USB-C port too, it works.

USB ports issue and Thinkpad Media keys

First of all thanks for your awesome work, I've been able to turn my L13 Yoga into a solid Hackintosh with most of the hardware working properly, which I thought was impossible until a while ago. Big thumb up!

The only really issue that I have for now, is with the USB ports on both sides. While I can use most of my USB adapters, USB card readers without any noticeable issue, the Toshiba Displaylink USB Dock doesn't seem to work when it is connected via the built-in USB ports. The only workaround is to firstly connect a USB-C adapter to the laptop, and then plug the USB dock to the USB 3.0 port built-in the USB-C adapter. The displaylink manager app for mac has been installed previously and was running in the background all the time.

The USB Dock was working flawlessly when I was using the EFI files provided here: https://github.com/hagenest/thinkpad-l13-yoga-hackintosh While with these EFI files many of the hardware didn't work by then, such as the camera and battery manager, the USB dock was working well.

Please feel free to let me know what could be wrong and I hope it can be fixed somehow.

Lastly it'd be great if you can figure out how to use Thinkpad Assistant on this L13 Yoga model, currently people are using it on multiple older Thinkpad models like X1C Gen 7, etc.

No hurry here, please take your time and have a nice day.:)

Thanks,

Bluetooth problem

Hi, I have problem with bluetooth.
I can turn on bluetooth, connect to my airpods, but cannot connect to any other bluetooth devices (e.g., logitech and xiaomi mouse).
I also tried to re-map USB and delete unnecessary ports.
Does anyone has the same problem?
Thanks

Intel optane...???

Hi, I have a Thinkpad L13 with the same hardware that the Hardware section in readme file except the storage. My laptop has 512 GB ssd + 32 gb optane, i'm actually linux user and never, but never I used optane storage and I know that these is incompatible with hackintosh (boot show kernel panic), so when I disable nvme in config.plist file, it gains access to the installation but I can't install because nvme was disable in config file... So... Is there any way to disable only intel optane storage in config file?

Pd. Sorry for my bad english :s

Greetings from Mexico 🇲🇽

macOS Ventura

Hi, I'm again, this is not an issue, I'm actually being a backup in time machine of my hackintosh in my Lenovo because I'll try install macOS Ventura and I use this post to write you what works and what doesn't work.

image

Built-in SmartCard Reader

Not an issue. Just want to report the built-in smart card reader(Alcor AU9540) works out of the box after a usb remap to enable the HS06 port, using the native Mac OS smart card driver. So if your computer has this option, it can be used for authentication purposes or even logging in using a smart card paired with your local account.

Official documentation from Apple itself: https://support.apple.com/en-hk/guide/deployment/depc705651a9/web
Screenshot 2022-09-18 at 3 53 16 AM
Screenshot 2022-09-18 at 3 54 20 AM
Screenshot 2022-09-18 at 4 01 35 AM
Screenshot 2022-09-18 at 3 54 00 AM

Sleep Wake not working

Whenever I shut the lid of my L13 yoga, it just reboots instead. Removing the VoodooI2C kexts has stopped this and is giving me instant wake problems. Also, still facing the same issue with latest version of voodooI2C where the pen doesnt work. Hence, on v2.6.5(last one where pen works). Any fixes for sleep?

airdrop can not founded any device & wifi isn't work well

hi, thank you for your help. I replaced the drive to Intel SSD.it is working very well.
but I have some problems about airdrop.

  1. I can't founded my iPad8 through airdrop. (wifi is working, Bluetooth also working

截屏2021-04-07 20 32 28
2.my notebook link wifi is very slow.(open wifi after 30s(or longer), can't connect)
3.if I didn't shutdown my pc.
in home, linked a Wifi.(keep power on)
go to company, linked B wifi.(keep power on )
come back home,PC auto connected A wifi.
that time I had problems,The Wifi is linking, but network is not work.reboot PC ,network is working.
PC:ThinkPad-L13(not Yoga)

could you give me some suggestions ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.