NetBSD-Bugs archive

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

port-macppc/38951: Introduce trackpad support for trackpad on 14.1" ibooks



>Number:         38951
>Category:       port-macppc
>Synopsis:       Introduce trackpad support for trackpad on 14.1" ibooks
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 14 04:55:00 +0000 2008
>Originator:     Kailash Sethuraman
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
NetBSD rodimus 4.0_STABLE NetBSD 4.0_STABLE (RODIMUS) #10: Sat Jun 14 12:27:18 
SGT 2008  hsaliak@rodimus:/usr/src/sys/arch/macppc/compile/RODIMUS macppc

>Description:
Currently, the track pad for a 14.1" macppc is not recognized by the pbms 
driver. This is due to the product ID not being present in the driver.

This patch introduces the track pad driver support. I have also experimented a 
bit with the x sensors and y sensors value to make it have a fairly good 
control of the track pad. ( it isn't perfect though)


>How-To-Repeat:
Install the MacPPC port on a 14.1" ibook G4 and start X.org and notice the lack 
of trackpad support
>Fix:
Apply the following patch to the netbsd-4 branch:
Looking at -current code, it appears that a similar change needs to be made to 
it as well.

Index: dev/pbms.c
===================================================================
RCS file: /cvsroot/src/sys/arch/macppc/dev/pbms.c,v
retrieving revision 1.4
diff -b -u -r1.4 pbms.c
--- dev/pbms.c  12 Nov 2006 19:00:43 -0000      1.4
+++ dev/pbms.c  14 Jun 2008 04:34:58 -0000
@@ -240,6 +240,8 @@
        }
        /* 12 inch PowerBooks */
        POWERBOOK_TOUCHPAD(12, 0x030a, 69, 16, 52), /* XXX Not tested. */
+       /* 14.1 inch ibook */
+       POWERBOOK_TOUCHPAD(14, 0x030b, 69, 16, 57), /* XXX Not tested. */
        /* 15 inch PowerBooks */
        POWERBOOK_TOUCHPAD(15, 0x020e, 85, 16, 57), /* XXX Not tested. */
        POWERBOOK_TOUCHPAD(15, 0x020f, 85, 16, 57),



Home | Main Index | Thread Index | Old Index