[Bug 267094] [patch] Enable Touchpad on Fujitsu Lifebook

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 15 Oct 2022 18:01:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267094

            Bug ID: 267094
           Summary: [patch] Enable Touchpad on Fujitsu Lifebook
           Product: Base System
           Version: 13.1-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: pmc@citylink.dinoex.sub.org

Created attachment 237347
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=237347&action=edit
patch to dev/hid/hmt.c

The Fujitsu lifebook, model A3511, has a builtin touchpad attached to ig4iic0.

This touchpad is detected and functional in X, but it works as a mouse, i.e.
considerably sloppy. Here is the device chain:

pci0
  ig4iic0
    iicbus0
      iichid0
        hidbus0
          hms0
          hconf0

The hmt driver gets also autoloaded into the kernel, but does not attach,
because it does not find any buttons on the device, and, according to the code
of that driver, a touchpad without buttons must not exist - for whatever reason
I don't know: if I remove that check in the code, then the driver attaches and
the thing works (obviousely without the buttons).

But the buttons do exist. They are just not at the place where the driver
expects them. The attached patch now simply changes a "1" into a "2", and then
the thing works.

I did not figure out how "quirks" would be created in this hid infrastructure,
neither do I know if this is a problem on our side or with the device.

Important: the touchpad device identifies as "ELAN0D07:00 04F3:3078"

-- 
You are receiving this mail because:
You are the assignee for the bug.