From: Anssi Hannula <anssi.hannula@iki.fi>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>,
Peter Hutterer <peter.hutterer@who-t.net>,
linux-media@vger.kernel.org,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
xorg-devel@lists.freedesktop.org
Subject: Re: IR remote control autorepeat / evdev
Date: Thu, 12 May 2011 03:17:21 +0300 [thread overview]
Message-ID: <4DCB2711.5050406@iki.fi> (raw)
In-Reply-To: <20110511205332.GA11123@core.coreip.homeip.net>
On 11.05.2011 23:53, Dmitry Torokhov wrote:
> On Wed, May 11, 2011 at 08:59:16PM +0300, Anssi Hannula wrote:
>>
>> I meant replacing the softrepeat with native repeat for such devices
>> that have native repeats but no native release events:
>>
>> - keypress from device => keydown + keyup
>> - repeat from device => keydown + keyup
>> - repeat from device => keydown + keyup
>>
>> This is what e.g. ati_remote driver now does.
>>
>> Or alternatively
>>
>> - keypress from device => keydown
>> - repeat from device => repeat
>> - repeat from device => repeat
>> - nothing for 250ms => keyup
>> (doing it this way requires some extra handling in X server to stop its
>> softrepeat from triggering, though, as previously noted)
>>
>> With either of these, if one holds down volumeup, the repeat works, and
>> stops volumeup'ing immediately when user releases the button (as it is
>> supposed to).
>>
>
> Unfortunately this does not work for devices that do not have hardware
> autorepeat
Devices that have no hardware autorepeat have hardware release events,
no? I'm only suggesting to do this for devices with hardware autorepeat.
If there are no hw repeat events and no hw release events, obviously
making repeat work at all is impossible.
> and also stops users from adjusting autorepeat parameters to
> their liking.
True. However, I don't think adjustable autorepeat parameters are much
of use for the users if the autorepeat itself is unusable (due to ghost
repeats).
> It appears that the delay to check whether the key has been released is
> too long (almost order of magnitude longer than our typical autorepeat
> period). I think we should increase the period for remotes (both in
> kernel and in X, and also see if the release check delay can be made
> shorter, like 50-100 ms.
To make the ghost repeat issue disappear, one would have to use a
release timeout of just over the native repeat rate of the remote, and a
softrepeat period of just over the release timeout, right?
This will make the repeat rate slower than the native repeats. I'm not
100% sure if that is an issue, but I'd guess there might be some devices
that already have a slowish repeat rate, where we wouldn't want to add
such additional delay.
(plus there is the issue of having to fiddle the rates for every
device/protocol)
--
Anssi Hannula
next prev parent reply other threads:[~2011-05-12 0:17 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-08 4:38 IR remote control autorepeat / evdev Anssi Hannula
2011-05-10 4:11 ` Peter Hutterer
2011-05-10 5:14 ` Anssi Hannula
2011-05-10 5:30 ` Peter Hutterer
2011-05-10 13:43 ` Anssi Hannula
[not found] ` <4DC940E5.2070902-X3B1VOXEql0@public.gmane.org>
2011-05-11 4:46 ` Mauro Carvalho Chehab
[not found] ` <4DCA1496.20304-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-05-11 16:33 ` Anssi Hannula
2011-05-11 16:51 ` Mauro Carvalho Chehab
2011-05-11 17:59 ` Anssi Hannula
2011-05-11 20:53 ` Dmitry Torokhov
2011-05-12 0:17 ` Anssi Hannula [this message]
2011-05-12 0:55 ` Mauro Carvalho Chehab
2011-05-11 23:52 ` Mauro Carvalho Chehab
2011-05-12 0:37 ` Anssi Hannula
2011-05-12 1:10 ` Mauro Carvalho Chehab
2011-05-12 1:36 ` Mauro Carvalho Chehab
2011-05-12 3:48 ` Jarod Wilson
2011-05-12 6:05 ` Peter Hutterer
2011-05-12 13:24 ` Jarod Wilson
2011-05-13 7:51 ` Mauro Carvalho Chehab
2011-05-16 1:35 ` Peter Hutterer
2011-05-12 23:48 ` Anssi Hannula
2011-05-13 22:39 ` Mauro Carvalho Chehab
2011-05-13 23:07 ` Anssi Hannula
2011-05-15 3:41 ` Mauro Carvalho Chehab
2011-05-23 21:36 ` Anssi Hannula
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=4DCB2711.5050406@iki.fi \
--to=anssi.hannula@iki.fi \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=peter.hutterer@who-t.net \
--cc=xorg-devel@lists.freedesktop.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).