[mythtv-users] disable volume osd

Michael T. Dean mtdean at thirdcontact.com
Fri Nov 14 08:29:09 UTC 2008


On 11/14/2008 01:41 AM, Nick Morrott wrote:
> One way to accomplish this across all of MythTV is to disable "Use
> internal volume controls" in the particular mythfrontend's
> configuration. You can bind your VOL+/VOL- remote keys to scripts
> which control the ALSA system/PCM volume using amixer directly.
>
> A script which increases the ALSA PCM volume by 5% each time it is
> called could be:
>
> #!/bin/bash
> /path/to/amixer - c 0 set PCM 5%+
>   

Though an approach like this will have issues when running up against
the limits (i.e. 0% or 100%) and can get "stuck" due to rounding error,
depending on the card/resolution of the volume slider.  I posted a
script a while ago (
http://www.gossamer-threads.com/lists/mythtv/users/216149#216149 ) that
handles these and many other issues, and have improved it since (see
attached).

> The amixer manpage contains the details. These will not show anything
> on the screen (so not trigger the OSD)

The script I posted will (the current one using either mythtvosd or
xosd's osd_cat).  ;)

You'll need to configure the script by editing the variable values at
the top as described in the comments.

Mike
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: volume
Url: http://mythtv.org/pipermail/mythtv-users/attachments/20081114/eb8e16fb/attachment.diff 


More information about the mythtv-users mailing list