LIRC

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Thelin
Date:  
Subject: LIRC
Test it by running 'mode2' then pushing buttons on your remote. You
should see many lines scroll by showing the raw IR input. Assuming that
works you are ready to start setting up your remote. First start
'lircd' (/etc/init.d/lircd start) then run irrecord. Irrecord takes one
argument which is the name of the file to create. Irrecord is an
interactive program to learn from your remote that will prompt you to
push buttons on the remote and name them. This will generate a remote
definition that you can either copy to /etc/lircd.conf or merge with
other remote definitions into that file. Then you will need to create
your lircrc file. There are examples on the lirc.org site and if you
have source for mythtv or ivtv there are examples there too. If you
installed myth from a binary package there is probably an example there
too but you will have to look for it. Then put the lircrc file in the
home directory for the user you are running myth under name the file
~/.lircrc. Then make sure you start irxevent on before mythfrontend. I
have a script for my .xinitrc file that consists of the following:

fvwm &
irxevent &
mythfrontend >>/tmp/mythfrontend

This will start myth automaticly when that user starts X. To have X
automaticly start as a particular user you can set the autologin flags
if you are running on redhat or another distro that supports this or you
can follow the instructions below.

modify your /etc/inittab to include lines like the following:

id:4:initdefault:
x:4:respawn:/usr/local/sbin/toasterX

notice the new script. Then we create that script.

/usr/local/sbin/toasterX

#!/bin/sh
export PATH=3D$PATH:/usr/X11R6/bin
exec /bin/su mediabox -c "/usr/X11R6/bin/startx" < /dev/tty14 > /dev/tty15

X will now automaticly login in "toaster mode" which means that you will
always login as your myth user and when the myth frontend crashes it
will just restart X and you will be back up and running.

This should be most of what you need from the linux side to get a
mythfrontend running well.

Eric


On Fri, 19 Dec 2003, Ben Coffman wrote:

> I created the ir receiver. Next I emerged Lirc, but I am unsure of what =

to
> do next. I have read some of the documentation from lirc.org and
> mythtv.org, though I am still unclear on where the configuration file is =

and
> how to set up which remote to use...all that junk. If someone could poin=

t
> me in the right direction, I would truly appreciate it.
>
> Thanks,
>
> Ben
>
>
>
> It took me a long time to find a source for them myself. I found Neward
> Electronics to be the best place in the US (most references say to buy
> from conrad.de). I mentioned in my presentation that I would post the
> information about my receiver to the list but I haven't yet so I am
> going to include my complete parts list for a receiver. The only part
> that is hard to get is the receiver IC which is first on the list but
> you can get all the parts shipped and probably still be cheaper than
> buying at radio shack or fry's electronics prices. A complete receiver
> as I recall will cost about $5 in parts + shipping.
>
> Vishay / Siliconix TSOP1738
> Newark part 95B4865
>
> 4.7uf General Purpose Radial Capacitor
> Newark part 92N4995
>
> Fairchild Semiconductor MC78L05ACP (voltage regulator)
> Newark part 38C7376
>
> 4.7 kOhm resistor
> Newark part 94C2271
>
> 1N4148 Switching Diode
> Newark part 95B4971
>
> DB9 Female connector
> Newark part 92N3442
>
> The hood I bought is now discontinued but this one should work fine
> DB9 Hood
> Newark part 02C5759
>
> You can get most information including the schematic about the the
> receiver from lirc.org.
>
>
>
>
> On Tue, 16 Dec 2003, Ben Coffman wrote:
>
> > Where can on get a infrared receiver IC? I am having a reasonably tou=

gh
> > time tracking one down.
> >
> > Thanks,
> >
> > Ben
> >
> > _________________________________________________________________
> > Our best dial-up offer is back. Get MSN Dial-up Internet Service for =

6
> > months @ $9.95/month now! http://join.msn.com/?page=3Ddept/dialup
> >
> > ---------------------------------------------------
> > PLUG-discuss mailing list -
> > To subscribe, unsubscribe, or to change you mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
> _________________________________________________________________
> It=92s our best dial-up Internet access offer: 6 months @$9.95/month. Get=

it
> now! http://join.msn.com/?page=3Ddept/dialup
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>