[mythtv-users] Which remote code set and LIRC file should I pick for my MX-500?
James Crow
james at ultratans.com
Mon Jul 21 20:58:21 UTC 2008
On Mon, 2008-07-21 at 07:58 -0700, Allen Edwards wrote:
> Dan Wilga wrote:
> > I have an MX-500, and I've rarely found a predefined config inside the
> > remote that works well in every situation. Instead, I "taught" it using
> > the Hauppaugue remote that came with my PVR-350. I also added the stock
> > PhilipsRC5 config from the LIRC database and, from time to time, teach
> > the 500 a new button using the IR blaster (USB-UIRT) attached to my Myth
> > box.
> >
> > The wonderful thing about having a remote with NV-RAM to hold the
> > settings is that they never get lost. I've had my MX-500 for probably 5
> > years, and just keep evolving the setup as needed.
>
> Thanks for the reply,
>
> I came to the same conclusion. I picked a remote I had left over from a
> dead DVD player. All is working but I have that one question of where
> do I put the command "lircd -H udp -d 5000" that starts lirc to play
> with my HD HomeRun? I guess I could experiment but I wonder where the
> preferred spot is? Documentation online looks way too complex and I
> suspect it is not up to date with my mythbuntu 8.04 system.
>
> Allen
>
Allen,
I haven't followed the complete thread you have about this problem,
but I have been playing around with LIRC on Ubuntu 8.04 for a bit. If I
were trying to accomplish what you seem to be I think you should modify
the /etc/init.d/lirc file. Around line 159 is this:
157 log_end_msg $?
158 fi
159 ;;
160 stop)
Just before the ;; line you can add in something like this:
# run extra lircd command to activate the HDHomeRun
log_daemon_msg "Starting remote control on HDHomeRun"
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- -H udp -d
5000
log_end_msg $?
# if needed you can also make the startup pause by adding a sleep
sleep 3 # sleeps for 3 seconds to give the HDHR time to do its thing
The start-stop-daemon line is most likely wrapped. Please note I have
not tested this, but it should do what you want and will also look like
a normal part of the Ubuntu boot. The one gotcha is that when the next
update to lirc comes out (either via normal Hardy updates or a
dist-upgrade) it will ask you if you want to keep your
existing /etc/init.d/lirc file or use the package maintainers version.
HTH
James
More information about the mythtv-users
mailing list