Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Volume scale issue #3
I notice that the scale of the volume control is a bit odd when using the ALSA mixer to control the volume control of the Raspberry Pi's internal sound card. For me, almost all of the variability in audible volume occurs in the top 15% of the volume range, and it is also inconsistent with the volume reported through other applications like shairport (another component of pimusicbox, which is the context I am using mopidy in).
I believe this is due to a change to the way amixer reports volume in ALSA. The scale used by mopidy appears to be the one amixer uses, i.e. a simple linear scale of the raw values from the card. By contrast, alsamixer uses a scale that represents human perception volume instead (which I believe is more correct from a user-driven application like mopidy). See this thread for details:
I guess any change would need to be in the python alsa binding library.
added a commit
Jan 31, 2017
@steveb1475 @fluffypony @tkem if you're still interested. I have been successful messing around with the code. It might be enough to things better for you. I'm not sure if it's the right solution, but it makes things much better for me!
Download the three files from https://github.com/karlvr/mopidy-alsamixer/tree/volume-range/mopidy_alsamixer and replace the files in
Then restart Mopidy. You should now have your Mopidy volume control mapped to the middle of the ALSA range. For me it's now much more usable.
I've also just added an option for logarithmic volume control to that PR. That is working really nicely for us. The movement of the volume slider in Mopidy now corresponds to the movement of the volume slider in alsamixer (which I understand already uses the logarithmic scale).
Hi guys, I am having the same issue. Also the "mute" option doesn't work.
I've followed the steps from @karlvr but I get
I think I have the last version of everything... but...