I2C Touchpads on FreeBSD 13.0-CURRENT

Why is my touchpad not working?

Since I got my laptop I couldn't get the touchpad working on FreeBSD current, no matter what I tried. It happened at first that the intel I2C was not supported, after that, the HID interface for I2C was not working. It is frustrating.

How to solve it?

The idea came during the FreeBSD's DevSummit before FOSDEM in 2020 when I talked to another FreeBSD developer, Kamila Souckova, to get it fixed (or try it). We knew about a patch under review and, after trying to apply the patch, it failed to compile under FreeBSD 13-CURRENT.
We looked for another solution and she found a project in github that seemed promising. So she tried and worked, so I gave it a change and the results are positive: the touchpad is working.

Fixing it

The solution is easy: clone the repository, build it, install it and configure Xorg to use it.

Cloning the repository

Just run git clone https://github.com/wulf7/iichid and you'll get the sources locally. Easy, right?

Building the sources

You would need the sources of the running operating system under /usr/src and run make inside the directory where the sources where cloned.

Installing the sources

Run make install and you will get the sources installed in /boot/modules. To load the module at boot time, add the module iichid to kld_list in rc.conf or add the line iichid_load="YES" in /boot/loader.conf

Configure Xorg

The configuration for Xorg is the following:
Section "InputDevice"
 Identifier "Touchpad"
 Driver "libinput"
 Option "Device" "/dev/input/event6"
 Option "AutoServerLayout" "true"

Add it to a file under /usr/local/etc/X11/xorg.conf.d/ and that would be it :)


  1. ASUS ZenBook 13. FreeBSD-13.0-CURRENT (13/2/2020). Done everything as suggested. Apparently everything is OK as regard iichid, but no touchpad working. I tried to change all /dev/input/event? from 0 to 9. No success. Furthermore, if I put kld_list=iichid in /etc/rc,conf, X does not appear after startx, while if I put iichid_load="YES" in /boot/loader.conf, X appear, but no mouse nor touchpad are working. Thanks for eventual suggestions.

    1. As I supposed, it was a problem of too old a xorg. With xorg-7.7_3, iichid driver is very efficient and the sophisticated touchpad of Asus ZenBooks works sufficiently well. It would be useful to advice the potential user to upgrade xorg (X-server 1.20.7) before installing iichid driver..


Post a Comment

Popular Posts