View unanswered posts    View active topics

All times are UTC - 6 hours





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

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Sep 26, 2005 11:57 pm 
Offline
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location: Calgary, Alberta - Canada!
Greetings everyone,

Now that the PVR 150's are a little more supported in IVTV, i was wondering how i could get the IR Blaster to work. welp, after searching the web, and trying lots of different things out, i found a guy by the name of Mark (who btw needs to be thanked huge for this) He is running debian and has been able to get his blaster working with his card, no problems. You can see his webpage http://www.blushingpenguin.com/mark/blog/?p=19 and you can see my thought process as i went through trying out different things to get it to work (my name is Scott). I can now say i have it working sucessfully with 1 of my 2 pvr cards, controlling a Starchoice Receiver. Here is what i did.
**UPDATE**
I now have my 2 pvrs working with their own seperate channel change scripts as well,


**UPDATE 2 - NOW SUPERSIZED WITH IVTV-0.3.9


*** UPDATE 3 - TO MUCH FAT IN THE SUPERSIZED MEAL, WENT DOWN TO IVTV 0.3.8 FOR IR RECEIVER ISSUES***


*** Update 4 - I have backed up Marks files on to my domain, no disrepect to him, more of a just in case ***

Get the pre-patched lirc 0.7.2


Quote:
cd /usr/src
tar jxvf kernel-source-2.6.11.9-chw-2.tar.bz2
cd /usr/src
wget http://www.controlaltdeleted.com/myth/l ... 50.tar.bz2
tar xfj lirc-0.7.2pvr150.tar.bz2
cd lirc-0.7.2pvr150
./configure

Choose:
TV card
h - Hauppauge PVR-150 TV card (note: _NOT_ ‘g - Hauppauge TV card’)
Save configuration & run configure

Quote:
make && make install


Install IVTV with a patch (forces the chipset to restart if it freezes)

Quote:
cd /usr/src
wget http://www.controlaltdeleted.com/myth/ivtv-0.3.8.tar.gz
tar zxvf ivtv-0.3.8.tar.gz
cd ivtv-0.3.8
cd driver
wget http://www.controlaltdeleted.com/myth/i2c.patch
patch -p0 < i2c.patch
make && make install


now we need to reboot the computer, please just reboot like normal

Quote:
reboot


When your system comes back up, please relog on to it and continue!



IR blaster only: Now you need the ‘firmware’. This is
a set of data blocks that correspond to those generated by the windows software. This goes in /usr/lib/hotplug/firmware

Quote:


Check everything is working so far:
Quote:
modprobe lirc_dev debug=1 && modprobe lirc_pvr150 debug=1


and check the syslog output file to see if it loaded ok

Quote:
nano /var/log/syslog


The output should be at the bottom of the syslog, pgdown till you see it, it should look something like this:



Quote:
Aug 28 02:09:11 soapbox kernel: lirc_pvr150: chip found with RX and TX
Aug 28 02:09:11 soapbox kernel: ivtv: i2c attach [client=Hauppauge PVR150 IR RX,
ok]
Aug 28 02:09:11 soapbox kernel: ivtv: i2c attach [client=Hauppauge PVR150 IR TX,
ok]
Aug 28 02:09:11 soapbox kernel: lirc_dev: lirc_register_plugin: sample_rate: 0
Aug 28 02:09:11 soapbox udev[5221]: creating device node ‘/dev/lirc0′
Aug 28 02:09:11 soapbox kernel: lirc_pvr150: firmware of size 20927 loaded
Aug 28 02:09:11 soapbox kernel: lirc_pvr150: 575 codesets loaded
Aug 28 02:09:11 soapbox kernel: lirc_pvr150: Hauppauge PVR-150 IR blaster: firmware version 1.3.0


you need to configure lircd, and find out which codeset you are going to be using. The easiest way is to start with this configuration file which contains key definitions for everything in the database. We will backup your previous one as wel (just in case)

Quote:
cd /etc/lirc
mv lircd.conf lircd.bak.conf
wget http://www.controlaltdeleted.com/myth/lircd.conf


start lircd, but lets check a couple of things first

Quote:
ls -l /dev/lirc*


you should see something like this

Quote:
rw-r--r-- 1 root root 61, 0 Jul 30 2004 /dev/lirc
srw-rw-rw- 1 root root 0 Sep 26 22:22 /dev/lircd
prw-r--r-- 1 root root 0 Jul 30 2004 /dev/lircm


to start licd simple type it in and hit enter

Quote:
lircd



i didnt have a lirc0 or lirc1 in mine (i have 2 pvr-150s im trying to get both working now, but my limited skills in linux are prohibiting me ;))

so lets create one,


Quote:
mknod /dev/lirc0 c 61 0

and we will load the modules up as well
Quote:
modprobe lirc_dev && modprobe lirc_pvr150 debug=1
lircd --device=/dev/lirc0


if you get an error stating that the device is in use -

Quote:
lircd 0.7.1pre2: there seems to already be a lircd process with pid 2202
lircd 0.7.1pre2: otherwise delete stale lockfile /var/run/lircd.pid


do a quick killall lircd to unload it, and try again.

Quote:
killall lircd


You can now check if the remote is working using irw. Run this, and press buttons on the remote. You should see some output like

Quote:
0000000000001795 00 Down Hauppauge_350


Next, for the ir blaster you need to work out which codeset to use, this is the tricky bit. For this we have send_power_new, a script that just sends the power command in every single codeset (575 at present).

Quote:
cd /tmp
wget http://www.controlaltdeleted.com/myth/send_power_new
chmod 755 send_power_new


this script is designed to send the power button for 575 devices, i lucked out, mine was number 54

run the script to make sure the ir blaster is sending (little red led will light up when its sending something)

Quote:
./send_power_new


red led light up? Yes move on, no something wrong happend try the previous steps again.

k, now the led is lighting up, position it on your ir controlled device ((sat/ digital cable receiver) on the ir pickup, these ir blasters are weak so you may need to position it a couple of times.

now what i did is a little bit of a pain in the arse.

run the script again, with your device powered on, and count how many cycles that the ir goes through before turning the device off (again mine was 54 times) or do it in 50s or something, when you finally have figured out how many cycles it is, edit the send_power_new script

Quote:
nano send_power_new


and rem out the lines that you have tried, for example

Quote:
#irsend SEND_ONCE blaster 0_0_KEY_POWER
#irsend SEND_ONCE blaster 1_0_KEY_POWER
#irsend SEND_ONCE blaster 0_1_KEY_POWER
#irsend SEND_ONCE blaster 1_1_KEY_POWER
#irsend SEND_ONCE blaster 0_2_KEY_POWER
#irsend SEND_ONCE blaster 1_2_KEY_POWER
#irsend SEND_ONCE blaster 0_3_KEY_POWER
#irsend SEND_ONCE blaster 0_4_KEY_POWER
#irsend SEND_ONCE blaster 1_4_KEY_POWER
#irsend SEND_ONCE blaster 0_5_KEY_POWER
#irsend SEND_ONCE blaster 1_5_KEY_POWER
#irsend SEND_ONCE blaster 0_6_KEY_POWER


we have not isolated your devices remote codes. again im going to use mine in this example, so here is what mine looked like (snipped top and bottem)

Quote:
#irsend SEND_ONCE blaster 1_24_KEY_POWER
#irsend SEND_ONCE blaster 0_25_KEY_POWER
#irsend SEND_ONCE blaster 1_25_KEY_POWER
#irsend SEND_ONCE blaster 0_26_KEY_POWER
#irsend SEND_ONCE blaster 1_26_KEY_POWER
#irsend SEND_ONCE blaster 0_27_KEY_POWER
irsend SEND_ONCE blaster 1_27_KEY_POWER
#irsend SEND_ONCE blaster 0_28_KEY_POWER
#irsend SEND_ONCE blaster 1_28_KEY_POWER
#irsend SEND_ONCE blaster 0_29_KEY_POWER
#irsend SEND_ONCE blaster 1_29_KEY_POWER
#irsend SEND_ONCE blaster 0_30_KEY_POWER
#irsend SEND_ONCE blaster 1_30_KEY_POWER
#irsend SEND_ONCE blaster 0_31_KEY_POWER


to test this out, run that line in a shell command

Quote:
irsend SEND_ONCE blaster 1_27_KEY_POWER



my device turns off, if i run it again, it will turn on - With me so far?

so now we have your device, we need to edit the /etc/lirc/lircd.conf file to incorporate it, you may notice if you nano that file,

Quote:
nano /etc/lirc/lircd.conf


its fricken huge (good old SNL, comes in 3 sizes, Wee - Not so Wee, and FRICKEN HUGE)

so we need to find in that file out devices control codes, and rename them - edit the file and look for your device in it

Quote:
nano /etc/lirc/lircd.conf


here is mine for the starchoice box for example

Quote:
name 0_27_KEY_1
1769473
name 0_27_KEY_2
1769474
name 0_27_KEY_3
1769475
name 0_27_KEY_4
1769476
name 0_27_KEY_5
1769477
name 0_27_KEY_6
1769478
name 0_27_KEY_7
1769479
name 0_27_KEY_8
1769480
name 0_27_KEY_9
1769481
name 0_27_KEY_POWER
1769482
name 0_27_KEY_CH_UP
1769487
name 0_27_KEY_CH_DOWN
1769488
name 0_27_KEY_FAVCH
1769500
name 0_27_KEY_FTUNEPLUS
1769505
name 0_27_KEY_FTUNEMINUS
1769506
name 0_27_KEY_Norm
1769533
name 0_27_KEY_AB
1769534
name 1_27_KEY_0
2149253120
name 1_27_KEY_1
2149253121
name 1_27_KEY_2
2149253122
name 1_27_KEY_3
2149253123
name 1_27_KEY_4
2149253124
name 1_27_KEY_5
2149253125
name 1_27_KEY_6
2149253126
name 1_27_KEY_7
2149253127
name 1_27_KEY_8
2149253128
name 1_27_KEY_9
2149253129
name 1_27_KEY_POWER
2149253130
name 1_27_KEY_CH_UP
2149253135
name 1_27_KEY_CH_DOWN
2149253136
name 1_27_CH_PREVIOUS
2149253139
name 1_27_KEY_GUIDE
2149253147
name 1_27_KEY_AV
2149253161
name 1_27_KEY_ENTER
2149253163


now we need to edit out the crap (unwanted device codes) and put this in there, here is what my final lircd.conf looked like, feel free to copy and paste this, but be sure to edit out my device, and add yours

Quote:
#
# this config file was automatically generated
# using lirc-0.5.5pre8 on Sun Apr 18 11:43:45 1999
#
# contributed by Jens Leuschner <leuschner@gmx.net>
#
# brand: Hauppauge
# model:
# supported devices: WinTV primo; WinTV pci; WinTV radio
#
# This config file will work with both homebrew receivers and
# original Hauppauge TV cards !!!
#

begin remote

name blaster
bits 32
flags RAW_CODES
eps 0
aeps 0
plead 0
gap 333333
repeat_bit 0

begin raw_codes
name 1_27_KEY_0
2149253120
name 1_27_KEY_1
2149253121
name 1_27_KEY_2
2149253122
name 1_27_KEY_3
2149253123
name 1_27_KEY_4
2149253124
name 1_27_KEY_5
2149253125
name 1_27_KEY_6
2149253126
name 1_27_KEY_7
2149253127
name 1_27_KEY_8
2149253128
name 1_27_KEY_9
2149253129
name 1_27_KEY_POWER
2149253130
name 1_27_KEY_CH_UP
2149253135
name 1_27_KEY_CH_DOWN
2149253136
name 1_27_CH_PREVIOUS
2149253139
name 1_27_KEY_GUIDE
2149253147
name 1_27_KEY_AV
2149253161
name 1_27_KEY_ENTER
2149253163
end raw_codes
end remote
begin remote

name Hauppauge
bits 13
flags SHIFT_ENC
eps 30
aeps 100

one 950 830
zero 950 830
plead 960
gap 89584
repeat_bit 2

begin codes
TV 0x000000000000100F
RADIO 0x000000000000100C
FULL_SCREEN 0x000000000000102E
CH+ 0x0000000000001020
CH- 0x0000000000001021
VOL- 0x0000000000001011
VOL+ 0x0000000000001010
MUTE 0x000000000000100D
SOURCE 0x0000000000001022
1 0x0000000000001001
2 0x0000000000001002
3 0x0000000000001003
4 0x0000000000001004
5 0x0000000000001005
6 0x0000000000001006
7 0x0000000000001007
8 0x0000000000001008
9 0x0000000000001009
0 0x0000000000001000
RESERVED 0x000000000000101E
MINIMIZE 0x0000000000001026
end codes

end remote


#
# this config file was automatically generated
# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
#
# contributed by
#
# brand: Hauppauge
# model no. of remote control:
# devices being controlled by this remote: PVR 2/350
#

begin remote

name hauppauge_pvr
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100

one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2


begin codes
Power 0x00000000000017FD
Go 0x00000000000017FB
1 0x00000000000017C1
2 0x00000000000017C2
3 0x00000000000017C3
4 0x00000000000017C4
5 0x00000000000017C5
6 0x00000000000017C6
7 0x00000000000017C7
8 0x00000000000017C8
9 0x00000000000017C9
Back/Exit 0x00000000000017DF
0 0x00000000000017C0
Menu 0x00000000000017CD
Red 0x00000000000017CB
Green 0x00000000000017EE
Yellow 0x00000000000017F8
Blue 0x00000000000017E9
Ch+ 0x00000000000017E0
Ch- 0x00000000000017E1
Vol- 0x00000000000017D1
Vol+ 0x00000000000017D0
Ok 0x00000000000017E5
Mute 0x00000000000017CF
Blank 0x00000000000017CC
Full 0x00000000000017FC
Rewind 0x00000000000017F2
Play 0x00000000000017F5
Rewind 0x00000000000017F2
Play 0x00000000000017F5
Forward 0x00000000000017F4
Record 0x00000000000017F7
Stop 0x00000000000017F6
Pause 0x00000000000017F0
Replay 0x00000000000017E4
Skip 0x00000000000017DE
end codes

end remote


#
# this config file was automatically generated
# using lirc-0.7.0(any) on Sun Nov 28 20:25:09 2004
#
# contributed by
#
# brand: Hauppauge 350
# Created: G.J. Werler (The Netherlands)
# Project: Mythtv Fedora Pundit-R www.mythtvportal.com
# Date: 2004/11/28
# model no. of remote control: Hauppauge A415-HPG
# devices being controlled by this remote: PVR-350
#

begin remote

name Hauppauge_350
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100

one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2


begin codes
Go 0x00000000000017BB
Power 0x00000000000017BD
TV 0x000000000000179C
Videos 0x0000000000001798
Music 0x0000000000001799
Pictures 0x000000000000179A
Guide 0x000000000000179B
Radio 0x000000000000178C
Up 0x0000000000001794
Left 0x0000000000001796
Right 0x0000000000001797
Down 0x0000000000001795
OK 0x00000000000017A5
Back/Exit 0x000000000000179F
Menu/i 0x000000000000178D
Vol+ 0x0000000000001790
Vol- 0x0000000000001791
Prev.Ch 0x0000000000001792
Mute 0x000000000000178F
Ch+ 0x00000000000017A0
Ch- 0x00000000000017A1
Record 0x00000000000017B7
Stop 0x00000000000017B6
Rewind 0x00000000000017B2
Play 0x00000000000017B5
Forward 0x00000000000017B4
Replay/SkipBackward 0x00000000000017A4
Pause 0x00000000000017B0
SkipForward 0x000000000000179E
1 0x0000000000001781
2 0x0000000000001782
3 0x0000000000001783
4 0x0000000000001784
5 0x0000000000001785
6 0x0000000000001786
7 0x0000000000001787
8 0x0000000000001788
9 0x0000000000001789
Asterix 0x000000000000178A
0 0x0000000000001780
# 0x000000000000178E
Red 0x000000000000178B
Green 0x00000000000017AE
Yellow 0x00000000000017B8
Blue 0x00000000000017A9
end codes

end remote


You notice that this lircd has support for multiple hauppauge cards so it should work with a 250 remote as well

k we are not done yet, now we need to name the remote keys to proper keys, ie: 1,2,3,4, instead of the
name 1_27_KEY_0
name 1_27_KEY_1
name 1_27_KEY_2 etc...

after editing them, my final lircd.conf looks like this:

Quote:
#
# this config file was automatically generated
# using lirc-0.5.5pre8 on Sun Apr 18 11:43:45 1999
#
# contributed by Jens Leuschner <leuschner@gmx.net>
#
# brand: Hauppauge
# model:
# supported devices: WinTV primo; WinTV pci; WinTV radio
#
# This config file will work with both homebrew receivers and
# original Hauppauge TV cards !!!
#

begin remote

name blaster
bits 32
flags RAW_CODES
eps 0
aeps 0
plead 0
gap 333333
repeat_bit 0

begin raw_codes
name 0
2149253120
name 1

2149253121
name 2
2149253122
name 3
2149253123
name 4
2149253124
name 5
2149253125
name 6
2149253126
name 7
2149253127
name 8
2149253128
name 9
2149253129
name POWER
2149253130
name CH_UP
2149253135
name CH_DOWN
2149253136
name CH_PREVIOUS
2149253139
name GUIDE
2149253147
name AV
2149253161
name ENTER
2149253163
end raw_codes
end remote
begin remote

name Hauppauge
bits 13
flags SHIFT_ENC
eps 30
aeps 100

one 950 830
zero 950 830
plead 960
gap 89584
repeat_bit 2

begin codes
TV 0x000000000000100F
RADIO 0x000000000000100C
FULL_SCREEN 0x000000000000102E
CH+ 0x0000000000001020
CH- 0x0000000000001021
VOL- 0x0000000000001011
VOL+ 0x0000000000001010
MUTE 0x000000000000100D
SOURCE 0x0000000000001022
1 0x0000000000001001
2 0x0000000000001002
3 0x0000000000001003
4 0x0000000000001004
5 0x0000000000001005
6 0x0000000000001006
7 0x0000000000001007
8 0x0000000000001008
9 0x0000000000001009
0 0x0000000000001000
RESERVED 0x000000000000101E
MINIMIZE 0x0000000000001026
end codes

end remote


#
# this config file was automatically generated
# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
#
# contributed by
#
# brand: Hauppauge
# model no. of remote control:
# devices being controlled by this remote: PVR 2/350
#


begin remote

name hauppauge_pvr
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100

one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2


begin codes
Power 0x00000000000017FD
Go 0x00000000000017FB
1 0x00000000000017C1
2 0x00000000000017C2

3 0x00000000000017C3
4 0x00000000000017C4
5 0x00000000000017C5
6 0x00000000000017C6
7 0x00000000000017C7
8 0x00000000000017C8
9 0x00000000000017C9
Back/Exit 0x00000000000017DF
0 0x00000000000017C0
Menu 0x00000000000017CD
Red 0x00000000000017CB
Green 0x00000000000017EE
Yellow 0x00000000000017F8
Blue 0x00000000000017E9
Ch+ 0x00000000000017E0
Ch- 0x00000000000017E1
Vol- 0x00000000000017D1
Vol+ 0x00000000000017D0
Ok 0x00000000000017E5
Mute 0x00000000000017CF
Blank 0x00000000000017CC
Full 0x00000000000017FC
Rewind 0x00000000000017F2
Play 0x00000000000017F5
Rewind 0x00000000000017F2
Play 0x00000000000017F5
Forward 0x00000000000017F4
Record 0x00000000000017F7
Stop 0x00000000000017F6
Pause 0x00000000000017F0
Replay 0x00000000000017E4
Skip 0x00000000000017DE
end codes

end remote


#
# this config file was automatically generated
# using lirc-0.7.0(any) on Sun Nov 28 20:25:09 2004
#
# contributed by
#
# brand: Hauppauge 350
# Created: G.J. Werler (The Netherlands)
# Project: Mythtv Fedora Pundit-R www.mythtvportal.com
# Date: 2004/11/28
# model no. of remote control: Hauppauge A415-HPG
# devices being controlled by this remote: PVR-350
#

begin remote

name Hauppauge_350
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100

one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2


begin codes
Go 0x00000000000017BB
Power 0x00000000000017BD
TV 0x000000000000179C
Videos 0x0000000000001798
Music 0x0000000000001799
Pictures 0x000000000000179A
Guide 0x000000000000179B
Radio 0x000000000000178C
Up 0x0000000000001794
Left 0x0000000000001796
Right 0x0000000000001797
Down 0x0000000000001795
OK 0x00000000000017A5
Back/Exit 0x000000000000179F
Menu/i 0x000000000000178D
Vol+ 0x0000000000001790
Vol- 0x0000000000001791
Prev.Ch 0x0000000000001792
Mute 0x000000000000178F
Ch+ 0x00000000000017A0
Ch- 0x00000000000017A1
Record 0x00000000000017B7
Stop 0x00000000000017B6
Rewind 0x00000000000017B2
Play 0x00000000000017B5
Forward 0x00000000000017B4
Replay/SkipBackward 0x00000000000017A4
Pause 0x00000000000017B0
SkipForward 0x000000000000179E
1 0x0000000000001781
2 0x0000000000001782
3 0x0000000000001783
4 0x0000000000001784
5 0x0000000000001785
6 0x0000000000001786
7 0x0000000000001787
8 0x0000000000001788
9 0x0000000000001789
Asterix 0x000000000000178A
0 0x0000000000001780
# 0x000000000000178E
Red 0x000000000000178B
Green 0x00000000000017AE
Yellow 0x00000000000017B8
Blue 0x00000000000017A9
end codes

end remote



now here are the edits that i found we have to make to Marks script work with Knoppmyth.

Quote:
nano /etc/lirc/hardware.conf


find the line that says

Quote:
MODULES=”lirc_dev lirc_i2c”


and replace it with

Quote:
MODULES=”lirc_dev lirc_pvr150″


then edit /etc/init.d/bootmisc.sh

Quote:
nano /etc/init.d/bootmisc.sh


and add at the bottom add

Quote:
modprobe lirc_pvr150
lircd


so it should look like


Quote:
# enable DMA
/sbin/hdparm -qd1 /dev/hda
#
modprobe lirc_pvr150
lircd


now who needs a chan. changing script?? (i know you all raised your hands, good class!)

Quote:
nano /usr/local/bin/chan_change.sh



paste this bad boy in there


Quote:
#!/bin/sh
REMOTE_NAME=blaster
for digit in $(echo $1 | sed -e 's/./& /g'); do
/usr/local/bin/irsend SEND_ONCE $REMOTE_NAME $digit
sleep 0.4 # note, you may have to tweak the interdigit delay up a bit, depending on your DISH receiver model
done


and hit control X to save and exit
we now need to give that script some permisions to run

Quote:
chmod 755 /usr/local/bin/chan_change.sh


and lets try it out.

Quote:
cd /usr/local/bin/
./chan_change.sh 300


you should see 300 show up on your receiver or tv.

now all you have to do is edit your mythtv-setup (where you configured the cards and inputs and such, its in #4 (inputs, and add the line in external channel changer (or something like that, im going from memory right now) of

Quote:
"/usr/local/bin/chan_change.sh"


there, its done, a working remote, ir blaser and IVTV for a pvr150 in knoppmyth, i apoligize if this doesnt work for you, i dont know why, im just a guy that followed Marks instructions, so i dont know why this wont work on your machine, speaking from experience, i had to run through it like 6 times before comming up with this walkthrough. I hope it works for you as it has Mark and myself. once again, nerd props go out to him (he does have a paypal donate button on his site)


Last edited by j0ly on Thu Oct 13, 2005 10:30 am, edited 14 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 1:03 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
:) Nice write up.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 6:54 am 
Offline
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location: Calgary, Alberta - Canada!
Thank You Cesman, its all i could do for the community that taught me how to do things...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 7:12 am 
Offline
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location: Calgary, Alberta - Canada!
now to add a second ir blaster (running in a second pvr150) do the following

Quote:
mknod /dev/lirc1 c 61 1
lircd --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid


and test it by typing in

Quote:
irsend -d /dev/lircd1 SEND_ONCE blaster 1


now lets get it working with the others on startup
Quote:
nano /etc/init.d/bootmisc.sh


go to the bottom of the file where we made the other edits and add in this line to the very bottom

Quote:
lircd --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid


and now a channel changing sript for it as well
Quote:
nano /usr/local/bin/chan_change2.sh


copy this in there

Quote:
#!/bin/sh
REMOTE_NAME=blaster
for digit in $(echo $1 | sed -e 's/./& /g'); do
/usr/local/bin/irsend -d /dev/lircd1 SEND_ONCE $REMOTE_NAME $digit
sleep 0.4 # note, you may have to tweak the interdigit delay up a bit, depending on your DISH receiver model
done


hit control X save and exit

Quote:
chmod 755 chan_change2.sh


test it out

Quote:
./chan_change2.sh 321


your second ir blaster should be sending out ir signals now as well, you just need to have the script located in the mythtv-setup as well, on your 2nd input's external channel change script area (mythtv-setup -> number 4 -> your 2nd tuners input -> type in the external change thing

Quote:
"/usr/local/bin/chan_change2.sh"




Once again, I would like to thank Mark!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 8:16 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I think you in the "contributor of the day" ribbon! :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 8:41 pm 
Offline
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location: Calgary, Alberta - Canada!
LOL thanks... funny, i screwed some things up in my own install trying to get svideo working as an input, mabey someone can shed some light on it for me, and i downloaded ivtv-0.3.9.tgz and went to install it, and now the ir is now working, so please, if you are going to be upgrading the version of ivtv please do the following (again taken from Mark's site)

Quote:
In drivers/ivtv-driver.c, you need to add:

#include “ivtv-gpio.h”

near the top of the file after the rest of the #include lines, and

EXPORT_SYMBOL(ivtv_reset_ir_gpio);

right at the bottom of the file where all the other EXPORT_SYMBOL lines are. All this does is export that symbol for use by other modules, it does not change the functionality of the driver in any way.


im going to try this right now and see what i can do, currently install knoppmyth again


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 11:12 pm 
Offline
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location: Calgary, Alberta - Canada!
k iivtv-0.3.9 works with it, i now have svideo working fine - update the walkthough for a supersized edition. 11:10pm here and i work in the morning, yet alone i havent watched any of my recorded shows for the night, time to go to bed.


Last edited by j0ly on Wed Sep 28, 2005 10:20 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 12:00 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Please don't start another subject in a thread.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 01, 2005 2:04 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
What do you use as your lircrc? Where did you get it? Can you please send it to me.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 01, 2005 7:30 am 
Offline
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location: Calgary, Alberta - Canada!
Here you go Cecil, now please make one note, my go button is onfigureed to launch a reboot script


# ~/.mythtv/lircrc
#
# MythTV native LIRC config file for
# the Hauppauge PVR 150 silver remote
#
# Modified from Jarod Wilson's which came from Jeff Campbell's
# and Brad Templeton's
# Modified still further by Robert Jones

# Here we have the jump point commands. They only work if you have
# defined function keys for these jump points. For me the most
# common command is the menu of recordings, so I put that on "videos"
# even though that's counter-intuitive

begin
prog = mythtv
button = TV
repeat = 3
config = F5
end

begin
prog = mythtv
button = VIDEOS
repeat = 3
config = F2
end

# Not yet defined Toggle PIP focus
begin
prog = mythtv
button = MUSIC
repeat = 3
config = B
end

# Given another function for now, I don't use mythgallery ** now is PIP Start
begin
prog = mythtv
button = PICTURES
repeat = 3
config = V
end

begin
prog = mythtv
button = GUIDE
repeat = 3
config = M
end

# I stuck the "todo" list on here as Myth has no radio function ** SWAP PIP SCREENS **
begin
prog = mythtv
button = RADIO
repeat = 3
config = N
end

begin
prog = mythtv
button = UP
repeat = 3
config = Up
end

begin
prog = mythtv
button = DOWN
repeat = 3
config = Down
end

begin
prog = mythtv
button = LEFT
repeat = 3
config = Left
end

begin
prog = mythtv
button = RIGHT
repeat = 3
config = Right
end

# Channel Up
begin
prog = mythtv
button = CH+
repeat = 3
config = Up
end

# Channel Down
begin
prog = mythtv
button = CH-
repeat = 3
config = Down
end

# OK/Select
begin
prog = mythtv
button = OK
config = Space
end

# Play
begin
prog = mythtv
button = PLAY
config = Return
end

# Stop
begin
prog = mythtv
button = STOP
config = I
end

# Escape/Exit/Back
begin
prog = mythtv
button = BACK/EXIT
config = Esc
end

# Power Off/Exit
begin
prog = mythtv
button = POWER
config = Esc
end


# Pause
begin
prog = mythtv
button = Pause
repeat = 3
config = P
end

# Mute
begin
prog = mythtv
button = MUTE
repeat = 3
config = |
end

# Fast forward (30 sec default)
begin
prog = mythtv
button = Rewind
repeat = 3
config = <
end

# Rewind (10 sec default)
begin
prog = mythtv
button = Forward
repeat = 3
config = >
end

# Skip forward (10 min default)
begin
prog = mythtv
button = SkipForward
repeat = 3
config = End
end

# Skip backward (10 min default)
begin
prog = mythtv
button = Replay/SkipBackward
repeat = 3
config = Home
end

# Record
begin
prog = mythtv
button = RECORD
repeat = 3
config = R
end

# Delete
begin
prog = mythtv
button = RED
repeat = 3
config = D
end

# Decrease play speed
begin
prog = mythtv
button = GREEN
repeat = 3
config = J
end

# Display EPG while in live TV,
# View selected show while in EPG
begin
prog = mythtv
button = MENU
repeat = 3
config = M
end

# Scroll up
begin
prog = mythtv
button = VOL+
repeat = 3
config = F11
end

# Scroll down
begin
prog = mythtv
button = VOL-
repeat = 3
config = F10
end

# Bring up OSD info
begin
prog = irexec
button = GO
config = restartmyth.sh &
end

# Change display aspect ratio
begin
prog = mythtv
button = PREVCH
repeat = 3
config = W
end

# double speed watch
begin
prog = mythtv
button = YELLOW
repeat = 3
config = J
end

# change tuners
begin
prog = mythtv
button = #
repeat = 3
config = Y
end

# Bring up Time stretch
begin
prog = mythtv
button = BLUE
repeat = 3
config = A
end

# Numbers 0-9

begin
prog = mythtv
button = 0
repeat = 3
config = 0
end

begin
prog = mythtv
button = 1
repeat = 3
config = 1
end

begin
prog = mythtv
button = 2
repeat = 3
config = 2
end

begin
prog = mythtv
button = 3
repeat = 3
config = 3
end

begin
prog = mythtv
button = 4
repeat = 3
config = 4
end

begin
prog = mythtv
button = 5
repeat = 3
config = 5
end

begin
prog = mythtv
button = 6
repeat = 3
config = 6
end

begin
prog = mythtv
button = 7
repeat = 3
config = 7
end

begin
prog = mythtv
button = 8
repeat = 3
config = 8
end

begin
prog = mythtv
button = 9
repeat = 3
config = 9
end


### MPlayer lirc setup

# Show OSD
begin
prog = mplayer
button = MENU
repeat = 3
config = osd
end

# Pause playback
begin
prog = mplayer
button = PAUSE
repeat = 3
config = pause
end

# Skip ahead a minute if playing
# If paused, resume playing
begin
prog = mplayer
button = PLAY
repeat = 3
config = seek +1
end

# Stop playback and exit
begin
prog = mplayer
button = STOP
repeat = 3
config = quit
end

# Mute
begin
prog = mplayer
button = MUTE
repeat = 3
config = mute
end

# Seek back 10 seconds
begin
prog = mplayer
button = LEFT
repeat = 3
config = seek -10
end

# Seek forward 30 seconds
begin
prog = mplayer
button = RIGHT
repeat = 3
config = seek +30
end

# Quit
begin
prog = mplayer
button = BACK/EXIT
repeat = 3
config = quit
end

# Seek forward 10 minutes
begin
prog = mplayer
button = UP
repeat = 3
config = seek +600
end

# Seek backward 10 minutes
begin
prog = mplayer
button = DOWN
repeat = 3
config = seek -600
end

# Toggle full-screen
begin
prog = mplayer
button = GUIDE
repeat = 3
config = vo_fullscreen
end

### Xine lirc setup

begin
prog = xine
button = PLAY
repeat = 3
config = Play
end

begin
prog = xine
button = STOP
repeat = 3
config = Stop
end

begin
prog = xine
button = OFF
repeat = 3
config = Quit
end

begin
prog = xine
button = PAUSE
repeat = 3
config = Pause
end

begin
prog = xine
button = CH+
repeat = 3
config = EventUp
end

begin
prog = xine
button = CH-
repeat = 3
config = EventDown
end

begin
prog = xine
button = VOL-
repeat = 3
config = EventLeft
end

begin
prog = xine
button = VOL+
repeat = 3
config = EventRight
end

begin
prog = xine
button = OK
repeat = 3
config = EventSelect
end

begin
prog = xine
button = BACK/EXIT
repeat = 3
config = Menu
end

begin
prog = xine
button = FFW
repeat = 3
#config = SpeedFaster
config = SeekRelative+60
end

begin
prog = xine
button = REW
repeat = 3
#config = SpeedSlower
config = SeekRelative-60
end

begin
prog = xine
button = FULL
repeat = 3
config = Volume+
end

begin
prog = xine
button = BLANK
repeat = 3
config = Volume-
end

begin
prog = xine
button = MUTE
repeat = 3
config = Mute
end

begin
prog = xine
button = MENU
repeat = 3
config = RootMenu
end

begin
prog = xine
button = SKIP
repeat = 3
config = EventNext
end

begin
prog = xine
button = REPLAY
repeat = 3
config = EventPrior
end

begin
prog = xine
button = GO
repeat = 3
config = OSDStreamInfos
end

begin
prog = xine
button = RED
repeat = 3
config = Quit
end

begin
prog = xine
button = RED
repeat = 3
config = Quit
end

###ebox
begin
prog = eboxy
button = up
repeat = 4
config = UP
end

begin
prog = eboxy
button = down
repeat = 4
config = DOWN
end

begin
prog = eboxy
button = OK
repeat = 4
config = accept
end

begin
prog = eboxy
button = ffwd
repeat = 4
config = FFW
end

begin
prog = eboxy
button = rew
repeat = 4
config = REW
end

begin
prog = eboxy
button = exit
repeat = 0
config = quit
end

begin
prog = eboxy
button = chup
repeat = 4
config = CH+
end

begin
prog = eboxy
button = chdown
repeat = 4
config = CH-
end


Last edited by j0ly on Thu Oct 13, 2005 3:47 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 01, 2005 1:15 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Thanks!

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 4:12 am 
Offline
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location: Calgary, Alberta - Canada!
Im currently Moving my house to a new one, so im writting this from my parents place, which has this setup (the 2 pvr-150's blasting their starchoice receivers.

Here is an update - After running this for a while my remote would stop working for around 10 minutes, and having an older father who doesnt really understand technology to well, it was driving him nuts - in turn, me. So i was in contact with Mark (the orig. how to guy for the pvr150) and he was able to get a new patch working. Please take not in the guide, there are a few things he changed, one being a new patch for the latest SVN version of ivtv (http://ivtvdriver.org/trac/) which happens to be ivtv 0.3.8.

Please check the instructions again when it comes to the IVTV part, and you can see the changes - Thanks

Scott


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 13, 2005 10:14 am 
Offline
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location: Calgary, Alberta - Canada!
K, so this works awesome, i did it to my own frontend setup to control a motorola dct 2500, (i have Shaw Cable here in Canada) here is the lircd.conf i am using for it. This should work for most motorola DCT's (Digital Cable Terminal)



#
# this config file was automatically generated
# using lirc-0.5.5pre8 on Sun Apr 18 11:43:45 1999
#
# contributed by Jens Leuschner <leuschner@gmx.net>
#
# brand: Hauppauge
# model:
# supported devices: WinTV primo; WinTV pci; WinTV radio
#
# This config file will work with both homebrew receivers and
# original Hauppauge TV cards !!!
#

begin remote

name blaster
bits 32
flags RAW_CODES
eps 0
aeps 0
plead 0
gap 333333
repeat_bit 0


begin raw_codes
name 0
1900544
name 1
1900545
name 2
1900546
name 3
1900547
name 4
1900548
name 5
1900549
name 6
1900550
name 7
1900551
name 8
1900552
name 9
1900553
name POWER
1900554
name 0_29_KEY_CH_UP
1900559
name 0_29_KEY_CH_DOWN
1900560
name 0_29_KEY_MUTE
1900561
name 0_29_KEY_VOL_DOWN
1900562
name 0_29_CH_PREVIOUS
1900563
name 0_29_KEY_VOL_UP
1900564
name 0_29_KEY_DISPLAY
1900565
name 0_29_KEY_FAVCH
1900572
name 0_29_KEY_SELECT
1900574
name 0_29_KEY_ENTER
1900587
name 0_29_KEY_AB
1900606
end raw_codes

end remote

begin remote

name Hauppauge
bits 13
flags SHIFT_ENC
eps 30
aeps 100

one 950 830
zero 950 830
plead 960
gap 89584
repeat_bit 2

begin codes
TV 0x000000000000100F
RADIO 0x000000000000100C
FULL_SCREEN 0x000000000000102E
CH+ 0x0000000000001020
CH- 0x0000000000001021
VOL- 0x0000000000001011
VOL+ 0x0000000000001010
MUTE 0x000000000000100D
SOURCE 0x0000000000001022
1 0x0000000000001001
2 0x0000000000001002
3 0x0000000000001003
4 0x0000000000001004
5 0x0000000000001005
6 0x0000000000001006
7 0x0000000000001007
8 0x0000000000001008
9 0x0000000000001009
0 0x0000000000001000
RESERVED 0x000000000000101E
MINIMIZE 0x0000000000001026
end codes

end remote


#
# this config file was automatically generated
# using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
#
# contributed by
#
# brand: Hauppauge
# model no. of remote control:
# devices being controlled by this remote: PVR 2/350
#

begin remote

name hauppauge_pvr
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100

one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2


begin codes
Power 0x00000000000017FD
Go 0x00000000000017FB
1 0x00000000000017C1
2 0x00000000000017C2
3 0x00000000000017C3
4 0x00000000000017C4
5 0x00000000000017C5
6 0x00000000000017C6
7 0x00000000000017C7
8 0x00000000000017C8
9 0x00000000000017C9
Back/Exit 0x00000000000017DF
0 0x00000000000017C0
Menu 0x00000000000017CD
Red 0x00000000000017CB
Green 0x00000000000017EE
Yellow 0x00000000000017F8
Blue 0x00000000000017E9
Ch+ 0x00000000000017E0
Ch- 0x00000000000017E1
Vol- 0x00000000000017D1
Vol+ 0x00000000000017D0
Ok 0x00000000000017E5
Mute 0x00000000000017CF
Blank 0x00000000000017CC
Full 0x00000000000017FC
Rewind 0x00000000000017F2
Play 0x00000000000017F5
Forward 0x00000000000017F4
Record 0x00000000000017F7
Stop 0x00000000000017F6
Pause 0x00000000000017F0
Replay 0x00000000000017E4
Skip 0x00000000000017DE
end codes

end remote


#
# this config file was automatically generated
# using lirc-0.7.0(any) on Sun Nov 28 20:25:09 2004
#
# contributed by
#
# brand: Hauppauge 350
# Created: G.J. Werler (The Netherlands)
# Project: Mythtv Fedora Pundit-R www.mythtvportal.com
# Date: 2004/11/28
# model no. of remote control: Hauppauge A415-HPG
# devices being controlled by this remote: PVR-350
#

begin remote

name Hauppauge_350
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100

one 969 811
zero 969 811
plead 1097
gap 114605
toggle_bit 2


begin codes
Go 0x00000000000017BB
Power 0x00000000000017BD
TV 0x000000000000179C
Videos 0x0000000000001798
Music 0x0000000000001799
Pictures 0x000000000000179A
Guide 0x000000000000179B
Radio 0x000000000000178C
Up 0x0000000000001794
Left 0x0000000000001796
Right 0x0000000000001797
Down 0x0000000000001795
OK 0x00000000000017A5
Back/Exit 0x000000000000179F
Menu/i 0x000000000000178D
Vol+ 0x0000000000001790
Vol- 0x0000000000001791
Prev.Ch 0x0000000000001792
Mute 0x000000000000178F
Ch+ 0x00000000000017A0
Ch- 0x00000000000017A1
Record 0x00000000000017B7
Stop 0x00000000000017B6
Rewind 0x00000000000017B2
Play 0x00000000000017B5
Forward 0x00000000000017B4
Replay/SkipBackward 0x00000000000017A4
Pause 0x00000000000017B0
SkipForward 0x000000000000179E
1 0x0000000000001781
2 0x0000000000001782
3 0x0000000000001783
4 0x0000000000001784
5 0x0000000000001785
6 0x0000000000001786
7 0x0000000000001787
8 0x0000000000001788
9 0x0000000000001789
Asterix 0x000000000000178A
0 0x0000000000001780
# 0x000000000000178E
Red 0x000000000000178B
Green 0x00000000000017AE
Yellow 0x00000000000017B8
Blue 0x00000000000017A9
end codes

end remote


Top
 Profile  
 
 Post subject: ivtv 0.4.0?
PostPosted: Mon Oct 17, 2005 8:14 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
Has anyone had success using this with ivtv 0.4.0? Everything seems to go smoothly for me until I get to the channel changing script, which gives me an error. I'm not at home right now, so I can't get very specific with the error. Would ivtv 0.4.0 have any effect on the channel change script?

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 9:26 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
If you follow the link to the origin site where the information was first posted, you'll stated issues w/ channel changing and a patch. I do believe these have been incorporated into 0.4.0.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 16 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