View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Jun 28, 2006 6:54 pm 
Offline
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location: middleton wi usa atsc
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.


Last edited by jzigmyth on Tue Sep 19, 2006 10:53 am, edited 2 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 01, 2006 3:35 pm 
Offline
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location: middleton wi usa atsc
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


Last edited by jzigmyth on Tue Sep 19, 2006 10:46 am, edited 1 time in total.


Top
 Profile  
 
PostPosted: Sun Jul 02, 2006 5:44 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
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

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Last edited by neutron68 on Mon Jul 03, 2006 9:20 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 8:49 am 
Offline
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location: middleton wi usa atsc
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 19, 2006 10:56 am 
Offline
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location: middleton wi usa atsc
Apparently the location of lircd has changed in R5D1. I'll edit my above post to include the changes that worked for me.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu