From owner-freebsd-current@FreeBSD.ORG Thu Apr 9 08:43:45 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 47D2D233 for ; Thu, 9 Apr 2015 08:43:45 +0000 (UTC) Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CB152EBA for ; Thu, 9 Apr 2015 08:43:44 +0000 (UTC) Received: by wgsk9 with SMTP id k9so90115461wgs.3 for ; Thu, 09 Apr 2015 01:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=CC1kSeGFXyuHGSbS6BOv/wFoeyCs4tLAWzmfjRfL9/4=; b=pTW2RnacoU9CCLNczrMm2KHNvnY1Gj/XeL3mAkd/N0ub9Jb55G/xdITBuK/rlejIrA 4fmH0fiv2ZBjmF9jzjFjFiz/oFTUIn1cTsXGnulkiSuyrCsLvJMgjdBzX/gK+ftJawxp nTlH4OSviGeeW19RPrxg9qck6jm3BKbYPUgLJbj1bYHeVqzxXwSOe5PjFl5GMmgSxJgv Qn/ACq+SkV50dUnpMY9Pef6DMwpo6PedOJYNh8/l6TMz44di7ip4pQqqw1nlLmgR2QGg oM+/2UTMaYbMfVzm6TMs+Ne63E2kZ3NMv2160/Xg3gXLLm9s+jSQkH5iFzjSjBUlhiFL YnKQ== X-Received: by 10.194.161.138 with SMTP id xs10mr9071773wjb.37.1428569023338; Thu, 09 Apr 2015 01:43:43 -0700 (PDT) Received: from laptop.minsk.domain (minsk.nivalnetwork.com. [86.57.144.74]) by mx.google.com with ESMTPSA id xy2sm19089986wjc.14.2015.04.09.01.43.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2015 01:43:42 -0700 (PDT) Date: Thu, 9 Apr 2015 11:41:52 +0300 From: "Sergey V. Dyatko" To: Rui Paulo Subject: Re: Call For Testers: Synaptics touchpads Message-ID: <20150409114152.41d57298@laptop.minsk.domain> In-Reply-To: <2247526.haXVf2lAZ1@akita> References: <1849381.HnoQVUIgNM@akita> <3270374.XyG30qCihb@akita> <20150409100040.22093546@laptop.minsk.domain> <2247526.haXVf2lAZ1@akita> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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, 09 Apr 2015 08:43:45 -0000 On Thu, 09 Apr 2015 00:21:10 -0700 Rui Paulo wrote: > On Thursday 09 April 2015 10:00:40 Sergey V. Dyatko wrote: > > On Wed, 08 Apr 2015 23:27:28 -0700 > > > > Rui Paulo wrote: > > > On Thursday 09 April 2015 09:10:52 Sergey V. Dyatko wrote: > > > > On Wed, 08 Apr 2015 00:19:45 -0700 > > > > > > > > Rui Paulo wrote: > > > > > Hi, > > > > > > > > > > The attached patch adds support for newer touchpad features and > > > > > implements > > > > > two finger scrolling. This is such a common feature these days that I > > > > > think we should enable it by default and disable edge scrolling. I've > > > > > implemented some detection code to keep edge scrolling enabled when > > > > > the > > > > > touchpad has a dedicated area for scrolling. > > > > > > > > > > Please test it and report back your experience. To enable synaptics > > > > > support, you need: > > > > > > > > > > hw.psm.synaptics_support=1 > > > > > > > > > > in loader.conf. > > > > > > > > > > Thanks, > > > > > > > > Patch applied successfully (head, r280980). > > > > > > > > with and without hw.psm.synaptics_support=1 I have > > > > > > > > [tiger@laptop]:~>synclient > > > > Couldn't find synaptics properties. No synaptics driver loaded? > > > > > > This isn't the xorg driver, so you can't use it. > > > > > > > and mouse cursor moved soooo slooowly, > > > > > > Is this a new problem with this patch? You can adjust the speed in xorg. > > > > > > > without hw.psm.synaptics_support it > > > > moved faster, vertical scrolling doesn't work in both cases > > > > > > Ok, I just wanted to make sure there are no regressions. I don't have > > > your > > > model, so it's hard to help you. > > > > Now I revert patch, results: > > > > booting w/o hw.psm.synaptics_support=1 > > * vscroll doesn't work > > * buttons works fine > > * mouse cursor moved slow (~ like without synaptics_support + your patch) > > > > booting with synaptics_support enabled: > > * vscroll works fine > > * buttons doesn't work > > * mouse cursor moved ok (fast) > > * synclient works fine two figers too, after `synclient > > VertTwoFingerScroll=1` > > > > So, it general, there is no large regression if I can adjust the speed in > > xorg (now?). Just in case, I have following on xorg.conf: > > > > Section "InputDevice" > > Identifier "Mouse0" > > Driver "synaptics" > > Option "Protocol" "psm" > > Option "Device" "/dev/psm0" > > # Option "SHMConfig" "on" > > Option "LBCornerButton" "1" > > Option "RBCornerButton" "2" > > Option "MinSpeed" "7" > > Option "MaxSpeed" "9" > > Option "AccelFactor" "0.0015" > > Option "ZAxisMapping" "4 5 6 7" > > EndSection > > Wait a second. You're mixing sysmouse synaptics support with the xorg > driver? That will probably not work very well. My patch should be tested > without the synaptics xorg driver. > > Try this: > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "auto" > Option "Device" "/dev/sysmouse" > Option "ZAxisMapping" "4 5 6 7" > EndSection > with patch + synaptics support enabled and this: * buttons works * vert scroll (one, two, three fingers) doesn't work * mouse speed - slow [tiger@laptop]:~>sysctl hw.psm.synaptics hw.psm.synaptics.vscroll_div_max: 150 hw.psm.synaptics.vscroll_div_min: 100 hw.psm.synaptics.vscroll_min_delta: 50 hw.psm.synaptics.vscroll_ver_area: -600 hw.psm.synaptics.vscroll_hor_area: 0 hw.psm.synaptics.taphold_timeout: 125000 hw.psm.synaptics.tap_min_queue: 2 hw.psm.synaptics.tap_max_delta: 80 hw.psm.synaptics.div_len: 100 hw.psm.synaptics.div_max_na: 30 hw.psm.synaptics.div_max: 17 hw.psm.synaptics.div_min: 9 hw.psm.synaptics.weight_len_squared: 2000 hw.psm.synaptics.weight_previous_na: 20 hw.psm.synaptics.weight_previous: 6 hw.psm.synaptics.weight_current: 3 hw.psm.synaptics.multiplicator: 10000 hw.psm.synaptics.window_max: 10 hw.psm.synaptics.window_min: 4 hw.psm.synaptics.na_left: 1600 hw.psm.synaptics.na_bottom: 1408 hw.psm.synaptics.na_right: 563 hw.psm.synaptics.na_top: 1783 hw.psm.synaptics.margin_left: 200 hw.psm.synaptics.margin_bottom: 200 hw.psm.synaptics.margin_right: 200 hw.psm.synaptics.margin_top: 200 hw.psm.synaptics.max_width: 10 hw.psm.synaptics.max_pressure: 220 hw.psm.synaptics.min_pressure: 16 hw.psm.synaptics.two_finger_scroll: 1 hw.psm.synaptics.directional_scrolls: 0 -- wbr, tiger