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

Tip on how I got my serial ir receiver working
http://forums.linhes.org/viewtopic.php?f=3&t=15114
Page 1 of 1

Author:  Antebios [ Thu May 03, 2007 7:51 pm ]
Post subject:  Tip on how I got my serial ir receiver working

I've been reading and reading on how to get my generic serial infrared receiver working. So here is a quick small guide and the one item that gave me headaches for days!

1)
Code:
setserial /dev/ttyS0 uart none

2)
Code:
modprobe lirc_serial type=4

They key to the WHOLE problem was "type=4". This was the small option that tied me up for days digging through guides, documentation, BIOS setting after BIOS setting. Cursing at my computer.

3)
Code:
/usr/sbin/lircd

This is assuming I guess of /dev/lirc0, otherwise specify your device:
Code:
/usr/sbin/lircd -d /dev/lirc0


4) To test:
Code:
xmode2 -d /dev/lirc0


5) Point your remote to test the signal!! It finally worked for me!


My next thing to do is create my config files and figure out how to make sure the "type=4" is set for good, even after rebooting.

Author:  spock [ Sat May 19, 2007 11:23 pm ]
Post subject: 

Hi, new to Linux & think MythTV is FAB.
Just made a serial IR receiver & stuck it into the serial port.
Now, using the command
Code:
xmode2 -d /dev/lirc0

I get responses for all button presses.
OK so how do I get MythTV to respond to the remote?
If someone could point me to the correct page...
thanks for any help!!

Author:  slowtolearn [ Sun May 20, 2007 7:41 am ]
Post subject: 

spock wrote:
OK so how do I get MythTV to respond to the remote?
You need to configure lirc - See http://www.knoppmythwiki.org/index.php?page=LIRCHowTo

Author:  spock [ Sun May 20, 2007 8:06 am ]
Post subject: 

Quote:


Please excuse my ignorance, but I waded through all that stuff allready - I'm running R5F1 - it all seems like its for earlier versions. Do I really need to go through all of that un-tarring, recompiling & stuff? Hmph! I thought R5F1 would have been slicker than that - maybe just modify one config file perhaps... :shock:
I think I need spoon feeding! thanks for your prompt reply!!

Author:  slowtolearn [ Sun May 20, 2007 8:34 am ]
Post subject: 

spock wrote:
Quote:


Please excuse my ignorance, but I waded through all that stuff allready - I'm running R5F1 - it all seems like its for earlier versions. Do I really need to go through all of that un-tarring, recompiling & stuff? Hmph! I thought R5F1 would have been slicker than that - maybe just modify one config file perhaps... :shock:
I think I need spoon feeding! thanks for your prompt reply!!
Odds are all you will need to do is create your lircd.conf and lircrc files. As you didn't mention which remote you are trying to get working, I assume it was not one of the selections in /usr/local/bin/lirc-reconfig.sh (?)

See my 2nd post in http://mysettopbox.tv/phpBB2/viewtopic.php?t=15236 where it refers to the HowTo on the Wiki.

Author:  spock [ Fri May 25, 2007 8:05 pm ]
Post subject: 

I've had another lash, but no success. I have ircd.conf and lircrc files intact and they look OK. I am unsure how to get a pasting of my files to this forum for you to look at. (I have an RC6 remote that came with a PVR150, but I'm using my own serial IR receiver not the USB one that came with it. I just need mythtv to recognise the keypresses I think. but it's ignoring the config files. Just seem to be going in circles now.

Author:  Greg Frost [ Sat May 26, 2007 12:31 am ]
Post subject: 

Once you have put your lircd.conf in /etc/lirc and restarted lirc (/etc/init.d/lirc restart) you should be able to run irw and see it print info for each press of a remote button. Once you get that far, you should be able to configure ~mythtv/.lircrc for your remote, restart your frontend and then use your remote to control myth.

Author:  spock [ Sat May 26, 2007 1:32 am ]
Post subject: 

success!!! I had to discard the "geneic" lircrc and lircd. I used
Code:
irrecord -d /dev/lirc0 my_lircd.conf

and then modified lircrc to reflect my custom names for the buttons.
WHEW!!!
Thank you all for your help. writeup to follow soon on what I did.

Author:  fitech [ Tue Jan 15, 2008 8:46 am ]
Post subject:  This was useful

Ah, Finally I found what I was looking for here in this thread. I needed to locate the ~mythtv/.lircrc file so that I could try to customize the red, green, yellow, and blue buttons on my streamzap remote. I don't even know what I will program them to do yet, but I just wanted to play around with them. Thanks Greg.

Author:  tjc [ Tue Jan 15, 2008 7:21 pm ]
Post subject: 

See this post on Understanding LIRC configuration.

Author:  snaproll [ Sun Jan 20, 2008 10:51 am ]
Post subject:  Re: This was useful

fitech wrote:
.... customize the red, green, yellow, and blue buttons on my streamzap remote. I don't even know what I will program them to do yet, but I just wanted to play around with them. Thanks Greg.
Red: Delete... Yellow: Aspect ratio... Blue: Change tuner...
I haven't figured out what to use Green for yet either..... :lol:

Author:  tophee [ Mon Feb 04, 2008 12:10 pm ]
Post subject: 

Having bought myself a serieal reciever (for when I've multiple frontends) I am trying to get it all to work.
I've cut n pasted the commands above and this is what I get as a result. Could anyone shed any light?

Oh, btw: I edited out the serial mouse stuff in the xorg as suggested in the R5F27 Hints and tips.

Code:
root@mythtv:/home/mythtv# setserial /dev/ttyS0 uart none
root@mythtv:/home/mythtv# modprobe lirc_serial type=4
root@mythtv:/home/mythtv# /usr/sbin/lircd
root@mythtv:/home/mythtv# /usr/sbin/lircd -d /dev/lirc0
lircd: there seems to already be a lircd process with pid 3346
lircd: otherwise delete stale lockfile /var/run/lircd.pid
root@mythtv:/home/mythtv#
root@mythtv:/home/mythtv# xmode2 -d /dev/lirc0
X connection to :0.0 broken (explicit kill or server shutdown).


Regards Chris

edit: The last command gives me a funny bluish termanial but nothing works on the remote. It's a hauppauge A415-HPG remote

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