NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: touch screen support



dtyson%anduin.org.uk@localhost (Dave Tyson) writes:

>I guess these touch screens need some calibration to set the x/y bounds
>and maybe some mods to the driver. Can anyone hit me with a cluebat as
>to where to start...

There are lots touchpads that need a more relaxed interpretation of their
capabilities. The uts driver already ignores the missing Digitizer:In_Range
HID usage for Elan touchpads.

The FreeBSD driver (wmt(4)) seems to ignore it completely. I'm not
sure if that is sufficient (Linux applies a ton of quirks to the
different touch screen models).

For a start it might be sufficient to go the FreeBSD way:

Index: uts.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/uts.c,v
retrieving revision 1.16
diff -p -u -r1.16 uts.c
--- uts.c       10 May 2023 00:12:44 -0000      1.16
+++ uts.c       29 May 2023 08:38:50 -0000
@@ -215,7 +215,7 @@ uts_attach(device_t parent, device_t sel
                } else {
                        aprint_error_dev(sc->sc_dev,
                            "touchscreen has no range report\n");
-                       return;
+                       // return;
                }
        }



Home | Main Index | Thread Index | Old Index