Received: by 10.223.176.5 with SMTP id f5csp3044271wra; Mon, 5 Feb 2018 14:53:16 -0800 (PST) X-Google-Smtp-Source: AH8x226iHyUNPYnqAKGFamtCDl7OA82Kjozz3dwrXBNzMmf8rsEtMinTDFLDL0bBw9dNehLoKOwN X-Received: by 10.98.76.11 with SMTP id z11mr362484pfa.114.1517871195888; Mon, 05 Feb 2018 14:53:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517871195; cv=none; d=google.com; s=arc-20160816; b=vqs9/trCzolsjZRQ1aIIikJbjea2QUJ/bv0NZiweXUOxCkPBupokJjo+NBxhCBuNRH I8ekfWhrV4GdNwBr6yXWy1GvJAc/ryGtqLLf/kI9G+7sy4lZkItrVp7kKCmirGzVZewh KeDwPV6nq4GAsxu4LZzyNbS2cNoXpXgx1PgQyDMfk4K3C8moSRiT8JMZzLeGFumINIXY eG4US3CRY6NXdPxfGYLg/bSLFUBfciq/Ih/SWFo9I7afj1xev6IuJm9z2mnaKDJ48inY R+W81mdPCn1+E0Uuo8BSce3qlNTTCScPbjKIfwJPxiYNKXJL18QlwmshL0VUlCdpE2HB DxRg== 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 :arc-authentication-results; bh=trfSeG7bMg9VFT424VZazoFbGuTOQ/hsLmSDeHJAA4M=; b=U7h7JulOy6gozalPX7Tcrng2aqgfSXRbnYbXgb9Q/lbXC4chqwpnfy3cvQtP0qM4Az ol344ib27PSVcUFnJWya8+74pk4/v7xwcPyy4e4a4YVVr7aH2kNuJEYWnpL0OlOordPz 90tV2BozRJwraeqRs+CIvSherVaK7+l5QWIdw6xxKsJ9CODTcgDKMpe2lxDZTfOTtlfK rGEBOhC/TsOcUJMFREaUgm0fi+FH0V3mW8nYBgp6b/1cOF4v1VEl/gRXXECEWb0x39pQ WhN1XRsRGhDuxAmnL1vity7EhxNZw5U0aUhtJpghhd40+BZyimlhD9l7vxIjZ0SmiRbF vO6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kXTynj4T; 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=NONE 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 bg3-v6si5263544plb.28.2018.02.05.14.53.01; Mon, 05 Feb 2018 14:53:15 -0800 (PST) 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=kXTynj4T; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751991AbeBEWuG (ORCPT + 99 others); Mon, 5 Feb 2018 17:50:06 -0500 Received: from mail-pg0-f52.google.com ([74.125.83.52]:37412 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750796AbeBEWt7 (ORCPT ); Mon, 5 Feb 2018 17:49:59 -0500 Received: by mail-pg0-f52.google.com with SMTP id o1so5662641pgn.4; Mon, 05 Feb 2018 14:49:59 -0800 (PST) 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=trfSeG7bMg9VFT424VZazoFbGuTOQ/hsLmSDeHJAA4M=; b=kXTynj4TnHavRlbxHrLYThFO2+TVh1WbgjFQYP5YnemIXpWNDzIJmXV0ObxcLfsUV+ vp92jeFdnxoadJ2zgb6yr5yUzyExEXrOQfH/GNMIYycsz4E9XiXUuUVaIz0ZFIqz5OeH RI8I5575r85LxONxyaxPWKn2ELUpcc/UL4hwLzDXdnX0QY6qgSNhVRe9yVu52lfDxrnQ NK/nUGiGTO8J1qiXVTNDOMl6KuyazQvQSi3We0ZJDkFlGn36a3Rbhc9Zi3m4GffI0Rlu lCCdCI+r1DMM9msrM5DmQuEcMYy7j446t22Gxz4ewq4vt1ot2qO9s6H0/3Qmq8Djf7/C NskQ== 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=trfSeG7bMg9VFT424VZazoFbGuTOQ/hsLmSDeHJAA4M=; b=OyXLNYWWf3iapK3nE+ujgU9m6DlGw2CmYaGEvB002tiZxJtRPdflvJj26wW2EOfHC2 ACRgDbKD6FQyBGg2Tisnb4QEyYo4YgcbDLzR+Fuz8EX71jpZDv6jZJcwNALxZ6hS1bp5 oq7NTgqXicYCxybBxirJHmQQ4psycbDIqspcYncl2fb2v3ibR4/63YCUlqLXJwUBkbTV XjKCjYl2Ob2I7bNZyqYn/9EWbBJx3YdvhNIvabAUoH971LROu0ZotdVB4D4sBpJ5EU0G LOdIt77FF+IBFn9QRlpQX36NYHj6MhqT/u6Fsh98mnEG2hAZoOvN9PBzz2OX5SxB36rk x7Eg== X-Gm-Message-State: APf1xPA9NqoYuyLcvVZLnQoZMSoM9KyKYNna8ucfg1y4lWrNUsTJOaxO cbKLofPfSAjm5peJeS++sq8= X-Received: by 10.101.73.12 with SMTP id p12mr278167pgs.286.1517870998455; Mon, 05 Feb 2018 14:49:58 -0800 (PST) Received: from dtor-ws ([2620:0:1000:1611:da80:8749:c06f:9515]) by smtp.gmail.com with ESMTPSA id k195sm13633141pgc.61.2018.02.05.14.49.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Feb 2018 14:49:57 -0800 (PST) Date: Mon, 5 Feb 2018 14:49:55 -0800 From: Dmitry Torokhov To: Pali =?iso-8859-1?Q?Roh=E1r?= , Peter Hutterer Cc: Masaki Ota , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: ALPS Trackpoint & pressure Message-ID: <20180205224955.GB46524@dtor-ws> References: <20180204150839.b5qm4wb26vic35st@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180204150839.b5qm4wb26vic35st@pali> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 04, 2018 at 04:08:39PM +0100, Pali Roh?r wrote: > Hi! Now playing again with trackpoint connected to ALPS rushmore > touchpad and I'm seeking a nice feature. Via ALPS PS/2 protocol it > reports pressure of trackpoint. Parser for it is already implemented in > alps.c and value is assigned to variable "z". When I just move > trackpoint z is zero, when I push trackpoint while moving, then z is > number higher, maximally 32. Variable "z" is set, but unused. > > Do we have some input interface which can be used to report this > pressure of trackpoint to userspace? I can use this feature e.g. as > additional button... We could either do the conversion in kernel and emit BTN_LEFT, or report ABS_PRESSURE and see if userspace will be able to handle REL_X/REL_Y/ABS_PRESSURE device. Adding Peter. -- Dmitry