View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 95 posts ] 
Go to page 1, 2, 3, 4, 5 ... 7  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon May 16, 2005 9:47 pm 
Offline
Joined: Sat May 14, 2005 12:25 am
Posts: 51
Location: Portland, Oregon
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


Last edited by robert.pdx on Mon Dec 18, 2006 12:21 am, edited 11 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 10:30 am 
Offline
Joined: Fri Dec 26, 2003 6:05 pm
Posts: 82
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 1:15 pm 
Offline
Joined: Wed May 18, 2005 2:57 am
Posts: 63
I have a pvr 250 and 350 in the same box and this guide worked for me, did you follow it exactly?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 1:28 pm 
Offline
Joined: Sat May 14, 2005 12:25 am
Posts: 51
Location: Portland, Oregon
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 8:01 pm 
Offline
Joined: Mon Jan 24, 2005 11:38 pm
Posts: 109
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 9:43 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
looks like you skipped step one, cause the error means the file is not there.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 11:50 pm 
Offline
Joined: Mon Jan 24, 2005 11:38 pm
Posts: 109
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 1:35 am 
Offline
Joined: Tue Dec 07, 2004 12:04 pm
Posts: 369
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 2:00 am 
Offline
Joined: Wed May 18, 2005 2:57 am
Posts: 63
try
Code:
tar -jvxf lirc-0.7.0.tar.bz2


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 10:08 am 
Offline
Joined: Mon Jan 24, 2005 11:38 pm
Posts: 109
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 28, 2005 1:43 pm 
Offline
Joined: Sat May 28, 2005 1:35 pm
Posts: 1
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 28, 2005 2:01 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
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.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 28, 2005 2:46 pm 
Offline
Joined: Mon Jan 24, 2005 11:38 pm
Posts: 109
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 29, 2005 11:32 am 
Offline
Joined: Tue May 10, 2005 12:29 pm
Posts: 35
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 29, 2005 12:11 pm 
Offline
Joined: Tue May 10, 2005 12:29 pm
Posts: 35
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:


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 95 posts ] 
Go to page 1, 2, 3, 4, 5 ... 7  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu