Score:0

Prevent volume keys from changing both ALSA master volume and Ubuntu volume

in flag

I'm running Ubuntu 21.10 on a desktop PC with an external USB sound card and a gaming keyboard with a wheel for volume control (which I think just fires "volume up/down" key events when moved and should be equivalent to regular volume keys).

When I move the wheel, the "speaker" icon notification appears and the displayed volume level changes in small steps as desired. However, in alsamixer, I can see that wheel input also changes "Master" level for my sound card as following compared to the level displayed in the notification:

  • ~95% displayed level -> ALSA "Master" is 0 -> no audio output at all
  • ~99% -> 45 -> very loud audio
  • 100% -> 100 -> extremely loud audio

How can I prevent ALSA levels from reacting to keyboard input so I can set them to a fixed level and only use keyboard input to set volume as displayed in the notification?

Score:0
in flag
  1. Open configuration for device, e.g. sudo vim /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf
  2. Apply line volume = ignore in section [Element Master]
  3. Restart audio server: pulseaudio -k && sudo alsa force-reload
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.