Author |
Message |
mihanson
|
Posted: Tue Oct 18, 2005 4:59 pm |
|
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location:
Los Angeles
|
The script seems to be working for me now with ivtv-0.4.0 (without patching the i2c). Go figure. Maybe I just had to reboot before testing the script. This was a great write up. Thanks everyone!
Mike
|
|
Top |
|
|
j0ly
|
Posted: Tue Oct 18, 2005 7:42 pm |
|
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location:
Calgary, Alberta - Canada!
|
your welcome
Im going to upgrade mine to ivtv4.0, and ill update the writeup asap.
|
|
Top |
|
|
j0ly
|
Posted: Fri Oct 21, 2005 10:26 am |
|
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location:
Calgary, Alberta - Canada!
|
all right,
So i went and setup another box for a friend last night with the newest release of knoppmyth (r522) everything installed just perfect, and thank you Cecil for includeing the send_power_new scripts and such in the install (im happy it made it in)
The blaster is working perfect, the remote on the other hand has been flaky... it is not being reconized out of the box, seems to not like me anymore, so here i am, trying to get this remote reconized, so far i am retracing my steps from the walkthrough, skipping the lirc (pvr 150 edition of marks) and the ivtv steps, and still nothing, even IRW is not picking up on anything.
im tapped out for ideas... anyone?
|
|
Top |
|
|
j0ly
|
Posted: Fri Oct 21, 2005 10:50 am |
|
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location:
Calgary, Alberta - Canada!
|
alright, to answer myself - i shut the system down, unplugged the power, hit the power button (yes with it unplugged) to discharge any power left in the system - plugged it back in, and powered it on, and shes working again. Weird.
k jumped the gun there, there still seems to be a problem. rebooting it brings it back to the non-working state.
any ideas?
|
|
Top |
|
|
joelones
|
Posted: Fri Nov 04, 2005 6:40 pm |
|
Joined: Fri Nov 04, 2005 6:38 pm
Posts: 3
|
Went back to 0.3.8 as 0.4.0 was causing problems. Got this in /var/log/messages:
Nov 3 23:23:59 tuse lirc_dev: IR Remote Control driver registered, at major 61
Nov 3 23:23:59 tuse lirc_pvr150: no version for “lirc_unregister_plugin” found: kernel tainted.
Nov 3 23:23:59 tuse lirc_pvr150: ivtv i2c driver #0: no devices found
and …..
Nov 3 23:20:17 tuse lircd-0.7.2[7796]: lircd(hauppauge_pvr150) ready
Nov 3 23:20:20 tuse lircd-0.7.2[7796]: accepted new client on /dev/lircd
Nov 3 23:20:20 tuse lircd-0.7.2[7796]: could not open /dev/lirc0
Nov 3 23:20:20 tuse lircd-0.7.2[7796]: default_init(): No such device
Nov 3 23:20:20 tuse lircd-0.7.2[7796]: caught signal
i2cdetect gave:
i2c-1 unknown SMBus Via Pro adapter at 5000 Algorithm unavailable
i2c-0 unknown ivtv i2c driver #0 Algorithm unavailable
The i2c.patch did not apply cleanly to 0.4.0 as two hunks failed. Any others with the same problem? Running Linux 2.6.12-gentoo-r9.
Have others got 0.4.0 to work?
|
|
Top |
|
|
j0ly
|
Posted: Fri Nov 04, 2005 6:44 pm |
|
Joined: Sat Feb 05, 2005 3:26 pm
Posts: 121
Location:
Calgary, Alberta - Canada!
|
you dont need to patch 0.4.0, this patch only applys to 0.3.9 and under (doen to 0.3.6 if i remember right), 0.4.0 is already prepatch (this patch went in to production then) ...
Thanks... and yes, i have this working right out of the box with r5a22 (0.4.0)
- Scott
|
|
Top |
|
|
zetoune
|
Posted: Thu Nov 10, 2005 11:37 pm |
|
Joined: Sun Oct 16, 2005 12:15 pm
Posts: 288
|
It almost works for me but...
I can change channels on my cable box with ./chan_change.sh channel_i_want
Remote does work in MythTv.
But when I try to change channels in Watching TV , channels change in MyThTV but IrBlaster doesn't any signal to my cable box.
I did add the command /usr/local/bin/chan_change.sh in external command in backend.
Any idea?
|
|
Top |
|
|
mihanson
|
Posted: Fri Nov 11, 2005 11:39 am |
|
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location:
Los Angeles
|
I had a problem with this too. Try this...
Take a look at your chan_change.sh script. It should look like this if you copied and pasted from this guide:
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 See the line: Quote: /usr/local/bin/irsend SEND_ONCE $REMOTE_NAME $digit My irsend was not located in Quote: /usr/local/bin . Do a Code: locate irsend | less and see where it lives. Mine was in Quote: /usr/bin . If this is the case, just change that line of code in chan_change.sh to: Code: /usr/bin/irsend SEND_ONCE $REMOTE_NAME $digit . OR if that's not it... When you were testing the remote using irw it should have spewed out some info on screen about the buttons you were pushing. Something to the effect of: Quote: Hauppague_350 a_bunch_of_hex_code NAME_OF_BUTTON_YOU_PRESSED The name of that remote is what your after, in this case Hauppague_350. Open up your lircd.conf file and either delete or comment out (with #) all the Hauppague remotes that are not yours. Here's my lircd.conf file for you to see. Hope this helped. 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 2152923136 name 1 2152923137 name 2 2152923138 name 3 2152923139 name 4 2152923140 name 5 2152923141 name 6 2152923142 name 7 2152923143 name 8 2152923144 name 9 2152923145 name POWER 2152923146 name CH_UP 2152923151 name CH_DOWN 2152923152 name MUTE 2152923153 name VOL_DOWN 2152923154 name CH_PREVIOUS 2152923155 name VOL_UP 2152923156 name DISPLAY 2152923157 name EXIT 2152923160 name GUIDE 2152923163 name SELECT 2152923166 name AV 2152923177 name SAT 2152923178 name ENTER 2152923179 name MENU 2152923183 name MUP 2152923184 name MDOWN 2152923185 name MLEFT 2152923186 name MRIGHT 2152923187 end raw_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
_________________ Mike
My Hardware Profile
|
|
Top |
|
|
zetoune
|
Posted: Fri Nov 11, 2005 4:22 pm |
|
Joined: Sun Oct 16, 2005 12:15 pm
Posts: 288
|
Ok now, it's totally freak.
Signals are sent to my cable box but not good ones.
example :
I try "2" on my remote, it displays 2 on the screen, but 552 is sent to my cable box.
I try "1", signal sent is 732
I try "6" , signal sent is 832
When I try the script in the command line.
chan_change.sh 2 , only 2 is sent to my cable box.
It works at expected.
so what's my problem doc?
|
|
Top |
|
|
mihanson
|
Posted: Fri Nov 11, 2005 6:56 pm |
|
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location:
Los Angeles
|
What did you do in order to make it "freak." I need more info. I'm assuming you did not copy my lircd.conf file and try to use it. The reason I posted it is so you could see what was in it. My "blaster" section is likely to be different from yours. Can you please post your lircd.conf file?
_________________ Mike
My Hardware Profile
|
|
Top |
|
|
zetoune
|
Posted: Fri Nov 11, 2005 7:34 pm |
|
Joined: Sun Oct 16, 2005 12:15 pm
Posts: 288
|
What did I do? I've modified the chan_changed.sh script as you told me, irsend was not in /usr/local/bin but /usr/bin. After that I commented out remotes that are not mine , called mythfilldatabase , reboot . That's it!
No I didn't use your lirc.conf file. I 've modified mine.
This is my lirc.conf
Code: # # 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 2686976 name 1 2686977 name 2 2686978 name 3 2686979 name 4 2686980 name 5 2686981 name 6 2686982 name 7 2686983 name 8 2686984 name 9 2686985 name POWER 2686986 name CH_UP 2686991 name CH_DOWN 2686992 name CH_PREVIOUS 2686995 name ENTER 2687019 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+ 0x00000000000010103 # 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 in mythbackend-setup, external command is : Code: /usr/bin/local/chan_change.sh
(when I try this syntax in command line it does work)..
Is there any way to see what fronend send to the script when I'm using the remote?
|
|
Top |
|
|
mihanson
|
Posted: Fri Nov 11, 2005 8:24 pm |
|
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location:
Los Angeles
|
zetoune wrote: What did I do? I've modified the chan_changed.sh script as you told me, irsend was not in /usr/local/bin but /usr/bin. After that I commented out remotes that are not mine , called mythfilldatabase , reboot . That's it! <big snip> in mythbackend-setup, external command is : Code: /usr/bin/local/chan_change.sh
(when I try this syntax in command line it does work).. Is there any way to see what fronend send to the script when I'm using the remote?
I don't have a seperate backend. My one box is all encompassing, so I'm not familiar with seperate frontend-backend configurations. If anyone who is familiar with this please feel free to chime in. Just to be thorough, when you tested your remote with irw it did indicate that your remote was recognized as a Hauppague_350? I'm at a loss at the moment as to what the issue is. What I discribed to you earlier worked on my 5A22. Maybe try to delete the other remotes instead of commenting them out? Save your current lircd.conf file under a different name before you go editing.
_________________ Mike
My Hardware Profile
|
|
Top |
|
|
zetoune
|
Posted: Fri Nov 11, 2005 8:35 pm |
|
Joined: Sun Oct 16, 2005 12:15 pm
Posts: 288
|
I don't have separate frontend and backend.
I was just wondering whether I could use the mythtv frontend in a window and see what happens in a shell (what command it sends).
I tried to check, "use frontend in a window" but it 's still fullscreen.
My remote does work perfectly in MythTv , also in Xine and mplayer.
when I try irw, I can see the receiver respond.
example : press 2
I see :
Code: 0000000000001782 00 2 Hauppauge_350
[/code]
|
|
Top |
|
|
zetoune
|
Posted: Fri Nov 11, 2005 10:23 pm |
|
Joined: Sun Oct 16, 2005 12:15 pm
Posts: 288
|
I have modified the script to log what parameters are sent.
I pressed "4", and in the log says:
67250.
so just to be sure, I started irw in the same time and I only see this
Quote: 0000000000001784 00 4 Hauppauge_350
I'm afraid I'm too newbie in linux to try to solve this problem.
Gurus help is welcome .
|
|
Top |
|
|
joelones
|
Posted: Sat Nov 12, 2005 5:14 pm |
|
Joined: Fri Nov 04, 2005 6:38 pm
Posts: 3
|
A new issue has creeped up. I change tv provided and the cable unit that i have received is a Scientific Atlanta Explorer 2000. The send_power_new script does not seem capable of controlling this STB. Any suggestions?
|
|
Top |
|
|