Re: IR remote control autorepeat / evdev

2011-05-23 Thread Anssi Hannula
On 15.05.2011 06:41, Mauro Carvalho Chehab wrote: Em 14-05-2011 01:07, Anssi Hannula escreveu: On 14.05.2011 01:39, Mauro Carvalho Chehab wrote: Em 13-05-2011 01:48, Anssi Hannula escreveu: On 12.05.2011 04:36, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu:

Re: IR remote control autorepeat / evdev

2011-05-15 Thread Peter Hutterer
On Fri, May 13, 2011 at 09:51:02AM +0200, Mauro Carvalho Chehab wrote: Em 12-05-2011 08:05, Peter Hutterer escreveu: On Thu, May 12, 2011 at 03:36:47AM +0200, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I

Re: IR remote control autorepeat / evdev

2011-05-14 Thread Mauro Carvalho Chehab
Em 14-05-2011 01:07, Anssi Hannula escreveu: On 14.05.2011 01:39, Mauro Carvalho Chehab wrote: Em 13-05-2011 01:48, Anssi Hannula escreveu: On 12.05.2011 04:36, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I

Re: IR remote control autorepeat / evdev

2011-05-13 Thread Mauro Carvalho Chehab
Em 12-05-2011 08:05, Peter Hutterer escreveu: On Thu, May 12, 2011 at 03:36:47AM +0200, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I don't see any other places: $ git grep 'REP_PERIOD' .

Re: IR remote control autorepeat / evdev

2011-05-13 Thread Mauro Carvalho Chehab
Em 13-05-2011 01:48, Anssi Hannula escreveu: On 12.05.2011 04:36, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I don't see any other places: $ git grep 'REP_PERIOD' . dvb/dvb-usb/dvb-usb-remote.c:

Re: IR remote control autorepeat / evdev

2011-05-13 Thread Anssi Hannula
On 14.05.2011 01:39, Mauro Carvalho Chehab wrote: Em 13-05-2011 01:48, Anssi Hannula escreveu: On 12.05.2011 04:36, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I don't see any other places: $ git grep

Re: IR remote control autorepeat / evdev

2011-05-12 Thread Peter Hutterer
On Thu, May 12, 2011 at 03:36:47AM +0200, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I don't see any other places: $ git grep 'REP_PERIOD' . dvb/dvb-usb/dvb-usb-remote.c: input_dev-rep[REP_PERIOD] =

Re: IR remote control autorepeat / evdev

2011-05-12 Thread Jarod Wilson
Peter Hutterer wrote: On Thu, May 12, 2011 at 03:36:47AM +0200, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I don't see any other places: $ git grep 'REP_PERIOD' . dvb/dvb-usb/dvb-usb-remote.c:

Re: IR remote control autorepeat / evdev

2011-05-12 Thread Anssi Hannula
On 12.05.2011 04:36, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I don't see any other places: $ git grep 'REP_PERIOD' . dvb/dvb-usb/dvb-usb-remote.c: input_dev-rep[REP_PERIOD] =

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Mauro Carvalho Chehab
Hi Anssi/Peter, Em 10-05-2011 15:43, Anssi Hannula escreveu: On 10.05.2011 08:30, Peter Hutterer wrote: On Tue, May 10, 2011 at 08:14:30AM +0300, Anssi Hannula wrote: On 10.05.2011 07:11, Peter Hutterer wrote: On Sun, May 08, 2011 at 07:38:00AM +0300, Anssi Hannula wrote: Hi all! Most

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Anssi Hannula
On 11.05.2011 07:46, Mauro Carvalho Chehab wrote: Hi Anssi/Peter, Hi! Em 10-05-2011 15:43, Anssi Hannula escreveu: On 10.05.2011 08:30, Peter Hutterer wrote: On Tue, May 10, 2011 at 08:14:30AM +0300, Anssi Hannula wrote: On 10.05.2011 07:11, Peter Hutterer wrote: On Sun, May 08, 2011 at

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Mauro Carvalho Chehab
Em 11-05-2011 18:33, Anssi Hannula escreveu: On 11.05.2011 07:46, Mauro Carvalho Chehab wrote: Hi Anssi/Peter, Hi! Em 10-05-2011 15:43, Anssi Hannula escreveu: On 10.05.2011 08:30, Peter Hutterer wrote: On Tue, May 10, 2011 at 08:14:30AM +0300, Anssi Hannula wrote: On 10.05.2011 07:11,

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Anssi Hannula
On 11.05.2011 19:51, Mauro Carvalho Chehab wrote: Em 11-05-2011 18:33, Anssi Hannula escreveu: On 11.05.2011 07:46, Mauro Carvalho Chehab wrote: Hi Anssi/Peter, Hi! Em 10-05-2011 15:43, Anssi Hannula escreveu: On 10.05.2011 08:30, Peter Hutterer wrote: On Tue, May 10, 2011 at 08:14:30AM

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Dmitry Torokhov
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 =

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Mauro Carvalho Chehab
Em 11-05-2011 19:59, Anssi Hannula escreveu: No. It actually depends on what driver you're using. For example, for most dvb-usb devices, this is given by the logic bellow: if (d-props.rc.legacy.rc_interval 40) d-props.rc.legacy.rc_interval = 100; /* default */

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Anssi Hannula
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

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Anssi Hannula
On 12.05.2011 02:52, Mauro Carvalho Chehab wrote: Em 11-05-2011 19:59, Anssi Hannula escreveu: No. It actually depends on what driver you're using. For example, for most dvb-usb devices, this is given by the logic bellow: if (d-props.rc.legacy.rc_interval 40)

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Mauro Carvalho Chehab
Em 12-05-2011 02:17, Anssi Hannula escreveu: 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

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Mauro Carvalho Chehab
Em 12-05-2011 02:37, Anssi Hannula escreveu: On 12.05.2011 02:52, Mauro Carvalho Chehab wrote: Em 11-05-2011 19:59, Anssi Hannula escreveu: No. It actually depends on what driver you're using. For example, for most dvb-usb devices, this is given by the logic bellow: if

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Mauro Carvalho Chehab
Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I don't see any other places: $ git grep 'REP_PERIOD' . dvb/dvb-usb/dvb-usb-remote.c: input_dev-rep[REP_PERIOD] = d-props.rc.legacy.rc_interval; Indeed, the REP_PERIOD is not adjusted on

Re: IR remote control autorepeat / evdev

2011-05-11 Thread Jarod Wilson
On May 11, 2011, at 9:36 PM, Mauro Carvalho Chehab wrote: Em 12-05-2011 03:10, Mauro Carvalho Chehab escreveu: Em 12-05-2011 02:37, Anssi Hannula escreveu: I don't see any other places: $ git grep 'REP_PERIOD' . dvb/dvb-usb/dvb-usb-remote.c: input_dev-rep[REP_PERIOD] =

Re: IR remote control autorepeat / evdev

2011-05-10 Thread Anssi Hannula
On 10.05.2011 08:30, Peter Hutterer wrote: On Tue, May 10, 2011 at 08:14:30AM +0300, Anssi Hannula wrote: On 10.05.2011 07:11, Peter Hutterer wrote: On Sun, May 08, 2011 at 07:38:00AM +0300, Anssi Hannula wrote: Hi all! Most IR/RF remotes differ from normal keyboards in that they don't

Re: IR remote control autorepeat / evdev

2011-05-09 Thread Peter Hutterer
On Sun, May 08, 2011 at 07:38:00AM +0300, Anssi Hannula wrote: Hi all! Most IR/RF remotes differ from normal keyboards in that they don't provide release events. They do provide native repeat events, though. Currently the Linux kernel RC/input subsystems provide a simulated autorepeat for

Re: IR remote control autorepeat / evdev

2011-05-09 Thread Anssi Hannula
On 10.05.2011 07:11, Peter Hutterer wrote: On Sun, May 08, 2011 at 07:38:00AM +0300, Anssi Hannula wrote: Hi all! Most IR/RF remotes differ from normal keyboards in that they don't provide release events. They do provide native repeat events, though. Currently the Linux kernel RC/input

Re: IR remote control autorepeat / evdev

2011-05-09 Thread Peter Hutterer
On Tue, May 10, 2011 at 08:14:30AM +0300, Anssi Hannula wrote: On 10.05.2011 07:11, Peter Hutterer wrote: On Sun, May 08, 2011 at 07:38:00AM +0300, Anssi Hannula wrote: Hi all! Most IR/RF remotes differ from normal keyboards in that they don't provide release events. They do provide

IR remote control autorepeat / evdev

2011-05-07 Thread Anssi Hannula
Hi all! Most IR/RF remotes differ from normal keyboards in that they don't provide release events. They do provide native repeat events, though. Currently the Linux kernel RC/input subsystems provide a simulated autorepeat for remote controls (default delay 500ms, period 33ms), and X.org server