PVR150 Remote

From MythTV Official Wiki
Jump to: navigation, search

The IR receiver on the Hauppauge PVR-150 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:Hauppauge 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

Does your remote have a Windows Logo on it?

Use the Windows MCE remote (version 2) configuration rather than Hauppauge.

On Mythbuntu, selecting Windows MCE [all] on the configuration worked out of the box for me. None of the Hauppauge options did.

Using Mythbuntu 11.04 with a 2.6.38-8 generic Kernel, I choose "Hauppauge TV Card" in Mythbuntu Control Center. After that I changed the /etc/lirc/hardware.conf to:

REMOTE="Hauppauge TV card"

REMOTE_MODULES="ir-kbd-i2c"

REMOTE_DRIVER="dev/input"

REMOTE_DEVICE="/dev/input/event2"

REMOTE_SOCKET=""

REMOTE_LIRCD_CONF="hauppauge/lircd.conf.hauppauge"

REMOTE_LIRCD_ARGS=""

You have to modify it to your event device (check lsinput). I modifed also /etc/rc.local that it restarts lirc after bootup (add line "/etc/init.d/lirc restart"). With mythbuntu-lirc-generator and/or mythbuntu-lircrc-generator you have nearly a complete and running setup for your remote.

Fedora 14 x86_64 Hauppauge PVR 150

Credit goes to:

Jarod Wilson

Mark Weaver http://www.blushingpenguin.com/mark/blog/?p=24

1: Get firmware

Download firmware from:

http://www.blushingpenguin.com/mark/lmilk/haup-ir-blaster.bin

and copy to /lib/firmware

2: Get lircd.conf

http://www.blushingpenguin.com/mark/lmilk/lircd.conf and copy to /etc/lirc/lircd.conf

3: Probe the modules

/sbin/modprobe lirc_dev debug=1 && modprobe lirc_zilog

4: restart lirc

/etc/init.d/lirc restart

5: Make it permament

edit rc.local and add to the bottom

/sbin/modprobe lirc_dev debug=1 && modprobe lirc_zilog