Home

Awesome

macOS on XPS 13 9360

This repo is currently compatible with macOS versions as below...

macOS Big SurmacOS CatalinamacOS MojavemacOS High Sierra
11.2.3 (20D91)10.15.7 (19H15)10.14.6 (18G87)10.13.6 (17G2112)
11.2.1 (20D74)10.15.6 (19G2021)10.14.5 (18F132)10.13.6 (17G65)
11.2 (20D64)10.15.5 (19F2200)10.14.4 (18E226)
11.1 (20C69)10.15.4 (19E287)10.14.3 (18D42)
11.0.1 (20B50)10.15.3 (19D76)10.14.2 (18C54)
11.0 (20A2411)10.15.2 (19C57)10.14.1 (18B75)
10.15.1 (19B88)10.14 (18A389)
10.15 (19A583)

Device Firmware

Bootloader Firmware

Pre-Installation

Create bootable USB installer: (With gibMacOS)

  sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/USB
  sudo diskutil mount /dev/disk3s1

DVMT

  setup_var 0x4de 0x00  // Disable CFG Lock
  setup_var 0x785 0x06  // Increase DVMT pre-allocated size to 192M For FHD version, it's also recommended setting to 192M
  setup_var 0x786 0x03  // Increase CFG Memory to maximum

Format SSD with 4K sectors for APFS - Creating a Linux bootable drive is needed.

Get compatible with LITEON and PLEXTOR SSD - If you are not using with LITEON or PLEXTOR SSD, skip it.

BIOS settings

Post-Installation

Wireless card - BCM94360CS2 Installation (If not using this card, skip it.)

Wireless card - BCM94360NG (If not using this card, skip it.)

Wireless card - DW1560 Installation (If not using this card, skip it.)

   sudo diskutil mount /dev/disk0s1
   cd /Volumes/EFI/EFI
   cp -R DW1560/*.kext CLOVER/kexts/Other
   bash /Volumes/EFI/EFI/XPS.sh --rebuild-cache
If booting with OpenCore rather than Clover Configurator, copy the three kexts above to /EFI/OC/Kexts, and then running previous command to rebuild cache.

Running shell script in Terminal

   sudo diskutil mount /dev/disk0s1
   ./Volumes/EFI/EFI/XPS.sh --compile-dsdt
   ./Volumes/EFI/EFI/XPS.sh --enable-3rdparty
   ./Volumes/EFI/EFI/XPS.sh --combo-jack
   ./Volumes/EFI/EFI/XPS.sh --enable-trim
   ./Volumes/EFI/EFI/XPS.sh --rebuild-cache
   ./Volumes/EFI/EFI/XPS.sh --better-sleep
   ./Volumes/EFI/EFI/XPS.sh --pin-custom

Fix the buzz sound from headphone jack

    Open System Preferences/Sound/Input

Fix the "Webcam Black Screen" problem

    Unsolved

SMBIOS

CPUFriend

If you need to generate new CPUFriend kexts, refer to Commands, and follow here

Enable eGPU with Thunderbolt 3

Custom setting the delay between trackpad and keyboard

To do that you need to edit Info.plist in VoodooI2CHID.kext:

I have preset the value to 0

More Custom Settings

HiDPI

Fix Blurry Fonts for Non-Retina Displays

If booting with Clover, blurry font is required to fix.
If booting with OpenCore, font is clear as Retina, no need to fix.

Fix AppleID issue on macOS Catalina

        sudo -v
        killall -9 accountsd com.apple.iCloudHelper
        defaults delete MobileMeAccounts
        rm -rf ~/Library/Accounts
        killall -9 accountsd com.apple.iCloudHelper
        sudo reboot

Fix the AirPods choppy/unreliable when connected to macOS

Optional Settings

CPU Undervolting

If having the same CPU as mine, you can do the undervolting settings below.

Warning!!! This may cause crash on your device, please be aware of that.

Enter BIOS/Boot Sequence , add new Boot Option with /EFI/CLOVER/tools/DVMT.efi, then run the following commands...

       setup_var 0x4DE 0x00
       setup_var 0x64D 0x01
       setup_var 0x64E 0x01
       setup_var 0x653 0x64     // CPU: -100 mV
       setup_var 0x655 0x01     // Negative voltage for 0x653
       setup_var 0x85A 0x1E     // GPU: -30 mV
       setup_var 0x85C 0x01     // Negative voltage for 0x85A

Swapping SSD

Upgrading macOS

Migrate bootloader from Clover to OpenCore

      bash /Volumes/EFI/EFI/OC/trans.sh
      bash /Volumes/EFI/EFI/OC/XPS_OC.sh --compile-dsdt

Dev-Notes

External Display Support

  ID: 59160000, STOLEN: 34 MB, FBMEM: 0 bytes, VRAM: 1536 MB, Flags: 0x00000B0B
  TOTAL STOLEN: 35 MB, TOTAL CURSOR: 1 MB (1572864 bytes), MAX STOLEN: 103 MB, MAX OVERALL: 104 MB (109588480 bytes)
  GPU Name: Intel HD Graphics 620
  Model Name(s): MacBookPro14,2
  Camelia: Disabled, Freq: 1388 Hz, FreqMax: 1388 Hz
  Mobile: 1, PipeCount: 3, PortCount: 3, FBMemoryCount: 3
   [0] busId: 0x00, pipe: 8, type: 0x00000002, flags: 0x00000098 - LVDS
   [1] busId: 0x05, pipe: 9, type: 0x00000400, flags: 0x00000187  - DP
   [2] busId: 0x04, pipe: 10, type: 0x00000800, flags: 0x00000187 - HDMI
      00000800 02000000 98000000
      01050900 00040000 87010000
      02040A00 00080000 87010000
  Digital Audio (HDMI / DVI / DP)
  To enable digital audio it is necessary to set the necessary properties and, usually, patch the connectors.
  To enable audio in general and HDMI in particular use WEG along with AppleALC.kext.
  On 10.10.5 and above, WEG automatically changes the connector-type of DP (00040000) to HDMI (00080000) if no custom patches are used.
  The actual connection may be of any type (HDMI / DVI / DP), but for the digital audio to function the connector-type must explicitly be HDMI.

When HDMI plugged in, macOS would recognize as DP (busID: 0x05), not HDMI (busID: 0x04).

DPHDMIDVI
0x020x000x01
0x040x020x02
0x050x040x04
0x060x060x06

USB Ports Mapping

USB 2 (XHC)USB 3 (XHC)Thunderbolt 3 (TBTU)Dev Speed
HS01HS0112/480 Mbps
HS02HS0212/480 Mbps
SS015 Gbps
SS025 Gbps
UB215 Gbps
UB215 Gbps

Boot Arguments Explanation

XCPM and HWP

   sysctl machdep.xcpm.mode
   // If returns '1', which means the XCPM is active.
   kextstat|grep -y x86plat

Shutdown Dialog

Contributors

ComboJack

Acidanthera

HiDPI

gibMacOS

Leo Neo Usfsg

Kexts version and developers are mentioned in kexts_info.txt