From owner-freebsd-current@FreeBSD.ORG Thu Oct 1 08:38:10 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 624C81065679 for ; Thu, 1 Oct 2009 08:38:10 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: from mail-yw0-f185.google.com (mail-yw0-f185.google.com [209.85.211.185]) by mx1.freebsd.org (Postfix) with ESMTP id 1F3D18FC08 for ; Thu, 1 Oct 2009 08:38:09 +0000 (UTC) Received: by ywh15 with SMTP id 15so1863305ywh.5 for ; Thu, 01 Oct 2009 01:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=FkjkJkkb2gpUvZlv3mYI7uHjBdiyz5nC19MAR0g+0Uw=; b=YJftGhga4GnyRPx/7sfCAHTGhaqzjmikNoK1MeQPyXwWwJUnd20WMRzak6HK4GvBDU v6nFx2LFHP2M/D3p+jkMBAIV/EggpNqbrKl4ioOcqhIJn5Dzjat1Q2yGDQ0/ixmVejak J0EoApGYn0FLjTEAoZStTmKXvfRhMSf6fzVuw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sb70PnH+I334EvQHWhK/Qc8g7LD0MQrdSd1uKy9GgN2Dzu739d2a8PvNqiMUJrLDf4 d0spKh38H27WIQCfPHVTeEGUfgyfjiEtrRBItHquzfD6ggaZeAAnIGTAWdp7Ok8SiZsB WT30Lxel0oPLn9AtO2k77t57wHTIAtO2O5qoM= MIME-Version: 1.0 Received: by 10.101.103.15 with SMTP id f15mr648797anm.193.1254386289314; Thu, 01 Oct 2009 01:38:09 -0700 (PDT) Date: Thu, 1 Oct 2009 04:38:09 -0400 Message-ID: <25ff90d60910010138l24e83470v390e8c0271f332f7@mail.gmail.com> From: David Horn To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: synaptics touchpad + mouse taps = trouble X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2009 08:38:10 -0000 I currently have a laptop running FreeBSD 8/Stable RC1 r197621 (amd64) that happens to have a synaptics touchpad. On this particular laptop(Inspiron 1520), the placement of the touchpad means that I will inevitably accidentally hit it while typing, and I have found that I always need to disable the "mouse taps" in order to have the touchpad usable for me. So, I figured, no big problem, I can figure out how to set the preference using x11/gsynaptics and x11-drivers/xf86-input-synaptics driver. So, after finding the /etc/xorg.conf: Option "AutoAddDevices" "true" to disable hal input detection, Xorg's synaptics input driver still refuses to attach to my synaptics device. So, I take a look at dmesg, and notice that my touchpad is probed and attached twice. Once as psm0, and once as ums0. I start off trying to see if moused can talk to the mouse, and it does just fine with psm0, but fails with ums0. (Problem 1. Why does ums0 probe/attach and not work with moused/xorg input mouse/xorg input synaptics ?) usbconfig -u 0 -a 5 show_ifdrv ugen0.5: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.5.0: ums0: Is there a usb quirk mode I should be trying ? Is there any additional debug output that may help diagnose ? I have not found much about this device, but Xorg and hal detect it as a synaptics device under ubuntu 9.04(as Broadcom 4503) Looking at mousedrv(4x) man page does not have anything useful on mouse taps, so I start looking at psm(4) for some relief on disabling synaptics mouse taps. So, I start trying the instructions for hw.psm.synaptics_support and via the wiki, and I find after much trial and error that I can get a mostly usable configuration using: sysctl.conf entries: hw.psm.synaptics.vscroll_ver_area=-1 hw.psm.synaptics.directional_scrolls=0 hw.psm.tap_timeout=1 loader.conf entry: hw.psm.synaptics_support="1" Although the right mouse button behavior is still quirky compared to default psm behavior (see PR: kern/84411), but hw.synaptics.directional_scrolls=0 makes it mostly tolerable. So, I start thinking about the problem, and take a look at the synaptics programming specs, and find that there is a command byte that can be used to for disabling touchpad taps and gestures in generic mouse mode. I have submitted the patch to GNATS under kern/139272 for anyone interested in disabling mouse taps under psm via tunable. Once I can get ums0 to work with moused, then I can start looking into xf86-input-synaptics and possibly hal config changes. So, I have been having one of those days where nothing is ever simple to debug. I have found that the very common components (like a mouse) can touch so many modules (psm/ums/moused/usb2/hal/Xorg/Xorg-input-mouse/Xorg-input-synaptics), that the potential failure points are many and varied. Thanks in advance. ---Dave H