Strange volume control behavior

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
freechus9

Strange volume control behavior

Post by freechus9 »

I recently installed LInux Mint 12 LXDE, and everything works peachy. However, I am having a strange issue with volume control.

Whenever I use my volume buttons, raise and lower work fine. But if I use the mute button, the volume mutes fine, and is reflected both in volume control and in alsamixer. However, when I try to unmute, alsamixer shows that it is unmuting, but volume control remains muted and I cannot get any sound. I have to manually click the icon and uncheck mute.

To test what was happening, I also issued the commands to raise/lower the volume.

When I use:

amixer sset Master 5%+
or
amixer sset Master 5%-

volume control and alsamixer both respond correctly, whether it is muted or not.

When I use:

amixer sset Master toggle
or
amixer sset Master unmute

The alsamixer responds properly, but volume control does not, hence sound cannot get unmuted from these commands.

Thanks for your help in advance.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Van.Vreeborg

Re: Strange volume control behavior

Post by Van.Vreeborg »

Hi freechus9,

I can confirm this behavior, but have no solution yet.
I am on Mint 12 (lisa) LXDE, using an apple keyboard.

Some things I thought while the problem occured:
1) that it only concerned the multimedia keys on my apple keyboard.
2) that it only concerned sound of my command line mplayer.

When watching movies using command line mplayer I would accidentally press mute instead of volume-down. I then had to unmute using the desktop taskbar(?) sound icon. After having to do this a number of times, mplayer muted permanently. But other movie players did still give sound.

I then tried to fix this, ... the wrong way,... and broke all sound on my system. (installed mplayer2, but that broke my 10bit video decoding, which i cannot live without.. :), then tried to install ffmpeg > 0.7, without knowing what i was doing. After that the system never gave sound again... LOL ) Finally, reinstalled MintLXDE.

However, after reading your post I think it may be a more general problem than just the mplayer-apple-keyboard interaction.

I will get back if I do find a good solution. In the meantime I am a little afraid to experiment too much, as I broke my mplayer (and system) by doing so last week.

What I do now is use the normal "m" key to mute my mplayer, instead of using the multimedia mute button on the apple keyboard. Sofar, "m" has always unmuted for me...

Hope this helped a little,

Cheers
Van Vreeborg
freechus9

Re: Strange volume control behavior

Post by freechus9 »

I believe the multimedia keys are just a layer before the real issue, since they just issue the amixer commands I listed above. I think that this is a problem with PulseAudio, but I am not l337 enough to figure it out. Hopefully someone else can!
kingofnerds

Re: Strange volume control behavior

Post by kingofnerds »

I have a laptop with a volume wheel on the front of it, and I experience the same problem, when I accidentally put the volume wheel all the way down, I have to use the volume icon or mixer to un-mute the sound. Otherwise, the volume controls seem to work just fine.
Jamesc359

Re: Strange volume control behavior

Post by Jamesc359 »

I have this same problem with my generic Acer KB. I don't believe the problem lies in either the keyboard or the keybinds, but instead lies with amixer or something else. I say this because when I hit the mute key or use amixer sset Master toggle it mutes Master, PCM, Surround, Center and LFE. But upon repeating it-it only unmutes Master. The taskbar app correctly unmutes them all though.
melbo

Re: Strange volume control behavior

Post by melbo »

I'm sure you've tried:
Settings > Options > Volume Control Behavior > Strange > Off

Sorry, couldn't resist ;)
Jamesc359

Re: Strange volume control behavior

Post by Jamesc359 »

This is a hack, but it works for me.

Place this in a file somewhere (in your path perhaps.) I put mine in ~/bin/togglemute

Code: Select all

#!/bin/sh

amixer -q sset PCM unmute
amixer -q sset Surround unmute
amixer -q sset Center unmute
amixer -q sset LFE unmute
amixer -q sset Master toggle
If you want you can chmod, but you don't have to.

Code: Select all

chmod a+x ~/bin/togglemute
Open ~/.config/openbox/mintlxde-rc.xml
Comment out line 192 and just after that line insert

Code: Select all

          <command>sh ~/bin/togglemute</command>
It should look something like this when you're done.

Code: Select all

    <keybind key="XF86AudioMute">
      <action name="Execute">
<!--          <command>amixer -q sset Master toggle</command> -->
          <command>sh ~/bin/togglemute</command>
      </action>
    </keybind>
Save and reboot. :-)
gari126

Re: Strange volume control behavior

Post by gari126 »

Hi,
I had the same problem running MATE desktop on a Linux Mint Debian Edition (201204) ...
"Volume up" action was not able to unmute the volume
I realised that the problem was with Pulse audio but the package mate-media-gstreamer and mate-settings-deamon-gstreamer where installed by default ...
I installed instead the mate-media-pulse and mate-settings-deamon-pulse (that unisntal mate-media-gstreamer and mate-settings-deamon-gstreamer) and tadam ... "Volume up" action was able to unmute the volume again !
I hope this will also work for you !
Locked

Return to “Software & Applications”