<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="sans-serif">Hi,<br>
<br>
Is there a module that can run a (configurable) shell command when<br>
</font>
<ul>
<li><font face="sans-serif">sound output is needed, i.e. an
application plays a sound, and it's not muted<br>
</font></li>
<li><font face="sans-serif">no sound output is needed anymore,
after a certain configurable timeout, e.g. no sound played in
the last 120 minutes</font></li>
</ul>
? Effectively, this would work exactly like a screen saver, just for
sound, not for the screen/input.<br>
<br>
Reason is the same: I currently have my amplifier and speakers
running 24/7, because they are connected to the HTPC, I need them as
alarm clock etc.. I would like them to turn off automatically when I
haven't played any sound in 2h, and turn them on again immediately
automatically when any sound is played. On the hardware side, I can
use a power switch connected via USB. I'd control it with a simple
shell script, and pulse would just call that, one command for "on",
one for "off".<br>
<br>
I do not want solutions that constantly poll the state, using
running pacmd once a minute or similar.<br>
<br>
Does that exist exist already? If not, I guess it wouldn't be hard?<br>
<br>
Ben<br>
</body>
</html>