On Sun, Nov 9, 2008 at 1:13 PM, Mark Buechler <mark.buechler@gmail.com> wrote:
I'm trying to get a Twinhan USB remote working. The remote's keyboard HID shows up as /dev/input/event1. I've compiled lirc for devinput and ran:

irrecord -H dev/input -d /dev/input/event1 test.conf

Irrecord sees my key presses, but all button values end up being 0x0:

begin remote

  name  test.conf
  bits            0
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   32
  pre_data       0x0
  gap          227999
  toggle_bit_mask 0x0

      begin codes
          vol-                     0x0
          vol+                     0x0
      end codes

end remote

The values for bits is 0, which doesn't look right either. Also of note, on kernel 2.6.25, I see a steady stream of events while doing a cat on /dev/input/event1, while on 2.6.18 I only see events when I press a button. I've also tried /dev/input/event0 (keyboard) and got the same 0x0 values for all keys.

Has anyone seen this before?

Thanks, Mark.

Upon further investigation, it looks like I'm getting quite a few sync packets from this device. I see in the source EV_SYN is being ignored, however, not fully ignored. Instead of a decoded packet being returned to irrecord, a NULL packet is sent instead. It seems irrecord isn't checking for NULL packets.

- Mark.