From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02D13C433E2 for ; Mon, 7 Sep 2020 14:59:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BDFC9207DE for ; Mon, 7 Sep 2020 14:59:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599490762; bh=B7s2rPO3lJnTSR10vVaKcH8TXKvvUGN/AZ1E8NkAUio=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=ZC700+ePqENkOUKBP/Nm49X+iL5AmtAFW7jfjWTRu+VP13Wr5PhgQsz8/84gS/nTO nRzeU9HhZzGBCF1zPJZOmklYzMQqajMt+q2+GOVbqTzK2aIRxgA+BlPSY0e/P2sohh Cew/ZF8ZF8aJ2KePkhtVEEYD0m/Ab1KXSPNlwWe4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730117AbgIGO7C (ORCPT ); Mon, 7 Sep 2020 10:59:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:33416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729975AbgIGO6L (ORCPT ); Mon, 7 Sep 2020 10:58:11 -0400 Received: from coco.lan (ip5f5ad5cf.dynamic.kabel-deutschland.de [95.90.213.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B601A207DE; Mon, 7 Sep 2020 14:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599490691; bh=B7s2rPO3lJnTSR10vVaKcH8TXKvvUGN/AZ1E8NkAUio=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oHCiS/viv/PCTtOZDQC+kQAedRo08ZUpPm4Rmabl+ypXBdgw8zDhB8R15kaWC65Nl 0cyVe4YNNIz/LoHRHeESW7IU4Y+odA/TN7X5grxtv1L3/hciMZ7hQb+Q48YQBUEI/e CNeSyrEWag/ZTuxCEqWpcqHttTqRyPyyk9r27XQc= Date: Mon, 7 Sep 2020 16:58:06 +0200 From: Mauro Carvalho Chehab To: Sean Young Cc: linux-media@vger.kernel.org Subject: Re: [PATCH] ir-keytable: re-add --device option Message-ID: <20200907165806.3e236f45@coco.lan> In-Reply-To: <20200907144309.GA2767@gofer.mess.org> References: <20200907113659.0143dba2@coco.lan> <20200907144309.GA2767@gofer.mess.org> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Em Mon, 7 Sep 2020 15:43:09 +0100 Sean Young escreveu: > On Mon, Sep 07, 2020 at 11:36:59AM +0200, Mauro Carvalho Chehab wrote: > > While --device option doesn't work for enumerating and for RC/LIRC > > specific control, it is still useful for testing purposes > > for all kinds of input devices. For example, it can be used to > > test mouse events: > > > > $ ./utils/keytable/ir-keytable -d /dev/input/event4 -t > > Testing events. Please, press CTRL-C to abort. > > 1222738.567737: event type EV_REL(0x02): REL_X (0x0000) value=1 > > 1222738.567737: event type EV_SYN(0x00). > > 1222738.573742: event type EV_REL(0x02): REL_X (0x0000) value=1 > > 1222738.573742: event type EV_SYN(0x00). > > 1222738.581738: event type EV_REL(0x02): REL_X (0x0000) value=2 > > 1222738.581738: event type EV_REL(0x02): REL_Y (0x0001) value=1 > > > > So, re-add it, but only on test mode. > > Isn't this the same functionality as evtest(1), but not as complete? > > https://cgit.freedesktop.org/evtest/ > > evtest is packaged for Fedora, Debian, and Ubuntu. No idea. At least on the device I'm testing (Hikey 970), evtest doesn't produce anything when I move my mouse (checking via ssh): $ sudo evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: PixArt Dell MS116 USB Optical Mouse Select the device event number [0-0]: While ir-keytable works fine. Thanks, Mauro