NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/58302: Newer Elantech touchpad is not being registered by pms
The following reply was made to PR kern/58302; it has been noted by GNATS.
From: "Marc Coquand" <marc@mccd.space>
To: <gnats-bugs%netbsd.org@localhost>, <kern-bug-people%netbsd.org@localhost>,
<gnats-admin%netbsd.org@localhost>, <netbsd-bugs%netbsd.org@localhost>
Cc:
Subject: Re: kern/58302: Newer Elantech touchpad is not being registered by
pms
Date: Sat, 08 Jun 2024 11:23:04 -0500
Heya,
Adding some more debugging info.
It seems that T480s only uses some limited i2c functionality, and is in
fact a PS/2 touchpad, which would explain why the patch doesn't work.
My suspicion now is that the Elantech driver that is built into NetBSD
only supports version 2, whereas the version used by T480s is version
4. I found this by checking dmesg on linux:
[ 6.292103] psmouse serio1: elantech: assuming hardware version 4
(with firmware version 0x7f3001)
So the solution to this could be to port over the elantech v4
functionality from OpenBSD or FreeBSD, since they both support this model.
-- Marc
On Sat Jun 1, 2024 at 6:55 PM -05, Marc Coquand wrote:
> The following reply was made to PR kern/58302; it has been noted by GNATS=
.
>
> From: "Marc Coquand" <marc@mccd.space>
> To: <gnats-bugs%netbsd.org@localhost>, <kern-bug-people%netbsd.org@localhost>,
> <gnats-admin%netbsd.org@localhost>, <netbsd-bugs%netbsd.org@localhost>
> Cc:=20
> Subject: Re: kern/58302: Newer Elantech touchpad is not being registered =
by
> pms
> Date: Sat, 01 Jun 2024 17:32:58 -0500
>
> Hey,=3D20
> =20
> So I tried today to give the updated patch linked in the email
> thread a spin.
> =20
> I wasn't able to build the kernel with xorg support (see details
> below) so I could only test it without xorg.
> =20
> I built NetBSD on the following commit (github)=3D20
> =20
> 74b93bff118ebb0ab3b384ea79fe9a7c9c62ae20
> =20
> I applied the patch as is with git am, and didn't do anything to
> fix the whitespace warnings. I built the kernel with the following
> command:
> =20
> ./build.sh -U -u -O ~/obj -j2 -m amd64 release
> =20
> I created an installation media and booted into OS with -x -v
> flags, and these were my findings:
> =20
> $ dmesg | grep -i pms
> [ ...] pms0 at pckbc1 (aux slot)
> [ ...] pms0: synaptics_probe: Not synaptics.
> [ ...] wsmouse0 at pms0 mux 0
> =20
> $ dmesg | grep -i elan
> nothing
> =20
> $ dmesg | grep -i iic
> [ ...] iic0 at dwiic0: I2C bus
> [ ...] iic1 at ichsmb0: I2C bus
> =20
> Since (ostensibly) dmesg doesn't report registering any elan touchpad
> , I didn't think the patch worked and so I didn't bother trying
> further to build with xorg support.
> =20
> --=3D20
> The error I got when trying to build NetBSD with Xorg support was
> =20
> https://paste.sr.ht/~marcc/54861b687ea2bace19a4afb35273ceddf3399582
> =20
> Fixing the import issues yielded more errors, so I gave up. I
> attempted to buid it on FreeBSD 14
> =20
> -- Marc
> =20
> On Sat Jun 1, 2024 at 2:20 AM -05, Michael van Elst wrote:
> > The following reply was made to PR kern/58302; it has been noted by GN=
ATS=3D
> .
> >
> > From: mlelstv%serpens.de@localhost (Michael van Elst)
> > To: gnats-bugs%netbsd.org@localhost
> > Cc:=3D20
> > Subject: Re: kern/58302: Newer Elantech touchpad is not being register=
ed =3D
> by pms
> > Date: Sat, 1 Jun 2024 07:17:50 -0000 (UTC)
> >
> > marc@mccd.space ("Marc Coquand") writes:
> > =3D20
> > > Sorry for spamming, I forgot to include in the original report
> > > a patch that might be relevant to this ticket.
> > =3D20
> > > https://mail-index.netbsd.org/tech-kern/2023/07/15/msg028984.html
> > =3D20
> > That looks good. It applies to -current except for a whitespace
> > mismatch in i2c.c
> > =3D20
> > Can you test it ? :)
> > =3D20
> =20
Home |
Main Index |
Thread Index |
Old Index