Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp9453ybi; Thu, 23 May 2019 22:28:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcXCoI3FFZR8EKsWZWI5ifdEgIWVC3vSkaqlQ60LCnfc70vrZrVd9/5bCW48U28MfL2xxz X-Received: by 2002:a17:902:21:: with SMTP id 30mr87111817pla.302.1558675694306; Thu, 23 May 2019 22:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558675694; cv=none; d=google.com; s=arc-20160816; b=vkp+8RCSUH1x/K1NJZzNKHCYOmnNUdonihDAgGEC5i6JLnA8lU41u5v3XlMeQI9PLx FG62Kk3315T6ALMbHc0wTgox/K1lGGkkHqorKWVH8kpooe8GwAdC6Y50N0YijXoik5RL QCVnwKnD9NhdHiZrIeyff+MYZu2dxgQr6vJs/swrdiqvyPVe88f1WRueInGkqXKYgTgg R67S0UYzt+/ExioauOIDM/GY+2YuAkhRbGxAt52y9SDH3wIfNB88cTR/Tu73dTZtIJpF WKllPgwWu/i3nPk3aDTKp42JMyCbKOQA3n7kIWXhYy861RZTvUxqtr0lVeVDg6z4/PtP PenA== 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=qS/gFrEPodaFTr7Gahht8y02/XPcnLTtG99WNn5rjso=; b=UCa6d8xjHmemU8P5bnx5g2QFRsVNgjIpvwSIHN6nIBH6gYq6DvkdcXRuLXB4PRXQRW 2SjPRWK8LQjCSHMEvMd8C2uLyQA5OYLK9R4+AoK+Ip9W6/Jzlx1Lc0kBUXHQmNzB6LV3 KIsfzm1eOiMQG8TDOgNhuc5tUJ2mdPEV9JerOvHUBkgaSZ60jHQFMRZkbOEzausaFW0c bYSRNUc+kTob8gZxjtAVA2IA62eRMW+NhO9u6YxkiE2HF0+5m7abubX8mGN6Xh7OWCHI tvSpwOt7qxr+xe/q+r981pDeA3qhgKbOx1LhYPLv0v6x49xmwKMkjAO/3nhlmGZiKDd8 0OBw== 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 u188si2737485pfu.228.2019.05.23.22.27.54; Thu, 23 May 2019 22:28:14 -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 S2388051AbfEXF0O (ORCPT + 99 others); Fri, 24 May 2019 01:26:14 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:40966 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387874AbfEXF0O (ORCPT ); Fri, 24 May 2019 01:26:14 -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 1hU2iV-0006de-Dr; Fri, 24 May 2019 05:26:08 +0000 Subject: =?UTF-8?B?UmU6IOetlOWkjTog562U5aSNOiDnrZTlpI06IFtQQVRDSF0gaW5wdXQ6?= =?UTF-8?Q?_alps-fix_the_issue_the_special_alps_trackpoint_do_not_work=2e?= To: Peter Hutterer , =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: Xiaoxiao Liu , dmitry.torokhov@gmail.com, XiaoXiao Liu , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Xiaojian Cao , "zhangfp1@lenovo.com" References: <20190520110149.27107-1-sliuuxiaonxiao@gmail.com> <345b62e1-407e-7a03-9b03-486bbf5a0a8e@canonical.com> <20190521094622.syeub6tcqhbyc7sg@pali> <20190522063546.kb74mxeprkauicul@pali> <20190522074030.64sy7xt3wnomtxjb@pali> <20190523060154.GA10526@jelly> From: Hui Wang Message-ID: <38ec4a40-d51a-aeb1-a5e8-dbaed1142298@canonical.com> Date: Fri, 24 May 2019 13:25:52 +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: <20190523060154.GA10526@jelly> 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/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? Many thanks in advance. Hui. > > There are also different speeds depending on which xorg driver you'd use (or > libinput/Wayland), so a "mouse speed is not ideal" is almost a guarantee, > given a large enough variety of setups :) That's why we have the speed > toggle, but I'm happy to hear any suggestions on how to make the trackpoint > more useful (in libinput anyway). > >> I do not think it is a good idea to force back to generic PS/2 mouse >> driver for touchpads and trackpoints. Native drivers for touchpads and >> trackpoints supports multitouch, absolute reporting and lot of other >> things... Also calculation of mouse speed from absolute positions on >> touchpads can be more easily fixed as from emulated relative movements. > Yeah, agree. Using PS/2 mouse drivers means you lose *all* the extra > features touchpads have like palm detection, tapping, scrolling, gestures, > etc. > > Cheers, > Peter > >> Dmitry, what is your opinion about this problem? What should psmouse.ko >> do in this situation? Disallow usage of absolute mode and force bare >> PS/2 relative mode? >