Mac os для lenovo ideapad s340

Mac os для lenovo ideapad s340

THIS GUIDE IS OUTDATED Hey, looks like you came across my repository for this device. Looking to install macOS on it? Let’s get started!

Notes: My CPU (Intel Core i3-8145U) is Whiskey Lake — however for our case as it’s an 8th Gen CPU, we will follow the Coffee Lake guidelines.

This is written for OpenCore 0.5.8, new OpenCore releases happen on the Monday of the next month.

April 18, 2020 Update

  • Moved VoodooInput kext locations to correct position on Kernel -> Add
  • Added CPUFriend and CPUFriendDataProvider. Link on how to create: (Is disabled in config) https://github.com/corpnewt/CPUFriendFriend
  • Changed Kernel Quirks — You must disable CFG-Lock in BIOS if you want to keep the AppleCpuPmCfgLock off. This will also improve boot times. Source: https://github.com/Hasodikis/Lenovo-Ideapad-s540-14IWL—Hackintosh (Scroll down for tutorial)

April 13, 2020 Update

April 12, 2020 Update

Removed all audio sounds, except for Boot Chimes

Added NVMeFix to increase battery life.

Updated VoodooI2C and added VoodooInput

Added a USB Map (necessary for USB 2.0 hot-plug)

macOS 10.14.4: Works, however feels less fluid than Catalina.

macOS 10.15.1: Successful — see notes for trackpad

macOS 10.15.2: Successful — see notes for trackpad

macOS 10.15.3: Successful — see notes for trackpad

macOS 10.15.4: Successful — see notes for trackpad and HDMI

macOS 10.15.4 Supplemental Update: Successful — see notes for trackpad

FN + K will lower brightness.

FN + P will increase brightness.

Brightness adjustment isn’t smooth.

Trackpad can’t be used to wake up from sleep.

Power Button can’t be used to wake up the machine until it is completely asleep. This won’t be a problem, just use the keyboard to wake up the machine.

Power button doesn’t bring up the power menu.

It has came to my attention HDMI has a yellow tint issue.

What does not work:

DRM — This won’t work any iGPU, because Intel’s graphics cards don’t support FairPlay.

Intel WiFi. This must be replaced in order to use WiFi.

BCM94350ZAE Bluetooth — will look into.

What does work (Mostly everything you’d expect):

Trackpad, full gestures

CPU Power Management

Display Brightness and Brightness Keys (F11 and F12)

Keyboard Backlight and Fan Management (Controlled by the BIOS)

Audio and Internal Combo Port

iMessage and FaceTime (Assuming you setup your SMBIOS correctly)

that annoying power button LED that flickers when battery is low

So, let’s set it up!

Intel Platform Trust Technology: Disabled

Intel SGX Mode: Disabled

Intel Virtualization: Optional, recommended to Disable

Secure Boot: Disabled

Disable CFG Lock

Disable CFG Lock

Fully power off the laptop. Enter the BIOS by pressing F2 at boot. Power off the laptop again. Quickly enter the following code:

Power on the laptop while pressing F2 at boot. You’ll see a lot of debug options. Don’t mess with them. We only need to change one setting.

Advanced → Power & Performance → CPU-Power Management Control → CPU Lock Configuration → CFG Lock → Disabled

Exit and Save, and CFG Lock will be disabled.

Start the process

First, here’s the guide I followed.

Create the USB and EFI Partition.

Use the createinstallmedia command from Apple, or gibMacOS to make the installer. Mount the EFI Partition.

Add the OpenCore files to it. Make it look exactly like below (delete files!)

Great! Now that your directory tree looks like this, we need kexts. You can find these in the guide linked above.

Add these to OC/Kexts

If you have working WiFi (a compatible WiFi Card that isn’t a real Apple card, or Fenvi) add these:

They may be different for you card, so check here!

Got your Kexts? Great, we need to add ACPI Patches to add functionality to the laptop.

The ACPI Guide is covered here:

SSDT-GPI0 — Adds a hook for VoodooI2C controller (Required for trackpad support)

SSDT-XOSI — Redirects _OSI to XOSI calls (Required for trackpad support)

SSDT-PNLFCFL — SSDT-PNLF doesn’t work on Whiskey Lake, SSDT-PNLFCFL is specifically for this and some Coffee lake laptops, it will enable the backlight and brightness adjustment. (But it won’t make the brightness keys work!)

SSDT-Q11Q12 — Redirects ACPI calls from the keyboard to macOS, to enable using F11 and F12 to adjust the brightness. Also requires two ACPI patches.

Читайте также:  Astra linux принтер печатает символы

SSDT-PLUG — plugin-type=1 for OpenCore, enables native CPU Power management. Note you have too look into your DSDT and change some values.

SSDT-GPRW — Lets the laptop sleep and wake up! No more insomnia in macOS.

SSDT-PSF13 — Changes the PrintScreen button from disable trackpad to F13 (Optional)

Grab the sample.plist file from the Docs folder and paste it to OC Folder. Rename it to config.plist

Use ProperTree to edit the plist.

Go to File -> OC Clean Snapshot. Point it at the OC folder.

Note: To OC Snapshot: CTRL + R or Command + R and point it at the OC folder. It will automatically add your kexts, drivers, and ACPI patches to the config.

For CoffeeLake, the entire config.plist is covered here:

A few changes need to be made for this device.

Dump your DSDT to check your EC device — it should be named EC0 . If it ain’t look here on how to rename different ones. Make sure you dump your DSDT in Windows or Linux.

Use SSDTTime to dump it.

The complete ACPI guide:

Rename EC0 to EC

Comment = Change EC0 to EC [String]

Count = 0 [Number]

Enabled = True [Bool]

Find = 4543305F [Data]

Limit = 0 [Number]

Replace = 45435F5F [Data]

Change _OSI to XOSI

Comment = Change _OSI to XOSI [String]

Count = 0 [Number]

Enabled = True [Bool]

Find = 5F4F5349 [Data]

Limit = 0 [Number]

Replace = 584F5349 [Data]

Change Method(_Q11,0,N) to XQ11

Comment = Change Method(_Q11,0,N) to XQ11 [String]

Count = 0 [Number]

Enabled = True [Bool]

Find = 5F513131 00 [Data]

Limit = 0 [Number]

Replace = 58513131 00 [Data]

Change Method(_Q12,0,N) to XQ12

Comment = Change Method(_Q12,0,N) to XQ12 [String]

Count = 0 [Number]

Enabled = True [Bool]

Find = 5F513132 00 [Data]

Limit = 0 [Number]

Replace = 58513132 00 [Data]

That’s all for ACPI.

Under Booter -> Quirks

DevirtualizeMmio must be set to FALSE

RebuildAppleMemoryMap must be set to FALSE

SetupVirtualMap must be set to TRUE

Under DeviceProperties -> PciRoot(0x0)/Pci(0x2,0x0)

For a UHD 620 / UHD 630 on WhiskeyLake:

AAPL,ig-platform-id = 0900A53E [Data]

device-id = A53E0000 [Data]

If you have a dedicated / discrete GPU, it is not compatible, so make sure to disable it! Use an SSDT to fully disable it, or use the boot-argument -wegnoegpu to hide it from macOS. You can also check the DeviceProperties equivalent in the WhateverGreen Faq.

To properly add the AppleALC layout-id, we’ll use DeviceProperties instead of the boot-argument. If you have alcid=XX _remove it._****

My working alcid is 11, it goes as follows:

layout-id = 0B00000 [Data]

If you have a Broadcom BCM94350ZAE WiFi Card (DW1820a) you might be able to get it to work correctly. (mine does)

Under DeviceProperties -> PciRoot(0x0)/Pci(0x1D,0x2)/Pci(0x0,0x0)

pci-aspm-default = 0 [Number]

This will disable power management for the card, and (in my case) it worked.

Fixing Apple iCloud, FaceTime, Messages, and other Apple Services.

Use GenSMBIOS to generate a SMBIOS, under PlatformInfo -> Generic. Use MacBookPro14,1 if you plan to use HDMI. In details here: https://khronokernel-2.gitbook.io/opencore-vanilla-desktop-guide/post-install/post-install/iservices

Make sure you do this correctly! If you get an Apple Support Customer Code, you have to call Apple to get it fixed. Also, you will need an Ethernet/WiFi device named en0 and is built-in.

Fixing Audio, again!

You may notice if you have headphones / mic plugged into the Combo port, that waking from sleep completely breaks it.

Run ./install.sh Inside the HDAFix Folder. Gatekeeper will deny it so you must go to Settings -> Security to allow ALCPlugFix and hdafix to run. AppleALC will take care of the rest.

Enabling GUI and Boot Chime

This is fairly easy, covered here:

Copy the resources folder from here into EFI/OC

It’s in the OC/Drivers folder. You may of deleted it earlier when setting up your EFI Folder.

Add OpenCanopy.efi to EFI/OC/Drivers

Do not forget to run OC Snapshot (CTRL / Command + R) to add it to your config.plist

In the config change the picker mode:

  • Misc -> Boot -> PickerMode = External [String]

Note: AudioDXE will delay your OpenCore load time slightly.

Follow the guide linked above. Use these values, if they don’t work, they may not be the same.

Читайте также:  Горит экран запуск windows

AudioCodec = 0 [Number]

AudioDevice = PciRoot(0x0)/Pci(0x1F,0x3) [String]

AudioOut = 0 [Number]

    • HDMI hot-plug may take multiple attempts before initiating in rapid secession.
    • 10.15.4 makes the port a lot less reliable, avoid the update by using the ChangeUpdates.txt file in the tools folder to completely ignore the update. With this update, the HDMI port won’t initialize on boot or when waking up the computer.
    • Be ready to change your SMBIOS data.
  • Setting up the config.plist

    Use GenSMBIOS to generate a SMBIOS for MacBookPro14,1

    Change GPU to Iris 655 to match SMBIOS:

    Use Hackintool to generate a framebuffer patch using these settings:

    Pre-Notes: You mileage may vary

    • LVDS is for the eDP Internal Display.
    • As you can see, my HDMI port is Index 2 (Port 0x06) and requires Bus ID 0x02 to function. Setting the Pipe to 18 can sometimes help hot-plug issues. However, it’s not perfect and may require multiple attempts.
  • Tip: To find your HDMI Index — Set each connector to -1 one at a time,

    when you plug in your HDMI port it will kernel panic.

    For example, my HDMI Port Index is 2, when set to -1 it will kernel panic.

    That’s how you can identify your port, instead of guessing.

    O2 Readers will need to be renamed (see tonymac post)

    Realtek cards have support now

    Use cholonam’s fork of Sinteks driver

    After you setup your HDMI port, your USB ports should also be setup correctly. In my case — USB 3.0 worked, however USB 2.0 hot-plug was completely messed up. No worries, fixing USB is really easy.

    Summary: Plug in a USB 2.0 device to every USB port, set the ports that light up green as USB 2, plug a USB 3.0 device, set the types as USB 3.0.

    Remove Unused Connectors by highlighting and pressing the Remove button.

    Add the USBPorts.kext to EFI/OC/Kexts/ and use OC Snapshot in ProperTree.

    The guide isn’t perfect, but it will give you a general idea on what to do.

    Additional Notes and Troubleshooting

    The trackpad isn’t working

    I’m not all sure about this one, as mine just, works, but you can check here to make sure everything is correct. Note that my exact model has an I2CHID Trackpad, your’s could be different.

    IF YOU UPDATED AND IT ISN’T WORKING*

    If it was working and stopped after an update, running sudo kextcache -i / and rebooting will fix it.

    My WiFi doesn’t work! What are other options?

    Just buy a working WiFi card, simple.

    This laptop has no Ethernet Port, but you aren’t SOL.

    If you have an iPhone, you might be able to use TetherMe, but I don’t know much about it, so don’t ask me.

    If you have an Android Phone, you can use HoRNDIS.

    Inject it through OpenCore instead of using the installer, as the installer installs the kext to Library/Extensions.

    Copy HoRNDIS.kext from Tools/HoRNDIS.kext to EFI/OC/Kext/HoRNDIS.kext. OC Snapshot with Propertree.

    Also, I would be highly against using USB WiFi in macOS, I would highly recommend using a proper WiFi card for this.

    macOS doesn’t see my disk

    Make sure that your storage settings is set to AHCI instead of RAID.

    macOS 10.15.4 makes the HDMI port a whole lot less reliable, read through the HDMI tutorial for more information.

    Источник

    [Guide] Lenovo Ideapad S340 Laptop on Catalina

    This guide is for Lenovo S340-15IWL Laptop (ideapad) — Type 81N8, Model 81N8003HUS

    Here are the specs for my device:
    Price: $449 (Officedepot website)
    Processor: Intel Core i7-8565U (4C / 8T, 1.8 / 4.6GHz, 8MB)
    Memory: 4GB Soldered + 16GB DIMM DDR4-2400
    Graphics: Integrated Intel UHD Graphics 620
    Display: 15.6″ FHD (1920×1080) TN 220nits Anti-glare
    Hard Drive: WDC PC SN520, 256GB PCIe NVMe
    Wireless Network: Intel AC-9462 (Card replaced with BCM94360CS2 on an adapter.)
    Audio:
    Camera: Inbuilt
    Battery: Integrated 52.5Wh
    Operating System: Windows 10 Home + MacOS Catalina with Clover.
    BIOS: V2.05
    Ethernet: None

    What’s working:

    • Keyboard
    • Trackpad, gestures.
    • Audio, Headphones
    • Internal graphics with fill acceleration.
    • Brightness control.
    • Sleep
    • Inbuilt Camera

    What’s Not Working:

    • Card reader.

    Here’s a link to the repo containing all my files: https://github.com/4mitabh/Ideapad_S340
    that i»ll be referencing in the guide.

    If you need a detailed guide, I’ll be updating that in next couple of days. If you already know the basics, start with the config file and patches in my repo.

    Читайте также:  Mac os bootcamp или parallels

    Installation
    BIOS:

    • Ensure your disk is in AHCI mode. Here are the settings that I used.

    USB installer:

    1. Follow RehabMan’s guide, and create installation media.
    2. Use config.plist from the github repository below.
    3. Ensure your clover/drivers/uefi folder has following files:
      1. ApfsDriverLoader.efi
      2. FSInject.efi
      3. NvmExpressDxe.efi
      4. AptioMemoryFix.efi
      5. Fat.efi
      6. VirtualSmc.efi
      7. DataHubDxe.efi
      8. HFSPlus.efi
        AudioDxe.efi Make sure that you do not install AudioDxe.efi. It is known to cause audio problems in windows.
    4. Ensure your clover/kexts folder has following files:
      1. Lilu.kext
      2. VoodooPS2Controller.kext
      3. VirtualSMC.kext
      4. WhateverGreen.kext
    5. With this you should be able to complete installation. The keyboard works but trackpad wont work.You can use an USB mouse or use TAB/ENTER on keyboard to complete installation.

    Post Installation
    Install Clover on your internal drive.
    Copy all the files from previous step to your clover folder on internal drive.

    Keyboard:
    Keyboard should already be working at this point using VoodooPS2Controller. The mouse and trackpad extensions in VoodooPS2Controller may conflict with trackpad later, and must be removed.

    Brightness and Volume shortcuts:
    Volume already works. For brightness fix, use the SSDT-Q1112 patch.
    Also apply the _Q11->XQ11 and _Q12->XQ12 rename patch via clover config.

    Trackpad:
    Install latest VoodooI2C.kext and VoodooI2CHID.kext
    Add SSDT-GPI0 and SSDT-XOSI hotpatches to Clover/ACPI/patched
    Make sure change _OSI to XOSI patch is enabled in your config.plist.

    You may need to delete the OSX kexts, as they conflict with our drivers.
    Mount / read-write using:
    sudo mount -uw /
    Delete AppleIntelLpssI2CController.kext and AppleIntelLpssI2C.kext from /System/Library/Extensions/

    Internal Graphics:
    Should already be working with the config.plist. If you have slightly different configuration; use hackintool to generate your own patch.

    HDMI:
    Hackintool patches fix this. Use this guide for details.

    Backlight:
    Add SSDT-PNLFCFL.aml to clover/ACPI/patched folder
    Displays under System Preferences should now have a brightness slider.

    Battery Status:
    Install latest SMCBatteryManager.kext to clover/kext

    Processor features:
    Install SMCProcessor.kext to clover/kext

    Audio
    To enable Intel HD Audio add AppleALC.kext.
    The config.plist needs to have layout-id set to 11
    PciRoot(0)/Pci(0x1f,3)

    layout-id
    11
    Also, «change HDAS to HDEF» must be disabled in config.

    AppStore
    If you do not have a working wifi card, or you’re using a USB adapter read on. If you already have a working internal wifi card, skip this section.
    An eth0 device is needed for Appstore access.
    To emulate a fake one, install Nullethernet.kext to clover/kext.
    Add SSDT-RMNE.aml to clover/ACPI/patched folder (Edit with Maciasl to randomise the mac address in it)
    Go to /Library/Preferences/SystemConfiguration/ and delete NetworkInterfaces.plist. Reboot.
    Verify that you have the NullEthernet device as eth0 using network utility.
    Follow this guide if you need details.

    Inbuilt Camera
    Works. No extra files needed.

    CPU power management
    Works. No extra files needed.

    Sleep
    Disable Hibernation:
    sudo pmset -a hibernatemode 0
    sudo pmset -a standby 0
    sudo pmset -a autopoweroff 0
    sudo rm /var/vm/sleepimage
    sudo mkdir /var/vm/sleepimage

    Put laptop to sleep
    If it fails, check the offending device from logs using:
    log show —style syslog —last 10m | fgrep «[powerd:sleepWake]»
    This may be required to enable private logs.
    In Clover patches:
    change Method(GPRW,2,N) to XPRW, pair with SSDT-GPRW.aml
    Find Data 0x4750525702
    Replace Data 0x5850525702

    Add SSDT-GPRW.aml to your patches.

    Follow this guide if you need details. The only change from guide is that I had to return 0x09 0x04 in the modified method.

    Card Reader
    The card reader does not seem very reliable at the moment.

    Check the specific PCIe card reader device under the PCI tab in Hackintool.

    If you have a O2 device, and card reader is important for you, see this post for instructions to enable it. If you have a Realtek device, try Sinetek’s driver.

    Sleep Slider
    To get the sleep slider back in Energy Saver pref pane:
    sudo mount -uw / to mount filesystem RW
    sudo vi /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/Plugins/X86PlatformPlugin.kext/Contents/Resources/BOARD_ID.plist
    You can find Board ID in Hackintool System Info. For example
    Mac-53FDB3D8DB8CA971 for MacBook Pro (13-inch Mid 2019)
    Set UnifiedSleepSliderPref to false.
    Reboot.

    Incorrect Date time on Windows
    run this command on terminal as admin:
    Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_QWORD /d 1

    Источник

    Оцените статью