Author |
Message |
Antebios
|
Posted: Thu May 03, 2007 7:51 pm |
|
Joined: Tue Jan 17, 2006 10:07 pm
Posts: 58
|
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.
|
|
Top |
|
|
spock
|
Posted: Sat May 19, 2007 11:23 pm |
|
Joined: Thu Mar 29, 2007 3:21 am
Posts: 5
|
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!!
_________________ R5F1
AMDK7 MoBo
Athlon 1.8GHz
512 Sheep
250Gb HDD
Nvidia GeForce 4 Ti 4200 GPU
Murphy's Law: Everything is a Tier 1 system till you play with it......
|
|
Top |
|
|
slowtolearn
|
Posted: Sun May 20, 2007 7:41 am |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
|
Top |
|
|
spock
|
Posted: Sun May 20, 2007 8:06 am |
|
Joined: Thu Mar 29, 2007 3:21 am
Posts: 5
|
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...
I think I need spoon feeding! thanks for your prompt reply!!
_________________ R5F1
AMDK7 MoBo
Athlon 1.8GHz
512 Sheep
250Gb HDD
Nvidia GeForce 4 Ti 4200 GPU
Murphy's Law: Everything is a Tier 1 system till you play with it......
|
|
Top |
|
|
slowtolearn
|
Posted: Sun May 20, 2007 8:34 am |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
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... 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.
|
|
Top |
|
|
spock
|
Posted: Fri May 25, 2007 8:05 pm |
|
Joined: Thu Mar 29, 2007 3:21 am
Posts: 5
|
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.
_________________ R5F1
AMDK7 MoBo
Athlon 1.8GHz
512 Sheep
250Gb HDD
Nvidia GeForce 4 Ti 4200 GPU
Murphy's Law: Everything is a Tier 1 system till you play with it......
|
|
Top |
|
|
Greg Frost
|
Posted: Sat May 26, 2007 12:31 am |
|
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location:
Adelaide, Australia
|
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.
Last edited by Greg Frost on Tue Jan 15, 2008 3:20 pm, edited 1 time in total.
|
|
Top |
|
|
spock
|
Posted: Sat May 26, 2007 1:32 am |
|
Joined: Thu Mar 29, 2007 3:21 am
Posts: 5
|
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.
_________________ R5F1
AMDK7 MoBo
Athlon 1.8GHz
512 Sheep
250Gb HDD
Nvidia GeForce 4 Ti 4200 GPU
Murphy's Law: Everything is a Tier 1 system till you play with it......
|
|
Top |
|
|
fitech
|
Posted: Tue Jan 15, 2008 8:46 am |
|
Joined: Tue Jan 08, 2008 11:38 am
Posts: 14
Location:
Weymouth, MA
|
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.
|
|
Top |
|
|
tjc
|
Posted: Tue Jan 15, 2008 7:21 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
|
Top |
|
|
snaproll
|
Posted: Sun Jan 20, 2008 10:51 am |
|
Joined: Sun Jul 24, 2005 4:16 pm
Posts: 508
Location:
Ft. Worth TX
|
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.....
|
|
Top |
|
|
tophee
|
Posted: Mon Feb 04, 2008 12:10 pm |
|
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location:
London, UK
|
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
_________________ Version:R8 Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)
|
|
Top |
|
|