Port-macppc archive

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

Apple USB Trackpad Inquiry



Hi,

maybe some have already noticed that the pbms(4) driver for notebooks
build in 2005 or later no longer works (or never worked?).

I want to fix it, but I need some information about the protocol from
as many models as possible. I have a PowerBook G4 with a 0x020f Apple
USB product (Fountain-ISO, keyboard+trackpad).

Anybody else with USB trackpads using the product ids 0x30a, 0x20e,
0x215 or 0x20d? It would be nice if you could compile a new kernel
with the following printf() in sys/arch/macppc/dev/pbms.c, at top of
function pbms_intr():

--- pbms.c.orig 2010-12-03 17:14:57.000000000 +0100
+++ pbms.c      2010-12-03 17:15:46.000000000 +0100
@@ -467,6 +467,7 @@
        int dx, dy, dz, i, s;
        uint32_t buttons;
 
+       printf("pbms: len=%u buf=%02x\n",len,*(uint8_t *)ibuf);
        /* Ignore incomplete data packets. */
        if (len != sc->sc_datalen)
                return;

Then type
  # cat /dev/wsmouse0 > /dev/null
and observe the kernel output. It will probably repeat every two or three
lines. I need those lines. Thanks. :)

(Use the /dev/wsmouseN device, which is attached to pbms0, of course.)

-- 
Frank Wille


Home | Main Index | Thread Index | Old Index