Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp225494ybi; Fri, 24 May 2019 02:53:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXcl95rkdJi5QO5bKemFU3Q8teau98oQHnGvIE7QzA2SDH9C7+Zsgr8/FrGux6yqY6K45I X-Received: by 2002:a63:d901:: with SMTP id r1mr19248472pgg.271.1558691638007; Fri, 24 May 2019 02:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558691637; cv=none; d=google.com; s=arc-20160816; b=ELZoLF7BwBqI05MFsU3cA+ayLp05oIvAlV2qSsKnnIYJ1dV4nFG7p+ZjGfhDscR+KS iw0fFBxirvZ13yXl50i78T1cL/rzGSJfh1UraYpoxX9TBgL2HYkpfZOAkdJVHhxyEOqL BWXyVCynSKfV2vSg5yODV/ShiNjM+uvk/EjvR5ZoJFVTpiMVlGMm9XCGYVdKMb1IIoXR lodoYCYJi5NNlMPMAL09k3NrI1oKNn98fIJrqjx3udLOIYhcns7OeMHC932Wl7bHILXm Gt9GW9yHW/cAQDho/LKtH6OJsEWz2b1nArHzj6qvQrWlphyzPIvx8jRIkVsq83og1R11 27aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SZlgdWghXcOx29IJ3YpRkLUJGC5gsx+9Sxo+2Gik714=; b=oI+eBdB6zLVN89+3bPdRMvYPH+L3HlvZywkJR0Hu5cpl1hx8UXjeGMXuocRX4c5MJS NfkBYwyt2CfbxJQ4Zb9iwprYHkxPE1Lt7ro3gPYku1qLo2mcABeKv41narIKvmL/Ie7s NTyqWCWGWo6x5IICJzVb6w1v0ux1Mhfwv0vBkZFIqbkRdOci6e9jTThREalJRxqJl+Q2 8BiYpEZWoeUAp1dr02lt9ZO9FiFkzMJWbBJEVhq8coeyqwVi54aEcv7le8oOOzfjbn1v seNi7F99ZR71C6QKdqBMYAUbG1xYyqjIqbM8otLozSuXtbnPh/mhcEZXyIAjp270EhLa XoUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jrjdlO2A; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s8si3089610plq.106.2019.05.24.02.53.38; Fri, 24 May 2019 02:53:57 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jrjdlO2A; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390156AbfEXJwQ (ORCPT + 99 others); Fri, 24 May 2019 05:52:16 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39280 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389582AbfEXJwP (ORCPT ); Fri, 24 May 2019 05:52:15 -0400 Received: by mail-wr1-f66.google.com with SMTP id e2so558050wrv.6; Fri, 24 May 2019 02:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=SZlgdWghXcOx29IJ3YpRkLUJGC5gsx+9Sxo+2Gik714=; b=jrjdlO2AntaltwpcLnkrsJX6gM9QxY/Jw39kNl8hmQUOhViJK+GnF6ntE9xZniEIcD pzwc6ZiagUdIBg4kWq2fPr/EnQEs+e5XXKvtfrnT9sVeyfakLbpbFuwbUH9ZJs/lmZEb IxGNn4eftCWeUw2WX3QhIMMPOTotMNac/27itGdTAT/O13URcopN3LyvMMjFKXD1eBQ6 PpmS1RP7JCpzmGsr5ELvor32yVG0ozlUFxipWCoXVU7i4NkP61Jr0vlYYmJ7WNSVcnUg Mp1IXEuBnH/4iBP4uqhqRNpe5qj96PWzO48js1YylZM3ih47gb5GMlTX4OSO4DCziiK8 BRxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=SZlgdWghXcOx29IJ3YpRkLUJGC5gsx+9Sxo+2Gik714=; b=rkL0io0NPRUtOMBYwaYRn9ZUnSkfCrLJRCSkaIIrgi3Vbb2YF3ZzswoQtJsoc1SIJ0 r5N4/3/hBhvuE+balTKR4YW+ejdK47MQVM6/RkshDa/1kteTJ6oIiQA5Ug3NAdtVBYLa e7fjA7Bqog22ZBU1xtvGdL40xOra3myiw8azwL673l6WhnLGBsrlNiLKrqru+p+QBohM m434LtbQVr1i80/8IflLqx3avudXD25ggFCkf3axsdynh6NKj+hiZPfwM1xMK1RGxqj1 5xHvTW8IBSHNdtb+91/McygEf66+DVhkLMjKHlV0VfeJqs/tQF7nrFrTSmYOPiqIz/yC h+1w== X-Gm-Message-State: APjAAAWRhGIsBsDGLV2I6s6oXbLxBtWrXK3m/dnXxSoIeElh/b/KsOHM kB+gdUeBd/eDeov/7mpv+2k= X-Received: by 2002:a5d:6108:: with SMTP id v8mr6961359wrt.150.1558691533362; Fri, 24 May 2019 02:52:13 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id y130sm1767931wmc.44.2019.05.24.02.52.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 May 2019 02:52:12 -0700 (PDT) Date: Fri, 24 May 2019 11:52:11 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Peter Hutterer Cc: Hui Wang , Xiaoxiao Liu , dmitry.torokhov@gmail.com, XiaoXiao Liu , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Xiaojian Cao , "zhangfp1@lenovo.com" Subject: Re: =?utf-8?B?562U5aSNOiDnrZTlpI06IOetlA==?= =?utf-8?B?5aSNOiBbUEFUQ0hdIGlucHV0?= =?utf-8?Q?=3A?= alps-fix the issue the special alps trackpoint do not work. Message-ID: <20190524095211.wfvqxt3ihu2ft7lw@pali> References: <20190522063546.kb74mxeprkauicul@pali> <20190522074030.64sy7xt3wnomtxjb@pali> <20190523060154.GA10526@jelly> <38ec4a40-d51a-aeb1-a5e8-dbaed1142298@canonical.com> <20190524053648.GA16379@jelly> <20190524072648.6zqgz7rpwpcv22pb@pali> <20190524093238.GA1119@jelly> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190524093238.GA1119@jelly> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 24 May 2019 19:32:38 Peter Hutterer wrote: > On Fri, May 24, 2019 at 09:26:48AM +0200, 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? > > yeah, libinput ships with a quirks database that sets those, but it relies > on users to submit the quirks. > https://gitlab.freedesktop.org/libinput/libinput/tree/master/quirks That is enough! > There's no "correct" value anyway, if you ask 3 users what the trackpoint > should do you'll get 5 answers :) I know :) but reason for such database is to provide some sane defaults. Which seems it is already there. -- Pali Rohár pali.rohar@gmail.com