I just posted on the lirc list a few minutes ago. Thanks for the  
suggestion.

But now that I've done it I think there may be a better solution. The  
Apple remote supposedly sends a repeat code when you hold a button  
down. On the first press, the remote sends the button code, but when  
you hold the button down the remote then sends a repeat code instead  
of the code of the button you are holding down. They did this to  
conserve battery as the repeat code is shorter than the button code.

At the level I am working in LIRC that repeat code has been replaced  
with the button ID of the button that is being held down. So all I see  
are button codes. I think this is done by a lower layer - maybe the  
usbhid driver? If I can find that, I can have the lower layer send  
LIRC the repeat code and then fix LIRC to translate the repeat code  
and handle repeats correctly. I would no longer need the timeout check.

On May 5, 2009, at 3:20 AM, Peter Korsgaard wrote:

>
>>>>>> "Will" == Will  <[email protected]> writes:
>
> Hi,
>
> Will> The current implementation of the macmini remote in lirc-0.8.3
> Will> has a problem with repeats. It is not possible to tell the
> Will> difference between holding down a key and pressing a key
> Will> rapidly. Using irw as a test application, if you repeatedly
> Will> press a remote button rapidly, you should get the following
> Will> output:
>
> Thanks, have you sent this to the lirc list?
>
> -- 
> Bye, Peter Korsgaard
>
> >


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
For more options, visit this group at
http://groups.google.com/group/atv-bootloader?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to