[mythtv-users] Volume Change in MythTV

Michael T. Dean mtdean at thirdcontact.com
Fri May 27 16:39:15 UTC 2005


Jochen Kühner wrote:

> Michael T. Dean schrieb:
>
>> Jochen Kühner wrote:
>>
>>> I can enter in MythTV Wich Volume control it sould change!
>>>
>>> Must I enter here The Alsa name or the oss name of the control?? Or 
>>> is it the same???
>>
>> If you're using ALSA's OSS-compatibility (i.e. "/dev/dsp") for the 
>> audio output device, you'd use the OSS name of the control (i.e. 
>> "/dev/mixer").  If you're using ALSA  (i.e. "ALSA:default") for the 
>> audio output device, you'd use the ALSA name of the control (i.e. 
>> "default").
>
> no, i didn't mean that.
>
> my device is /dev/mixer
>
> but i want to change the volume of pcm2.
>
> but when i enter /dev/mixer and pcm2 as control, the volume of pcm2 is 
> not changed from within mythtv!

With Myth, you have the option of "Mixer controls Master" and "Mixer 
controls PCM."  If you want to control anything else, you'll have to use 
an external program.

Use internal volume controls
 - MythTV can control the PCM and master mixer volume.  If you prefer to 
use an external mixer program, then disable this option.

So, uncheck that option.  Then, set up your system to use an external 
program for volume.  For example, if you're using LIRC, set your volume 
buttons like:

begin
  prog = irexec
  button = volume-up
  config = amixer set PCM2 2%+ &
  repeat = 3
end
begin
  prog = irexec
  button = volume-down
  config = amixer set PCM2 2%- &
  repeat = 3
end
begin
  prog = irexec
  button = mute
  config = amixer set PCM2 mute &
  config = amixer set PCM2 unmute &
  repeat = 0
end

(The mute button will work as a toggle--muting the sound the first time 
you press it and unmuting the second time.)  Adjust the repeat to give 
you the speed of volume changes you desire when holding down vol-up or 
vol-down.  You can also change the percentage of each adjustment (i.e. 
instead of 2%, you might choose 1% for more precision or 5% for quicker 
change).

Note, also, that you need to change the button names to whatever you've 
defined in your lircd.conf and you *must* start irexec (i.e. add "irexec 
-d" (no quotes) to .xinitrc).

Mike


More information about the mythtv-users mailing list