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

Wayne Thomas waynethomas69 at gmail.com
Fri Sep 3 20:51:31 UTC 2010


>> 0000030 005c ffbc 0001 0000 005c ffbc 0000 0000
>>
>> ...for each press of a key that currently doesn't work.  From the
>> example above (Green button on the Emprex) the usage page appears
>> twice (ffbc) as does the output for that key (005c).  If the usage
>> page is also ffbc you are in luck and should be able to add all of the
>> keys to the topseed driver (assuming they aren't already covered).
>
> hexdump /dev/usb/hiddev0
> 0000000 0000 000c 0000 0000 0041 000c 0001 0000
> 0000010 0041 000c 0000 0000 0000 000c 0001 0000
> 0000020 0020 000c 0053 0000
>
> hexdump -e '1/1 "%2.2x" "\n"' /dev/usb/hiddev0
> 00*0c00*41000c000100*41000c00*0c000100*20000c005300*
>
> This is for the "Select" key (0x41). Unfortunately, I'm not seeing any
> instances of 0xffbc. I'm skeptical of 0x000c being its usage page --
> each device type should have a unique one, correct?
>
> Thanks,
> Joe

000c is defined as the consumer usage page (HID_UP_CONSUMER), I just
checked hid-input.c and 0x41 isn't defined as an output on that page.
This will need to be added like...

case 0x041: map_key_clear(KEY_SELECT);            break;

to hid-input.c and that key will magically work.

My remote had a combination of keys on the two usage pages (ffbc and
000c).  So that key is no great surprise, I would be interested to see
the output of the other keys that aren't working.

But for now it's past my bed time...

Cheers
Wayne


More information about the mythtv-users mailing list