# Laptop suspend and resume (S3) on the XPS 13

<span class="badge badge-part">mostly</span> FreeBSD 15.1-RELEASE, `GENERIC` kernel.

## What survives a nap

| Device | After resume | How |
|---|---|---|
| Speakers and mic | works, stable across many cycles | [acpi_intel_sst](/laptop/audio/) tears the DSP down on suspend and rebuilds it on resume |
| Touchpad | works | only with the [ig4 fix](/laptop/touchpad/); in PS/2 mode it disappears |
| Sound settings | kept | the driver restores EQ and volume, then fades in over `resume_ramp_ms` (50 ms) to avoid a pop |
| PS/2 keyboard controller | not reinitialised | `atkbdc(4)` has no resume method, see below |

## How sound learned to wake up

Up to version 0.57.0 the audio driver produced no sound after any suspend. That release added a full teardown and rebuild. Then 0.69.0 found the next one: "Audio was silent after every resume", with `Resume: firmware reload failed: 5`. The firmware was being copied into DSP memory that was not clocked yet. The reload now waits until the shim is configured.

## The keyboard controller

Without the ig4 fix, the touchpad runs as a PS/2 device behind the keyboard controller, and after resume the log shows:

```text
atkbdc0: resume: selftest=1 cmdbyte=0x47 auxcmd=1 auxport=0 reset=0 tries=60
psm0: the aux device has gone! (reinitialize).
```

`atkbdc(4)` has no `device_resume` method, so nothing reconfigures the i8042 after S3. An experimental resume hook was tried in September 2026 and dropped. With the touchpad on I2C the problem no longer matters on this laptop, but it is still there for machines with a real PS/2 touchpad.

## Connected Standby (S0ix)

FreeBSD does not implement S0ix. On this laptop it only matters because Dell's ACPI table hides the audio DSP unless the OS claims Connected Standby, which is why the [sound driver](/laptop/audio/) needs a patched DSDT.
