Page 1 of 1

Another mythtv question

Posted: Tue Feb 17, 2009 8:12 pm
by spotslayer
Evening all, Well I have an issue with my remote setup with my mythtv box.

<Background>
I bought a mythbox from an acquaintance who could not make it work. Lot of issues. I got most ironed out.

Here is the problem I am having. I had to create the lircrc file and it seems to work fine, except for one thing. When I push one of the keys that key is repeated several times. Makes it real hard to change channels. It is like key bounce. Here is a sample of the code. I have played with the repeat and delay and have not seen any change. Maybe this is not the place to fix this. Is there some other place to try and fix this? Any suggestions or ideas.

begin
remote = hauppauge_pvr
prog = mythtv
button = 7
config = 7
repeat = 0
delay = 3

This is just one push of 7. Sometime it is repeated as many as 4 times.

david@mythtv:~$ irw
0000000000001787 00 7 hauppauge_pvr
0000000000001787 01 7 hauppauge_pvr

All the buttos work and do what they are suppose to, just do it several times.

David
:( :(

Re: Another mythtv question

Posted: Wed Feb 18, 2009 4:48 am
by Peter64
G'day spotslayer

From what I understand most remotes send the same code multiple times to make sure that at least one code comes through to the receiver, mine for instance will send 4 each key press. The default lirc setup is suppose to ignore repeated triggers. If you want to use the button to do things repeatedly like turning the volume up and down then you need to use the delay = fuction, so try removing the delay line,

My config file consist of nothing more than:

begin
prog = mythtv
button = 1
config = 1
end

begin
prog = mythtv
button = 2
config = 2
end

Hope this helps

Peter

Re: Another mythtv question

Posted: Wed Feb 18, 2009 7:44 am
by spotslayer
Thank's Peter. I will give that a shot. The problem is when I push a number button that number is repeated up to 4 time. The box tries to change to 7777 or 4444. I will give your suggestion a shot. I have tried about a billion other things.

David

Re: Another mythtv question

Posted: Wed Feb 18, 2009 11:01 am
by Patrick
Let me check my lirc configuration files. One question, are you using a channel changing script with an IR blaster? If so try sending channel changes from the command line and see if the problem persists. If it does it may be your channel changing script.

Re: Another mythtv question

Posted: Wed Feb 18, 2009 8:18 pm
by spotslayer
I cannot figure out how this guy has this configured. I got it and the database was pretty messed up. I rebuilt that and have everythin working but this remote. There are hundreds of thousands of google hits for the pvr-150 and the silver remote. I am not alone. Part of this was installed with apt-get and part was compiled. Now not being the patient type I went and installed mythbuntu, this way I know what I have done. Still no working remote. It semi works but no channel changing.

Pat I was using the change-channel-lirc.pl. Did not work when I tried changing from the command line. I checked the blaster with a digital camera, and it was blinking.

This prompts two questions.

I think I heard Allan say he used knopmyth because it was the only one that worked with his setup. I also think he uses hauppauge. Maybe I should give linhes.

Does anyone know of a capture card that will work out of the box with mythbuntu? I am basically lazy and don't like to work when I get home from work.

I really like the myth month. I just can't wait to get things working so I can get in on the fun.

David

If one of you could PM me the conf files I would sure like to see what a working one looks like. I am pretty sure it is my screw up. Just can't find it.

Re: Another mythtv question

Posted: Wed Feb 18, 2009 8:28 pm
by Patrick
spotslayer wrote:Pat I was using the change-channel-lirc.pl. Did not work when I tried changing from the command line. I checked the blaster with a digital camera, and it was blinking.
If your channel changing script does not work from the command properly then it definitely won't work when it's triggered by your remote. First step is to fix your channel changing script so that it works correctly. As far as a capture card that works out of the box with SD the Hauppauge 150 is that card. The capture part and the channel changing part are two separate issues entirely. Does the capture card work when you set it to record at 8:00 PM? In other words does it start the recording at the time you set it in Myth? If so it's working correctly.

Re: Another mythtv question

Posted: Wed Feb 18, 2009 9:25 pm
by spotslayer
Well I am pretty sure I have a problem with configuration files. When I run irw I get this.

connect: Connection refused

I have tried two channel change scripts. I you know of a better one please point me in the right direction.

change-channel-lirc.pl
change-channel-lirc.sh

Same results with each. These are the scripts that ship with mythbuntu. I have followed the help.ubuntu page for setting up remotes.

These are my devices. The second /dev/lircd1 just showed up for the first time now. Before it wasn't there.

crw-rw---- 1 root root 61, 0 2009-02-18 20:10 /dev/lirc0
crw-rw---- 1 root root 61, 1 2009-02-18 20:10 /dev/lirc1
srw-rw-rw- 1 root root 0 2009-02-18 20:10 /dev/lircd
srw-rw-rw- 1 root root 0 2009-02-18 20:10 /dev/lircd1

I am new to mythtv and lirc but not to ubuntu. I know I have a f-up somewhere but just cant find it, and being unfamiliar with what I am doing I am not sure where to look next. I am going out of town for the next four days. Maybe my mind will clear while I am gone and when it is fresh maybe I will find this. I am open to suggestions. I will try out anything. I still may want to give linhes a try, but I am just so use to kubuntu that I thought this would be an advantage.

David

Re: Another mythtv question

Posted: Thu Feb 19, 2009 7:42 am
by Patrick
Sounds like you might have a permissions issue. Chmod your change channel scripts to allow execution: 'sudo chmod 755-change-channel-lirc.pl'

Try running the script from the command line again.

Re: Another mythtv question

Posted: Sun Feb 22, 2009 5:51 pm
by spotslayer
Well I am back from my weekend of mountain biking in the Texas Hill country, with all my skin intact. That is a lot more than I can say for my 24 year old son. He left quite a bit on those Texas boulders. 8) 8)
Patrick wrote:Sounds like you might have a permissions issue. Chmod your change channel scripts to allow execution: 'sudo chmod 755-change-channel-lirc.pl'

Try running the script from the command line again.
Thank's for that suggestion Pat. Actually that was one of the first things I tried. I did a dpkg-reconfigure lirc and now the irw is responding again. The remote still does not work however. Now I get this when I run the change channel script.

irsend: could not connect to socket
irsend: No such file or directory

I am seriously considering exchanging my cable box for one with a firewire port and hoping it will work. I am really hot to get this working so I can get in on all the mythtv goodness.

D

Re: Another mythtv question

Posted: Mon Feb 23, 2009 9:17 am
by Patrick
spotslayer wrote:The remote still does not work however. Now I get this when I run the change channel script.

irsend: could not connect to socket
irsend: No such file or directory
Sounds like you lirc daemon is not running properly. It's not even a question of the remote being configured properly at this point. What version of MythTV and distro are you running?

Re: Another mythtv question

Posted: Mon Feb 23, 2009 6:36 pm
by spotslayer
I am pretty sure it is running.

david@mythtv:~$ ls -l /dev/lirc*
crw-rw---- 1 root root 61, 0 2009-02-22 20:19 /dev/lirc0
crw-rw---- 1 root root 61, 1 2009-02-22 20:19 /dev/lirc1
srw-rw-rw- 1 root root 0 2009-02-22 20:45 /dev/lircd
srw-rw-rw- 1 root root 0 2009-02-22 20:45 /dev/lircd1

david@mythtv:~$ irw
00000000000017bd 00 POWER hauppauge_pvr
00000000000017bd 01 POWER hauppauge_pvr
0000000000001795 00 DOWN hauppauge_pvr
0000000000001795 01 DOWN hauppauge_pvr

I have the latest version of mythbuntu 8.10 installed. I also notice that when I press the channel number buttons those numbers show on the screen and the info box shows at the bottom of the screen. The screen freezes momentarily and then nothing. The info box goes away and the channel stays the same. The cable box does respond as I see the lights on the cable box flicker.

We may need to take this discussion off of the forum. I am not sure as, you are a moderator. If you want to take it off send me a pm, I will gladly do so.

The month of myth is fueling my fire.

D :oops:

Re: Another mythtv question

Posted: Tue Feb 24, 2009 9:42 am
by Patrick
spotslayer wrote: david@mythtv:~$ irw
00000000000017bd 00 POWER hauppauge_pvr
00000000000017bd 01 POWER hauppauge_pvr
0000000000001795 00 DOWN hauppauge_pvr
0000000000001795 01 DOWN hauppauge_pvr

I also notice that when I press the channel number buttons those numbers show on the screen and the info box shows at the bottom of the screen. The screen freezes momentarily and then nothing. The info box goes away and the channel stays the same. The cable box does respond as I see the lights on the cable box flicker.
sounds like you have the lirc daemon running. You should be able to fire off change channel commands from the command line and have the blaster work correctly.

Please post a link to your lircd.conf file. In my lircd.conf file I have my cable box defined as DCT700.
When I type 'irsend SEND_ONCE DCT700 info' the cable box sends a single pulse and the info dialog on cable menus is displayed on the tv

Maybe you emitter is not placed in the "sweet spot"

this is a guide I wrote up for my box:
https://help.ubuntu.com/community/Motor ... t=(dct700)

typing 'irsend SEND_START DCT700 info' will send out a steady pulse
you cable box should be going apeshit if the irblaster is in the sweetspot

Maybe you can jump on the IRC for a few minutes to give more details.

Re: Another mythtv question

Posted: Thu Mar 05, 2009 6:00 pm
by spotslayer
Just thought I would give a follow up on this. After I listened to the mythdora show and heard that the pvr150 driver was a "mess" I decided to look for another solution. I found the following firewire changer on a ubuntu forum. It would be the mythchanger. Works real well.

https://wiki.ubuntu.com/majoridiot

I am going to look at the tatir when it is ready and I would also like to check out an mce blaster. Could someone give me a recommendation on a blaster?

D

Re: Another mythtv question

Posted: Thu Mar 05, 2009 7:35 pm
by Patrick
spotslayer wrote:I am going to look at the tatir when it is ready and I would also like to check out an mce blaster. Could someone give me a recommendation on a blaster?
MCE Remote & Reciever/Blaster goes for about $30
http://www.mythtv.org/wiki/MCE_Remote

http://www.amazon.com/Microsoft-Media-C ... 590&sr=8-1