[mythtv-users] Shell script to turn monitor off that almost works

Another Sillyname anothersname at googlemail.com
Mon Jan 17 16:45:10 UTC 2011


On 17 January 2011 16:15, Wayne Thomas <waynethomas69 at gmail.com> wrote:
> mute the volume before you turn the monitor off.
>
> Instead of:
> case "$MONITOR" in
> "On")
> xset dpms force standby
> if [ "$VOLUME" != "0" ] ; then
> mute
> fi
>
>
> Change it to:
> case "$MONITOR" in
> "On")
> if [ "$VOLUME" != "0" ] ; then
> mute
> fi
> xset dpms force standby
>
> I think you will find the action of muting the volume was waking the
> screen up.  The first time you pressed the button this is what has
> occured; the second time you press it the volume is already muted so
> the mute call does not occur.
>
> Cheers
> Wayne
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

If none of the above work why not.....

Put in:-

sleep 4

and then repeat the script again.


More information about the mythtv-users mailing list