# Hackintosh-DELL-Vostro-5468

![macOs Ventura](Screenshot/1.png)

<p align = "center">
macOS Ventura 13.2.1
</p>

* macOS:
  - macOS Ventura 13.2.1 ✅
* Windows:
  - Windows 11 ✅
* Bootloader: OpenCore MOD 0.9.0
* EFI can be used for both for installation and booting from SSD.
* BIOS Version 1.20.0 (Latest Version)

## Introduction

<details>
<summary><strong>System Overview</strong></summary>
</br>

**Dell Vostro-14 5468**

| Type | Item |
| ---- | ---- |
| CPU | Intel Core i3-7100U @ 2.40 GHz, 3M Cache |
| RAM | Samsung 8GB DDR4-2133MHz |
| SSD1 | Digital Alliance 128GB M.2 SATA III |
| HDD2 | Western Digital WD5000LPCX 500GB SATA Hard Drive |
| Sound | Realtek ALC256 |
| Wireless, Bluetooth | Intel AC 3165 |
| Integrated GPU | Intel HD Graphics 620 |

</details>

<details>
<summary><strong>Current Status</strong></summary>
</br>

| Feature | Status |
| ------------- | ------------- |
| CPU Power Management | ✅ Working |
| Sleep/Wake | ✅ Working |
| Intel HD620 Graphics Acceleration | ✅ Working |
| Intel Quartz Extreme and Intel Core Image (QE/CI) | ✅ Working |
| Intel Accelerator | ✅ Working |
| Intel VT-d | ✅ Working |
| Brightness control slider | ✅ Working |
| Special function keys (audio, brightness...) | ✅ Working |
| Ethernet | ✅ Working |
| Audio and HDMI Audio | ✅ Working |
| Multi-Touch Trackpad | ✅ Working |
| Battery | ✅ Working |
| iMessage/Facetime and App Store | ✅ Working  |
| Speakers and Headphones | ✅ Working |
| Built-in Microphone | ✅ Working |
| Webcam | ✅ Working |
| Wi-Fi/Bluetooth | ✅ Working |
| Hibernation | ✅ Working |
| FileVault | ✅ Working |
| ClamShell | ✅ Working |
| BootCamp | [-] Not Tested |
| Airdrop/Handoff | ❌ Not Working |
| SD Card | ❌ Not Working (Disable) |
| Fingerprint reader | ❌ Not Working (Disable) |

</details>

## Installation

<details>
<summary><strong>BIOS Configuration</strong></summary>
</br>

**Recommend you should restore the BIOS setting to BIOS Setting first. Then configure the following things:**

  | Sub-menu | Key: Value | Comment |
  | --- | --- | --- |
  | UEFI Boot Path Security | `Disabled` | |
  | Enable Legacy Option ROMs | `Disabled` | Disable will help OpenCanopy load faster |
  | SATA Operation | `AHCI` | |
  | Enabled USB Boot Support | `Enabled` | |
  | Enable External USB Port | `Enabled` | |
  | Secure Boot | `Disabled` | Can set to `Enabled` if you have already custom secure boot keys and signed OpenCore binaries |
  | Wake on USB | `Enabled` | Wake from keyboard works correctly | |
  | Wake on LAN | `Disable` | Disable Wake from LAN | |
  | Intel VT-d | `Enable` | Load AppleVTD | |

</details>

<details>
<summary><strong>Mainly Configuration</strong></summary>

### Graphic Display
* Integrated Intel HD Graphics 620 support is handled by WhateverGreen, and configured in the `DeviceProperties` section of `config.plist`.

### Audio
* For ALC256 on this my Machine, I use `layout-id = 12`.
* Without any modifications, the headphone jack is buggy. External microphones aren't detected and the audio output may randomly stop working or start making weird noises.
* Start from this version, I change to use [`MicFix`](https://github.com/WingLim/MicFix). It gives better sound experience and performance when using the headset/headphone.

</details>

<details>
<summary><strong>Other Configuration</strong></summary>

### Wireless, Bluetooth
* The stock Intel AC 3165 can be worked well with [OpenIntelWireless](https://github.com/OpenIntelWireless).

### Sleep, Wake and Hibernation
* Config in Terminal ( Optional ) :
 - `sudo pmset powernap 0`
 - `sudo pmset proximitywake 0`
 - `sudo pmset standby 0`
 - `sudo pmset tcpkeepalive 0`
 - `sudo pmset lidwake 0`
 
* My Config pmset used ( Optional ) :
 - `sudo pmset -a standby 0`
 - `sudo pmset -a autopoweroff 0`
 - `sudo pmset -a hibernatemode 0`
 - `sudo pmset ttyskeepawake 0`
 - `sudo pmset powernap 0`
 - `sudo rm -r /var/vm/sleepimage`
 - `sudo mkdir /var/vm/sleepimage`

### Keyboard, Trackpad and Magic Trackpad
- Look up & data detectors
- Secondary click (with two fingers, in bottom left corner*, in bottom right corner*)
- Tap to click
- Scrolling
- Zoom in or out
- Smart zoom
- Enable Drag and Drop use Clickpad: Some trackpad settings have been moved on 10.12+, this is the case for tap to drag. Navigate to the Accessibility PrefPane. On the left, select 'Mouse & Trackpad' and then 'Trackpad Option'. Here you must select 'Enable Drag' and set "Without drag lock"
- Etc ...

### CPU Power Management
* Native CPU Power Management

### Disable CFG Lock
* Removing the CFG Lock enables better compatibility with Mac and better CPU and power management
![cfg](Screenshot/cfg.png)
* For set CFG LOCK Disabled `setup_var 0x4DE 0x0` in [modGRUBShell.efi](https://github.com/datasone/grub-mod-setup_var/releases)
* After this mod set false the quirks AppleXcpmCfgLock

</details>

<details>
<summary><strong>iServices</strong></summary>

* To use iMessage and other Apple services, you need to generate your own serial numbers. This can be done using [CorpNewt's GenSMBIOS](https://github.com/corpnewt/GenSMBIOS). Make sure model is `MacBookPro14,1`. Then, go [Apple Check Coverage page](https://checkcoverage.apple.com/) to check your generated serial numbers. If the website tells you that the serial number **is not valid**, that is fine. Otherwise, you have to generate a new set.

* Next you will have to copy the following values to your `config.plist`:
  - Serial Number -> `PlatformInfo/Generic/SystemSerialNumber`.
  - Board Number -> `PlatformInfo/Generic/MLB`.
  - SmUUID -> `/PlatformInfo/Generic/SystemUUID`.
  Reboot and Apple services should work.

* If they don't, follow [this in-depth guide](https://dortania.github.io/OpenCore-Post-Install/universal/iservices.html). It goes deeper into ROM, clearing NVRAM, clearing Keychain (missing this step might cause major issues), and much more.
</details>

<details>
<summary><strong>Kext Docs</strong></summary>
</br>

* AirportItlwm.kext: Intel AC 3165 Wireless
* AppleALC.kext: Enable Audio with layout-id=12
* BlueToolFixup.kext: Enable bluetooth in Ventura (if you on BigSur you can remove this, because Native on Big Sur)
* CPUFriend.kext : For handle cpu-frequency data providing patch CPU-Frequency_data from CPUFriend
* IntelBluetoothFirmware.kext : For load Intel Bluetooth Firmware. (See on Hackintool)
* Lilu.kext: Kernel extension bringing a platform for arbitrary kext, library, and program patching throughout the system for macOS
* RealtekRTL8111.kext: Driver Ethernet for the Realtek RTL8111/8168 family
* VoodooI2C and VoodooI2CHID: Fix Trackpad, pair with extension VoodooI2CHID.kext
* VirtualSMC.kext: Advanced Apple SMC emulator in the kernel
* VoodooPS2Controller.kext: Enable Keyboard and Touchpad
* WhateverGreen.kext: Lilu plugin providing patches to select GPUs on macOS

</details>

<details>
<summary><strong>DSDT Patch Docs</strong></summary>
</br>

- `Fixed From OEM DSDT :`
* HPET : Fix Patches out IRQ conflicts.
* RTC : Fix the system clocks found on newer hardware.
* TIMR : Fix defines the Device object for the system timer device.
* PPMC : Fix managing the power states of various components within a computer system.
* SMBUS-Mikey : Fix missing SMBUS (Intel System Management Bus) device to the system and Load AppleMikeyDriver.
* OS-Check : Fix system_OSYS win10 patch.
* BRT6 : Fix Brightness Keys.
* ADP1 : Fix Load AppleACPIAdapter.
* ALS0 : Fix Ambient Light Sensor.

- `Specifics Patch Device :`
* DMAC : Add a DMA Controller to the LPCB (Low Pin Count Bus).
* PMCR : Add which corresponds to the Platform Management Control Register (PMCR).
* USBX : Add the purpose of these properties is to define the current limits for USB sleep and wake ports associated with this device.
* PNLF : Add Brightness Slider.
* DTGP : Method that passes through calls to _DSM methods on various Device objects.
* MCHC : Add missing MCHC Device.
* MEM2 : Add relevant for Intel iGPUs in Laptops only, it makes the iGPU use MEM2 instead of TPMX.
* Sb_prw_0x6d (instant wake) : Add patch _prw for fix the sleep/wake function.
* USB Patch Native without Kext/Injector.
* Fix Waning and Error code.

- `SSDT-Data : Fix correct CPU Frequency_Data, paired with CPUFriend.kext.`

</details>

<details>
<summary><strong>Screenshot</strong></summary>
</br>

![1](Screenshot/1.png)
![2](Screenshot/2.png)
![3](Screenshot/3.png)
![4](Screenshot/4.png)
![5](Screenshot/5.png)
![6](Screenshot/6.png)
![7](Screenshot/7.png)
![8](Screenshot/8.png)
![9](Screenshot/9.png)
![10](Screenshot/10.png)
![11](Screenshot/11.png)
![12](Screenshot/12.png)
![13](Screenshot/13.png)
![14](Screenshot/14.png)
![15](Screenshot/15.png)
![25](Screenshot/25.png)
![26](Screenshot/26.png)
![27](Screenshot/27.png)
![28](Screenshot/28.png)
![16](Screenshot/16.png)
![17](Screenshot/17.png)
![18](Screenshot/18.png)
![19](Screenshot/19.png)
![20](Screenshot/20.png)
![21](Screenshot/21.png)
- New Update CPU Management After One Day Use</br>
![22](Screenshot/22.png)
- New Update USB Port Mapping</br>
![23](Screenshot/23.png)
- New Update Cleanup Unused Code DSDT</br>
![24](Screenshot/24.png)
- New Update load Intel Bluetooth Firmware</br>
![29](Screenshot/29.png)
- Now No ACPI Error or Duplicated !!</br>
![30](Screenshot/30.png)
- New Update CPU Management Idle !!</br>
![31](Screenshot/31.png)
- Geekbench5 Benchmark</br>
![32](Screenshot/32.png)
![33](Screenshot/33.png)
- Clean Warning on DSDT Patch</br>
![34](Screenshot/34.png)
- New Disk Benchmark
![35](Screenshot/35.png)
</details>

## Credit
- [Apple](https://apple.com) for macOS;
- [Acidanthera](https://github.com/acidanthera) for OpenCore and all the lovely hackintosh work.
- [Dortania](https://github.com/dortania) For their detailed guides.
- [Olarila](Olarila.com) For Installer
- Etc ...