From: Jari Ahonen <jah@pr...> - 2005-12-07 12:03:02
I'm fairly new to LIRC so let me know if I'm planning to
do something stupid...
I recently bought a Plextor external USB TV tuner (PX-TV402U)
that came with a remote control. After finding out that the
remote works like a keyboard and mouse I started experimenting
how to make it work with MythTV using LIRC.
At first I wasn't aware of the dev/input support in LIRC so
I built an IR receiver and used audio_alsa module with LIRC.
This worked fairly OK but not quite good enough. I found that
there was too much power supply interference to make the
audio_alsa signal decoding reliable and on top of that it
also seemed that the ALSA sampling frequency needed to be
quite carefully selected to get best possible results
(The 8kHz default just wasn't working for me).
Then I read about the dev/input driver in LIRC and started
experimenting with that only to find out that it has a couple
of shortcomings that make it a bit unsuitable to use with
the remote I have.
First: The remote direction keys (up/down/left/right) work
as a mouse. The current hw_devinput.c does not really know
how to handle the mouse input events and any attempt to
record those will end up in failure.
Second: Most of the remote buttons work as key combinations
such as Shift-PgUp or CTRL-X. As far as I understand hw_devinput.c
only decodes one keypress at a time. This isn't such a big
deal as most of the keys are still unique and can be recorded
without shift/control and work.
Mainly because of the first issue I'm planning to enhance hw_devinput.c
so that it would also understand the "mouse keys" on the remote but
I figured that it would be best to get any such changes back to
public LIRC codebase rather than just keep them for myself.
So this is why I'm writing this message. I'm basically looking for
contacts to help me patch hw_devinput.c, test my changes and get
them included in next LIRC version.
Or alternatively for someone to tell me the correct way of getting
the remote to work with LIRC if modifying hw_devinput.c is not
Jari Ahonen "jah@..." wrote:
> So this is why I'm writing this message. I'm basically looking for
> contacts to help me patch hw_devinput.c, test my changes and get
> them included in next LIRC version.
> Or alternatively for someone to tell me the correct way of getting
> the remote to work with LIRC if modifying hw_devinput.c is not
I'm not sure if there will be a straight forward way of using EV_REL =20
events. Having 2^32 (input_event.value) entries for each direction in =20
your config file definitely is not an option. Maybe you can just map =20
events to distinct directions (LEFT, RIGHT, UP, DOWN).
I will have a look at whatever you come up with.