Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp107613ybi; Fri, 24 May 2019 00:39:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0rMsuqDjXv81o63CuuXlsIuB5Nv99KkbdjYvAa2ZwJu8FnBoifO+5ySL/QbEJZ5n/8PMz X-Received: by 2002:a17:90a:cd04:: with SMTP id d4mr7222308pju.128.1558683596320; Fri, 24 May 2019 00:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558683596; cv=none; d=google.com; s=arc-20160816; b=XyLpb5aVMIIWotWMG89bId+iLvwAxFMo+6xHVHyj4qqJQ83e6uomO7Tw70yjJ4SZyt vYFHYSPei7pKHK22fZbcgmpQhh9/1v5Jf/CslKqDmbmUzebY3TDOkIie/ZjfAjYtA92I PN4pjk2Jj5Qr1v1WJs8y4Gg4qdUxLjh0MmGnYrnpTVVI7MmDVBh/nUCh2oTLj7sUu1Tq i9YGp1vOAO+uwvI1Xmci3hjKhP9/+FmD44o3WtnvlHGoh8sjbH1bSW30P8jLQiQrOokY JLMTWAWN44Qub5EMV6mcTVv+AfsFi0Tjmype7eWJ17MHeWwn4107zXWKLzvvC0MnRxar Sv2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QrHgrY9sXEgQqint18tbJkh4Cr7cBoBZSWCIF7ezNdY=; b=MSdCPK3WzUPkNVKF5DNyrUOFs3OeD98Y0QqwGUM+s0tLkPyyOpGt2yfC2EvlzWEilU N+mwJdRmcfSduPkDBkvczRiKNW6IUrm27nx/LJY4bp36Qxdm0/gRuDsCXnHZSoagyT0w l0gcNT22ajgztQYRK/Zy9fgoE1nklTR1OmNZEbwKHkiAjk0nhGNIpN2AIbgH1Q57g6XV j5iKuiUzbNw6CPPFgvEb95FED9so2vTr558FkWnMAFbkF9r7reaf3aEPxRmIlVsqFD/x PLET6hSoOfu9P2VRskNf/AI3LcziHE3KDW37D1QpBUx7c6g+2Wdjsjs0/ToE6aWXdoPN TxTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc1si2820106plb.55.2019.05.24.00.39.37; Fri, 24 May 2019 00:39:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389021AbfEXHiQ (ORCPT + 99 others); Fri, 24 May 2019 03:38:16 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:42748 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388911AbfEXHiQ (ORCPT ); Fri, 24 May 2019 03:38:16 -0400 Received: from [125.35.49.90] (helo=[10.0.0.21]) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hU4mH-0001fz-SS; Fri, 24 May 2019 07:38:10 +0000 Subject: =?UTF-8?B?UmU6IOetlOWkjTog562U5aSNOiDnrZTlpI06IFtQQVRDSF0gaW5wdXQ6?= =?UTF-8?Q?_alps-fix_the_issue_the_special_alps_trackpoint_do_not_work=2e?= To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: Peter Hutterer , Xiaoxiao Liu , dmitry.torokhov@gmail.com, XiaoXiao Liu , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Xiaojian Cao , "zhangfp1@lenovo.com" References: <345b62e1-407e-7a03-9b03-486bbf5a0a8e@canonical.com> <20190521094622.syeub6tcqhbyc7sg@pali> <20190522063546.kb74mxeprkauicul@pali> <20190522074030.64sy7xt3wnomtxjb@pali> <20190523060154.GA10526@jelly> <38ec4a40-d51a-aeb1-a5e8-dbaed1142298@canonical.com> <20190524053648.GA16379@jelly> <20190524072648.6zqgz7rpwpcv22pb@pali> From: Hui Wang Message-ID: Date: Fri, 24 May 2019 15:37:57 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190524072648.6zqgz7rpwpcv22pb@pali> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/5/24 下午3:26, Pali Rohár wrote: > On Friday 24 May 2019 13:50:53 Hui Wang wrote: >> On 2019/5/24 下午1:36, Peter Hutterer wrote: >>> On Fri, May 24, 2019 at 01:25:52PM +0800, Hui Wang wrote: >>>> On 2019/5/23 下午2:01, Peter Hutterer wrote: >>>>> On Wed, May 22, 2019 at 09:40:30AM +0200, Pali Rohár wrote: >>>>>> On Wednesday 22 May 2019 07:30:43 Xiaoxiao Liu wrote: >>>>>>> Hi Pali, >>>>>>> >>>>>>> Ok, and cannot you set ALPS_DUALPOINT flag based on that >>>>>>> alps_check_is_trackpoint() result and then update >>>>>>> alps_process_packet_ss4_v3() code to supports also >>>>>>> V8 trackpoint packets? >>>>>>> --> Yes, we can do like so, when we use the v8 method to process the trackpoint , the mouse speed is not ideal. >>>>>>> Then we choose the standard mouse driver. >>>>>> Mouse speed is something which is configurable. Have you configured it >>>>>> somehow? Also there is libinput project should handle these settings >>>>>> more properly. >>>>>> >>>>>> Adding Peter Hutterer, maintainer of libinput to loop. I think he could >>>>>> help with this problem. >>>>> libinput has a quirk for a magic multiplier on trackpoints. it was the only >>>>> solution I found that came close to "working" given that every device seems >>>>> to provide some other random magic data. Doc for it is here: >>>>> https://wayland.freedesktop.org/libinput/doc/latest/trackpoint-configuration.html >>>> Hello Peter Hutterer, >>>> >>>> To adjust the trackpoint speed from userspace: >>>> >>>> If the libinput version is lower than 1.9.0, we could set >>>> POINTINGSTICK_CONST_ACCEL=0.25 >>>> >>>> If the libinput version is higher than 1.12.0, we could set >>>> AttrTrackpointMultiplier=0.25 >>>> >>>> But if we use libinput-1.10.0,  how could we adjust the speed? >>> The LIBINPUT_ATTR_TRACKPOINT_RANGE property, which didn't end up working >>> well (hence why it got replaced again). See the docs here though: >>> https://wayland.freedesktop.org/libinput/doc/1.10.0/trackpoints.html >>> >>> Cheers, >>> Peter >> OK, got it, Thanks. > Is not here some database where for input device name / id is specified > that property? So users do not have to invent what is correct value for > their hardware? Since the libinput version in the ubuntu 18.04 is 1.10,  I tried to set LIBINPUT_ATTR_TRACKPOINT_RANGE with different values (from 25, 20, 10, 5) in the udev hwdb database, I checked it with "udevadm info /dev/input/eventX" to confirm the value is set to LIBINPUT_ATTR_TRACKPOINT_RANGE successfully, but looks like the cursor speed doesn't change at all. So for ubuntu 18.04,  looks like we have to adjust the speed in the kernel driver. Thanks, Hui.