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

R5C7 R5D1 cant get IR remote to work in Knoppmyth (Resolved)
http://forum.linhes.org/viewtopic.php?f=17&t=10653
Page 1 of 1

Author:  jzigmyth [ Wed Jun 28, 2006 6:54 pm ]
Post subject:  R5C7 R5D1 cant get IR remote to work in Knoppmyth (Resolved)

I built the home brew IR receiver and connected it to Com1 on the PC. I clean installed R5C7 and selected RCA 6 in 1 remote, which I don't have but mine wasn't listed. I then got the correct lircd.conf for my remote (apex) from the lirc.org site and copied it over the one for the RCA 6 in 1 in /etc. and rebooted.

Myth didn't respond to any remote commands so I opened a terminal and typed
Code:
mode2 -m

pressing buttons on the remote fills the screen with numbers. I cntrl-C out of mode2 and try mythtv again but it still doesn't respond to the remote commands!

now I do
Code:
lircd --nodaemon

and in another terminal window I do
Code:
irw
and press buttons on the remote. The irw window responds with
Code:
root@mythtv:/home/mythtv# irw
0000000002fd7887 00 Vol- Apex_K12K-C5
0000000002fd7887 01 Vol- Apex_K12K-C5
0000000002fd58a7 00 Vol+ Apex_K12K-C5
0000000002fd58a7 01 Vol+ Apex_K12K-C5
0000000002fdda25 00 Menu Apex_K12K-C5
0000000002fdda25 01 Menu Apex_K12K-C5
0000000002fdda25 00 Menu Apex_K12K-C5
0000000002fd50af 00 Enter Apex_K12K-C5
for the appropriate buttons pressed.


The lircd window displays:
Code:
root@mythtv:/home/mythtv# lircd --nodaemon
lircd-0.8.0pre4-pvr150[4486]: lircd(all) ready
lircd-0.8.0pre4-pvr150[4486]: accepted new client on /dev/lircd
lircd-0.8.0pre4-pvr150[4486]: removed client

I Cntrl-C out of the "irw" window and then the "lircd" window.

Here is a part of the lircrc file in /home/mythtv/.mythtv
Code:
begin
    prog = mythtv
    button = Enter
    config = Enter
end


begin
    prog = mythtv
    button = Menu
    config = M
end
So you can see that the button names match.

I'm not sure what to do next. It seems like the remote is working fine but Mythtv just isn't seeing or responding to it! What might be the next step in trouble shooting?
Thanks.

Author:  jzigmyth [ Sat Jul 01, 2006 3:35 pm ]
Post subject: 

Ok, here is what worked with my homebrew receiver connected to the first serial port.
Clean install of R5C7.
At the "pick remote" screen select RCA 6 in 1.
No IR blaster.
After install is complete get the correct lircd.conf for your remote from http://lirc.sourceforge.net/remotes/ and copy it over /etc/lircd.conf.
Make sure the button names in the new lircd.conf exactly match the button names in /home/mythytv/.mythtv/lircrc
This is the part that took so long to figure out:
These three lines need to be at the bottom of /etc/init.d/bootmisc.sh
Code:
setserial /dev/ttyS0 uart none
modprobe lirc_serial
/usr/local/sbin/lircd
I had to add the last two manually.
After rebooting, the remote worked great!

************************************
R5D1 UPDATE. Apparently the location of lircd has changed in R5D1. Note the different path in the last line. If you are setting up a clean install of R5D1 use these lines instead of the above lines.
Code:
setserial /dev/ttyS0 uart none
modprobe lirc_serial
/usr/sbin/lircd

***********************************
The odd thing is that I also did another clean install and at the "pick remote" screen I picked #1 (I don't remember what it's name was). After that install none of the 3 needed lines were at the bottom of bootmisc.sh, and even after adding them and using the correct lircd.conf, I couldn't get my remote to work. I then reran /usr/local/bin/lirc-reconfig.sh and picked RCA 6 in 1, like before. Still no luck. No matter what I did I couldn't get my remote working after I had initially picked number 1. So there doesn't seem to be any way to recover from picking the wrong remote. I did another clean install picking the RCA remote first and making the above additions and it works again. :D

Author:  neutron68 [ Sun Jul 02, 2006 5:44 pm ]
Post subject:  your 3 lines made mine work too - why?

I just bought an RS-232 IR receiver-transmitter from http://iguanaworks.net/ir/ and it wasn't working with Mythtv and my Hauppauge silver IR remote. I did all the things you did:
- ran the lirc-reconfig.sh script and picked a Hauppauge remote
- went to lirc.org and got the he correct conf file for the Hauppauge silver remote
- copied that file into my /etc/lircd.conf file
- rebooted

My RS-232 port was still inactive - RS-232 voltages were not correct to power the receiver unit. Then I saw your post and added the 3 lines to the end of the /etc/init.d/bootmisc.sh file and rebooted. After that, the voltages to the IR receiver were correct and Myth tv was responding to my IR remote arrow buttons.

Now, most of the Hauppauge remote buttons do something - not all, but most.

So, why was the 3-line addition necessary to make RS-232 LIRC work correctly? I thought the support was already included in KnoppMyth.

Eric

Author:  jzigmyth [ Mon Jul 03, 2006 8:49 am ]
Post subject: 

Hi Neutron68. When they say IR support is built in, I think it means lirc is already compiled and installed in Knoppmyth. There just seems to be some configuration bugs for the serial port receivers. For instance depending on which remote you pick, you might only have to add 2 extra lines instead of 3, one is already added by the install script in some instances.

It does seem like a configuration bug because before the 3 lines are added, you can see lircd get started during the boot process as all the boot lines go flying by, and "top" reports lircd running. After adding the 3 lines, the booting messages list a report that "lircd is already running" so the OS has started it running already, but it must have not been started with the right parameters or something, because starting it again from the 3 lines of code in bootmisc.sh makes it work right.

Also, before the 3 lines are added "top" doesn't show "irexec" running, but after booting with the 3 line addition irexec is running.

I don't know much about Linux, perhaps there is a way to change the way lircd was originally started to be correct, so that adding lines to bootmisc.sh isn't necessary, but I don't know where lircd is originally started.

I would be willing to do another clean install or two for testing, if someone has an idea of what changes to do to make the fix more elegant.

Author:  jzigmyth [ Tue Sep 19, 2006 10:56 am ]
Post subject: 

Apparently the location of lircd has changed in R5D1. I'll edit my above post to include the changes that worked for me.

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