[mythtv-users] Need help configuring another cheap remote

James Courtier-Dutton james.dutton at gmail.com
Tue Nov 2 11:07:10 UTC 2010


On 1 November 2010 21:11, Clifford Snow <clifford at snowandsnow.us> wrote:
> I have a cheap generic usb remote.  It has the typical keyboard keys plus a
> built in mouse.  I mention the mouse just in case it makes a difference, but
> have no desire to use it.  My mythtv is new hardware running mythbuntu
> 10.10.
> I configured the device using the dpkg-reconfigure lirc.  Choosing the linux
> input layer (/dev/input/eventX)
>  option and then selecting event2. Right now I am seeing double key hits for
> every key pressed.  Pressing the down arrow skips the next item.  I have
> added an ignore = true for my device in
> /usr/share/hal/fdi/preprobe/20thirdparty/lirc.fdi. I followed the
> instructions on http://www.lirc.org/html/devinput.html.   I have verified
> that lshal shows the ignore has been set.  irw only shows one keycode per
> key.  At least for the down, up, left, right and enter.  I thought I had it
> fixed early by removing the -r option needed for Hulu.  But it reverted back
> to the same double key hit in mythtv.
> I also have a problem with some of the other keys putting out two or three
> keycodes when pressed.  But I think that is a different configuration issue.
>

I have a similar device.
lsusb gives:
Bus 008 Device 002: ID 073a:2230 Chaplet Systems, Inc.

After playing with it this weekend, I managed to get it to perform how I wished.

I have the lircd using the /dev/input/by-id device name instead of the
/dev/input/eventX name.

irw is a program to test that lircd is configured correctly.
Whenever a client application opens the link to lircd, lircd turns on
"exclusive" mode.
This means that while "irw" is running, those remote control key
presses will not go to any other application.
When you run myth, it opens the link to lircd and this prevents the
remote control sending any key presses to any other application.
If the definition for the keypress is not in the .lircrc file, it will
not reach myth.

I have a similar device.
Running irw  (irw tests the lircd program is configured correctly)
I press one key on the remote and get this:
0001003800000001 00 LEFTALT linux-input-layer
0001001c00000001 00 ENTER linux-input-layer
0001001d00000001 00 LEFTCTRL linux-input-layer
0001000400000001 00 3 linux-input-layer

I then have to configure .lircrc in my home directory.
For the above sequence I put this to get "p" sent to myth:
begin
prog = mythtv
button = LEFTALT
button = ENTER
button = LEFTCTRL
button = 3
repeat = O
config = r
flags = quit
end

There is also another key on the remote that just does this in irw
0001001c00000001 00 ENTER linux-input-layer

For that I have in .lircrc which will send "Return" to myth.
# Select
begin
prog = mythtv
button = ENTER
config = Return
flags = quit
end

Now, in the .lircrc file, the multi-key ones have to appear before the
single key ones in the file.
The "flags = quit" causes only the first one to be processed if all 4
key presses happen in the correct sequence.
It will fall through to the next entry if only "ENTER" is pressed.

This causes multi-key sequences to only send one key-press to myth.

Kind Regards

James


More information about the mythtv-users mailing list