I have a DigitalNow TinyTwin USB tuner card, which comes with a remote control. I'd like to get this working under MythTV.
The remote was connected and listed under lshal, and button presses at the console were interpreted as keyboard strokes. Good start, I thought. Unfortunately, a single button press resulted in a continuous stream of characters, so something is not seeing the button release.
Anyway, I thought I'd look at getting the remote supported under LIRC, and have searched for a configuration, but I don't think one exists yet. So, being brave and foolhardy, I would like to try to generate one.
The first step was to remove the HAL configuration by adding lines to the /usr/share/hal/fdi/preprobe/20thirdparty/remote.fdi (and also to lirc.fdi in the same directory):
<match key="info.product" string="Afatech DVB-T 2">
<merge key="info.ignore" type="bool">true</merge>
This info was gleaned from the lshal command. On reboot, the remote control no longer spits keys to the command line. Ok, good start.
Next, I understand I needed to configure LIRC. I edited my /etc/lirc/hardware.conf file as follows:
REMOTE_DRIVER="dev/input" I am pretty sure that this is correct so far. So I tried to run irw on the command line to test the remote control (note I do not have a lircd.conf in /etc yet). irw ran ok but absolutely nothing was received on pressing buttons.
# Receiver settings required by gnome-lirc-properties
RECEIVER_MODEL="Afatech DVB-T 2"
RECEIVER_VENDOR="Linux Input Device"
# Remote settings required by gnome-lirc-properties
REMOTE_MODEL="Linux Input Layer compatible Remote"
lircd was running, so I stopped it using: sudo /etc/init.d/lirc stop, and then ran from the command line: sudo lircd -n --device= /dev/input/by-id/usb-Afatech_DVB-T_2_010101010600001-event-ir --driver=dev/input . This gave the following output:
lircd-0.8.4a: error in configfile line 1The /dev/input/by... file does exist. dmesg | grep lirc does not return any results. I am running 6.2.30 kernel. This suggests to me that something is not right with lircd. How do I check if the relevant kernel modules are running ok (starting the daemon from init.rc on the command line gives no errors). I did also consider compiling lirc from source, given my kernel version, ut the configuration tool setup.sh seems to require me to select a remote control, and of course mine is not listed...
lircd-0.8.4a: reading of file '/dev/input/by-id/usb-Afatech_DVB-T_2_010101010600001-event-ir' failed
lircd-0.8.4a: reading of config file failed
lircd-0.8.4a: lircd(devinput) ready
If someone could give me pointers as to where to go next, I'd be grateful.