-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pi audio changed behavior - Vol Up Down is not working #973
Comments
Are you using the spotify edition or the classic edition? We released 2.0 just moments ago, this release should fix many, many issues, so you could give that a try. |
I updated my packages in apt. Afterwards my volume buttons also don't work anymore. Changing the volume in the web app also does not work. How can I debug this? Manually changing PCM in alsamixer of course works. |
I can try to make a clean install tomorrow. |
Hi
|
I'm still in the progress of a fresh installation so wait for that, but I found many issues that show the issue: Can that be related? Where is this thing coming from? |
Fresh installed finished and issue present (I did not check if that affects volume change, but i guess it does): Volume up error message in syslog:
When pressing volume down:
|
I suspect a problem here: RPi-Jukebox-RFID/scripts/playout_controls.sh Line 236 in 7ab0286
I don’t see were @topas-rec could you also execute I’m unsure, if this part of the script is only executed with rotary knobs or if this issue exists for regular buttons, too. @veloxid, @MiczFlor I don’t know, if this is related to the GPIO control or the changes from 2.0. In addition I think we need to find out which dependencies are needed from Raspian Desktop, so they could be installed, if the user uses a Raspian Lite installation (which should be sufficient for Phoniebox). |
If that helps I can offer to do fresh installations on a rasperry pi 3. My setup consists of 2 encoders and 1-n buttons. i always get stuck with the configuration of gpio_settings.ini
|
That is not much (Tried it twice):
Might be. I have not enough knowledge of shell scripts to follow up on this.
That's an interesting idea. I want to install the desktop version next to see if the lite version (which I use) is the cause for this. |
Ok, I think there’s an issue. This should return a (volume) value between 0 and 100. @MiczFlor, I don’t know where the value is really polled from and which service/application should run here to make this work.
Ok, so I guess lite vs. desktop version is probably not an issue. |
So it does not help if I test the desktop version? If not I would restore my backup. |
Reverted to my backup where volume keys worked.
|
Tested the desktop version without success. |
Issue is here also from my point of view: RPi-Jukebox-RFID/scripts/playout_controls.sh Line 234 in 03e63de
When I
when nothing is playing and else
Nothing about volume which is piped to grep to extract the volume. There was volume information before I guess. (See https://stackoverflow.com/questions/30323721/mpd-receive-actual-mpd-status-with-linux-bash-script) Assuming this is related to an |
I think I got further and solved this on my machine.
I looked into mpd.conf and there was Now the volume change works without issues. Can someone confirm this solution who has this issue? (All packages have to be up to date) |
Thanks for investigating this! I can also confirm that on my dev Pi I now have "Headphone". I agree that probably an update of MPD changed this. We should to check, if we now need to support both cases. |
Looks like this is a change of the Pi audio behavior itself: |
I don't know where to implement handling these cases and I'm not the best bash programmer. @s-martin Weather we need both cases (PCM and headphone) or just handling the up to date Raspbian version (Headphone), can you do this? |
According to https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Troubleshooting-FAQ#audio-is-not-working Section b) you need to change the output at 2 places. @topas-rec Could you check, if this works for you when you change the two places to Then I would update the install script and the wiki docs. |
@topas-rec additional question: I experienced this new behavior on my Pi4, but I currently don't have an older model to test. |
Mine is a |
Ok, so we can assume that a fix is needed for more models than Pi4 |
Howdy! I actually dont wanna resetup that 3B+ and 4B systems, since it took me ages to get the VPN / AP / PiHole etc running correctly. Might try on a RasPi 3B I got laying around later that day. Stupid question: May this be related to "rpi-update"? Can anyone confirm, that users without rpi-update are concerned? Not sure, but think I did it on all devices - since the RPi 3B+ runs at 1.5ghz and the RP4b at 2.1GHZ ("slightly") OC'ed it. Help!!!! For now I can only adjust volume on phsical volume rulers and my wife keeps shouting at my and I have to jump behind the TV and.... !!! :D ^^; Best regards |
I think you need to check with how your audio devices are now called and which number they may have. Changed names (e.g. If you made changes in |
@Piehti Yes, I was affected without making
Fixing this line and changing |
No, it’s related to a Raspberry Pi update (https://www.raspberrypi.org/blog/latest-raspberry-pi-os-update-may-2020/), which affected all Pi’s |
I got my sound back working, by fixing the suggested stuff to "Headphones". |
Do i understand correct, that you mean the 'volumecontrol' using buttons/rotary? |
Im not using any GPIO buttons - aye? |
Diggin' deeper...
|
did you install the requirements, i.e. python-mpd2 |
So I ran sudo apt-get install python-pip for I had no pip-support. scratchscratch When hitting the vol up / down, the following error occours: I think that is new and I can remember to have had that once, I played with the playoutcontrols when implementing video stuff and messed up something. Before I take us on a ride for ghosts, (because I did something that I didnt want to do nor can remember) I gonna backup the state for later purpose and just reinstall the dev branch to be sure. Be right back.
Is that warning "OK"?
I start to get a bad feeling about this... To Conclude: I got a VPN-Router running on the Device, which propably needed to disable / deinstall several services. For systemctl status dhcpcd.service goes:
So far... lemme go down and do a bit of testing... I doubt it's better. xD |
After I found my samba-shares gone, I re-setup and resynced and chowned / chmodded the box. Thanks for all the support. Sorry for th inconvenience. *Edit: More testing, the issue is gone. |
$ journalctl -u phoniebox_gpio_control.service -f |
Please try |
Hi all, I got it to work. It's the first time for me using Linux, so if one (or more) of the steps doesn't make sense, please correct me. :) And don't use this solution just yet. Wait for someone more sophisticated to review what I wrote. I had the same issue. I couldn't control the volume via the web interface. But I was sure that the sound card was setup correctly. music could be played via web interface, but the volume control graphic was blank and didn't react to changes. Also the softvol was setup correctly. I could play music via the web interface, but had to control volume with alsamixer or amixer. But first, every time I tried to open alsamixer or amixer I got a similar error.
if I run with sudo it worked:
So I guessed that it's maybe right management stuff. So I did :
as root I did a:
and
and added the pi user to the audio group (got this from here):
And I Edited the /etc/mpd.conf to:
Now it works, but I surely did some stupid stuff along the way. 😆 So maybe someone with a little deeper insight can distillate this "solution" into something a little more profound. Maybe the edit of the mpd.conf is enough, but I did everything in the order I wrote it down. So, I hope it helps. :) |
Hey, |
Hey, I hope you can help me. I am totaly new here and i have no idea of prgramming. I just wanted to creat a music box for my daughter =) So i have this problem: When i install the Phoniebox without Spotify, everything works very well. I changed "PCM" to "Headphone" in "Sudo nano etc/mpd.conf" ( I have no soundcard btw). But i want to use the Version with Spotify and when i chose [y] in sthe One Line installer, the Phnoebox does not work. I have to say, that i dont understand most of your lines above. It would be great if you can write exactly what i have to type/change in the console. I hope you can help me =) Tahnk you!!! |
@Cali227 this issue is for a volume problem. Next time you should open a new issue for your problem or search if someone already created an issue for your problem (this is a friendly advice) Spotify version needs special handling for local files. This is explained at the readme file and links to MUST READ for users of Phoniebox +Spotify Edition To be honest I cannot find an issue where this was already asked but I had problems with local files too and was able to solve them when I found out that I have to scan the library when new local files are added. Perhaps that helps. |
Hey Guys, back from holidays :-) Now got the time and checked what you have written and tested that. Checked: cat /proc/asound/modules0 snd_bcm2835 amixer scontrolsSimple mixer control 'Speaker',0 No Headphones to see. So what to do. So what i already did is: vi /usr/share/alsa/alsa.confdefaults.ctl.card 1 vi /etc/asound.confpcm.!default { But what i not did was changing PCM to:vi /etc/mpd.confmixer_control "Speaker" # optional After reboot everything worked fine again. As already written, before, everything worked fine and i did not have to change the mixer_control parameter in mpd.conf. So for me, it works fine. So thanks for your trouble investigation. It did not solve my problem but it pushed me to the needed answer ;-) Marcus |
I'd my phoniebox up and running since a year. Now i've did an update to use the latest version and also added some GPIO buttons. I've faced the same issue, when i did the installation from scratch (without spotify). I had a keyboard and screen (hdmi) attached. The volume control didn't work. Now i just did a new installation from the commandline, without attaching the screen and it worked out of the box from the master branch. |
Do you use Spotify? |
No, i havent used spotify. |
Bug
Volume Up and Down brings error
What I did
Fresh Install with Master Branch.
No Spotify.
Hold it simple
GPIO Buttons are default configured.
All other buttons work fine (forward, back, play/pause)
What happened
Everything works fine, but vol up down buttons dont work
I expected this to happen
vol turns up and down
Further information that might help
In all other installations before with and without Spotify the buttons worked fine!
Push Button
/var/log/syslog
May 22 20:15:43 raspberrypi gpio-buttons.py[472]: expr: syntax error: unexpected argument '11'
May 22 20:15:43 raspberrypi gpio-buttons.py[472]: ./scripts/playout_controls.sh: line 244: [: -le: unary operator expected
May 22 20:15:43 raspberrypi gpio-buttons.py[472]: OK MPD 0.21.4
May 22 20:15:43 raspberrypi gpio-buttons.py[472]: OK
Push other button
May 22 20:17:03 raspberrypi gpio-buttons.py[472]: expr: syntax error: unexpected argument '('
May 22 20:17:03 raspberrypi gpio-buttons.py[472]: ./scripts/playout_controls.sh: line 281: [: -ge: unary operator expected
May 22 20:17:03 raspberrypi gpio-buttons.py[472]: OK MPD 0.21.4
May 22 20:17:03 raspberrypi gpio-buttons.py[472]: OK
Software
Base image and version
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
Branch / Release
The text was updated successfully, but these errors were encountered: