PVR150 Remote

From MythTV Official Wiki
Revision as of 15:26, 28 December 2009 by Ver (talk | contribs) (mentioning kernel incompatibility with lirc_pvr150 3rd party blaster driver)

Jump to: navigation, search

The IR receiver on the PVR150 is supported by the lirc_i2c module. For some more general lirc help see LIRC.

  • Some models of the PVR 150 can send IR, not just receive it. This functionality is often call IR Blasting. It is useful for controlling external tuners. LIRC PVR-150 IR blaster support, version 3 describes how to set this up using a patched version of LIRC. This code is currently not compatible with Linux kernel versions of 2.6.32 or newer, due to the recent retirement of deprecated non-hotpluggable I2C code.

Driver Installation

  • For the 0.4 series of ivtv drivers get lirc-0.7.2 from http://www.lirc.org/.
  • For the 0.6 series of ivtv drivers (only used with kernel>=2.6.16) I found that the latest CVS was needed for lirc to compile properly.
  • Once you have acquired the proper version of the LIRC source unpack it, and change into the lirc directory
  • Run ./autogen.sh
  • Run ./setup.sh and select Driver Configuration:TV Card:Hauppage TV Card
  • Select Save configuration & run configure
  • run make && make install and the kernel modules should be ready to go.
  • run modprobe lirc_i2c and check dmesg, you should see something like:

lirc_dev: IR Remote Control driver registered, at major 61
lirc_i2c: chip found @ 0x71 (Hauppauge IR (PVR150))
lirc_dev: lirc_register_plugin: sample_rate: 10

  • to test that this all worked properly run cat /dev/lirc0, when you point your remote at the receiver and press buttons you should see some output. As long as you are getting any output then it is working properly. Note: your device may be /dev/lirc, or /dev/lircN not necessarily /dev/lirc0.
  • Now let's move on to configuring lircd

Configuring your remote

  • Now you need to set up your /etc/lircd.conf file so that lircd can properly interpret your remote's signals.
  • The pvr150 has been sold with 2 different types of remotes one grey and one silver so your lircd.conf will depend on which you have.
  • For the silver remote a working lircd.conf is found here: http://www.pjd.nu/lirc/lircd_pvr150.conf
  • Need a lircd.conf for grey remote
  • Once you setup your /etc/lircd.conf run lircd, followed by irw. After you run irw the console should appear to be hung, but if you point your remote at the receiver and push buttons irw should spit out text related to which button you pressed. If this works then move on to the next step.
  • The next step is to setup your ~/.mythtv/lircrc file so that mythtv will respond to IR commands. The file I am using is posted at: http://web.mit.edu/vbrunini/Public/ It also contains some keybindings for mplayer and xine
  • In order to get mplayer to use your lircrc file run ln -s ~/.mythtv/lircrc ~/.lircrc
  • If the remote works in livetv and everywhere else, but not when you play mpg or avi files, run ln -s ~/.mythtv/lircrc ~/.mplayer/input.conf (taken from: http://www.mplayerhq.hu/DOCS/HTML/en/control.html) Wiz561