# Laptop touchpad: fixing ig4 for Haswell and Broadwell LPSS

<span class="badge badge-ok">fixed upstream</span> Version 0.1.0 (16 September 2026). Filed as [FreeBSD PR 298558](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298558), now closed as fixed. Source: [spagu/freebsd-ig4-lpss](https://github.com/spagu/freebsd-ig4-lpss).

## Symptom

```text
ig4iic1: controller error during attach-1
device_attach: ig4iic1 attach returned 6
```

The touchpad (`DLL0665`, Synaptics `06CB:76AD`) never shows up as an I2C device.

## Three bugs in `sys/dev/ichiic`

1. The driver never calls the ACPI `_PS0` method, so the controller stays in power state D3 (its PMCSR register reads `0x0b`).
2. The ACPI IDs `INT33C2`, `INT33C3`, `INT3432` and `INT3433` are matched to the Atom controller class instead of the Haswell one.
3. The LPSS functional clock stays gated (`IG4_REG_CLK_PARMS` bit 0 at offset `0x800`). The transmit FIFO fills up, nothing moves on the bus, and the interrupt counter stays at 0.

With all three fixed, `iichid0` attaches, `hmt1` reports multitouch with 3 contacts and a click-pad, and the touchpad still works after suspend and resume.

## Install the patched module

Until a release ships the fix, the repository patches `/usr/src` and builds `ig4.ko`:

```sh
make patch     # applies the patch to /usr/src, keeps *.orig copies
make build     # builds ig4.ko against the kernel build directory
make install   # backs up /boot/kernel/ig4.ko, installs, runs kldxref
```

Reboot afterwards. To go back: `make revert`. `make diff` regenerates the patch from the sources.

On the test machine `/boot/loader.conf` also has `hint.psm.0.disabled="1"`, so the PS/2 mouse driver does not grab the touchpad first.

`freebsd-update` overwrites `ig4.ko`. The old module is kept as `/boot/ig4.ko.orig-<date>`; run `make install` again after an update.
