Skip to content

Commit

Permalink
new post added
Browse files Browse the repository at this point in the history
  • Loading branch information
downIoads committed Oct 27, 2023
1 parent b9a7534 commit a9898fc
Show file tree
Hide file tree
Showing 29 changed files with 26 additions and 11 deletions.
19 changes: 14 additions & 5 deletions content/posts/hackintosh-xps9370.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,38 @@ Before you continue reading, you probably want to know whether the effort will b
* 4k resolution
* Trackpad (not as nice as an actual MacBook trackpad but good enough. Gestures work decently)
* Ethernet with USB-adapter (I tried two different ones and both worked)
* Bluetooth
* Bluetooth (e.g. Audio)
* SD card reader
* Keyboard Backlight
* Battery Percentage
* Wi-Fi with TP-Link Archer 3U dongle and Chris1111 BigSur repo
* Fn Buttons (except shortcut for brightness)
* Sound via speakers (thanks to [SSDTTime](https://github.com/corpnewt/SSDTTime) with 1.FixHPET and [CodecCommander.kext](https://bitbucket.org/RehabMan/os-x-eapd-codec-commander/downloads/))

### Not working
* Sound (neither speakers nor AUX). Bluetooth headphones work perfectly though.
* Sound via AUX
* Thunderbolt ports rarely work, but they sometimes do
* Sleep mode (disable in settings and try not to click it accidently under Apple logo top-left drop-down)

Sleep mode is right above Shutdown or Reboot (not sure right now) in the Apple logo drop-down menu. If I accidently press it it goes into sleep mode, but when trying to leave sleep mode to continue working it gets stuck on the lockscreen:

![targets](/images/xps-hackintosh/sleep.png "Sleep mode is broken")

### Not tested
* Touchscreen (I never liked this, so I disabled it in the BIOS)
* Camera (I never use this, so I disabled it in the BIOS)
* Microphone (I never use this, so I disabled it in the BIOS)
* Sleep mode (I always disable it in macOS)

All in all, I got everything except non-bluetooth sound working so far.
4k resolutions works out-of-the-box, but it is called (1920x1080 (default)). There also is 1920x1080 (low resolution) but this is actual 1080p and looks slightly blurry on this 4k display. The former is 4k with upscaling so that everything is nice, sharp and big.
The XPS has two Thunderbolt 3 ports on the left side and one "normal" USB-C port on the right side. The right side port works perfectly well with every device I have tested. The thunderbolt ports rarely recognize anything, but I did manage to have my Nintendo Switch Ethernet adapter working on these ports. I was able to plug it in while the OS was already running, and it worked after a few seconds. I have read from others that their Thunderbolt devices work if the USB device was already attached to them before booting, but for me this did not help with anything. So basically you are left with one reliable USB-C port on the right side and should use one of the left side Thunderbolt ports for your charger (this always works).
The XPS has two Thunderbolt 3 ports on the left side and one "normal" USB-C port on the right side. The right side port works perfectly well with every device I have tested. The thunderbolt ports rarely recognize anything, but I did manage to have my Nintendo Switch Ethernet adapter working on these ports. I was able to plug it in while the OS was already running, and it worked after a few seconds. I have read from others that their Thunderbolt devices work if the USB device was already attached to them before booting, but for me this did not help with anything. So basically you are left with one reliable USB-C port on the right side and should use one of the left side Thunderbolt ports for your charger (this always works). I recommend attaching a USB-hub with many ports (including Ethernet) and maybe even active power to the right-side USB port.
Keyboard backlight is working when using the same kexts as I do, not much to say about this.
Surprisingly, Bluetooth works out of the box with my kexts. So the built-in Killer Wi-Fi card (which sadly is soldered and thus can't be replaced) can be used for Bluetooth, but nothing Wi-Fi related will work with it. Bluetooth works perfectly with my Shure headset, even all buttons on it work!
In order to get Wi-Fi working, I recommend getting a TP-Link Archer 3U dongle (Chris uses that one too and who would know better than him) or the large antenna version of this dongle (also tested by Chris). Then just follow the steps described in [Chris repo](https://github.com/chris1111/Wireless-USB-Big-Sur-Adapter). Note that you can not re-enable csrutil or spctl master after the install as this will break your install, and you will have to re-install. So just follow his video tutorial, then Wi-Fi will work perfectly well as long as you attach the dongle to the right-side USB slot. In short: Go to recovery mode, "csrutil disable && spctl --master-disable", reboot, install the stuff and allow it, reboot.
Battery percentage works if you enable it in macOS.
Fn buttons work, but macOS does not by default allow you to use them as a shortcut for brightness adjustment. So the best workaround is to bind lower brightness to F2 and increase brightness to F3. This way, you use F2 for lower brightness and Fn+F2 for lower audio, F3 for higher brightness and Fn+F3 for higher audio.
Getting sound to work was difficult. First I did the layout-id mapping with help of [gfxutil](https://github.com/acidanthera/gfxutil/releases) in the config.plist (cleaner than alcid boot-arg), then I used SSDTTime to fix IRQ conflicts. This allowed me to adjust sound, but I never got any sound. This only changed after I added the CodecCommander kext. Now it is working perfectly, but sadly AUX is still not working. Many others online had CPU usage issues when using AppleALC and CodecCommander kexts together, but I can't confirm this. My CPU usage is low and the battery is not drained as far as I can tell. So either I got lucky or they fixed it in later versions of the kexts.


## Overview of ACPI, Drivers and Kext
Of course, you first do a USB port mapping on Windows before you do anything. Then you follow the standard Dortania tutorial for Kaby Lake. The i7-8550u is a Kaby Lake R generation CPU (which is sometimes referred to as Kaby Lake in the tutorial). As SMBIOS you use MacBookPro14,2 (Ventura) or MacBookPro16,3 (Sonoma). Note that Sonoma requires 15,x +. After following the tutorial, there are two more things you must do to get it to install (possibly only required for 4k display versions of this laptop):
Expand All @@ -53,6 +60,7 @@ After trying lots of different things, the following setup ended up working best
* SSDT-EC-USBX-LAPTOP
* SSDT-PLUG-DRTNIA
* SSDT-PNLF.aml
* SSDT-HPET.aml (created with SSDTTime and 1.FixHPET)

### Drivers
* HfsPlus.efi
Expand All @@ -64,6 +72,7 @@ After trying lots of different things, the following setup ended up working best
* AppleALC.kext
* BlueToolFixup.kext
* BrightnessKeys.kext
* CodecCommander.kext
* IntelBluetoothFirmware.kext
* IntelBTPatcher.kext
* Lilu.kext
Expand All @@ -84,4 +93,4 @@ After trying lots of different things, the following setup ended up working best
Generally, try to get the newest version unless there is a specific reason why you should not. I even used the debug versions of everything even though that is not needed.

## Conclusion
I got the newest macOS version running on a 5-year-old laptop and everything is smooth. The touchpad can be annoying because it is just not that great and the battery is not that amazing either. But the OS runs well and stable, 4k is working, and I can actually use it as a productive machine. Wi-Fi works with the dongle thanks to Chris amazing work, and I hope I can figure out how to make sound without Bluetooth work too - soon (alcid 21 or 22 alone does not help).
I got the newest macOS version running on a 5-year-old laptop and everything is smooth. The touchpad can be annoying because it is just not that great and the battery could be better too. But the OS runs well and stable, 4k is working, and I can actually use it as a productive machine. Wi-Fi works with the dongle thanks to Chris amazing work, and I hope I can figure out how to make aux sound work too.
Binary file modified public/images/d2r.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/gohugo-default-sample-hero-image.jpg
Binary file not shown.
Binary file modified public/images/gopher-stable-diffusion/akshually1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/gopher-stable-diffusion/akshually2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/gopher-stable-diffusion/akshually3-upscaled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/gopher-stable-diffusion/akshually3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/gopher-stable-diffusion/corpa-gopher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/gopher-stable-diffusion/stable-diffusion-ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/osx-d2rrunes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/python_llama_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/streamlink-adblock-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/twitch-stream-adblocking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/xps-hackintosh/sleep.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/yt-dlp-twitch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 12 additions & 6 deletions public/posts/hackintosh-xps9370/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,33 +89,37 @@ <h3 id="working">Working</h3>
<li>4k resolution</li>
<li>Trackpad (not as nice as an actual MacBook trackpad but good enough. Gestures work decently)</li>
<li>Ethernet with USB-adapter (I tried two different ones and both worked)</li>
<li>Bluetooth</li>
<li>Bluetooth (e.g. Audio)</li>
<li>SD card reader</li>
<li>Keyboard Backlight</li>
<li>Battery Percentage</li>
<li>Wi-Fi with TP-Link Archer 3U dongle and Chris1111 BigSur repo</li>
<li>Fn Buttons (except shortcut for brightness)</li>
<li>Sound via speakers (thanks to <a href="https://github.com/corpnewt/SSDTTime">SSDTTime</a> with 1.FixHPET and <a href="https://bitbucket.org/RehabMan/os-x-eapd-codec-commander/downloads/">CodecCommander.kext</a>)</li>
</ul>
<h3 id="not-working">Not working</h3>
<ul>
<li>Sound (neither speakers nor AUX). Bluetooth headphones work perfectly though.</li>
<li>Sound via AUX</li>
<li>Thunderbolt ports rarely work, but they sometimes do</li>
<li>Sleep mode (disable in settings and try not to click it accidently under Apple logo top-left drop-down)</li>
</ul>
<p>Sleep mode is right above Shutdown or Reboot (not sure right now) in the Apple logo drop-down menu. If I accidently press it it goes into sleep mode, but when trying to leave sleep mode to continue working it gets stuck on the lockscreen:</p>
<p><img src="/images/xps-hackintosh/sleep.png" alt="targets" title="Sleep mode is broken"></p>
<h3 id="not-tested">Not tested</h3>
<ul>
<li>Touchscreen (I never liked this, so I disabled it in the BIOS)</li>
<li>Camera (I never use this, so I disabled it in the BIOS)</li>
<li>Microphone (I never use this, so I disabled it in the BIOS)</li>
<li>Sleep mode (I always disable it in macOS)</li>
</ul>
<p>All in all, I got everything except non-bluetooth sound working so far.
4k resolutions works out-of-the-box, but it is called (1920x1080 (default)). There also is 1920x1080 (low resolution) but this is actual 1080p and looks slightly blurry on this 4k display. The former is 4k with upscaling so that everything is nice, sharp and big.
The XPS has two Thunderbolt 3 ports on the left side and one &ldquo;normal&rdquo; USB-C port on the right side. The right side port works perfectly well with every device I have tested. The thunderbolt ports rarely recognize anything, but I did manage to have my Nintendo Switch Ethernet adapter working on these ports. I was able to plug it in while the OS was already running, and it worked after a few seconds. I have read from others that their Thunderbolt devices work if the USB device was already attached to them before booting, but for me this did not help with anything. So basically you are left with one reliable USB-C port on the right side and should use one of the left side Thunderbolt ports for your charger (this always works).
The XPS has two Thunderbolt 3 ports on the left side and one &ldquo;normal&rdquo; USB-C port on the right side. The right side port works perfectly well with every device I have tested. The thunderbolt ports rarely recognize anything, but I did manage to have my Nintendo Switch Ethernet adapter working on these ports. I was able to plug it in while the OS was already running, and it worked after a few seconds. I have read from others that their Thunderbolt devices work if the USB device was already attached to them before booting, but for me this did not help with anything. So basically you are left with one reliable USB-C port on the right side and should use one of the left side Thunderbolt ports for your charger (this always works). I recommend attaching a USB-hub with many ports (including Ethernet) and maybe even active power to the right-side USB port.
Keyboard backlight is working when using the same kexts as I do, not much to say about this.
Surprisingly, Bluetooth works out of the box with my kexts. So the built-in Killer Wi-Fi card (which sadly is soldered and thus can&rsquo;t be replaced) can be used for Bluetooth, but nothing Wi-Fi related will work with it. Bluetooth works perfectly with my Shure headset, even all buttons on it work!
In order to get Wi-Fi working, I recommend getting a TP-Link Archer 3U dongle (Chris uses that one too and who would know better than him) or the large antenna version of this dongle (also tested by Chris). Then just follow the steps described in <a href="https://github.com/chris1111/Wireless-USB-Big-Sur-Adapter">Chris repo</a>. Note that you can not re-enable csrutil or spctl master after the install as this will break your install, and you will have to re-install. So just follow his video tutorial, then Wi-Fi will work perfectly well as long as you attach the dongle to the right-side USB slot. In short: Go to recovery mode, &ldquo;csrutil disable &amp;&amp; spctl &ndash;master-disable&rdquo;, reboot, install the stuff and allow it, reboot.
Battery percentage works if you enable it in macOS.
Fn buttons work, but macOS does not by default allow you to use them as a shortcut for brightness adjustment. So the best workaround is to bind lower brightness to F2 and increase brightness to F3. This way, you use F2 for lower brightness and Fn+F2 for lower audio, F3 for higher brightness and Fn+F3 for higher audio.</p>
Fn buttons work, but macOS does not by default allow you to use them as a shortcut for brightness adjustment. So the best workaround is to bind lower brightness to F2 and increase brightness to F3. This way, you use F2 for lower brightness and Fn+F2 for lower audio, F3 for higher brightness and Fn+F3 for higher audio.
Getting sound to work was difficult. First I did the layout-id mapping with help of <a href="https://github.com/acidanthera/gfxutil/releases">gfxutil</a> in the config.plist (cleaner than alcid boot-arg), then I used SSDTTime to fix IRQ conflicts. This allowed me to adjust sound, but I never got any sound. This only changed after I added the CodecCommander kext. Now it is working perfectly, but sadly AUX is still not working. Many others online had CPU usage issues when using AppleALC and CodecCommander kexts together, but I can&rsquo;t confirm this. My CPU usage is low and the battery is not drained as far as I can tell. So either I got lucky or they fixed it in later versions of the kexts.</p>
<h2 id="overview-of-acpi-drivers-and-kext">Overview of ACPI, Drivers and Kext</h2>
<p>Of course, you first do a USB port mapping on Windows before you do anything. Then you follow the standard Dortania tutorial for Kaby Lake. The i7-8550u is a Kaby Lake R generation CPU (which is sometimes referred to as Kaby Lake in the tutorial). As SMBIOS you use MacBookPro14,2 (Ventura) or MacBookPro16,3 (Sonoma). Note that Sonoma requires 15,x +. After following the tutorial, there are two more things you must do to get it to install (possibly only required for 4k display versions of this laptop):</p>
<ul>
Expand All @@ -129,6 +133,7 @@ <h3 id="acpi">ACPI</h3>
<li>SSDT-EC-USBX-LAPTOP</li>
<li>SSDT-PLUG-DRTNIA</li>
<li>SSDT-PNLF.aml</li>
<li>SSDT-HPET.aml (created with SSDTTime and 1.FixHPET)</li>
</ul>
<h3 id="drivers">Drivers</h3>
<ul>
Expand All @@ -142,6 +147,7 @@ <h3 id="kexts">Kexts</h3>
<li>AppleALC.kext</li>
<li>BlueToolFixup.kext</li>
<li>BrightnessKeys.kext</li>
<li>CodecCommander.kext</li>
<li>IntelBluetoothFirmware.kext</li>
<li>IntelBTPatcher.kext</li>
<li>Lilu.kext</li>
Expand All @@ -161,7 +167,7 @@ <h3 id="kexts">Kexts</h3>
</ul>
<p>Generally, try to get the newest version unless there is a specific reason why you should not. I even used the debug versions of everything even though that is not needed.</p>
<h2 id="conclusion">Conclusion</h2>
<p>I got the newest macOS version running on a 5-year-old laptop and everything is smooth. The touchpad can be annoying because it is just not that great and the battery is not that amazing either. But the OS runs well and stable, 4k is working, and I can actually use it as a productive machine. Wi-Fi works with the dongle thanks to Chris amazing work, and I hope I can figure out how to make sound without Bluetooth work too - soon (alcid 21 or 22 alone does not help).</p>
<p>I got the newest macOS version running on a 5-year-old laptop and everything is smooth. The touchpad can be annoying because it is just not that great and the battery could be better too. But the OS runs well and stable, 4k is working, and I can actually use it as a productive machine. Wi-Fi works with the dongle thanks to Chris amazing work, and I hope I can figure out how to make aux sound work too.</p>

</section>

Expand Down
Binary file modified static/images/d2r.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/gopher-stable-diffusion/akshually1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/gopher-stable-diffusion/akshually2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/gopher-stable-diffusion/akshually3-upscaled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/gopher-stable-diffusion/akshually3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/gopher-stable-diffusion/corpa-gopher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/gopher-stable-diffusion/stable-diffusion-ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/osx-d2rrunes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/python_llama_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/streamlink-adblock-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/twitch-stream-adblocking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/xps-hackintosh/sleep.png
Binary file modified static/images/yt-dlp-twitch.png

0 comments on commit a9898fc

Please sign in to comment.