[mythtvnz] Configuring the remote (TeVii s480)

Glenn Ramsey gr at componic.co.nz
Sun Jun 10 01:18:22 BST 2012


On 07/06/12 08:31, Glenn Ramsey wrote:
> On 05/06/12 23:59, Stephen Worthington wrote:
>> On Tue, 05 Jun 2012 21:53:38 +1200, you wrote:

>>> What do need to do to configure the IR receiver on my s480?
>>>
>>> /var/log/kern.log shows entries like this:
>>>
>>> Jun 3 11:38:39 tv kernel: [ 14.811506] input: IR-receiver inside an USB
>>> DVB r eceiver as
>>> /devices/pci0000:00/0000:00:15.0/0000:03:00.1/usb4/4-1/input/input12 Jun
>>> 3 11:38:39 tv kernel: [ 14.811919] dvb-usb: schedule remote query
>>> interva l to 150 msecs.
>>>
>>> but I don't have any /dev/lirc entries. What am I missing?
>>>

>> For my Mother's Hauppauge Nova TD-500 card, I had to write a udev rule to
>> map the remote input to a known /dev device. I created a
>> /etc/udev/rules.d/10-local.rules file:
>>
>> SUBSYSTEM=="input", KERNEL=="event*", ATTRS{idVendor}=="2040",
>> ATTRS{idProduct}=="8400", SYMLINK+="lirc0"
>
>> (That is one long line - it may be wrapped in your newsreader).
>
> Thanks, I have that working now. Just need to find the proper lircd.conf for
>  this remote now. There is one one for the s650 [1] which has all the right
> keys but only a couple of the keys seem to work. If I use irrecord to capture
> a couple of keys, the data format seems very different to that for the s650
> remote. I guess I'll be making my own lircd.conf.
>
> [1] http://lirc.sourceforge.net/remotes/tevii/

A variant of the above, using the USB vendor/product id worked but I also found
this:

KERNEL=="event*",ATTRS{phys}=="usb-0000:03:00.1-1/ir0",SYMLINK+="input/ira"
KERNEL=="event*",ATTRS{phys}=="usb-0000:03:00.3-1/ir0",SYMLINK+="input/irb"

and now t I have this:
$ ls -l /dev/input
---8<---
crw-r----- 1 root root 13, 76 Jun 10 09:54 event12
crw-r----- 1 root root 13, 77 Jun 10 09:54 event13
---8<---
lrwxrwxrwx 1 root root      7 Jun 10 09:54 ira -> event12
lrwxrwxrwx 1 root root      7 Jun 10 09:54 irb -> event13


>> Take a look at the TD-500 support page for more about remote setup:
>>
>> http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-NOVA-T-500

I haven't yet been able to get that (or several variants of it) to work.

Apparently Mythbuntu uses a simplified variant of lirc called inputlirc. This is 
configured using /etc/default/inputlirc .

I found some instructions here:
<http://wiki.xbmc.org/index.php?title=HOW-TO:Configure_VRC-1100_remote_for_Ubuntu>

Using this:

$ more /etc/default/inputlirc
# Options to be passed to inputlirc.
#EVENTS="/dev/input/event*"
EVENTS="/dev/input/ira"
OPTIONS="-g -c -m0"

my remote now generates keypresses, and I now think I just need to map them to 
mythtv using ~/.lirc/mythtv.

To configure this I haven't had to specify anything at all about my specific 
remote, in fact I removed lirc, so I guessed that a driver was already doing it, 
which seems to be confirmed by the source for one of the modules that my dvb 
card uses.

<http://pikacode.com/liplianin/s2-liplianin-v35-716x/file/default/linux/drivers/media/dvb/dvb-usb/dw2102.c> 
around line 1291:

This is the keymap for the TeVii remote that I have:

static struct rc_map_table rc_map_tevii_table[] = {
	{ 0xf80a, KEY_POWER },
	{ 0xf80c, KEY_MUTE },
	{ 0xf811, KEY_1 },
	...

Assuming that I can the mythtv key bindings set up then I should have a working 
remote. <rant>That is one of the most painful Linux config experiences I have 
had for several years. Mainly because the documentation that I could find seems 
to be outdated, and I still didn't find anything that would have pointed me in 
the right direction straight away.</rant>

The next thing I'd like to set up is the ability to use another remote. The wife 
likes the one that belonged to our Philips DVR that died. I read somewhere that 
I should be able to use them both at the same time but I'm not sure what 
documentation to trust. Any ideas?

Glenn




More information about the mythtvnz mailing list