Dell XPS 13 / naps

Laptop suspend and resume (S3) on the XPS 13

The laptop sleeps (S3) and wakes up. Getting every device to wake up with it took most of the work on this page.

A laptop in a nightcap, asleep, with zzz floating above it.

mostly FreeBSD 15.1-RELEASE, GENERIC kernel.

What survives a nap

DeviceAfter resumeHow
Speakers and micworks, stable across many cyclesacpi_intel_sst tears the DSP down on suspend and rebuilds it on resume
Touchpadworksonly with the ig4 fix; in PS/2 mode it disappears
Sound settingskeptthe driver restores EQ and volume, then fades in over resume_ramp_ms (50 ms) to avoid a pop
PS/2 keyboard controllernot reinitialisedatkbdc(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:

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 needs a patched DSDT.

Built with ssg