Well... I think I've got it!
When you press a key in the remote it sends 3 bytes:
The first is always 0xFE, the second is some kind of checksum and the third is 
the key code in the lower 6 bits and a repeat flag in the 7th bit.
The current code considers the two last bytes as the key code, with the repeat 
flag maked out. But this doesn't work with repeats, because when the repeat 
flag is on the check byte will be different.
I managed to discover the checksum algorithm (just a XOR :^) so I changed the 
codes from lircd.conf.pctv to one byte and checked the checksum and the lead 
byte in the code.

Naturally I can't be sure it will work with any pinnacle remote, just
mine...

I'm attaching the patch file.

Rodrigo.


** Attachment added: "Changes pinnacle codes to 1 byte, and checks protocol by 
code"
   http://launchpadlibrarian.net/7960024/pinnacle_repeat.diff

-- 
lircd doesn't repeat key press with pinsys remote
https://bugs.launchpad.net/bugs/118515
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to