[mythtv-users] TiVo Slide Remote, Linux and Scan Codes

Jarod Wilson jarod at wilsonet.com
Tue Sep 7 03:20:51 UTC 2010


On Mon, Sep 6, 2010 at 3:05 AM, Wayne Thomas <waynethomas69 at gmail.com> wrote:
>> I can report that
>> all but three keys (Live TV, thumbs up and thumbs down) are working
>> properly. Looking into those next. They currently show up in evtest as
>> EV_ABS type events, identically, like so:
>>
>> Event: time 1283745547.651536, type 3 (Absolute), code 40 (Misc), value 0
>> Event: time 1283745547.651579, -------------- Report Sync ------------
>> Event: time 1283745547.856519, type 3 (Absolute), code 40 (Misc), value 1
>> Event: time 1283745547.856543, -------------- Report Sync ------------
>
> Strange, what's the usage page and output code for those three buttons?

Thumbs up:
drivers/hid/hid-input.c: HID Event: 0xffff 0x0
drivers/hid/hid-input.c: HID Event: 0xffff 0x42
drivers/hid/hid-input.c: HID Event: 0xffff 0x42
drivers/hid/hid-input.c: HID Event: 0xffff 0x0
drivers/hid/hid-input.c: HID Event: 0xc 0x20

Thumbs down:
drivers/hid/hid-input.c: HID Event: 0xffff 0x0
drivers/hid/hid-input.c: HID Event: 0xffff 0x41
drivers/hid/hid-input.c: HID Event: 0xffff 0x41
drivers/hid/hid-input.c: HID Event: 0xffff 0x0
drivers/hid/hid-input.c: HID Event: 0xc 0x20

TiVo:
drivers/hid/hid-input.c: HID Event: 0xffff 0x0
drivers/hid/hid-input.c: HID Event: 0xffff 0x3d
drivers/hid/hid-input.c: HID Event: 0xffff 0x3d
drivers/hid/hid-input.c: HID Event: 0xffff 0x0
drivers/hid/hid-input.c: HID Event: 0xc 0x20

Live TV:
drivers/hid/hid-input.c: HID Event: 0xffff 0x0
drivers/hid/hid-input.c: HID Event: 0xffff 0x3e
drivers/hid/hid-input.c: HID Event: 0xffff 0x3e
drivers/hid/hid-input.c: HID Event: 0xffff 0x0
drivers/hid/hid-input.c: HID Event: 0xc 0x20

So all four end with a consumer usage page event with usage id of 0x20
== "+10", aka "OSC – Increments channel by 10." The values are
consistent, but I'm not quite sure yet what the right way to implement
proper decoding is. Bed time though, will poke more later this week.

-- 
Jarod Wilson
jarod at wilsonet.com


More information about the mythtv-users mailing list