From: Sean Young <sean@mess.org>
To: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] ir-keytable: re-add --device option
Date: Mon, 7 Sep 2020 19:27:21 +0100 [thread overview]
Message-ID: <20200907182721.GA7028@gofer.mess.org> (raw)
In-Reply-To: <20200907170106.3833d77e@coco.lan>
On Mon, Sep 07, 2020 at 05:01:06PM +0200, Mauro Carvalho Chehab wrote:
> Em Mon, 7 Sep 2020 16:58:06 +0200
> Mauro Carvalho Chehab <mchehab+huawei@kernel.org> escreveu:
>
> > Em Mon, 7 Sep 2020 15:43:09 +0100
> > Sean Young <sean@mess.org> 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.
>
> Gah! it actually expects a "0" as input, as pressing just <enter>
> does nothing. crap!
You can specify the device on the command line:
$ sudo evtest /dev/input/event6
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x45e product 0x737 version 0x111
Input device name: "PixArt Microsoft USB Optical Mouse"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 272 (BTN_LEFT)
Event code 273 (BTN_RIGHT)
Event code 274 (BTN_MIDDLE)
Event type 2 (EV_REL)
Event code 0 (REL_X)
Event code 1 (REL_Y)
Event code 8 (REL_WHEEL)
Event code 11 (REL_WHEEL_HI_RES)
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
Event: time 1599502969.368229, type 2 (EV_REL), code 1 (REL_Y), value -3
It gives more information about the device than ir-keytable, and it's
maintained by Peter Hutterer, the maintainer of libinput.
Having said that, asking for the input device when there is only one
is a bit stupid.
Thanks,
Sean
prev parent reply other threads:[~2020-09-07 18:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 9:36 [PATCH] ir-keytable: re-add --device option Mauro Carvalho Chehab
2020-09-07 14:43 ` Sean Young
2020-09-07 14:58 ` Mauro Carvalho Chehab
2020-09-07 15:01 ` Mauro Carvalho Chehab
2020-09-07 18:27 ` Sean Young [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200907182721.GA7028@gofer.mess.org \
--to=sean@mess.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab+huawei@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.