Picade Sound stuck at Max Volume
-
Here is the contents of amixer contents
pi@retropie:~ $ amixer contents
numid=1,iface=MIXER,name='PCM'
; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
: values=230,230
| dBscale-min=-51.00dB,step=0.20dB,mute=0Here is the output from amixier scontents
pi@retropie:~ $ amixer scontents
Simple mixer control 'PCM',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 255
Front Left: 230 [90%]
Front Right: 230 [90%]alsamixer allows me to change the volume, but like I said, when a game loads and I hit a button, suddenly it jumps back to 100% volume
-
Sorry, I overlooked that. Which emulator are you using ? Did you save its configuration at some point, which might have included the sound volume ?
-
@mitu I've tried Mame, FBA, Flycast, Redream so far. I haven't gone through all of them but it seems like the affects them all. When it happens and I check the mixers, the volume is back to 100%. Something is kicking in an overriding the settings.
Where should I go to check the volume settings for each emulator?
-
@ultra-magnuss said in Picade Sound stuck at Max Volume:
Where should I go to check the volume settings for each emulator?
I was thinking about the Libretro based emulators, which share a common configuration. Redream is not a libretro based emulator, so that excludes this possibility.
Is the volume slider working now in EmulationStation ?Try lowering the volume, then rebooting, this will save the current volume level. Check if - after the reboot - the volume is saved.
-
@mitu So I just checked Redream and it did the same. I used putty to change the volume using the alsamixer and left it open. I would change the volume to a lower volume. It would stay that way for a while then it would jump to 90%. I would change it again and leave it and I would see and hear it jump to 90%. When I leave the emulator, it does the same for all.
When using the retropie volume,right now it's set to 90%. I will lower it and check and it will save it but when I launch anything, it goes back to 90%. So it's not necessarily an emulator. It's not dependent on me hitting a button. If I just let a game run, it will just jump to 90%, If I leave or launch anything it will reset. It's not really saving the settings.
I did try setting the volume lower and rebooting. After reboot, it went back 90% There seems to be a configuration somewhere that keeps kicking in to set the volume.
-
Besides the configuration of EmulationStation that keeps the volume, there is the ALSA mixer configuration that's saved on reboot with
alsactl store/restore
. -
@mitu I figured out what is causing it to jump in volume. It's my start and coin button on the picade. The moment I press one of those buttons, it changes the volume. I don't know why. The front buttons (Coin and 1up) which I have mapped as Start and Coin seems to reset the volume to the max. No idea why. They do function properly as the Coin and Start to start a game but they also reset the volume.
-
It could be something installed by the Picade script, maybe the driver/program that handles the input via GPIO also executes some additional commands.
What's the name of the Picade controller in EmulationStation ? -
@mitu It's named Keyboard.
-
It's named Keyboard.
Of course it is, what was I thinking.
Looks like the Picade script maps the GPIO inputs to keyboard keys with an overlay, mapping start/coin to buttons Q/W (?). Do you have any other programs capturing the keyboard input and executing commands on inputs (liketriggerhappy
) ? Is this a new RetroPie installation or you're using an existing image ? -
@mitu I don't have key capturing software. I guess I could download one but I've never used one. I am using an existing image. I would hate to have to rebuild this image due to the amount of work it took to get this build where I want it. I'm going to go bed for now but I will resume my work later in the day. I appreciate your efforts. This is the last thing I have to resolve and my Picade will be complete.
-
@ultra-magnuss I haven't looked at this in a few days. For now I have remapped my buttons to not use the start and coin up button. I leave a putty session open to turn the volume down if someone hits it but I would like to figure out how to fix it. It's not as urgent for now since I have a kind of workaround but I would like to figure this out. I'm sure it's a configuration somewhere but don't know where.
-
-
@mitu I also have the exact same issue as @ULTRA-MAGNUSS. I have gone through this thread many times and still cannot figure out the issue. My current PICADE configuration is same as his.
alsamixer
does the same for me. "This sound device does not have any controls".
When I run
amixer contents
I actually get nothing. My .asoundrc file is exactly like Ultra-Magnuss' and have even renamed and deleted the file. Nada. Volume is still 100% even if I edit with the PICADE on screen controls.
Interestingly, if I do an
speaker-test -twav
It plays the audio file for "front" and "left".
I wonder if the amixer not returning anything is causing an issue.
Help????
Thanks,
David -
@Spinjunkey-0 said in Picade Sound stuck at Max Volume:
[..] I actually get nothing. My .asoundrc file is exactly like Ultra-Magnuss' and have even renamed and deleted the file. Nada. Volume is still 100% even if I edit with the PICADE on screen controls. [...]
Post your
$HOME/.asoundrc
.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.