From owner-freebsd-current@FreeBSD.ORG Wed Jan 29 01:43:46 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BA4E9C69 for ; Wed, 29 Jan 2014 01:43:46 +0000 (UTC) Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 448881F41 for ; Wed, 29 Jan 2014 01:43:46 +0000 (UTC) Received: by mail-la0-f46.google.com with SMTP id b8so996793lan.5 for ; Tue, 28 Jan 2014 17:43:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=ezpet/Gx5PewiZ9N8bEQCsdU3fh/SH/AHTume0EgDSA=; b=SyOycGukKr/KE8JK7sEDaFL3+j/SzpksLArRPyRcMQ6woeKDMDwFtDmdGRzxtAtICV +9M7+o/ekc1Fiihf4Y2qREOQtlw3L4CwbpGa74ShVNdrM7yHpVq6DsDjPVe+6ipysfeJ fy3Pp+EZ1pjCvSWa+KlQDO9mbVZpOSfKZtillEpSSan0uRDfKkiXp8/PczRiil1gtDQv zObhMNWx0fKY6QJ5g7YP5WEsgKPhZoyhdX+Dx2ndaG0mFGFH9xvlK6gM+++ikuQRMd3z FQhmuUcbHzu/40n13ncJYpmE7a1YnKr9DHYFVmxa6WTxjX6EzJTKlh9KcV/VwPJVoGz6 16dA== MIME-Version: 1.0 X-Received: by 10.112.180.72 with SMTP id dm8mr3018091lbc.28.1390959823821; Tue, 28 Jan 2014 17:43:43 -0800 (PST) Received: by 10.112.89.168 with HTTP; Tue, 28 Jan 2014 17:43:43 -0800 (PST) Date: Wed, 29 Jan 2014 09:43:43 +0800 Message-ID: Subject: Apple Trackpad driver From: Huang Wen Hui To: freebsd-current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: huanghwh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jan 2014 01:43:46 -0000 Hi, I have a working trackpad driver for my MBP 2013, I am not C programmer usually, so the code may ugly. If someone like to test, you can download it from http://sw.gddsn.org.cn/freebsd/wsp-140129.tar.gz, I only test it on MBP2012 and MBP2013. Right now the driver have these feature: 1. Vertical scrolling with 2 fingers movement, 2. In firefox, 2 fingers horizontal movement act as page back/forward. 3. one finger tap act as left mouse click, 2 fingers tap act as right mouse click, and three fingers tap act as middle mouse click. 4. you also use sysctl to modify some parameters: hw.usb.wsp.scale_factor: 12 hw.usb.wsp.z_factor: 5 hw.usb.wsp.pressure_touch_threshold: 50 hw.usb.wsp.pressure_untouch_threshold: 10 hw.usb.wsp.pressure_tap_threshold: 120 hw.usb.wsp.scr_hor_threshold: 50 Cheers, Huang Wen Hui