Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Fixed unmute problem using a toggle-master function #10

Closed
wants to merge 1 commit into from

Conversation

bitodt
Copy link

@bitodt bitodt commented Sep 25, 2018

Initial issue:

When using the toggle function, mute worked as expected.
When unmuting with the toggle function, the master would be unmuted but the specific output devices wouldn't (I had to manually unmute them using pavucontrol).

Solution:
On toggle_master, mute/unmute the master but always let output devices unmuted.

@coldfix
Copy link
Member

coldfix commented Sep 26, 2018

I had similar issues few years back but at some point it started working normally, possibly due to installing pulseaudio-alsa but not 100% sure. Maybe we can gather some clues here in order to put it in the README. What is your OS, do you have pulseaudio-alsa installed, and do you have any custom audio config?

@bitodt
Copy link
Author

bitodt commented Sep 26, 2018

I can't find the pulseaudio-alsa package.

System:
OS: Ubuntu 18.04
Kernel: 4.15.0-32-generic
WM: Awesome v4.2
Related packages installed:

  • pulseaudio-utils 1:11.1-1ubuntu7.1
  • alsa-utils 1.1.3-1ubuntu1

I have no alsa-tools installed, I don't know if that's relevant.
No custom audio configs.

@coldfix
Copy link
Member

coldfix commented Sep 26, 2018

Thanks. What parameters do you pass to the volumectrl?

I have

local volumecfg = volume_control({
    channel="Master",
    device="pulse",
})

It might be that device="pulse" was important for a better behaviour, but at this time it seems to work for me even without this setting.

BTW: pulseaudio-alsa is a package on archlinux that is supposed to add some compatibility settings and only contains a single file /etc/asound.conf:

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

@bitodt
Copy link
Author

bitodt commented Sep 26, 2018

Turns out I didn't pass any parameters in volume_control.
After setting the channel and device as you described, it works as expected.
Thanks for the tip!

@coldfix
Copy link
Member

coldfix commented Sep 30, 2018

Ok, I think in this case I will rather go for adding some documentation.

@coldfix coldfix closed this in fc31f0d Sep 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants