# FreeBSD on a Dell XPS 13 9343

The machine: Dell XPS 13 9343, BIOS A20, Core i7-5600U (Broadwell-U, 15 W), HD Graphics 5500, an Intel AX210 Wi-Fi card. It runs FreeBSD 15.1-RELEASE with the `GENERIC` kernel.

<ul class="cards wide">
  <li class="card"><img src="/images/audio-laptop.svg" alt="" width="320" height="240"><span class="badge badge-ok">works</span><h3><a href="/laptop/audio/">Speakers and mic: acpi_intel_sst</a></h3><p>The first Intel Smart Sound Technology driver for a BSD. Playback, capture, jack detection, EQ.</p></li>
  <li class="card"><img src="/images/touchpad.svg" alt="" width="320" height="240"><span class="badge badge-ok">fixed upstream</span><h3><a href="/laptop/touchpad/">Touchpad over I2C: ig4</a></h3><p>Three bugs kept the I2C controllers off. Multitouch now, and it survives suspend.</p></li>
  <li class="card"><img src="/images/gpu.svg" alt="" width="320" height="240"><span class="badge badge-ok">fixed upstream</span><h3><a href="/laptop/gpu/">GPU hangs: i915 on 15.1</a></h3><p>62 hangs in a month after a package upgrade. A one-number fix.</p></li>
  <li class="card"><img src="/images/power.svg" alt="" width="320" height="240"><span class="badge badge-ok">works</span><h3><a href="/laptop/power/">CPU power: intel_rapl</a></h3><p>Read and set package power limits and see real watts.</p></li>
  <li class="card"><img src="/images/laptop.svg" alt="" width="320" height="240"><span class="badge badge-part">mostly</span><h3><a href="/laptop/suspend/">Suspend and resume</a></h3><p>What survives a nap (S3), and the one part that still does not.</p></li>
</ul>

## Order of installation

Order for the same laptop on a fresh FreeBSD 15.1:

<ol class="steps">
<li>Fix the GPU hangs first, so the desktop stays up during the rest: <a href="/laptop/gpu/">i915 GTT fix</a>.</li>
<li>Add sound: <a href="/laptop/audio/">acpi_intel_sst</a>. This needs a patched DSDT and a cold boot.</li>
<li>Add the touchpad: <a href="/laptop/touchpad/">ig4 patch</a>. Already in FreeBSD's tree, so a newer release will have it.</li>
<li>Optionally load <a href="/laptop/power/">intel_rapl</a> to watch how much power the CPU burns.</li>
</ol>

> The sound driver's guide disables `ig4` (`ig4_load="NO"`), because the codec and the I2C controllers used to fight over I2C0. The touchpad fix needs `ig4`. The same fix also ungates the clock that caused the codec's `I2C read failed: 60` errors, so the two should now get along, but no tested `loader.conf` with both has been published yet. Until then, only one of the two can be used.

The Wi-Fi card caused a kernel panic once. That one is in [Kernel bugs](/kernel/in6-selecthlim-panic-after-iwlwifi-detach/).
