Skip to content

Commit

Permalink
Support 1.1.4 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ab2774 committed Sep 13, 2020
1 parent 98f535f commit 9ea75d7
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 60 deletions.
2 changes: 1 addition & 1 deletion ACPI/SSDT-GPRW.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// May not work for your device
// Guide: https://github.com/Ab2774/Lenovo-IdeaPad-320-14-IKB-Hackintosh
// Fix instant wake by hooking GPRW
// Pair with _GPRW to XPRW Rename Method
// Pair with GPRW to XPRW Rename Method

DefinitionBlock ("", "SSDT", 2, "Lenovo", "_GPRW", 0)
{
Expand Down
71 changes: 52 additions & 19 deletions ACPI/SSDT-I2C.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,81 @@
// Guide: https://github.com/Ab2774/Lenovo-IdeaPad-320-14-IKB-Hackintosh
// Enable ELAN and Synaptics trackpad with Bus Speed
// Pair with VoodooI2C kext
// Pair with _CRS to XCRS Rename Method
// VoodooI2CELAN kext (for ELAN users)
// VoodooI2CSynaptics kext (for Synaptics users)

DefinitionBlock ("", "SSDT", 2, "Lenovo", "_I2C", 0)
{
External (_SB_.PCI0.GPI0, DeviceObj)
External (_SB_.PCI0.I2C0, DeviceObj)
External (_SB_.PCI0.I2C0.TPD0, DeviceObj)
External (_SB_.PCI0.I2C0.TPD0.SBFG, IntObj)
External (_SB_.PCI0.I2C0.TPD0.SBFS, IntObj)

Scope (_SB.PCI0.I2C0) // Bus Speed
Scope (_SB.PCI0.GPI0) // Enable ELAN and Synaptics trackpad
{
If (_OSI ("Darwin"))
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
If (_OSI ("Darwin"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
Else
}

Scope (_SB.PCI0.I2C0) // Bus Speed
{
Method (SSCN, 0, NotSerialized)
{
Return (Zero)
If (_OSI ("Darwin"))
{
Return (Package ()
{
0x01B0,
0x01FB,
0x1E
})
}
Else
{
Return (Zero)
}
}

Name (SSCN, Package ()
{
0x01B0,
0x01FB,
0x1E
})
Name (FMCN, Package ()
Method (FMCN, 0, NotSerialized)
{
0x48,
0xA0,
0x1E
})
If (_OSI ("Darwin"))
{
Return (Package ()
{
0x0101,
0x012C,
0x62
})
}
Else
{
Return (Zero)
}
}
}

Scope (_SB.PCI0.I2C0.TPD0) // Enable ELAN and Synaptics trackpad
{
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
If (_OSI ("Darwin")){}
Return (ConcatenateResTemplate (SBFS, SBFG))
If (_OSI ("Darwin"))
{
Return (ConcatenateResTemplate (SBFS, SBFG))
}
Else
{
Return (Buffer (Zero){})
}
}
}
}
Expand Down
81 changes: 62 additions & 19 deletions ACPI/SSDT-LIP320-14IKB.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_LIP", 0)
{
External (_PR_.CPU0, ProcessorObj)
External (_SB_.PCI0, DeviceObj)
External (_SB_.PCI0.GPI0, DeviceObj)
External (_SB_.PCI0.I2C0, DeviceObj)
External (_SB_.PCI0.I2C0.TPD0, DeviceObj)
External (_SB_.PCI0.I2C0.TPD0.SBFG, IntObj)
Expand Down Expand Up @@ -74,6 +75,15 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_LIP", 0)
{
Return (Zero)
}

If ((Arg0 == "Windows 2015"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
Else
{
Expand Down Expand Up @@ -152,37 +162,70 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_LIP", 0)
}
}

Scope (_SB.PCI0.I2C0) // Bus Speed for ELAN and Synaptics trackpad, pair with VoodooI2C kext, and _CRS to XCRS Rename Method
Scope (_SB.PCI0.GPI0) // Enable ELAN and Synaptics trackpad
{
If (_OSI ("Darwin"))
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
If (_OSI ("Darwin"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
Else
}

Scope (_SB.PCI0.I2C0) // Bus Speed for ELAN and Synaptics trackpad, pair with VoodooI2C kext
{
Method (SSCN, 0, NotSerialized)
{
Return (Zero)
If (_OSI ("Darwin"))
{
Return (Package ()
{
0x01B0,
0x01FB,
0x1E
})
}
Else
{
Return (Zero)
}
}

Name (SSCN, Package ()
Method (FMCN, 0, NotSerialized)
{
0x01B0,
0x01FB,
0x1E
})
Name (FMCN, Package ()
{
0x48,
0xA0,
0x1E
})
If (_OSI ("Darwin"))
{
Return (Package ()
{
0x0101,
0x012C,
0x62
})
}
Else
{
Return (Zero)
}
}
}

Scope (_SB.PCI0.I2C0.TPD0) // Enable ELAN and Synaptics trackpad, pair with VoodooI2C kext, and _CRS to XCRS Rename Method
Scope (_SB.PCI0.I2C0.TPD0) // Enable ELAN and Synaptics trackpad, pair with VoodooI2C kext
{
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
If (_OSI ("Darwin")){}
Return (ConcatenateResTemplate (SBFS, SBFG))
If (_OSI ("Darwin"))
{
Return (ConcatenateResTemplate (SBFS, SBFG))
}
Else
{
Return (Buffer (Zero){})
}
}
}

Expand Down
9 changes: 9 additions & 0 deletions ACPI/SSDT-XOSI.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ DefinitionBlock ("", "SSDT", 2, "Lenovo", "_XOSI", 0)
{
Return (Zero)
}

If ((Arg0 == "Windows 2015"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
Else
{
Expand Down
30 changes: 28 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
- Updated `SSDT-I2C`
- Updated `SSDT-KBD`
- Updated `SSDT-PNLF`
- Updated `SSDT-PS2K` and renamed as `SSDT-PS2-Map`
- Updated `SSDT-PS2K` and renamed as `SSDT-PS2-Map`
- Updated `SSDT-PrtSc-13` to support both `Clover` and `OpenCore` Bootloaders
- Updated `SSDT-XOSI` to support both `Clover` and `OpenCore` Bootloaders
- Updated `SSDT-Swap-Cmd-Alt`
Expand Down Expand Up @@ -144,7 +144,7 @@
- Added back `SSDT-EC` to make less renaming patches as possible
- Added `SSDT-IRQ` for better compatibility
- Added `macserial` Tool to generate SMBIOS for new users
- Added `Rename Method _Q11 to XQ11` and `Rename Method _Q12 to XQ12` rename methods to both `Clover` and `OpenCore's` `config.plist`
- Added `Rename Method _Q11 to XQ11` and `Rename Method _Q12 to XQ12` Rename Methods to both `Clover` and `OpenCore's` `config.plist`
- Added `Quirks` section into `Clover's` `config.plist`
- Added back `MLB` into `Clover's` `config.plist`
- Added `run-efi-updater` into `OpenCore's` `config.plist` to support macOS Big Sur 11.0
Expand Down Expand Up @@ -175,3 +175,29 @@
- Changed `UpdateSMBIOSMode` value from `Create` to `Custom` in `SMBIOS` in `OpenCore's` `config.plist`
- Changed `JumpstartHotPlug` value from `NO` to `YES` in `APFS` `UEFI` in `OpenCore's` `config.plist` to support macOS Big Sur 11.0 Recovery (thanks @stevezhengshiqi)
- Supports macOS Big Sur 11.0 (`OpenCore` only) & macOS Catalina 10.15.6

# EFI v1.1.4
- Updated Clover Bootloader version to `5122`
- Updated OpenCore Bootloader version to `0.6.1`
- Updated `AppleALC` Kext to `1.5.2`
- Updated `Lilu` Kext to `1.4.6`
- Updated `VoodooI2C` Kext and Satellites pre-released to `2.4.4`
- Updated `VirtualSMC` Kext and Plug-ins to `1.1.6`
- Updated `WhateverGreen` to `1.4.2`
- Updated `SSDT-I2C` to work independently without _CRS Rename Method
- Updated `SSDT-XOSI` to support more models
- Updated `SSDT-LIP320-14IKB` to support more models and work independently without _CRS Rename Method
- Updated `OpenCore's` `config.plist` to support `0.6.1` changes
- Added `HibernationFixup` Kext to support native Hibernation
- Added back `RtcHibernateAware` in `Clover's` `config.plist` for better sleep (thanks @stevenzhengshiqi)
- Added `Legacy` and `Linux` in `Clover` Bootloader `config.plist` for better compatibility
- Removed `VoodooTSCSync` Kext and replaced with `CpuTscSync` Kext for better compatibility
- Removed `Rename _CRS to XCRS` Rename from both `Clover` and `OpenCore's` Bootloaders `config.plist` because it's no longer needed
- Removed `Inject` from `Clover's` Bootloader `config.plist` because it's already injected
- Removed `ig-platform-id` from `Clover's` Bootloader `config.plist` because it's no longer needed
- Changed `EnableSafeModeSlide` value from `YES` to `NO` in `Clover's` `config.plist` because it's no longer needed
- Changed `ProvideConsoleGopEnable` value from `YES` to `NO` in `Clover's` `config.plist`
- Changed `ProvideCustomSlide` value from `NO` to `YES` in `Clover's` `config.plist`
- Changed `ResetHwSig` value from `NO` to `YES` in `Quirks` in `ACPI` in `OpenCore's` `config.plist`
- Changed `Timeout` value from `15` to `0` in `Boot` in `Misc` in `OpenCore's` `config.plist`
- Changed `JumpstartHotPlug` value from `YES` to `NO` in `Boot` in `Misc` in `OpenCore's` `config.plist`
Binary file added Commands/.DS_Store
Binary file not shown.
15 changes: 0 additions & 15 deletions Commands/SleepFix.command

This file was deleted.

9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ This laptop is a budget laptop, by these specs, you can't do some heavy work, ba
- Internal webcam with Facetime
- ELAN Trackpad with GPIO mode (including gestures)
- Sleep (lid sleep and lid wake)
- Native macOS Hibernation
- Screen Brightness with hotkeys
- macOS 10.13 High Sierra, 10.14 Mojave, and 10.15 Catalina

Expand All @@ -44,7 +45,7 @@ This laptop is a budget laptop, by these specs, you can't do some heavy work, ba
- DRM support (iTunes Movies, Apple TV+, Amazon Prime and Netflix, and others) could be fixed in the future, more information [here](https://github.com/acidanthera/bugtracker/issues/586) and [here](https://www.tonymacx86.com/threads/an-idiots-guide-to-lilu-and-its-plug-ins.260063/#DRM).

# Requirement
- 8 GB USB Disk
- 16GB USB drive
- macOS Catalina image downloaded from the Appstore
- ~Mouse, because trackpad won't work in the installation~ Fixed with VoodooI2C v2.4

Expand All @@ -56,11 +57,11 @@ Before doing anything, make sure to update your BIOS to the latest version from
- "Exit" <b>OS Optimized Defaults</b> to <b>Disabled</b>.

# Installation
After downloading macOS from the AppStore (do not use a distro image like Hackintosh Zone otherwise it's gonna break your system and you won't get any support using it), format your USB drive as "Mac OS Extended (Journaled)", then open Terminal and type: `sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume`, and remember, `MyVolume` is for the name of your USB drive, you can change it if you would, mount the EFI partition in your USB, Copy-and-paste the folder `EFI` from this release's repository, unzip `SMBIOS Generator`, open Terminal and drag-and-drop macserial to the terminal window, then type `--generate-all` and press<kbd> enter</kbd>, then copy MacBookPro14,1 SMBIOS (which is the closest one to this laptop's hardware) and change it, copy to both Clover's config.plist and OpenCore's config.plist, update your kexts and Clover Bootloader or OpenCore (if a new update is available), reboot your laptop and press `F12` to enter `BIOS Menu`, choose your USB installer and boot from it, you should see the `Clover Boot Menu`, boot from the USB that shown, it may take some time to boot, after is done, you should see `macOS Utilities`, choose `Disk Utility` and erase the drive you want to install macOS on it, click on `Erase` and type the name that you want, like: "Macintosh HD", choose the format as `APFS` and `Scheme` as `GUID Partition Map` and click `Erase`, after it's done, close the window and go back to `macOS Utilities` and choose `Install macOS`, click `Agree` to accept the license agreement, the installation should starts now, your laptop should restarts several times, after it's done, login to your AppleID (for more specific guide please go [here](https://dortania.github.io/oc-laptop-guide/)), after setting up your laptop, run `SleepFix.command`, type your password, this is gonna fix sleep for your laptop (if you still have problems with sleep please go [here](https://dortania.github.io/oc-laptop-guide/battery-power-management/correcting-sleep-problems.html)), to fix the static noise from your headphone after sleep unzip the folder `ALCPlugFix` and run `install.command`, type your password, install Sniki's `CodecCommander` kext which can be found [here](https://github.com/Sniki/EAPD-Codec-Commander) to `/Library/Extensions` by running the command `KextInstall.command`
Restart, and you're ready to go!
After downloading macOS Catalina from the AppStore (do not use a distro image like Hackintosh Zone otherwise it's gonna break your system and you won't get any support using it), format your USB drive as "Mac OS Extended (Journaled)", then open Terminal and type: `sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume`, and remember, `MyVolume` is for the name of your USB drive, you can change it if you would, mount the EFI partition in your USB, Copy-and-paste the folder `EFI` from this release's repository, unzip `SMBIOS Generator`, open Terminal and drag-and-drop macserial to the terminal window, then type `--generate-all` and press<kbd> enter</kbd>, then copy MacBookPro14,1 SMBIOS (which is the closest one to this laptop's hardware) and change it, copy to both Clover's config.plist and OpenCore's config.plist, update your kexts and Clover Bootloader or OpenCore (if a new update is available), reboot your laptop and press `F12` to enter `BIOS Menu`, choose your USB installer and boot from it, you should see the `Clover Boot Menu`, boot from the USB that shown, it may take some time to boot, after is done, you should see `macOS Utilities`, choose `Disk Utility` and erase the drive you want to install macOS on it, click on `Erase` and type the name that you want, like: "Macintosh HD", choose the format as `APFS` and `Scheme` as `GUID Partition Map` and click `Erase`, after it's done, close the window and go back to `macOS Utilities` and choose `Install macOS`, click `Agree` to accept the license agreement, the installation should starts now, your laptop should restarts several times, after it's done, login to your AppleID (for more specific guide please go [here](https://dortania.github.io/oc-laptop-guide/)), after setting up your laptop, unzip the folder `ALCPlugFix`, run `install.command` and type your password, this is gonna fix the static noise from your headphone after sleep, install Sniki's `CodecCommander` kext which can be found [here](https://github.com/Sniki/EAPD-Codec-Commander) to `/Library/Extensions` by running the command `KextInstall.command`, if you have problems with sleep please go [here](https://dortania.github.io/oc-laptop-guide/battery-power-management/correcting-sleep-problems.html)
restart, and you're ready to go!

# Extras
- After you finish the installation you'll notice that your iMessage and other Apple services aren't working properly, to fix that issue you have to add `ROM`, `MLB` and a proper SMBIOS (which is MacBookPro14,1 for this device) in your `config.plist`, for more information follow this guide from [here](https://www.tonymacx86.com/threads/an-idiots-guide-to-imessage.196827/).
- After you finish the installation you'll notice that your iMessage and other Apple services aren't working properly, to fix that issue you have to add `ROM`, `MLB` and a proper SMBIOS (which is MacBookPro14,1 for this device) in your `config.plist`, for more information follow this guide from [here](https://dortania.github.io/OpenCore-Post-Install/universal/iservices.html#fixing-imessage-and-other-services-with-opencore).
- If you have an SSD installed, you can enable TRIM support on it, just enable this option in your `config.plist` and enjoy! (consider that it may slow booting a bit for APFS formatted SSDs, more information about TRIM [here](https://en.wikipedia.org/wiki/Trim_(computing))
Clover:
![](Images/TRIM.png)
Expand Down

0 comments on commit 9ea75d7

Please sign in to comment.