[mythtv-users] LIRC with USB remote control: how?

Enrico Ballarin Dolfin enrico2 at swissonline.ch
Thu Dec 1 11:15:47 EST 2005


----- Original Message -----
From: "David Watkins" <watkinshome at gmail.com>
To: "Discussion about mythtv" <mythtv-users at mythtv.org>
Sent: Thursday, November 24, 2005 4:19 PM
Subject: Re: [mythtv-users] LIRC with USB remote control: how?

> > > I'm using my HP Pavilion w5180.ch running SuSE 9.3.
> > >
> > > How can I configure my remote control device to work with LIRC?
> >
> > Linux has detect the usb device as a keyboard and mouse.  You don't need
lirc.
> >
> > You can either change MythTv key mapping to match your remote with
MythWeb or
> > modify the Linux usb keyboard table to match MythTv.
> >

> But you can use lirc if you want to.  For me it was the only way I
> found to reduce the key repeat rate to a manageable level.

> just start lircd with the -d device option.

> see here

>
http://www.gossamer-threads.com/lists/mythtv/users/142466?search_string=repe
at%20remote%20lircd;#142466

David,
thanks for your help, I could go a step forward, but I'm still having
problems.

Following your hint, with the link above, using the command

# cat /proc/bus/input/devices

I could determine that my remote control is using /dev/input/event3

Unfortunately the vendorID and the productID (vendorID=3353 productID=3713)
are unknown.
Looking at the samples lirc.conf I discovered that my remote control
delivered with the HP Pavilion PC is looking very similar to the ShuttleX
PN31 of http://www.shuttle.com.
It has a different color, but the shape of the control self (and of the
receiver), the number and shape of the keys are exactly the same. A few keys
have also a different name. Probably is a different version of it, but is
3353 the vendorID of shuttle? The receiver has label without vendor name,
but with the model "XPC-RC01" and "Made in China".

I tried using the lirc.conf for the ShuttleX, but without success.

Then I tried following command pressing every time only 1 key, terminating
with <ctl-Z> and looking at the output

# cat /dev/input/event3 > dummy

Here a few samples of the output (# hexdump -C dummy):

Key "1" pressed:
00000000  66 19 8f 43 92 6f 0c 00  01 00 02 00 01 00 00 00
|f..C.o..........|
00000010  66 19 8f 43 9f 6f 0c 00  00 00 00 00 00 00 00 00
|f..C.o..........|
00000020  66 19 8f 43 0b ae 0c 00  01 00 02 00 00 00 00 00
|f..C............|
00000030  66 19 8f 43 17 ae 0c 00  00 00 00 00 00 00 00 00
|f..C............|

Key "2" pressed:
00000000  d9 19 8f 43 8f 91 0e 00  01 00 03 00 01 00 00 00
|...C............|
00000010  d9 19 8f 43 a0 91 0e 00  00 00 00 00 00 00 00 00
|...C............|
00000020  d9 19 8f 43 0b d0 0e 00  01 00 03 00 00 00 00 00
|...C............|
00000030  d9 19 8f 43 1d d0 0e 00  00 00 00 00 00 00 00 00
|...C............|

Key "3" pressed:
00000000  6c 1b 8f 43 45 7f 0a 00  01 00 04 00 01 00 00 00
|l..CE...........|
00000010  6c 1b 8f 43 65 7f 0a 00  00 00 00 00 00 00 00 00
|l..Ce...........|
00000020  6c 1b 8f 43 c0 bd 0a 00  01 00 04 00 00 00 00 00
|l..C............|
00000030  6c 1b 8f 43 e4 bd 0a 00  00 00 00 00 00 00 00 00
|l..C............|

Key "ch+" pressed:
00000000  0f 1a 8f 43 6d 2d 0b 00  01 00 68 00 01 00 00 00
|...Cm-....h.....|
00000010  0f 1a 8f 43 85 2d 0b 00  00 00 00 00 00 00 00 00
|...C.-..........|
00000020  0f 1a 8f 43 e8 6b 0b 00  01 00 68 00 00 00 00 00
|...C.k....h.....|
00000030  0f 1a 8f 43 fc 6b 0b 00  00 00 00 00 00 00 00 00
|...C.k..........|

Key "rew" pressed:
00000000  76 1a 8f 43 1c f0 0c 00  01 00 1d 00 01 00 00 00
|v..C............|
00000010  76 1a 8f 43 34 f0 0c 00  01 00 2a 00 01 00 00 00
|v..C4.....*.....|
00000020  76 1a 8f 43 50 f0 0c 00  01 00 30 00 01 00 00 00
|v..CP.....0.....|
00000030  76 1a 8f 43 69 f0 0c 00  00 00 00 00 00 00 00 00
|v..Ci...........|
00000040  76 1a 8f 43 98 2e 0d 00  01 00 1d 00 00 00 00 00
|v..C............|
00000050  76 1a 8f 43 af 2e 0d 00  01 00 2a 00 00 00 00 00
|v..C......*.....|
00000060  76 1a 8f 43 c6 2e 0d 00  01 00 30 00 00 00 00 00
|v..C......0.....|
00000070  76 1a 8f 43 e4 2e 0d 00  00 00 00 00 00 00 00 00
|v..C............|

Key "fwd" pressed:
00000000  e0 1b 8f 43 42 d1 04 00  01 00 1d 00 01 00 00 00
|...CB...........|
00000010  e0 1b 8f 43 62 d1 04 00  01 00 2a 00 01 00 00 00
|...Cb.....*.....|
00000020  e0 1b 8f 43 87 d1 04 00  01 00 21 00 01 00 00 00
|...C......!.....|
00000030  e0 1b 8f 43 ae d1 04 00  00 00 00 00 00 00 00 00
|...C............|
00000040  e0 1b 8f 43 c4 0f 05 00  01 00 1d 00 00 00 00 00
|...C............|
00000050  e0 1b 8f 43 e7 0f 05 00  01 00 2a 00 00 00 00 00
|...C......*.....|
00000060  e0 1b 8f 43 09 10 05 00  01 00 21 00 00 00 00 00
|...C......!.....|

The problem is to interprete the output and to generate a lirc.conf for my
remote control.

Unfortunately the commands "mode2", "irrecord" etc. seems not to work with
this device.

Do you have a suggestion?

Thanks in advance
Enrico



More information about the mythtv-users mailing list