LinHES Forums
http://forums.linhes.org/

LIRC HOWTO: Hauppauge PVR 150 Silver remote, R5A15.1
http://forums.linhes.org/viewtopic.php?f=14&t=4609
Page 1 of 7

Author:  robert.pdx [ Mon May 16, 2005 9:47 pm ]
Post subject:  LIRC HOWTO: Hauppauge PVR 150 Silver remote, R5A15.1

Here's a new HOWTO from info I've collected from previous howto's.
This works with the newer silver remote included with the PVR 150,
and possibly other Hauppauge models. The remote looks like this:
Image

Please let me know if you try this and it doesn't work. I have heard that
lirc-0.7.1 has support for this remote, but I was unable to get it to work.
Feel free to post any modifications if you get it to work with lirc that
comes standard with KnoppMyth R5A15.1.

LIRC Setup for PVR150 Silver Remote on KnoppMyth
Posted originally by jac1d ("Jeff") on mysettopbox.tv
Modified for R5A15.1 by Robert Jones (robert.pdx)

*** Edited 6/9/05:
If you haven't already, you'll need to untar your linux source:
Code:
# cd /usr/src
# tar xjvf <kernel source name>
# ln -s <kernel source name> linux

***

*** Edited 6/30/05:
Remove the existing lirc that comes with KnoppMyth
Code:
# apt-get remove lirc

***

1.) Download the following:

This is the patch to make this remote work with lirc
http://www.pjd.nu/lirc/lirc-0.7.0_pvr150.patch.gz
You can use the wget program at the command line also:
Code:
# wget http://www.pjd.nu/lirc/lirc-0.7.0_pvr150.patch.gz


This is the file that goes in /etc/lircd.conf to interpret the remote
http://www.pjd.nu/lirc/lircd_pvr150.conf

Code:
# wget http://www.pjd.nu/lirc/lircd_pvr150.conf

This is the actual source for lircd that we're going to patch and compile
http://prdownloads.sourceforge.net/lirc ... .0.tar.bz2 (note, wget will not work to this link since it redirects to mirror selection)
Here's a direct link to one of the mirrors:
Code:
# wget http://easynews.dl.sourceforge.net/sourceforge/lirc/lirc-0.7.0.tar.bz2

2.) unpack lirc and the patch. Put the patch in the lirc directory. (Edited 5/30/2005 - the f switch must be last parameter before the filename, thanks to those who caught that)
Code:
# gunzip lirc-0.7.0_pvr150.patch.gz
# tar xpvjf lirc-0.7.0.tar.bz2
# mv lirc-0.7.0_pvr150.patch lirc-0.7.0/

3.) Enter the lirc source dir and apply the patch
Code:
# cd lirc-0.7.0
# patch -p1 -i lirc-0.7.0_pvr150.patch

4.) Run the setup script
Code:
# ./setup.sh
Select Driver Configuration (1)
Select TV Card (5)
Select Hauppauge TV Card (f)
Select Save Configuration & Run Configure

5.) Run make (must be logged in as root)
Code:
# make

6.) Then run make install
Code:
# make install

7.) Move the original out of the way
Code:
# mv /etc/lircd.conf /etc/lircd.conf.old

8.) Move the correct conf in place
Code:
# mv lircd_pvr150.conf /etc/lircd.conf

9.) Add the following line to the end of /etc/modules
Code:
lirc_i2c


10.) Add the following to the end of /etc/init.d/bootmisc.sh so it will load on reboot

Code:
/usr/local/sbin/lircd


11.) Make sure the following line appears in /etc/mythtv/modules/ivtv
Code:
alias char-major-61 lirc_i2c


12.) To test:
Code:
# rmmod lirc_i2c
# modprobe lirc_i2c
# lircd
# irw

Point the remote at the reciever and press the buttons and you should get output.


13.) Map the buttons to the MythTV functions.

Edit /home/mythtv/.mythtv/lircrc. Do this as user mythtv.
I've posted a sample you can wget. If you want, you can change/customize them, using the other button entries as examples (updated link 12/17/06 - a few requests still):
Code:
$ wget http://pdxitservices.com/lircrc


============================
Following the addition of this last file, reboot and try your remote in MythTV.

Enjoy your remote!
--Robert

Author:  ViralHex [ Thu May 26, 2005 10:30 am ]
Post subject: 

well, I followed these steps, and it doesn't work... more specifically when I test the remote irw outputs nothing.

I think the issue may be having a pvr-350 in my box WITH a pvr-150, so I'm wondering is there any special stuff I need to do to specifiy the pvr-150 instead of the 350. My system detects the pvr-150 first (it's /dev/video0) if that changes anything...

anyway here's some more helpful stuff:

Code:
mythtv@mythtv:~$ cat /etc/mythtv/modules/ivtv
alias char-major-81 videodev
#alias char-major-81 ivtv
alias char-major-81-0 ivtv
alias char-major-81-1 ivtv
alias char-major-61 lirc_i2c
#alias char-major-61-0 lirc_i2c
#alias char-major-61-1 lirc_i2c
options ivtv ivtv_std=1,1 tda9887=0
options saa7127 i2c_enable=-1,1
options cx25840 i2c_enable=1 no_black_magic=1
install ivtv /sbin/modprobe tuner; /sbin/modprobe msp3400; /sbin/modprobe saa7115;  /sbin/modprobe --ignore-install  ivtv
remove ivtv /sbin/modprobe -r --ignore-remove ivtv && /sbin/modprobe -r saa7115 && /sbin/modprobe -r msp3400 && /sbin/modprobe -r tuner


Code:
mythtv@mythtv:~$ tail -6 /var/log/lircd
May 24 14:01:15 mythtv lircd 0.7.0: accepted new client on /dev/lircd
May 24 14:01:25 mythtv lircd 0.7.0: removed client
May 24 14:01:31 mythtv lircd 0.7.0: removed client
May 24 14:01:31 mythtv lircd 0.7.0: caught signal
May 24 14:02:31 mythtv lircd 0.7.0: lircd(hauppauge) ready
May 24 14:03:03 mythtv lircd 0.7.0: accepted new client on /dev/lircd


Code:
mythtv@mythtv:~$ cat /etc/modprobe.d/lirc
alias char-major-61 lirc_i2c
#alias char-major-61-0 lirc_i2c
#alias char-major-61-1 lirc_i2c
Code:
mythtv@mythtv:~$ lsmod |grep lirc_i2c
lirc_i2c                9092  1
i2c_core               20224  12 i2c_viapro,saa7127,tda9887,wm8775,cx25840,saa7115,msp3400,tuner,bttv,i2c_algo_bit,tveeprom,lirc_i2c
lirc_dev               13452  1 lirc_i2c


and dmesg contains:
Code:
May 24 14:02:32 mythtv kernel: lirc_dev: IR Remote Control driver registered, at major 61
May 24 14:02:38 mythtv kernel: lirc_i2c: chip found @ 0x18 (Hauppauge IR)
May 24 14:02:38 mythtv kernel: lirc_dev: lirc_register_plugin:sample_rate: 10


any help would be greatly appreciated.

Author:  rigga [ Thu May 26, 2005 1:15 pm ]
Post subject: 

I have a pvr 250 and 350 in the same box and this guide worked for me, did you follow it exactly?

Author:  robert.pdx [ Thu May 26, 2005 1:28 pm ]
Post subject: 

I contacted him offline. I believe the problem was that the IR receiver was not plugged into the card fully.

My PVR 150 was finicky with the remote receiver connection. It took a bit of wiggling to get it to connect correctly.

Robert

Author:  aaronb [ Thu May 26, 2005 8:01 pm ]
Post subject: 

I get the following error when I run this command from step 2:

Code:
root@mythtv:/etc# tar -xpvfj lirc-0.7.0.tar.bz2
tar: j: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now


Any ideas?

Author:  Xsecrets [ Thu May 26, 2005 9:43 pm ]
Post subject: 

looks like you skipped step one, cause the error means the file is not there.

Author:  aaronb [ Thu May 26, 2005 11:50 pm ]
Post subject: 

No, I downloaded all three files from step 1, and ran the gunzip command in step 2, followed the above guide exactly. ls shows that the file is there.

Author:  brendan [ Fri May 27, 2005 1:35 am ]
Post subject: 

aaronb wrote:
I get the following error when I run this command from step 2:

Code:
root@mythtv:/etc# tar -xpvfj lirc-0.7.0.tar.bz2
tar: j: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now


Any ideas?


Swap the positions of the j and the f: the filename has to follow directly after the f parameter of the tar command. So, since the j follows the f, it thinks you are looking for the file called "j". tar -xpvjf lirc-0.70.tar.bz2 should work.

-brendan

Author:  rigga [ Fri May 27, 2005 2:00 am ]
Post subject: 

try
Code:
tar -jvxf lirc-0.7.0.tar.bz2

Author:  aaronb [ Fri May 27, 2005 10:08 am ]
Post subject: 

Thanks guys, I'll try this tonight when I get home. If I can get the remote working I'll finally have my Myth box complete.

Author:  d0qtrx [ Sat May 28, 2005 1:43 pm ]
Post subject: 

I have the remote working perfeclty in irw, but MythTV is being an ass.

I have the config files set correctly... I THINK...

/~.mythtv/lircrc (which is also linked to ~.lircrc) and the buttons are mapped to the button names that irw returns. Not a single press does ANYTHING at all in MythTV.

The names from irw corespond perfectly to what the buttons are on the remote, so I know that config is correct.

I just don't get it, and Im about to give up completely.

Author:  Xsecrets [ Sat May 28, 2005 2:01 pm ]
Post subject: 

what version of knoppmyth are you running? If you are on the old R4V5 then you have to make sure you load the binaries that are compiled with lirc support.

Author:  aaronb [ Sat May 28, 2005 2:46 pm ]
Post subject: 

I finally get output in irw after following this procedure exactly (switching the j and f above worked, thanks again) but still none of the buttons work in Myth. Running R5A15.1. My config files match the output in irw.

Author:  stephencu2004 [ Sun May 29, 2005 11:32 am ]
Post subject: 

Following this guide and so far so good but now I am getting this error

Code:
root@mythtv:~/lirc-0.7.0# ./setup.sh
-bash: ./setup.sh: Permission denied


Any advise for me??? Thanks

Author:  stephencu2004 [ Sun May 29, 2005 12:11 pm ]
Post subject: 

stephencu2004 wrote:
Following this guide and so far so good but now I am getting this error

Code:
root@mythtv:~/lirc-0.7.0# ./setup.sh
-bash: ./setup.sh: Permission denied


Any advise for me??? Thanks


Never mind it was a permissions issue and I fixed that but now that I have completed the steps above I still get no output with irw with my PVR350 card... help please :wink:

Page 1 of 7 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/