Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Sep 2018 14:29:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        usb@FreeBSD.org
Subject:   [Bug 188829] [atp] atp fails on Macbook Pro 4.1 [regression]
Message-ID:  <bug-188829-19105-QdavvdYhNC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-188829-19105@https.bugs.freebsd.org/bugzilla/>
References:  <bug-188829-19105@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D188829

--- Comment #5 from Jason W. Bacon <jwb@freebsd.org> ---
Created attachment 196858
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D196858&action=
=3Dedit
Unified diff

The author of the atp driver pointed me to this patch some time ago and I w=
as
surprised to see that the problem still exists in 11.1-RELEASE.

It has to do with recalibrating the touchpad as temperature rises.

The patch still applies cleanly and solves the problem on my MacBook Pro.

>From dmidecode:

System Information
        Manufacturer: Apple Computer, Inc.
        Product Name: MacBookPro2,2
        Version: 1.0

There's another small problem now, though.  "make install" places the modul=
e in
/boot/modules, and kldload still grabs the old one from /boot/kernel.

Here's what I do in total to make this problem go away:

cd /usr/src/sys/dev/usb/input
fetch http://acadix.biz/atp.patch
if [ ! -e atp.c.save ]; then
    cp atp.c atp.c.save
fi
if [ ! -e atp.c.orig ]; then
    patch < atp.patch
fi
if [ ! -e /boot/kernel/atp.ko.save ]; then
    cp /boot/kernel/atp.ko /boot/kernel/atp.ko.save
fi
cd /usr/src/sys/modules/usb/atp
make
kldunload atp
make install
cp /boot/modules/atp.ko /boot/kernel
# protect filesystem in case kld[un]load causes problems. Hasn't happened f=
or
# me with atp, but it's a general habit based on a few bad experiences.
sync
kldunload atp
kldload atp

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-188829-19105-QdavvdYhNC>