[mythtv-users] Nice sounds on clicks, startup, etc.

Michael T. Dean mtdean at thirdcontact.com
Tue Aug 21 02:55:04 UTC 2007

On 08/20/2007 09:33 PM, Bill Omer wrote:
> On 8/20/07, Gabe Rubin <gaberubin at gmail.com> wrote:
>> On 8/20/07, Phill Edwards <philledwards at gmail.com> wrote:
>>> Or is it possible to put something in lircrc for each keypress that
>>> would execute a shell script to play a sound? If so I didn't know you
>>> could do that.
>> You can use lirc to execute scripts or commands (or execute files)
>> using irexec.  Just make sure the service is on and you appropriately
>> call it from lircrc.  For example, from Jarod's site (I have a few
>> irexec commands on my box, but I can't access the file from here):
>> # Power Button
>> begin
>> prog = irexec
>> button = OFF
>> #button = POWER # (for my RS15-2116 remote)
>> repeat = 4
>> config = /usr/local/bin/mythpowerbutton.sh
>> end
>> and you can make a script that basically just plays a sound file or
>> perhaps even call aplay.  Just edit the config and button lines to
>> what is appropriate.
> If you add that to your .lircrc, wont it process the irexec bit and
> ignore the prog = mythtv bit?  In other words, if you make it execute
> click.sh via irexec for the "right" button, wont it ignore the "right"
> listing found later in the .lircrc file (assuming you added the irexec
> portion at the beginning of the file)?

Assuming you have two stanzas--one with "prog = irexec" and one with
"prog = mythtv"--both irexec and MythTV will respond to the LIRC
message.  Messages are always sent to /all/ listening programs and the
programs choose whether to ignore them.

The only reason that Myth doesn't respond to LIRC keypresses when you
pop up an external media player from MythVideo (i.e. xine or MPlayer) is
because Myth begins actively ignoring LIRC button presses as soon as it
starts the external player and continues to do so until the external
player exits.


More information about the mythtv-users mailing list