Start up volume always 100%

Hi, I’m running RPi zero W with JustBoom Digi board. Everything works fine but there is one issue - even if I configure audio output with SW volume control and start up volume as 40%, it always starts with 100% volume (it shows 100% and it also outputs at 100%). I can change it later and it works but I’m not able to fix that after power on it is not 40% (per setup) but rather 100% (which is pretty dangerous with my speakers). Is there any way to “hard” setup start up volume using ssh sudo nano …

Volumio Version: 2.873
Hardware: RPi zero W
DAC: justBoom Digi

volumio starts every time at 100% instead of the set %
it’s saying 80% with me but sounds like 100% overmodulation the shit out of it
by setting volume again it’s gone …
i had this in all versions that i tested…
rpi4/4g dac audioquest dragonfly usb dac

Could you share some logs?

A link to a full debug log would be useful :slight_smile:

ok, didn’t know it. I run volumio with RPi4 and Hifiberry Digi Pro+ and probably some older version of volumio and it works. So is it an issue of 2.873 version? Or rather JustBoom Digi or RPi zero?

http://logs.volumio.org/volumio/88b0OTG.html

This is the log - I hope I did it right :slight_smile:

1 Like

Well, in my case it shows 100% and it is actually 100% after power on. Even if it is set as 40% in the settings (which is correctly shown there after power on)

i put in the limits to 80% but every start it’s 100%
gonna test the latest release now 3.051
i had this with the 2.xx versions and 3.xx too
so a long time bug…learned to live with it

I see the issue — it does get set correctly, but there is a race condition that resets it to 100

Any idea how to fix it please?

You will have to do some debugging to see what plugin/module is causing the the reset to 100
If you are up for it, will point you to some ideas…

Mar 25 12:11:18 volumio-digi-zero volumio[840]: Playing WAVE '/volumio/app/startup.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Mar 25 12:11:21 volumio-digi-zero volumio[840]: info: VolumeController::SetAlsaVolume40
Mar 25 12:21:21 volumio-digi-zero volumio[840]: info: VolumeController::SetAlsaVolume100
Mar 25 12:21:27 volumio-digi-zero volumio[840]: info: VolumeController::SetAlsaVolume100
Mar 25 12:21:27 volumio-digi-zero volumio[840]: info: VolumeController::SetAlsaVolume40
Mar 25 12:22:18 volumio-digi-zero volumio[840]: info: VolumeController::SetAlsaVolume100
Mar 25 12:22:19 volumio-digi-zero volumio[840]: info: VolumeController::SetAlsaVolume40
Mar 25 12:22:22 volumio-digi-zero volumio[840]: info: VolumeController::SetAlsaVolume100

From a quick look at the log there are quite some funky things going on…

– [Mar 25 12:11:18] The startup sound is played before setting the startup volume! :frowning:
– [Mar 25 12:11:22] Volume is set to the configured value (40)
– [Mar 25 12:21:21] A good few minutes later (after all myVolumio stuff boots up), it gets reset to 100.
– [Mar 25 12:21:27] Jumps b/w 40 and 100
– [Mar 25 12:22:18] Set again to 100 and then back to 40
– [Mar 25 12:22:22] Finally set to 100

Would be good to know what exactly you did while generating this log just to be clear.

If this is just a fresh reboot, then someone more familiar with the Volumio core code should take a look!

thanks a lot - would it help if I run one more report? I just did a restart and here is the log just after the power on:

http://logs.volumio.org/volumio/qPDaqOM.html

Mar 25 14:53:12 volumio-digi-zero systemd[1]: Time has been changed
Mar 25 14:53:13 volumio-digi-zero volumio[843]: info: -------------------------------------------
Mar 25 14:53:13 volumio-digi-zero volumio[843]: info: ----- Volumio2 ----
Mar 25 14:53:13 volumio-digi-zero volumio[843]: info: -------------------------------------------
Mar 25 14:53:13 volumio-digi-zero volumio[843]: info: ----- System startup ----
Mar 25 14:53:13 volumio-digi-zero volumio[843]: info: -------------------------------------------

1 Like

Did some more testing and the behavior after power on is:

  • volume output at 40% (following start up settings) with the initial volumio start up “song” as well as when I start playing music but …

  • volume indicator showing 100% and …

  • when I try to click on “volume down” indicator goes from 100% to 99% and extremely loud music starts playing (actual volume jumps from 40% to 99%)

So the bottom line is that after power on volume it at 40% where it should be but indicator shows 100% where it jump when I touch the volume control.

Log here: http://logs.volumio.org/volumio/fb3HA0h.html

Any idea what can be wrong or what should I change?

Seems to be a different issue now… :thinking:

Mar 26 15:34:23 : info: VolumeController::SetAlsaVolume-
Mar 26 15:34:24 : Unable to parse:
Mar 26 15:34:24 : Simple mixer control 'SoftMaster',0
Mar 26 15:34:24 : Capabilities: volume
Mar 26 15:34:24 : Playback channels: Front Left - Front Right
Mar 26 15:34:24 : Capture channels: Front Left - Front Right
Mar 26 15:34:24 : Limits: 0 - 99
Mar 26 15:34:24 : Front Left: 99 [100%]
Mar 26 15:34:24 : Front Right: 99 [100%]
Mar 26 15:34:24 : error: Cannot get ALSA Volume: Error: Alsa Mixer Error: failed to parse output

Any idea or suggestion what to do and how to fix it?

You could add some lines of code if you are feeling up to it to debug :slight_smile:

@ashthespy ash it’s in all installs … that i have tried…
so it was already in your versions but also in the 2.xx
it was for me standaard to set volume at boot.

I would love to but I’m not a SW guy and no idea about Linux :slight_smile:
That is why I would appreciate any help to fix it.

i don’t know who to ask right now most of the guys are gone or briefly here …
and the guys i say things to are not responding any more i think they are enjoying life again…

Having a look, will report back