-
BugIt seems to me that the PiFi DAC+ does not work with gpio buttons support. What I didI installed the raspberry pi with above mentioned buster image and ran the installer script. I have a PiFi DAC+ and followed the hifiberry instructions. What happenedIf I enable the gpio button system service there is no sound. If I disable it and reboot, there is sound. I expected this to happenSound with gpio enabled. Further information that might helpIf I change shutGPIO in gpio-buttons.py to something else than 3, it works. DAC+ is using GPIO 3 according to https://pinout.xyz/pinout/pi_dac# I am new to this Raspi thing, so I hope I didn't do an obvious mistake, but I suspect that the DAC+ doesn't like the internal pull-up of GPIO3 ? Base image and version10 buster Branch / Release2.0 - ed888da - master |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
That's not a bug, but a configuration issue. If you don't use GPIO buttons at all, just deactivate phoniebox-gpio-buttons.service. If you do use GPIO buttons, you have to make sure the pins used in gpio-buttons.py don't interfere with the pins used by your sound card. So the solution could be to use a different pin than 3 for shutdown button. If you don't use a shutdown button, you could just comment out the lines for the shutdown button. |
Beta Was this translation helpful? Give feedback.
-
Hm, partly disagree: it's a bug in the documentation at least IMHO. The hifiberry guide only warns about conflicts with other pins. And https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Hardware-Pinout-Overview#flexible-pin-out in the table has a comment that sounds to me like it is supposed to work together. As a consequence this actually means that I cannot have a soundcard and a single button that simultaneously handles wakeup and shutdown on a raspberry pi (because wakeup exclusively is working on pin 3), is this understanding correct? |
Beta Was this translation helpful? Give feedback.
-
Point taken :)
Is it pin 3 or GPIO 3 (which should be pin 5, IIRC)? If your soundcard also needs the same pin, this may not work together with shutdown button, but I'm not entirely sure about the requirements of the shutdown button. Could you post the needed pins of the soundcard? |
Beta Was this translation helpful? Give feedback.
-
Yeah it is GPIO3, sorry for that. I am using the PiFi DAC+. The pins used are listed here https://pinout.xyz/pinout/pi_dac# . However, after some research I found that using GPIO3 and I2C devices is possible after all. I followed the suggestions from that Stackexchange cment here https://raspberrypi.stackexchange.com/a/85316 . So I configured another free GPIO pin for the Phoniebox shutdown and connected the GPIO3 pin and the other pin with a diode (which only lets current flow from GPIO3 to the other pin). The shutdown pin is connected to a normally open pushbutton. This way, I can turn the Raspi on and off with one single button. I do not need more support. But maybe the info from above can be useful for others. It seems like after all it is actually possible to use a soundcard and a single on/off button using gpio. |
Beta Was this translation helpful? Give feedback.
-
I ran into the same when setting up with the MiniAmp. |
Beta Was this translation helpful? Give feedback.
-
Probably the only reason is that nobody wrote a PR ;) |
Beta Was this translation helpful? Give feedback.
Yeah it is GPIO3, sorry for that. I am using the PiFi DAC+. The pins used are listed here https://pinout.xyz/pinout/pi_dac# .
However, after some research I found that using GPIO3 and I2C devices is possible after all. I followed the suggestions from that Stackexchange cment here https://raspberrypi.stackexchange.com/a/85316 . So I configured another free GPIO pin for the Phoniebox shutdown and connected the GPIO3 pin and the other pin with a diode (which only lets current flow from GPIO3 to the other pin). The shutdown pin is connected to a normally open pushbutton. This way, I can turn the Raspi on and off with one single button.
I do not need more support. But maybe the info from above…