LinHES Forums http://forum.linhes.org/ |
|
homebrew receiver w/ lirc http://forum.linhes.org/viewtopic.php?f=2&t=13422 |
Page 1 of 2 |
Author: | averyml [ Wed Jan 10, 2007 3:07 pm ] |
Post subject: | homebrew receiver w/ lirc |
Since completely rebuilding my system with completely new components and upgrading to R5E50, I haven't been able to get my homebrew ir receiver working...I've spent days searching knoppmyth forums, lirc docs, and anyplace else I can think of, and nothing has worked to get my ir receiver to even acknowledge the remote. I'm beginning to think I may have physically damaged the receiver...I'm not exactly sure how to word my question, but what I'm looking for is the most basic point at which I can tell whether or not it is working...I have /dev/lirc0, but I'm not sure if that means the computer actually detected it, or if it's there because I told it it should be when I ran the lirc-reconfigure script. Make sense? |
Author: | thornsoft [ Wed Jan 10, 2007 3:23 pm ] |
Post subject: | |
Did you follow the wiki, and did irw give any output? I also found I could get funny output with this: tail -f \dev\lirc0 It was enough to see that it was working, anyway. |
Author: | averyml [ Wed Jan 10, 2007 4:36 pm ] |
Post subject: | |
irw gives me nothing. I hadn't tried tail -f /dev/lirc0 until now, but that also gives me nothing. So does that necsarily mean it's broken, or could it be something else? |
Author: | Greg Frost [ Wed Jan 10, 2007 4:49 pm ] |
Post subject: | |
irw requires lircd to be configured correcly. The most basic test you can do is using mode2 (from memory): Code: mode2 -d /dev/lirc0 Then point your remote and press buttons and you should see mark/space information. If that doesnt work, it could be:
2. lirc-serial module not loaded correctly (although the existence of /dev/lirc0 suggests that this would probbaly not be the case). 3. The lirc-serial module may by using the wrong com port (you are using com1 arent you)? 4. Broken receiver. |
Author: | averyml [ Wed Jan 10, 2007 7:10 pm ] |
Post subject: | |
Thanks Greg, that was exactly what I was looking for! Turns out, I had the wrong com port:-( I probably never would have thought to check that. Irw still doesn't work, but mode2 does, so at least I know the hardware is working fine, and I go back to configuring everything correctly. Thank you! |
Author: | averyml [ Thu Jan 11, 2007 2:08 am ] |
Post subject: | |
grrr...I'm so confused! I feel like I'm really close but not quite there...I got irrecord working fine, created my lircd.conf and my lircrc...I had trouble getting irw to work, but after messing around with it for three hours, it finally started working...but, the remote does nothing with mythtv, mplayer, or anything else...how is this possible? My lircrc is configured correctly, and none of the buttons work, so I seriously doubt it could be a typo or something of the sort. It is supposed to be in /home/mythtv/.mythtv/lircrc, right? Any help? |
Author: | Greg Frost [ Thu Jan 11, 2007 5:05 am ] |
Post subject: | |
Does your lircrc require irexec or irxevent to be running? If so, open an xterm (alt-x) and run launch_irx.sh (I think thats what its called. just do laun<tab>). |
Author: | averyml [ Thu Jan 11, 2007 2:03 pm ] |
Post subject: | |
I'm not sure if it does, but running it doesn't make things work:-/ |
Author: | glennph93 [ Fri Jan 12, 2007 3:53 pm ] |
Post subject: | |
I'm having the same problem, I recompiled lirc(what a pain). Nothing has worked except for: Code: mode2 -d /dev/lirc0
My .lircrc and lircd.conf is the same as R5D1. Did the keys change or prog = mythtv change? |
Author: | Greg Frost [ Fri Jan 12, 2007 4:19 pm ] |
Post subject: | |
You could be having the problem where the lircd daemon is not being passed its arguments (which it now needs because it needs to use /dev/lirc0 instead of defaulting to /dev/lirc). Edit /etc/init.d/lirc and make sure the line that starts lirc looks like this: Code: start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS\ The inportant addition being the "-- $LIRCD_ARGS" bit
< /dev/null |
Author: | glennph93 [ Fri Jan 12, 2007 4:37 pm ] |
Post subject: | |
It seems to be right for me. My dmesg dosen't give me any error messages listed in that script either. Code: mythtv@mythtv:~$ dmesg | grep lirc
lirc_dev: IR Remote Control driver registered, at major 61 lirc_serial: auto-detected active low receiver lirc_dev: lirc_register_plugin: sample_rate: 0 |
Author: | glennph93 [ Fri Jan 12, 2007 7:14 pm ] |
Post subject: | |
Looked a little closer and found that the version I compiled is not the version installed.(had errors during make install) Code: lircd -v
lircd 0.8.1-CVS-pvr150 I'm thinking the pvr150 at the end means its the driver used for the pvr card and not my homebrew serial. Should I try to remove it? |
Author: | glennph93 [ Fri Jan 12, 2007 7:45 pm ] |
Post subject: | |
Well mine is finally working hooray!! Not sure why it wasn't, it may have been a combination of things: 1. bootmisc.sh had only one entry Code: setserial /dev/ttyS0 uart none 2. /etc/lirc/hardware.conf had these entries Code: DEVICE="/dev/lirc0" MODULES="lirc_dev lirc_serial" 3. Restarted lircd Code: /etc/init.d/lirc restart
4. oh yeah believe it or not my biggest hurdle restart the frontend Thanks alot I thought of one more thing I did before I restarted lirc, I removed lircnav additions from my .lircrc (might have had something to do with it since lircnav doesn't appear to be in R5E50) |
Author: | averyml [ Wed Jan 17, 2007 4:56 pm ] |
Post subject: | |
my /etc/init.d/lirc appears to be correct. I'm glad you got yours working glennph93, and I'm hoping if you were having the same problems I am, that that's good news for me...but I'm a little confused about how you fixed it...are you saying the the points you listed in your last post are the way they originally were, or what you changed them to? For example, did your bootmisc.sh have other lines and you deleted the others leaving only the setserial line, or did you add others in addition to that line? |
Author: | glennph93 [ Thu Jan 18, 2007 8:34 am ] |
Post subject: | |
Sorry yours is still not working. As for the bootmisc.sh entry I had two others(that I put in) that was in the wiki: Code: modprobe lirc_serial /usr/local/sbin/lircd after looking at the script used in R5E50 that installs lirc it didn't do that it just installed the setserial line and thats the same for the /etc/lirc/hardware.conf file it just changes the two lines Code: DEVICE="/dev/lirc0" MODULES="lirc_dev lirc_serial" After saying all that, I really think my problem was in the .lircrc file with the prog = lircnav entries. I can't be sure (I wish I took better notes) but I think when I restarted lirc before I did that, irw(as normal user) would bomb out and kill lircd(see if thats going on). Maybe you could make a real simple .lircrc file(one entry) and restart lirc and the frontend if that works, you know its that. example: Code: begin
prog = mythtv button = OFF #replace with correct lircd.conf entry config = Esc end |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |