Contribute
Register

[Guide] Lenovo Ideapad S340 Laptop on Catalina

Joined
May 15, 2019
Messages
114
Motherboard
Lenovo Ideapad S340-OpenCore
CPU
i7-8565U
Graphics
UHD 620,1920x1080
This guide is for Lenovo S340-15IWL Laptop (ideapad) - Type 81N8, Model 81N8003HUS

81DkzxoL5ZL._SL1500_.jpg


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 (1920x1080) 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/aruhant/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.

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
<key>PciRoot(0)/Pci(0x1f,3)</key>
<dict>
<key>layout-id</key>
<integer>11</integer>

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



Here's a link to the repo containing all my files: https://github.com/aruhant/Ideapad_S340
 
Last edited:
Hi,

I test your tuto on my S340, but no success, it crash on boot after I add DSDT in patched directory.
I delete kext in /sytem/library. Maybe my bios config is different.

Regards
 
Update,

It works !! Many Thanks, trackpad is alive :)

Backup, and trying to update config to Catalina
 
Backup, and trying to update config to Catalina


Great!
Let me know if you encounter any glitches or any missing info in the guide.
I'll update it.
 
Catalina Ok, must fix trackpad now and my wifi dongle.

about wifi, i’d like to change internal m2 card with compatible one, any suggest ?
 
I have ordered an apple card + M2 adapter for mine.
i'll suggest the same to you.
 
Do you have the ref or link ?
 
Not handy right now.
I'll check and post by tomorrow.
 
C73C715F-E82A-4FD2-8624-581C3C2BF3CA.jpeg

mine inside (original)
I was thinking to take a dw1560
 
Catalina is now Ok
I’m testing tonight the video acceleration and other add on
Thanks !!
 
Back
Top